@hsu-react/ui 0.0.12 → 0.0.14
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/LICENSE +21 -0
- package/README.md +11 -0
- package/es/components/Button/index.js +2 -2
- package/es/components/ChainGraph/ChainGraphServices/Edges/ArrowEdge.js +4 -4
- package/es/components/ChainGraph/ChainGraphServices/NodeEvents.js +3 -3
- package/es/components/ChainGraph/ChainGraphServices/RootNode.js +27 -27
- package/es/components/ChainGraph/ChainGraphServices/TreeNode.js +32 -32
- package/es/components/ChainGraph/ChainGraphServices/index.js +11 -11
- package/es/components/ChainGraph/_components/SearchSelect/index.module.scss +2 -2
- package/es/components/ChainGraph/_utils/findAncestorsOfNode.d.ts +5 -5
- package/es/components/ChainGraph/_utils/findAncestorsOfNode.js +12 -12
- package/es/components/ChainGraph/_utils/getTextSize.d.ts +4 -4
- package/es/components/ChainGraph/_utils/getTextSize.js +4 -4
- package/es/components/ChainGraph/_utils/styles.d.ts +3 -3
- package/es/components/ChainGraph/_utils/styles.js +3 -3
- package/es/components/ChainGraph/index.js +7 -7
- package/es/components/ChainGraph/index.module.scss +2 -2
- package/es/components/Chart/Bar/Bar3DOpt.d.ts +9 -9
- package/es/components/Chart/Bar/Bar3DOpt.js +29 -29
- package/es/components/Chart/Bar/index.d.ts +5 -5
- package/es/components/Chart/Bar/index.js +23 -23
- package/es/components/Chart/Bubble/index.d.ts +6 -6
- package/es/components/Chart/Bubble/index.js +41 -41
- package/es/components/Chart/Common/index.js +12 -12
- package/es/components/Chart/Gauge/index.js +11 -11
- package/es/components/Chart/Group/index.js +1 -1
- package/es/components/Chart/Heatmap/index.d.ts +12 -12
- package/es/components/Chart/Heatmap/index.js +24 -24
- package/es/components/Chart/Line/index.d.ts +5 -5
- package/es/components/Chart/Line/index.js +23 -23
- package/es/components/Chart/Pie/Pie3D/_hooks/index.js +14 -14
- package/es/components/Chart/Pie/Pie3D/_utils/label.js +30 -30
- package/es/components/Chart/Pie/index.d.ts +8 -8
- package/es/components/Chart/Pie/index.js +34 -34
- package/es/components/Chart/Polar/index.js +11 -11
- package/es/components/Chart/Radar/index.d.ts +8 -8
- package/es/components/Chart/Radar/index.js +7 -7
- package/es/components/Chart/Sankey/index.js +12 -12
- package/es/components/Chart/Tree/index.js +12 -12
- package/es/components/Chart/_utils/autoSmooth.d.ts +1 -1
- package/es/components/Chart/_utils/autoSmooth.js +2 -2
- package/es/components/Chart/_utils/bubble.js +8 -8
- package/es/components/Chart/_utils/cartesian.d.ts +4 -4
- package/es/components/Chart/_utils/cartesian.js +4 -4
- package/es/components/Chart/chartUtils/calculateAxisConfig.d.ts +4 -4
- package/es/components/Chart/chartUtils/calculateAxisConfig.js +16 -16
- package/es/components/Chart/chartUtils/chartTooltipFormatter.d.ts +1 -1
- package/es/components/Chart/chartUtils/chartTooltipFormatter.js +1 -1
- package/es/components/Chart/chartUtils/useDataZoomWindow.d.ts +7 -7
- package/es/components/Chart/chartUtils/useDataZoomWindow.js +4 -4
- package/es/components/Chart/chartUtils/useLegendSelection.d.ts +6 -6
- package/es/components/Chart/chartUtils/useLegendSelection.js +3 -3
- package/es/components/Chart/chartUtils/yAxisDisplayUnit.d.ts +4 -4
- package/es/components/Chart/chartUtils/yAxisDisplayUnit.js +4 -4
- package/es/components/Chart/index.d.ts +2 -2
- package/es/components/Chart/index.js +1 -1
- package/es/components/Chat/ChatHistory/_components/HistoryGroup/index.module.scss +1 -1
- package/es/components/Chat/ChatHistory/_components/HistoryItem/index.js +8 -8
- package/es/components/Chat/ChatHistory/_components/HistoryItem/index.module.scss +6 -6
- package/es/components/Chat/ChatHistory/_components/NewChatButton/index.module.scss +4 -4
- package/es/components/Chat/ChatHistory/_utils/index.d.ts +1 -1
- package/es/components/Chat/ChatHistory/_utils/index.js +1 -1
- package/es/components/Chat/ChatHistory/index.js +2 -2
- package/es/components/Chat/ChatHistory/index.module.scss +3 -3
- package/es/components/Chat/ChatInput/_components/AgentToggleButton/index.module.scss +8 -8
- package/es/components/Chat/ChatInput/_components/FileList/index.module.scss +3 -3
- package/es/components/Chat/ChatInput/_components/UploadButton/index.js +1 -1
- package/es/components/Chat/ChatInput/_utils/index.d.ts +3 -3
- package/es/components/Chat/ChatInput/_utils/index.js +3 -3
- package/es/components/Chat/ChatInput/index.d.ts +5 -5
- package/es/components/Chat/ChatInput/index.js +28 -23
- package/es/components/Chat/ChatInput/index.module.scss +4 -4
- package/es/components/Chat/ChatList/_components/Assistant/AssistantItem/_components/Copy/index.js +0 -1
- package/es/components/Chat/ChatList/_components/Assistant/AssistantItem/_components/Copy/index.module.scss +5 -5
- package/es/components/Chat/ChatList/_components/Assistant/AssistantItem/_components/LikeDislike/index.module.scss +5 -5
- package/es/components/Chat/ChatList/_components/Assistant/AssistantItem/_components/QuoteList/index.module.scss +7 -7
- package/es/components/Chat/ChatList/_components/Assistant/AssistantItem/index.js +5 -5
- package/es/components/Chat/ChatList/_components/Assistant/AssistantItem/index.module.scss +5 -5
- package/es/components/Chat/ChatList/_components/Assistant/index.module.scss +3 -3
- package/es/components/Chat/ChatList/_components/User/index.module.scss +6 -6
- package/es/components/Chat/ChatList/_hooks/useAssistantNavigation.d.ts +1 -1
- package/es/components/Chat/ChatList/_hooks/useAssistantNavigation.js +1 -1
- package/es/components/Chat/ChatList/_hooks/useCalculateRowIndex.js +1 -1
- package/es/components/Chat/ChatList/_utils/cleanRedactedReasoning.d.ts +3 -3
- package/es/components/Chat/ChatList/_utils/cleanRedactedReasoning.js +3 -3
- package/es/components/Checkbox/CheckboxGroup/index.js +6 -6
- package/es/components/Checkbox/CheckboxGroup/index.module.scss +3 -3
- package/es/components/Checkbox/index.module.scss +2 -2
- package/es/components/CodeMirror/index.d.ts +6 -6
- package/es/components/CodeMirror/index.js +7 -7
- package/es/components/CodeMirror/index.module.scss +4 -4
- package/es/components/CodeMirror/linters/errorTranslator.d.ts +1 -1
- package/es/components/CodeMirror/linters/errorTranslator.js +19 -19
- package/es/components/CodeMirror/linters/jsonLinter.d.ts +2 -2
- package/es/components/CodeMirror/linters/jsonLinter.js +9 -9
- package/es/components/CodeMirror/linters/sqlLinter.js +29 -29
- package/es/components/Copy/index.module.scss +3 -3
- package/es/components/DatePicker/defaultModalPickerGetPopupContainer.d.ts +2 -2
- package/es/components/DatePicker/defaultModalPickerGetPopupContainer.js +2 -2
- package/es/components/DatePicker/index.js +9 -9
- package/es/components/Editor/index.js +3 -3
- package/es/components/Editor/index.module.scss +2 -2
- package/es/components/FileCol/index.js +2 -2
- package/es/components/FilePreview/_components/BasePreview/index.module.scss +2 -2
- package/es/components/FilePreview/_components/PdfPreview/index.module.scss +3 -3
- package/es/components/FilePreview/_hooks/useXlsxData.d.ts +1 -1
- package/es/components/FilePreview/_hooks/useXlsxData.js +1 -1
- package/es/components/FilePreview/index.module.scss +2 -2
- package/es/components/Form/ModalForm/_hooks/useAdaptiveColumnNum.d.ts +7 -7
- package/es/components/Form/ModalForm/_hooks/useAdaptiveColumnNum.js +8 -8
- package/es/components/Form/ModalForm/_hooks/useColumnFormItems.d.ts +3 -3
- package/es/components/Form/ModalForm/_hooks/useColumnFormItems.js +18 -18
- package/es/components/Form/ModalForm/_hooks/useFormItems.d.ts +5 -5
- package/es/components/Form/ModalForm/_hooks/useFormItems.js +5 -5
- package/es/components/FormItem/FormCodeMirror/index.js +6 -6
- package/es/components/FormItem/FormInput/FormPasswordStrength/index.module.scss +5 -5
- package/es/components/FormItem/FormRadio/index.module.scss +2 -2
- package/es/components/FormItem/FormUpload/index.module.scss +13 -13
- package/es/components/FormItem/ItemContainer/index.d.ts +1 -1
- package/es/components/FormItem/ItemContainer/index.js +3 -3
- package/es/components/FormItem/ItemContainer/index.module.scss +4 -4
- package/es/components/FormItem/databaseTypeMapping.d.ts +23 -23
- package/es/components/FormItem/databaseTypeMapping.js +36 -36
- package/es/components/FormItem/index.js +12 -12
- package/es/components/Icon/index.js +4 -4
- package/es/components/Input/Number/index.js +6 -6
- package/es/components/Input/Number/index.module.scss +5 -5
- package/es/components/Input/Password/index.js +3 -3
- package/es/components/Input/Range/index.js +3 -3
- package/es/components/Input/Range/index.module.scss +2 -2
- package/es/components/Input/Search/index.js +3 -3
- package/es/components/Input/TextArea/index.js +6 -6
- package/es/components/Input/TextArea/index.module.scss +5 -5
- package/es/components/Input/index.js +14 -14
- package/es/components/Input/index.module.scss +2 -2
- package/es/components/Markdown/Editor/index.module.scss +3 -3
- package/es/components/Markdown/Views/ArtifactBlock.d.ts +5 -5
- package/es/components/Markdown/Views/ArtifactBlock.js +2 -2
- package/es/components/Markdown/Views/MermaidBlock.d.ts +2 -2
- package/es/components/Markdown/Views/MermaidBlock.js +5 -5
- package/es/components/Markdown/Views/blocks.module.scss +11 -11
- package/es/components/Markdown/Views/index.js +5 -5
- package/es/components/Markdown/Views/index.module.scss +1 -1
- package/es/components/Modal/_hooks/useModalDrag.d.ts +1 -1
- package/es/components/Modal/_hooks/useModalDrag.js +1 -1
- package/es/components/Modal/_hooks/useModalElements.d.ts +1 -1
- package/es/components/Modal/_hooks/useModalElements.js +1 -1
- package/es/components/Modal/_utils/calculatePosition.d.ts +7 -7
- package/es/components/Modal/_utils/calculatePosition.js +7 -7
- package/es/components/Modal/index.module.scss +1 -1
- package/es/components/Operate/_hooks/useOperateEllipsis.d.ts +5 -5
- package/es/components/Operate/_hooks/useOperateEllipsis.js +5 -5
- package/es/components/Operate/index.js +16 -16
- package/es/components/Panel/DefaultPanel/index.module.scss +1 -1
- package/es/components/Panel/IframePanel/index.module.scss +1 -1
- package/es/components/Panel/ListPanel/ListModalPanel/index.d.ts +2 -2
- package/es/components/Panel/ListPanel/ListModalPanel/index.js +3 -3
- package/es/components/Panel/ListPanel/ListModalPanel/index.module.scss +1 -1
- package/es/components/Panel/ListPanel/_components/ColumnMgt/index.js +1 -1
- package/es/components/Panel/ListPanel/index.d.ts +2 -2
- package/es/components/Panel/ListPanel/index.js +1 -1
- package/es/components/Panel/ListPanel/index.module.scss +5 -5
- package/es/components/Search/SearchAdvanced/index.d.ts +4 -4
- package/es/components/Search/SearchAdvanced/index.js +4 -4
- package/es/components/Search/SearchAdvanced/index.module.scss +2 -2
- package/es/components/Search/SearchCard/_components/OptionRow/ChildrenItems/index.js +8 -8
- package/es/components/Search/SearchCard/_components/OptionRow/Item/index.js +13 -13
- package/es/components/Search/SearchCard/_components/OptionRow/index.js +8 -8
- package/es/components/Search/SearchCard/_hooks/useSearchCardCollapse.d.ts +1 -1
- package/es/components/Search/SearchCard/_hooks/useSearchCardCollapse.js +1 -1
- package/es/components/Search/SearchCard/_hooks/useSearchCardMoreOptions.d.ts +1 -1
- package/es/components/Search/SearchCard/_hooks/useSearchCardMoreOptions.js +14 -14
- package/es/components/Search/SearchCard/_hooks/useSearchCardValue.d.ts +1 -1
- package/es/components/Search/SearchCard/_hooks/useSearchCardValue.js +5 -5
- package/es/components/Search/SearchCard/_utils/getRealValues.d.ts +1 -1
- package/es/components/Search/SearchCard/_utils/getRealValues.js +5 -5
- package/es/components/Search/SearchCard/_utils/hasSelectedChildren.d.ts +1 -1
- package/es/components/Search/SearchCard/_utils/hasSelectedChildren.js +3 -3
- package/es/components/Search/SearchCard/_utils/typeGuards.d.ts +1 -1
- package/es/components/Search/SearchCard/_utils/typeGuards.js +1 -1
- package/es/components/Search/SearchCard/_utils/updateRealValue.d.ts +1 -1
- package/es/components/Search/SearchCard/_utils/updateRealValue.js +11 -11
- package/es/components/Search/SearchCard/index.js +1 -1
- package/es/components/Search/SearchCard/index.module.scss +8 -8
- package/es/components/Search/SearchCollapsible/index.d.ts +4 -4
- package/es/components/Search/SearchCollapsible/index.js +6 -6
- package/es/components/Search/SearchCollapsible/index.module.scss +2 -2
- package/es/components/Search/SearchWithFilter/index.d.ts +4 -4
- package/es/components/Search/SearchWithFilter/index.js +4 -4
- package/es/components/Search/SearchWithFilter/index.module.scss +2 -2
- package/es/components/Search/SearchWithMore/index.d.ts +4 -4
- package/es/components/Search/SearchWithMore/index.js +5 -5
- package/es/components/Search/SearchWithMore/index.module.scss +2 -2
- package/es/components/Search/_components/ButtonGroup/index.js +1 -1
- package/es/components/Search/_components/SearchBase/index.d.ts +8 -8
- package/es/components/Search/_components/SearchBase/index.js +5 -5
- package/es/components/Search/_components/SearchButtons/index.d.ts +2 -2
- package/es/components/Search/_hooks/useAdaptiveColumnNum.d.ts +9 -9
- package/es/components/Search/_hooks/useAdaptiveColumnNum.js +19 -19
- package/es/components/Search/_hooks/useSearchCommon.d.ts +1 -1
- package/es/components/Search/_hooks/useSearchCommon.js +21 -21
- package/es/components/Search/_hooks/useSearchExpand.d.ts +12 -12
- package/es/components/Search/_hooks/useSearchExpand.js +32 -32
- package/es/components/Search/_hooks/useSearchForm.d.ts +1 -1
- package/es/components/Search/_hooks/useSearchForm.js +1 -1
- package/es/components/Search/_hooks/useSearchItems.d.ts +5 -4
- package/es/components/Search/_hooks/useSearchItems.js +5 -4
- package/es/components/Search/_types/index.d.ts +12 -12
- package/es/components/Search/_utils/calculateButtonGroupAndColumnWidth.d.ts +6 -6
- package/es/components/Search/_utils/calculateButtonGroupAndColumnWidth.js +10 -10
- package/es/components/Search/_utils/calculateVisibleItems.d.ts +9 -9
- package/es/components/Search/_utils/calculateVisibleItems.js +12 -12
- package/es/components/Search/_utils/cleanSearchData.d.ts +3 -3
- package/es/components/Search/_utils/cleanSearchData.js +3 -3
- package/es/components/Search/_utils/measureButtonGroupWidth.d.ts +3 -3
- package/es/components/Search/_utils/measureButtonGroupWidth.js +4 -4
- package/es/components/Search/_utils/shouldDisplayExtraItem.d.ts +7 -7
- package/es/components/Search/_utils/shouldDisplayExtraItem.js +7 -7
- package/es/components/Search/index.d.ts +2 -2
- package/es/components/Search/index.js +4 -4
- package/es/components/Search/index.module.scss +1 -1
- package/es/components/SecondConf/index.module.scss +1 -1
- package/es/components/Select/AutoCompleteSelect/index.js +4 -4
- package/es/components/Select/AutoCompleteSelect/index.module.scss +6 -6
- package/es/components/Select/IconSelect/index.module.scss +2 -2
- package/es/components/Select/TreeSelect/_utils/getExpandedKeysByLevel.d.ts +4 -4
- package/es/components/Select/TreeSelect/_utils/getExpandedKeysByLevel.js +5 -5
- package/es/components/Select/TreeSelect/index.module.scss +1 -1
- package/es/components/Select/_hooks/useSelectComposition.d.ts +1 -1
- package/es/components/Select/_hooks/useSelectComposition.js +1 -1
- package/es/components/Select/_hooks/useSelectInputOptions.d.ts +1 -1
- package/es/components/Select/_hooks/useSelectInputOptions.js +1 -1
- package/es/components/Select/_utils/calculatePopupWidth.d.ts +1 -1
- package/es/components/Select/_utils/calculatePopupWidth.js +1 -1
- package/es/components/Select/_utils/filterOption.d.ts +1 -1
- package/es/components/Select/_utils/filterOption.js +1 -1
- package/es/components/Select/_utils/getElementPosition.d.ts +7 -6
- package/es/components/Select/_utils/getElementPosition.js +7 -6
- package/es/components/Select/index.module.scss +8 -8
- package/es/components/Spreadsheet/xlsxspread.js +2 -2
- package/es/components/Switch/index.module.scss +2 -2
- package/es/components/TabBar/index.module.scss +8 -8
- package/es/components/Table/_components/Pagination/index.js +3 -3
- package/es/components/Table/_hooks/useAutoScrolling.d.ts +1 -1
- package/es/components/Table/_hooks/useAutoScrolling.js +8 -7
- package/es/components/Table/_hooks/useEllipsisTooltip.d.ts +1 -1
- package/es/components/Table/_hooks/useEllipsisTooltip.js +6 -6
- package/es/components/Table/_hooks/usePaginationSync.d.ts +3 -3
- package/es/components/Table/_hooks/usePaginationSync.js +5 -5
- package/es/components/Table/_hooks/useScrollEnd.js +7 -7
- package/es/components/Table/_hooks/useTableColumns.js +30 -28
- package/es/components/Table/_hooks/useTablePagination.js +7 -7
- package/es/components/Table/_utils/tableUtils.d.ts +7 -7
- package/es/components/Table/_utils/tableUtils.js +11 -11
- package/es/components/Table/index.d.ts +11 -8
- package/es/components/Table/index.module.scss +3 -3
- package/es/components/Tags/_components/EllipsisTag/index.d.ts +1 -1
- package/es/components/Tags/_components/EllipsisTag/index.js +1 -1
- package/es/components/Tags/_components/MeasureContainer/index.d.ts +1 -1
- package/es/components/Tags/_components/MeasureContainer/index.js +1 -1
- package/es/components/Tags/_hooks/useVisibleTags.d.ts +5 -5
- package/es/components/Tags/_hooks/useVisibleTags.js +13 -13
- package/es/components/Tags/_utils/calculateVisibleCount.d.ts +6 -6
- package/es/components/Tags/_utils/calculateVisibleCount.js +12 -12
- package/es/components/Tags/_utils/getTagColor.d.ts +4 -4
- package/es/components/Tags/_utils/getTagColor.js +4 -4
- package/es/components/Tags/index.js +2 -2
- package/es/components/TextEllipsis/index.d.ts +11 -11
- package/es/components/TextEllipsis/index.js +18 -18
- package/es/components/Tree/_components/TitleSearchBar/index.js +2 -2
- package/es/components/Tree/_hooks/useClearNodeTitle.d.ts +4 -4
- package/es/components/Tree/_hooks/useClearNodeTitle.js +8 -8
- package/es/components/Tree/_hooks/useTreeCheck.d.ts +2 -2
- package/es/components/Tree/_hooks/useTreeCheck.js +4 -4
- package/es/components/Tree/_hooks/useTreeSearch.d.ts +1 -1
- package/es/components/Tree/_hooks/useTreeSearch.js +7 -7
- package/es/components/Tree/_hooks/useTreeState.d.ts +3 -3
- package/es/components/Tree/_hooks/useTreeState.js +10 -10
- package/es/components/Tree/_utils/index.d.ts +24 -24
- package/es/components/Tree/_utils/index.js +28 -28
- package/es/components/Tree/_utils/normalizeCheckedKeys.d.ts +4 -4
- package/es/components/Tree/_utils/normalizeCheckedKeys.js +16 -16
- package/es/components/Tree/index.d.ts +3 -3
- package/es/components/Tree/index.js +22 -21
- package/es/components/Tree/index.module.scss +2 -2
- package/es/components/Upload/_components/UploadedItem/index.js +2 -2
- package/es/components/Upload/_components/UploadingItem/index.js +2 -2
- package/es/components/Upload/_hooks/useUploadFileList.d.ts +1 -1
- package/es/components/Upload/_hooks/useUploadFileList.js +1 -1
- package/es/components/Upload/_hooks/useUploadOperations.d.ts +1 -1
- package/es/components/Upload/_hooks/useUploadOperations.js +3 -3
- package/es/components/Upload/_hooks/useUploadPreview.d.ts +1 -1
- package/es/components/Upload/_hooks/useUploadPreview.js +1 -1
- package/es/components/Upload/_utils/chunkUpload.d.ts +1 -1
- package/es/components/Upload/_utils/chunkUpload.js +4 -4
- package/es/components/Upload/_utils/createFormData.d.ts +1 -1
- package/es/components/Upload/_utils/createFormData.js +1 -1
- package/es/components/Upload/_utils/extractFileUrl.d.ts +1 -1
- package/es/components/Upload/_utils/extractFileUrl.js +1 -1
- package/es/components/Upload/_utils/isSuccessResponse.d.ts +1 -1
- package/es/components/Upload/_utils/isSuccessResponse.js +1 -1
- package/es/components/Upload/_utils/normalUpload.d.ts +1 -1
- package/es/components/Upload/_utils/normalUpload.js +2 -2
- package/es/components/Upload/_utils/toMB.d.ts +1 -1
- package/es/components/Upload/_utils/toMB.js +1 -1
- package/es/components/Upload/_utils/validateFile.d.ts +1 -1
- package/es/components/Upload/_utils/validateFile.js +1 -1
- package/es/components/Upload/index.js +2 -2
- package/es/config-provider/index.d.ts +3 -3
- package/es/config-provider/index.js +2 -2
- package/es/hooks/usePermissions.js +3 -3
- package/es/index.d.ts +2 -0
- package/es/index.js +6 -4
- package/es/request/ResType.d.ts +3 -3
- package/es/request/index.d.ts +6 -6
- package/es/request/index.js +6 -6
- package/es/styles/antd-overload.scss +16 -10
- package/es/styles/tokens.d.ts +26 -0
- package/es/styles/tokens.js +32 -0
- package/es/styles/tokens.scss +62 -0
- package/es/typings.d.ts +3 -3
- package/es/utils/getUUID.d.ts +1 -1
- package/es/utils/getUUID.js +1 -1
- package/lib/components/Button/index.js +2 -2
- package/lib/components/ChainGraph/ChainGraphServices/Edges/ArrowEdge.js +4 -4
- package/lib/components/ChainGraph/ChainGraphServices/NodeEvents.js +3 -3
- package/lib/components/ChainGraph/ChainGraphServices/RootNode.js +27 -27
- package/lib/components/ChainGraph/ChainGraphServices/TreeNode.js +32 -32
- package/lib/components/ChainGraph/ChainGraphServices/index.js +11 -11
- package/lib/components/ChainGraph/_components/SearchSelect/index.module.scss +2 -2
- package/lib/components/ChainGraph/_utils/findAncestorsOfNode.d.ts +5 -5
- package/lib/components/ChainGraph/_utils/findAncestorsOfNode.js +12 -12
- package/lib/components/ChainGraph/_utils/getTextSize.d.ts +4 -4
- package/lib/components/ChainGraph/_utils/getTextSize.js +4 -4
- package/lib/components/ChainGraph/_utils/styles.d.ts +3 -3
- package/lib/components/ChainGraph/_utils/styles.js +3 -3
- package/lib/components/ChainGraph/index.js +7 -7
- package/lib/components/ChainGraph/index.module.scss +2 -2
- package/lib/components/Chart/Bar/Bar3DOpt.d.ts +9 -9
- package/lib/components/Chart/Bar/Bar3DOpt.js +29 -29
- package/lib/components/Chart/Bar/index.d.ts +5 -5
- package/lib/components/Chart/Bar/index.js +23 -23
- package/lib/components/Chart/Bubble/index.d.ts +6 -6
- package/lib/components/Chart/Bubble/index.js +41 -41
- package/lib/components/Chart/Common/index.js +12 -12
- package/lib/components/Chart/Gauge/index.js +11 -11
- package/lib/components/Chart/Group/index.js +1 -1
- package/lib/components/Chart/Heatmap/index.d.ts +12 -12
- package/lib/components/Chart/Heatmap/index.js +24 -24
- package/lib/components/Chart/Line/index.d.ts +5 -5
- package/lib/components/Chart/Line/index.js +23 -23
- package/lib/components/Chart/Pie/Pie3D/_hooks/index.js +14 -14
- package/lib/components/Chart/Pie/Pie3D/_utils/label.js +30 -30
- package/lib/components/Chart/Pie/index.d.ts +8 -8
- package/lib/components/Chart/Pie/index.js +34 -34
- package/lib/components/Chart/Polar/index.js +11 -11
- package/lib/components/Chart/Radar/index.d.ts +8 -8
- package/lib/components/Chart/Radar/index.js +7 -7
- package/lib/components/Chart/Sankey/index.js +12 -12
- package/lib/components/Chart/Tree/index.js +12 -12
- package/lib/components/Chart/_utils/autoSmooth.d.ts +1 -1
- package/lib/components/Chart/_utils/autoSmooth.js +2 -2
- package/lib/components/Chart/_utils/bubble.js +8 -8
- package/lib/components/Chart/_utils/cartesian.d.ts +4 -4
- package/lib/components/Chart/_utils/cartesian.js +4 -4
- package/lib/components/Chart/chartUtils/calculateAxisConfig.d.ts +4 -4
- package/lib/components/Chart/chartUtils/calculateAxisConfig.js +16 -16
- package/lib/components/Chart/chartUtils/chartTooltipFormatter.d.ts +1 -1
- package/lib/components/Chart/chartUtils/chartTooltipFormatter.js +1 -1
- package/lib/components/Chart/chartUtils/useDataZoomWindow.d.ts +7 -7
- package/lib/components/Chart/chartUtils/useDataZoomWindow.js +4 -4
- package/lib/components/Chart/chartUtils/useLegendSelection.d.ts +6 -6
- package/lib/components/Chart/chartUtils/useLegendSelection.js +3 -3
- package/lib/components/Chart/chartUtils/yAxisDisplayUnit.d.ts +4 -4
- package/lib/components/Chart/chartUtils/yAxisDisplayUnit.js +4 -4
- package/lib/components/Chart/index.d.ts +2 -2
- package/lib/components/Chart/index.js +1 -1
- package/lib/components/Chat/ChatHistory/_components/HistoryGroup/index.module.scss +1 -1
- package/lib/components/Chat/ChatHistory/_components/HistoryItem/index.js +8 -8
- package/lib/components/Chat/ChatHistory/_components/HistoryItem/index.module.scss +6 -6
- package/lib/components/Chat/ChatHistory/_components/NewChatButton/index.module.scss +4 -4
- package/lib/components/Chat/ChatHistory/_utils/index.d.ts +1 -1
- package/lib/components/Chat/ChatHistory/_utils/index.js +1 -1
- package/lib/components/Chat/ChatHistory/index.js +2 -2
- package/lib/components/Chat/ChatHistory/index.module.scss +3 -3
- package/lib/components/Chat/ChatInput/_components/AgentToggleButton/index.module.scss +8 -8
- package/lib/components/Chat/ChatInput/_components/FileList/index.module.scss +3 -3
- package/lib/components/Chat/ChatInput/_components/UploadButton/index.js +1 -1
- package/lib/components/Chat/ChatInput/_utils/index.d.ts +3 -3
- package/lib/components/Chat/ChatInput/_utils/index.js +3 -3
- package/lib/components/Chat/ChatInput/index.d.ts +5 -5
- package/lib/components/Chat/ChatInput/index.js +23 -19
- package/lib/components/Chat/ChatInput/index.module.scss +4 -4
- package/lib/components/Chat/ChatList/_components/Assistant/AssistantItem/_components/Copy/index.js +0 -1
- package/lib/components/Chat/ChatList/_components/Assistant/AssistantItem/_components/Copy/index.module.scss +5 -5
- package/lib/components/Chat/ChatList/_components/Assistant/AssistantItem/_components/LikeDislike/index.module.scss +5 -5
- package/lib/components/Chat/ChatList/_components/Assistant/AssistantItem/_components/QuoteList/index.module.scss +7 -7
- package/lib/components/Chat/ChatList/_components/Assistant/AssistantItem/index.js +5 -5
- package/lib/components/Chat/ChatList/_components/Assistant/AssistantItem/index.module.scss +5 -5
- package/lib/components/Chat/ChatList/_components/Assistant/index.module.scss +3 -3
- package/lib/components/Chat/ChatList/_components/User/index.module.scss +6 -6
- package/lib/components/Chat/ChatList/_hooks/useAssistantNavigation.d.ts +1 -1
- package/lib/components/Chat/ChatList/_hooks/useAssistantNavigation.js +1 -1
- package/lib/components/Chat/ChatList/_hooks/useCalculateRowIndex.js +1 -1
- package/lib/components/Chat/ChatList/_utils/cleanRedactedReasoning.d.ts +3 -3
- package/lib/components/Chat/ChatList/_utils/cleanRedactedReasoning.js +3 -3
- package/lib/components/Checkbox/CheckboxGroup/index.js +6 -6
- package/lib/components/Checkbox/CheckboxGroup/index.module.scss +3 -3
- package/lib/components/Checkbox/index.module.scss +2 -2
- package/lib/components/CodeMirror/index.d.ts +6 -6
- package/lib/components/CodeMirror/index.js +9 -9
- package/lib/components/CodeMirror/index.module.scss +4 -4
- package/lib/components/CodeMirror/linters/errorTranslator.d.ts +1 -1
- package/lib/components/CodeMirror/linters/errorTranslator.js +19 -19
- package/lib/components/CodeMirror/linters/jsonLinter.d.ts +2 -2
- package/lib/components/CodeMirror/linters/jsonLinter.js +9 -9
- package/lib/components/CodeMirror/linters/sqlLinter.js +29 -29
- package/lib/components/Copy/index.module.scss +3 -3
- package/lib/components/DatePicker/defaultModalPickerGetPopupContainer.d.ts +2 -2
- package/lib/components/DatePicker/defaultModalPickerGetPopupContainer.js +2 -2
- package/lib/components/DatePicker/index.js +9 -9
- package/lib/components/Editor/index.js +3 -3
- package/lib/components/Editor/index.module.scss +2 -2
- package/lib/components/FileCol/index.js +2 -2
- package/lib/components/FilePreview/_components/BasePreview/index.module.scss +2 -2
- package/lib/components/FilePreview/_components/PdfPreview/index.module.scss +3 -3
- package/lib/components/FilePreview/_hooks/useXlsxData.d.ts +1 -1
- package/lib/components/FilePreview/_hooks/useXlsxData.js +1 -1
- package/lib/components/FilePreview/index.module.scss +2 -2
- package/lib/components/Form/ModalForm/_hooks/useAdaptiveColumnNum.d.ts +7 -7
- package/lib/components/Form/ModalForm/_hooks/useAdaptiveColumnNum.js +8 -8
- package/lib/components/Form/ModalForm/_hooks/useColumnFormItems.d.ts +3 -3
- package/lib/components/Form/ModalForm/_hooks/useColumnFormItems.js +18 -18
- package/lib/components/Form/ModalForm/_hooks/useFormItems.d.ts +5 -5
- package/lib/components/Form/ModalForm/_hooks/useFormItems.js +5 -5
- package/lib/components/FormItem/FormCodeMirror/index.js +6 -6
- package/lib/components/FormItem/FormInput/FormPasswordStrength/index.module.scss +5 -5
- package/lib/components/FormItem/FormRadio/index.module.scss +2 -2
- package/lib/components/FormItem/FormUpload/index.module.scss +13 -13
- package/lib/components/FormItem/ItemContainer/index.d.ts +1 -1
- package/lib/components/FormItem/ItemContainer/index.js +3 -3
- package/lib/components/FormItem/ItemContainer/index.module.scss +4 -4
- package/lib/components/FormItem/databaseTypeMapping.d.ts +23 -23
- package/lib/components/FormItem/databaseTypeMapping.js +36 -36
- package/lib/components/FormItem/index.js +12 -12
- package/lib/components/Icon/index.js +4 -4
- package/lib/components/Input/Number/index.js +6 -6
- package/lib/components/Input/Number/index.module.scss +5 -5
- package/lib/components/Input/Password/index.js +3 -3
- package/lib/components/Input/Range/index.js +3 -3
- package/lib/components/Input/Range/index.module.scss +2 -2
- package/lib/components/Input/Search/index.js +3 -3
- package/lib/components/Input/TextArea/index.js +6 -6
- package/lib/components/Input/TextArea/index.module.scss +5 -5
- package/lib/components/Input/index.js +14 -14
- package/lib/components/Input/index.module.scss +2 -2
- package/lib/components/Markdown/Editor/index.module.scss +3 -3
- package/lib/components/Markdown/Views/ArtifactBlock.d.ts +5 -5
- package/lib/components/Markdown/Views/ArtifactBlock.js +2 -2
- package/lib/components/Markdown/Views/MermaidBlock.d.ts +2 -2
- package/lib/components/Markdown/Views/MermaidBlock.js +5 -5
- package/lib/components/Markdown/Views/blocks.module.scss +11 -11
- package/lib/components/Markdown/Views/index.js +5 -5
- package/lib/components/Markdown/Views/index.module.scss +1 -1
- package/lib/components/Modal/_hooks/useModalDrag.d.ts +1 -1
- package/lib/components/Modal/_hooks/useModalDrag.js +1 -1
- package/lib/components/Modal/_hooks/useModalElements.d.ts +1 -1
- package/lib/components/Modal/_hooks/useModalElements.js +1 -1
- package/lib/components/Modal/_utils/calculatePosition.d.ts +7 -7
- package/lib/components/Modal/_utils/calculatePosition.js +7 -7
- package/lib/components/Modal/index.module.scss +1 -1
- package/lib/components/Operate/_hooks/useOperateEllipsis.d.ts +5 -5
- package/lib/components/Operate/_hooks/useOperateEllipsis.js +5 -5
- package/lib/components/Operate/index.js +16 -16
- package/lib/components/Panel/DefaultPanel/index.module.scss +1 -1
- package/lib/components/Panel/IframePanel/index.module.scss +1 -1
- package/lib/components/Panel/ListPanel/ListModalPanel/index.d.ts +2 -2
- package/lib/components/Panel/ListPanel/ListModalPanel/index.js +5 -5
- package/lib/components/Panel/ListPanel/ListModalPanel/index.module.scss +1 -1
- package/lib/components/Panel/ListPanel/_components/ColumnMgt/index.js +1 -1
- package/lib/components/Panel/ListPanel/index.d.ts +2 -2
- package/lib/components/Panel/ListPanel/index.js +3 -3
- package/lib/components/Panel/ListPanel/index.module.scss +5 -5
- package/lib/components/Search/SearchAdvanced/index.d.ts +4 -4
- package/lib/components/Search/SearchAdvanced/index.js +4 -4
- package/lib/components/Search/SearchAdvanced/index.module.scss +2 -2
- package/lib/components/Search/SearchCard/_components/OptionRow/ChildrenItems/index.js +8 -8
- package/lib/components/Search/SearchCard/_components/OptionRow/Item/index.js +13 -13
- package/lib/components/Search/SearchCard/_components/OptionRow/index.js +8 -8
- package/lib/components/Search/SearchCard/_hooks/useSearchCardCollapse.d.ts +1 -1
- package/lib/components/Search/SearchCard/_hooks/useSearchCardCollapse.js +1 -1
- package/lib/components/Search/SearchCard/_hooks/useSearchCardMoreOptions.d.ts +1 -1
- package/lib/components/Search/SearchCard/_hooks/useSearchCardMoreOptions.js +14 -14
- package/lib/components/Search/SearchCard/_hooks/useSearchCardValue.d.ts +1 -1
- package/lib/components/Search/SearchCard/_hooks/useSearchCardValue.js +5 -5
- package/lib/components/Search/SearchCard/_utils/getRealValues.d.ts +1 -1
- package/lib/components/Search/SearchCard/_utils/getRealValues.js +5 -5
- package/lib/components/Search/SearchCard/_utils/hasSelectedChildren.d.ts +1 -1
- package/lib/components/Search/SearchCard/_utils/hasSelectedChildren.js +3 -3
- package/lib/components/Search/SearchCard/_utils/typeGuards.d.ts +1 -1
- package/lib/components/Search/SearchCard/_utils/typeGuards.js +1 -1
- package/lib/components/Search/SearchCard/_utils/updateRealValue.d.ts +1 -1
- package/lib/components/Search/SearchCard/_utils/updateRealValue.js +11 -11
- package/lib/components/Search/SearchCard/index.js +1 -1
- package/lib/components/Search/SearchCard/index.module.scss +8 -8
- package/lib/components/Search/SearchCollapsible/index.d.ts +4 -4
- package/lib/components/Search/SearchCollapsible/index.js +6 -6
- package/lib/components/Search/SearchCollapsible/index.module.scss +2 -2
- package/lib/components/Search/SearchWithFilter/index.d.ts +4 -4
- package/lib/components/Search/SearchWithFilter/index.js +4 -4
- package/lib/components/Search/SearchWithFilter/index.module.scss +2 -2
- package/lib/components/Search/SearchWithMore/index.d.ts +4 -4
- package/lib/components/Search/SearchWithMore/index.js +5 -5
- package/lib/components/Search/SearchWithMore/index.module.scss +2 -2
- package/lib/components/Search/_components/ButtonGroup/index.js +1 -1
- package/lib/components/Search/_components/SearchBase/index.d.ts +8 -8
- package/lib/components/Search/_components/SearchBase/index.js +5 -5
- package/lib/components/Search/_components/SearchButtons/index.d.ts +2 -2
- package/lib/components/Search/_hooks/useAdaptiveColumnNum.d.ts +9 -9
- package/lib/components/Search/_hooks/useAdaptiveColumnNum.js +19 -19
- package/lib/components/Search/_hooks/useSearchCommon.d.ts +1 -1
- package/lib/components/Search/_hooks/useSearchCommon.js +21 -21
- package/lib/components/Search/_hooks/useSearchExpand.d.ts +12 -12
- package/lib/components/Search/_hooks/useSearchExpand.js +32 -32
- package/lib/components/Search/_hooks/useSearchForm.d.ts +1 -1
- package/lib/components/Search/_hooks/useSearchForm.js +1 -1
- package/lib/components/Search/_hooks/useSearchItems.d.ts +5 -4
- package/lib/components/Search/_hooks/useSearchItems.js +5 -4
- package/lib/components/Search/_types/index.d.ts +12 -12
- package/lib/components/Search/_utils/calculateButtonGroupAndColumnWidth.d.ts +6 -6
- package/lib/components/Search/_utils/calculateButtonGroupAndColumnWidth.js +10 -10
- package/lib/components/Search/_utils/calculateVisibleItems.d.ts +9 -9
- package/lib/components/Search/_utils/calculateVisibleItems.js +12 -12
- package/lib/components/Search/_utils/cleanSearchData.d.ts +3 -3
- package/lib/components/Search/_utils/cleanSearchData.js +3 -3
- package/lib/components/Search/_utils/measureButtonGroupWidth.d.ts +3 -3
- package/lib/components/Search/_utils/measureButtonGroupWidth.js +4 -4
- package/lib/components/Search/_utils/shouldDisplayExtraItem.d.ts +7 -7
- package/lib/components/Search/_utils/shouldDisplayExtraItem.js +7 -7
- package/lib/components/Search/index.d.ts +2 -2
- package/lib/components/Search/index.js +4 -4
- package/lib/components/Search/index.module.scss +1 -1
- package/lib/components/SecondConf/index.module.scss +1 -1
- package/lib/components/Select/AutoCompleteSelect/index.js +4 -4
- package/lib/components/Select/AutoCompleteSelect/index.module.scss +6 -6
- package/lib/components/Select/IconSelect/index.module.scss +2 -2
- package/lib/components/Select/TreeSelect/_utils/getExpandedKeysByLevel.d.ts +4 -4
- package/lib/components/Select/TreeSelect/_utils/getExpandedKeysByLevel.js +5 -5
- package/lib/components/Select/TreeSelect/index.module.scss +1 -1
- package/lib/components/Select/_hooks/useSelectComposition.d.ts +1 -1
- package/lib/components/Select/_hooks/useSelectComposition.js +1 -1
- package/lib/components/Select/_hooks/useSelectInputOptions.d.ts +1 -1
- package/lib/components/Select/_hooks/useSelectInputOptions.js +1 -1
- package/lib/components/Select/_utils/calculatePopupWidth.d.ts +1 -1
- package/lib/components/Select/_utils/calculatePopupWidth.js +1 -1
- package/lib/components/Select/_utils/filterOption.d.ts +1 -1
- package/lib/components/Select/_utils/filterOption.js +1 -1
- package/lib/components/Select/_utils/getElementPosition.d.ts +7 -6
- package/lib/components/Select/_utils/getElementPosition.js +7 -6
- package/lib/components/Select/index.module.scss +8 -8
- package/lib/components/Spreadsheet/xlsxspread.js +2 -2
- package/lib/components/Switch/index.module.scss +2 -2
- package/lib/components/TabBar/index.module.scss +8 -8
- package/lib/components/Table/_components/Pagination/index.js +3 -3
- package/lib/components/Table/_hooks/useAutoScrolling.d.ts +1 -1
- package/lib/components/Table/_hooks/useAutoScrolling.js +8 -7
- package/lib/components/Table/_hooks/useEllipsisTooltip.d.ts +1 -1
- package/lib/components/Table/_hooks/useEllipsisTooltip.js +6 -6
- package/lib/components/Table/_hooks/usePaginationSync.d.ts +3 -3
- package/lib/components/Table/_hooks/usePaginationSync.js +5 -5
- package/lib/components/Table/_hooks/useScrollEnd.js +7 -7
- package/lib/components/Table/_hooks/useTableColumns.js +30 -28
- package/lib/components/Table/_hooks/useTablePagination.js +7 -7
- package/lib/components/Table/_utils/tableUtils.d.ts +7 -7
- package/lib/components/Table/_utils/tableUtils.js +11 -11
- package/lib/components/Table/index.d.ts +11 -8
- package/lib/components/Table/index.module.scss +3 -3
- package/lib/components/Tags/_components/EllipsisTag/index.d.ts +1 -1
- package/lib/components/Tags/_components/EllipsisTag/index.js +1 -1
- package/lib/components/Tags/_components/MeasureContainer/index.d.ts +1 -1
- package/lib/components/Tags/_components/MeasureContainer/index.js +1 -1
- package/lib/components/Tags/_hooks/useVisibleTags.d.ts +5 -5
- package/lib/components/Tags/_hooks/useVisibleTags.js +13 -13
- package/lib/components/Tags/_utils/calculateVisibleCount.d.ts +6 -6
- package/lib/components/Tags/_utils/calculateVisibleCount.js +12 -12
- package/lib/components/Tags/_utils/getTagColor.d.ts +4 -4
- package/lib/components/Tags/_utils/getTagColor.js +4 -4
- package/lib/components/Tags/index.js +2 -2
- package/lib/components/TextEllipsis/index.d.ts +11 -11
- package/lib/components/TextEllipsis/index.js +18 -18
- package/lib/components/Tree/_components/TitleSearchBar/index.js +2 -2
- package/lib/components/Tree/_hooks/useClearNodeTitle.d.ts +4 -4
- package/lib/components/Tree/_hooks/useClearNodeTitle.js +8 -8
- package/lib/components/Tree/_hooks/useTreeCheck.d.ts +2 -2
- package/lib/components/Tree/_hooks/useTreeCheck.js +4 -4
- package/lib/components/Tree/_hooks/useTreeSearch.d.ts +1 -1
- package/lib/components/Tree/_hooks/useTreeSearch.js +7 -7
- package/lib/components/Tree/_hooks/useTreeState.d.ts +3 -3
- package/lib/components/Tree/_hooks/useTreeState.js +10 -10
- package/lib/components/Tree/_utils/index.d.ts +24 -24
- package/lib/components/Tree/_utils/index.js +28 -28
- package/lib/components/Tree/_utils/normalizeCheckedKeys.d.ts +4 -4
- package/lib/components/Tree/_utils/normalizeCheckedKeys.js +16 -16
- package/lib/components/Tree/index.d.ts +3 -3
- package/lib/components/Tree/index.js +22 -21
- package/lib/components/Tree/index.module.scss +2 -2
- package/lib/components/Upload/_components/UploadedItem/index.js +2 -2
- package/lib/components/Upload/_components/UploadingItem/index.js +2 -2
- package/lib/components/Upload/_hooks/useUploadFileList.d.ts +1 -1
- package/lib/components/Upload/_hooks/useUploadFileList.js +1 -1
- package/lib/components/Upload/_hooks/useUploadOperations.d.ts +1 -1
- package/lib/components/Upload/_hooks/useUploadOperations.js +3 -3
- package/lib/components/Upload/_hooks/useUploadPreview.d.ts +1 -1
- package/lib/components/Upload/_hooks/useUploadPreview.js +1 -1
- package/lib/components/Upload/_utils/chunkUpload.d.ts +1 -1
- package/lib/components/Upload/_utils/chunkUpload.js +4 -4
- package/lib/components/Upload/_utils/createFormData.d.ts +1 -1
- package/lib/components/Upload/_utils/createFormData.js +1 -1
- package/lib/components/Upload/_utils/extractFileUrl.d.ts +1 -1
- package/lib/components/Upload/_utils/extractFileUrl.js +1 -1
- package/lib/components/Upload/_utils/isSuccessResponse.d.ts +1 -1
- package/lib/components/Upload/_utils/isSuccessResponse.js +1 -1
- package/lib/components/Upload/_utils/normalUpload.d.ts +1 -1
- package/lib/components/Upload/_utils/normalUpload.js +2 -2
- package/lib/components/Upload/_utils/toMB.d.ts +1 -1
- package/lib/components/Upload/_utils/toMB.js +1 -1
- package/lib/components/Upload/_utils/validateFile.d.ts +1 -1
- package/lib/components/Upload/_utils/validateFile.js +1 -1
- package/lib/components/Upload/index.js +2 -2
- package/lib/config-provider/index.d.ts +3 -3
- package/lib/config-provider/index.js +2 -2
- package/lib/hooks/usePermissions.js +3 -3
- package/lib/index.d.ts +2 -0
- package/lib/index.js +22 -0
- package/lib/request/ResType.d.ts +3 -3
- package/lib/request/index.d.ts +6 -6
- package/lib/request/index.js +6 -6
- package/lib/styles/antd-overload.scss +16 -10
- package/lib/styles/tokens.d.ts +26 -0
- package/lib/styles/tokens.js +38 -0
- package/lib/styles/tokens.scss +62 -0
- package/lib/typings.d.ts +3 -3
- package/lib/utils/getUUID.d.ts +1 -1
- package/lib/utils/getUUID.js +1 -1
- package/package.json +3 -3
- package/src/components/Button/index.tsx +2 -2
- package/src/components/ChainGraph/ChainGraphServices/Edges/ArrowEdge.ts +4 -4
- package/src/components/ChainGraph/ChainGraphServices/NodeEvents.ts +3 -3
- package/src/components/ChainGraph/ChainGraphServices/RootNode.ts +27 -27
- package/src/components/ChainGraph/ChainGraphServices/TreeNode.ts +32 -32
- package/src/components/ChainGraph/ChainGraphServices/index.ts +11 -11
- package/src/components/ChainGraph/_components/SearchSelect/index.module.scss +2 -2
- package/src/components/ChainGraph/_utils/findAncestorsOfNode.ts +12 -12
- package/src/components/ChainGraph/_utils/getTextSize.ts +4 -4
- package/src/components/ChainGraph/_utils/styles.ts +3 -3
- package/src/components/ChainGraph/index.module.scss +2 -2
- package/src/components/ChainGraph/index.tsx +8 -8
- package/src/components/Chart/Bar/Bar3DOpt.tsx +33 -33
- package/src/components/Chart/Bar/index.tsx +28 -28
- package/src/components/Chart/Bubble/index.tsx +47 -47
- package/src/components/Chart/Common/index.tsx +12 -12
- package/src/components/Chart/Gauge/index.tsx +11 -11
- package/src/components/Chart/Group/index.tsx +1 -1
- package/src/components/Chart/Heatmap/index.tsx +36 -36
- package/src/components/Chart/Line/index.tsx +28 -28
- package/src/components/Chart/Pie/Pie3D/_hooks/index.ts +14 -14
- package/src/components/Chart/Pie/Pie3D/_utils/label.ts +31 -31
- package/src/components/Chart/Pie/index.tsx +42 -42
- package/src/components/Chart/Polar/index.tsx +11 -11
- package/src/components/Chart/Radar/index.tsx +12 -12
- package/src/components/Chart/Sankey/index.tsx +12 -12
- package/src/components/Chart/Tree/index.tsx +12 -12
- package/src/components/Chart/_utils/autoSmooth.ts +3 -3
- package/src/components/Chart/_utils/bubble.ts +8 -8
- package/src/components/Chart/_utils/cartesian.ts +4 -4
- package/src/components/Chart/chartUtils/calculateAxisConfig.ts +16 -16
- package/src/components/Chart/chartUtils/chartTooltipFormatter.ts +2 -2
- package/src/components/Chart/chartUtils/useDataZoomWindow.ts +8 -8
- package/src/components/Chart/chartUtils/useLegendSelection.ts +6 -6
- package/src/components/Chart/chartUtils/yAxisDisplayUnit.ts +4 -4
- package/src/components/Chart/index.tsx +2 -2
- package/src/components/Chat/ChatHistory/_components/HistoryGroup/index.module.scss +1 -1
- package/src/components/Chat/ChatHistory/_components/HistoryItem/index.module.scss +6 -6
- package/src/components/Chat/ChatHistory/_components/HistoryItem/index.tsx +8 -8
- package/src/components/Chat/ChatHistory/_components/NewChatButton/index.module.scss +4 -4
- package/src/components/Chat/ChatHistory/_utils/index.ts +1 -1
- package/src/components/Chat/ChatHistory/index.module.scss +3 -3
- package/src/components/Chat/ChatHistory/index.tsx +2 -2
- package/src/components/Chat/ChatInput/_components/AgentToggleButton/index.module.scss +8 -8
- package/src/components/Chat/ChatInput/_components/FileList/index.module.scss +3 -3
- package/src/components/Chat/ChatInput/_components/UploadButton/index.tsx +2 -2
- package/src/components/Chat/ChatInput/_utils/index.ts +3 -3
- package/src/components/Chat/ChatInput/index.module.scss +4 -4
- package/src/components/Chat/ChatInput/index.tsx +24 -23
- package/src/components/Chat/ChatList/_components/Assistant/AssistantItem/_components/Copy/index.module.scss +5 -5
- package/src/components/Chat/ChatList/_components/Assistant/AssistantItem/_components/Copy/index.tsx +0 -2
- package/src/components/Chat/ChatList/_components/Assistant/AssistantItem/_components/LikeDislike/index.module.scss +5 -5
- package/src/components/Chat/ChatList/_components/Assistant/AssistantItem/_components/QuoteList/index.module.scss +7 -7
- package/src/components/Chat/ChatList/_components/Assistant/AssistantItem/index.module.scss +5 -5
- package/src/components/Chat/ChatList/_components/Assistant/AssistantItem/index.tsx +6 -6
- package/src/components/Chat/ChatList/_components/Assistant/index.module.scss +3 -3
- package/src/components/Chat/ChatList/_components/User/index.module.scss +6 -6
- package/src/components/Chat/ChatList/_hooks/useAssistantNavigation.ts +1 -1
- package/src/components/Chat/ChatList/_hooks/useCalculateRowIndex.ts +1 -1
- package/src/components/Chat/ChatList/_utils/cleanRedactedReasoning.ts +3 -3
- package/src/components/Checkbox/CheckboxGroup/index.module.scss +3 -3
- package/src/components/Checkbox/CheckboxGroup/index.tsx +6 -6
- package/src/components/Checkbox/index.module.scss +2 -2
- package/src/components/CodeMirror/index.module.scss +4 -4
- package/src/components/CodeMirror/index.tsx +15 -15
- package/src/components/CodeMirror/linters/errorTranslator.ts +19 -19
- package/src/components/CodeMirror/linters/jsonLinter.ts +11 -11
- package/src/components/CodeMirror/linters/sqlLinter.ts +29 -29
- package/src/components/Copy/index.module.scss +3 -3
- package/src/components/DatePicker/defaultModalPickerGetPopupContainer.ts +2 -2
- package/src/components/DatePicker/index.tsx +9 -9
- package/src/components/Editor/index.module.scss +2 -2
- package/src/components/Editor/index.tsx +3 -3
- package/src/components/FileCol/index.tsx +2 -2
- package/src/components/FilePreview/_components/BasePreview/index.module.scss +2 -2
- package/src/components/FilePreview/_components/PdfPreview/index.module.scss +3 -3
- package/src/components/FilePreview/_hooks/useXlsxData.ts +1 -1
- package/src/components/FilePreview/index.module.scss +2 -2
- package/src/components/Form/ModalForm/_hooks/useAdaptiveColumnNum.ts +8 -8
- package/src/components/Form/ModalForm/_hooks/useColumnFormItems.ts +18 -18
- package/src/components/Form/ModalForm/_hooks/useFormItems.ts +5 -5
- package/src/components/FormItem/FormCodeMirror/index.tsx +6 -6
- package/src/components/FormItem/FormInput/FormPasswordStrength/index.module.scss +5 -5
- package/src/components/FormItem/FormRadio/index.module.scss +2 -2
- package/src/components/FormItem/FormUpload/index.module.scss +13 -13
- package/src/components/FormItem/ItemContainer/index.module.scss +4 -4
- package/src/components/FormItem/ItemContainer/index.tsx +4 -4
- package/src/components/FormItem/databaseTypeMapping.ts +43 -43
- package/src/components/FormItem/index.tsx +15 -15
- package/src/components/Icon/index.tsx +4 -4
- package/src/components/Input/Number/index.module.scss +5 -5
- package/src/components/Input/Number/index.tsx +6 -6
- package/src/components/Input/Password/index.tsx +3 -3
- package/src/components/Input/Range/index.module.scss +2 -2
- package/src/components/Input/Range/index.tsx +3 -3
- package/src/components/Input/Search/index.tsx +3 -3
- package/src/components/Input/TextArea/index.module.scss +5 -5
- package/src/components/Input/TextArea/index.tsx +6 -6
- package/src/components/Input/index.module.scss +2 -2
- package/src/components/Input/index.tsx +14 -14
- package/src/components/Markdown/Editor/index.module.scss +3 -3
- package/src/components/Markdown/Views/ArtifactBlock.tsx +5 -5
- package/src/components/Markdown/Views/MermaidBlock.tsx +5 -5
- package/src/components/Markdown/Views/blocks.module.scss +11 -11
- package/src/components/Markdown/Views/index.module.scss +1 -1
- package/src/components/Markdown/Views/index.tsx +5 -5
- package/src/components/Modal/_hooks/useModalDrag.ts +1 -1
- package/src/components/Modal/_hooks/useModalElements.ts +1 -1
- package/src/components/Modal/_utils/calculatePosition.ts +7 -7
- package/src/components/Modal/index.module.scss +1 -1
- package/src/components/Operate/_hooks/useOperateEllipsis.ts +5 -5
- package/src/components/Operate/index.tsx +16 -16
- package/src/components/Panel/DefaultPanel/index.module.scss +1 -1
- package/src/components/Panel/IframePanel/index.module.scss +1 -1
- package/src/components/Panel/ListPanel/ListModalPanel/index.module.scss +1 -1
- package/src/components/Panel/ListPanel/ListModalPanel/index.tsx +8 -8
- package/src/components/Panel/ListPanel/_components/ColumnMgt/index.tsx +1 -1
- package/src/components/Panel/ListPanel/index.module.scss +5 -5
- package/src/components/Panel/ListPanel/index.tsx +5 -5
- package/src/components/Search/SearchAdvanced/index.module.scss +2 -2
- package/src/components/Search/SearchAdvanced/index.tsx +4 -4
- package/src/components/Search/SearchCard/_components/OptionRow/ChildrenItems/index.tsx +8 -8
- package/src/components/Search/SearchCard/_components/OptionRow/Item/index.tsx +13 -13
- package/src/components/Search/SearchCard/_components/OptionRow/index.tsx +9 -9
- package/src/components/Search/SearchCard/_hooks/useSearchCardCollapse.ts +1 -1
- package/src/components/Search/SearchCard/_hooks/useSearchCardMoreOptions.ts +14 -14
- package/src/components/Search/SearchCard/_hooks/useSearchCardValue.ts +5 -5
- package/src/components/Search/SearchCard/_utils/getRealValues.ts +5 -5
- package/src/components/Search/SearchCard/_utils/hasSelectedChildren.ts +3 -3
- package/src/components/Search/SearchCard/_utils/typeGuards.ts +1 -1
- package/src/components/Search/SearchCard/_utils/updateRealValue.ts +11 -11
- package/src/components/Search/SearchCard/index.module.scss +8 -8
- package/src/components/Search/SearchCard/index.tsx +1 -1
- package/src/components/Search/SearchCollapsible/index.module.scss +2 -2
- package/src/components/Search/SearchCollapsible/index.tsx +6 -6
- package/src/components/Search/SearchWithFilter/index.module.scss +2 -2
- package/src/components/Search/SearchWithFilter/index.tsx +4 -4
- package/src/components/Search/SearchWithMore/index.module.scss +2 -2
- package/src/components/Search/SearchWithMore/index.tsx +5 -5
- package/src/components/Search/_components/ButtonGroup/index.tsx +1 -1
- package/src/components/Search/_components/SearchBase/index.tsx +9 -9
- package/src/components/Search/_components/SearchButtons/index.tsx +2 -2
- package/src/components/Search/_hooks/useAdaptiveColumnNum.ts +19 -19
- package/src/components/Search/_hooks/useSearchCommon.ts +21 -21
- package/src/components/Search/_hooks/useSearchExpand.ts +32 -32
- package/src/components/Search/_hooks/useSearchForm.ts +1 -1
- package/src/components/Search/_hooks/useSearchItems.ts +5 -4
- package/src/components/Search/_types/index.ts +12 -12
- package/src/components/Search/_utils/calculateButtonGroupAndColumnWidth.ts +10 -10
- package/src/components/Search/_utils/calculateVisibleItems.ts +12 -12
- package/src/components/Search/_utils/cleanSearchData.ts +3 -3
- package/src/components/Search/_utils/measureButtonGroupWidth.ts +4 -4
- package/src/components/Search/_utils/shouldDisplayExtraItem.ts +7 -7
- package/src/components/Search/index.module.scss +1 -1
- package/src/components/Search/index.tsx +4 -4
- package/src/components/SecondConf/index.module.scss +1 -1
- package/src/components/Select/AutoCompleteSelect/index.module.scss +6 -6
- package/src/components/Select/AutoCompleteSelect/index.tsx +4 -4
- package/src/components/Select/IconSelect/index.module.scss +2 -2
- package/src/components/Select/TreeSelect/_utils/getExpandedKeysByLevel.ts +5 -5
- package/src/components/Select/TreeSelect/index.module.scss +1 -1
- package/src/components/Select/_hooks/useSelectComposition.ts +1 -1
- package/src/components/Select/_hooks/useSelectInputOptions.ts +1 -1
- package/src/components/Select/_utils/calculatePopupWidth.ts +1 -1
- package/src/components/Select/_utils/filterOption.ts +1 -1
- package/src/components/Select/_utils/getElementPosition.ts +7 -6
- package/src/components/Select/index.module.scss +8 -8
- package/src/components/Spreadsheet/xlsxspread.ts +2 -2
- package/src/components/Switch/index.module.scss +2 -2
- package/src/components/TabBar/index.module.scss +8 -8
- package/src/components/Table/_components/Pagination/index.tsx +3 -3
- package/src/components/Table/_hooks/useAutoScrolling.ts +9 -8
- package/src/components/Table/_hooks/useEllipsisTooltip.ts +6 -6
- package/src/components/Table/_hooks/usePaginationSync.ts +5 -5
- package/src/components/Table/_hooks/useScrollEnd.ts +9 -9
- package/src/components/Table/_hooks/useTableColumns.tsx +30 -28
- package/src/components/Table/_hooks/useTablePagination.ts +7 -7
- package/src/components/Table/_utils/tableUtils.ts +11 -11
- package/src/components/Table/index.module.scss +3 -3
- package/src/components/Table/index.tsx +12 -9
- package/src/components/Tags/_components/EllipsisTag/index.tsx +1 -1
- package/src/components/Tags/_components/MeasureContainer/index.tsx +1 -1
- package/src/components/Tags/_hooks/useVisibleTags.ts +13 -13
- package/src/components/Tags/_utils/calculateVisibleCount.ts +12 -12
- package/src/components/Tags/_utils/getTagColor.ts +4 -4
- package/src/components/Tags/index.tsx +4 -4
- package/src/components/TextEllipsis/index.tsx +28 -28
- package/src/components/Tree/_components/TitleSearchBar/index.tsx +2 -2
- package/src/components/Tree/_hooks/useClearNodeTitle.ts +8 -8
- package/src/components/Tree/_hooks/useTreeCheck.ts +4 -4
- package/src/components/Tree/_hooks/useTreeSearch.ts +7 -7
- package/src/components/Tree/_hooks/useTreeState.ts +10 -10
- package/src/components/Tree/_utils/index.ts +28 -28
- package/src/components/Tree/_utils/normalizeCheckedKeys.ts +16 -16
- package/src/components/Tree/index.module.scss +2 -2
- package/src/components/Tree/index.tsx +25 -24
- package/src/components/Upload/_components/UploadedItem/index.tsx +2 -2
- package/src/components/Upload/_components/UploadingItem/index.tsx +2 -2
- package/src/components/Upload/_hooks/useUploadFileList.ts +1 -1
- package/src/components/Upload/_hooks/useUploadOperations.ts +3 -3
- package/src/components/Upload/_hooks/useUploadPreview.ts +1 -1
- package/src/components/Upload/_utils/chunkUpload.ts +4 -4
- package/src/components/Upload/_utils/createFormData.ts +1 -1
- package/src/components/Upload/_utils/extractFileUrl.ts +1 -1
- package/src/components/Upload/_utils/isSuccessResponse.ts +1 -1
- package/src/components/Upload/_utils/normalUpload.ts +2 -2
- package/src/components/Upload/_utils/toMB.ts +1 -1
- package/src/components/Upload/_utils/validateFile.ts +1 -1
- package/src/components/Upload/index.tsx +2 -2
- package/src/config-provider/index.tsx +4 -4
- package/src/hooks/usePermissions.ts +3 -3
- package/src/index.ts +8 -4
- package/src/request/ResType.ts +3 -3
- package/src/request/index.ts +7 -7
- package/src/styles/antd-overload.scss +16 -10
- package/src/styles/tokens.scss +62 -0
- package/src/styles/tokens.ts +52 -0
- package/src/typings.d.ts +3 -3
- package/src/utils/getUUID.ts +1 -1
|
@@ -107,7 +107,7 @@ const Upload: React.FC<UploadProps> = (props) => {
|
|
|
107
107
|
setFile: setPreviewFile,
|
|
108
108
|
} = useUploadPreview();
|
|
109
109
|
|
|
110
|
-
//
|
|
110
|
+
// Chunked upload
|
|
111
111
|
const chunkCustomRequest: AntdUploadProps["customRequest"] = useCallback(
|
|
112
112
|
async (options: UploadRequestOption) => {
|
|
113
113
|
const { file: _file, onSuccess, onError, onProgress } = options;
|
|
@@ -157,7 +157,7 @@ const Upload: React.FC<UploadProps> = (props) => {
|
|
|
157
157
|
]
|
|
158
158
|
);
|
|
159
159
|
|
|
160
|
-
//
|
|
160
|
+
// Normal upload
|
|
161
161
|
const customRequest: AntdUploadProps["customRequest"] = useCallback(
|
|
162
162
|
async (options: UploadRequestOption) => {
|
|
163
163
|
const { file: _file, onSuccess, onError, onProgress } = options;
|
|
@@ -4,15 +4,15 @@ import { PermissionsContent } from "../hooks/usePermissions";
|
|
|
4
4
|
import { configureRequest, RequestImpl } from "../request";
|
|
5
5
|
|
|
6
6
|
export interface ConfigProviderProps {
|
|
7
|
-
/**
|
|
7
|
+
/** Current user's permission code list; when provided, usePermissions / hasPermi validate against it. If omitted, everything is allowed by default */
|
|
8
8
|
permissions?: string[] | null;
|
|
9
|
-
/**
|
|
9
|
+
/** Inject the HTTP request implementation, used by smart components such as ImportForm */
|
|
10
10
|
request?: Partial<RequestImpl>;
|
|
11
11
|
children?: React.ReactNode;
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
/**
|
|
15
|
-
* Hsu UI
|
|
15
|
+
* Hsu UI global configuration: injects permissions and the request implementation.
|
|
16
16
|
*
|
|
17
17
|
* @example
|
|
18
18
|
* <ConfigProvider permissions={perms} request={{ get, post, del, put }}>
|
|
@@ -24,7 +24,7 @@ const ConfigProvider: React.FC<ConfigProviderProps> = ({
|
|
|
24
24
|
request,
|
|
25
25
|
children,
|
|
26
26
|
}) => {
|
|
27
|
-
//
|
|
27
|
+
// Inject synchronously during render so child components get the request implementation on their very first interaction
|
|
28
28
|
useMemo(() => {
|
|
29
29
|
if (request) configureRequest(request);
|
|
30
30
|
}, [request]);
|
|
@@ -17,12 +17,12 @@ export default function usePermissions(hasPermi?: string[]): {
|
|
|
17
17
|
|
|
18
18
|
const checkPermission = useCallback(
|
|
19
19
|
(hasPermi: string[] | undefined) => {
|
|
20
|
-
//
|
|
20
|
+
// If hasPermi or permissions is empty, treat as permitted
|
|
21
21
|
if (!hasPermi || !permissions) {
|
|
22
22
|
return true;
|
|
23
23
|
}
|
|
24
24
|
|
|
25
|
-
//
|
|
25
|
+
// If hasPermi or permissions is an empty array, treat as not permitted
|
|
26
26
|
if (
|
|
27
27
|
(Array.isArray(hasPermi) && !hasPermi.length) ||
|
|
28
28
|
(Array.isArray(permissions) && !permissions.length)
|
|
@@ -30,7 +30,7 @@ export default function usePermissions(hasPermi?: string[]): {
|
|
|
30
30
|
return false;
|
|
31
31
|
}
|
|
32
32
|
|
|
33
|
-
//
|
|
33
|
+
// If neither hasPermi nor permissions is an empty array, check whether hasPermi is included in permissions
|
|
34
34
|
return array_is_includes(permissions, hasPermi);
|
|
35
35
|
},
|
|
36
36
|
[permissions]
|
package/src/index.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
//
|
|
1
|
+
// Global configuration (permissions + request injection)
|
|
2
2
|
export { default as ConfigProvider } from "./config-provider";
|
|
3
3
|
export type { ConfigProviderProps } from "./config-provider";
|
|
4
4
|
|
|
5
|
-
//
|
|
5
|
+
// Request injection layer
|
|
6
6
|
export {
|
|
7
7
|
configureRequest,
|
|
8
8
|
get,
|
|
@@ -16,7 +16,11 @@ export type { RequestImpl, RequestConfig, ResType, ListRes, FileRes } from "./re
|
|
|
16
16
|
export { usePermissions, PermissionsContent, useLabelWidth } from "./hooks";
|
|
17
17
|
export { getUUID, supportsHasSelector, isLegacyHasSelectorBrowser } from "./utils";
|
|
18
18
|
|
|
19
|
-
//
|
|
19
|
+
// Design tokens (TS constants for JS-side consumers such as antd themeConfig; CSS-variable version lives in es/styles/tokens.scss)
|
|
20
|
+
export { lightTokens, darkTokens, defaultPrimaryColor } from "./styles/tokens";
|
|
21
|
+
export type { HsuThemeTokens } from "./styles/tokens";
|
|
22
|
+
|
|
23
|
+
// Components
|
|
20
24
|
export { default as Button } from "./components/Button";
|
|
21
25
|
export * from "./components/Button";
|
|
22
26
|
export { default as ChainGraph } from "./components/ChainGraph";
|
|
@@ -84,5 +88,5 @@ export * from "./components/Tree";
|
|
|
84
88
|
export { default as Upload } from "./components/Upload";
|
|
85
89
|
export * from "./components/Upload";
|
|
86
90
|
|
|
87
|
-
//
|
|
91
|
+
// Explicit disambiguation: both Table and Descriptions export ColumnsType; Table's takes precedence (public API).
|
|
88
92
|
export type { ColumnsType } from "./components/Table";
|
package/src/request/ResType.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
/**
|
|
1
|
+
/** Generic response wrapper: the { code, data, msg } structure agreed with the backend */
|
|
2
2
|
export interface ResType<T = unknown> {
|
|
3
3
|
code: number;
|
|
4
4
|
data: T;
|
|
5
5
|
msg?: string;
|
|
6
6
|
}
|
|
7
7
|
|
|
8
|
-
/**
|
|
8
|
+
/** Paginated list response */
|
|
9
9
|
export interface ListRes<T> {
|
|
10
10
|
list: Array<T>;
|
|
11
11
|
page: {
|
|
@@ -15,7 +15,7 @@ export interface ListRes<T> {
|
|
|
15
15
|
};
|
|
16
16
|
}
|
|
17
17
|
|
|
18
|
-
/**
|
|
18
|
+
/** File response (binary download) */
|
|
19
19
|
export interface FileRes {
|
|
20
20
|
filename: string;
|
|
21
21
|
data: ArrayBuffer;
|
package/src/request/index.ts
CHANGED
|
@@ -2,22 +2,22 @@ import type { ResType } from "./ResType";
|
|
|
2
2
|
|
|
3
3
|
export * from "./ResType";
|
|
4
4
|
|
|
5
|
-
/**
|
|
5
|
+
/** Request configuration (a subset compatible with common axios wrappers) */
|
|
6
6
|
export interface RequestConfig<P = object> {
|
|
7
7
|
params?: P;
|
|
8
8
|
responseType?: string;
|
|
9
9
|
headers?: Record<string, unknown>;
|
|
10
|
-
/**
|
|
10
|
+
/** When true, a 401 on this request does not trigger the global redirect to login */
|
|
11
11
|
skipAuthRedirect?: boolean;
|
|
12
12
|
[key: string]: unknown;
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
/**
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
*
|
|
16
|
+
* Request implementation interface that the library's internal "smart components" depend on.
|
|
17
|
+
* Injected by consumers via ConfigProvider's `request` or `configureRequest()`;
|
|
18
|
+
* the component library itself is not bound to any specific HTTP client.
|
|
19
19
|
*/
|
|
20
|
-
//
|
|
20
|
+
// Note: config/data use loose types to accommodate signature differences across axios wrappers
|
|
21
21
|
export interface RequestImpl {
|
|
22
22
|
get<T = unknown>(url: string, config?: any): Promise<ResType<T>>;
|
|
23
23
|
post<T = unknown>(url: string, data?: any, config?: any): Promise<ResType<T>>;
|
|
@@ -39,7 +39,7 @@ let impl: RequestImpl = {
|
|
|
39
39
|
put: notConfigured,
|
|
40
40
|
};
|
|
41
41
|
|
|
42
|
-
/**
|
|
42
|
+
/** Inject the real request implementation (only the methods you use need to be provided) */
|
|
43
43
|
export const configureRequest = (request: Partial<RequestImpl>): void => {
|
|
44
44
|
impl = { ...impl, ...request } as RequestImpl;
|
|
45
45
|
};
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
// Design tokens (colors/fonts/radii/shadows, incl. dark theme) — importing this file brings in the full set of variables
|
|
2
|
+
@use "./tokens";
|
|
3
|
+
|
|
1
4
|
.ant-layout-sider-children {
|
|
2
5
|
display: flex;
|
|
3
6
|
flex-direction: column;
|
|
@@ -21,18 +24,18 @@
|
|
|
21
24
|
justify-content: center;
|
|
22
25
|
}
|
|
23
26
|
|
|
24
|
-
//
|
|
27
|
+
// Primary buttons are driven by the antd colorPrimary token (auto-picks color for light/dark appearance + correct hover/active derivation)
|
|
25
28
|
|
|
26
29
|
.ant-menu-item,
|
|
27
30
|
.ant-menu-submenu-title {
|
|
28
31
|
column-gap: 5px;
|
|
29
32
|
}
|
|
30
33
|
|
|
31
|
-
// ===== Cloudflare
|
|
34
|
+
// ===== Cloudflare style: side menu (shared by light/dark) =====
|
|
32
35
|
.ant-layout-sider .ant-menu {
|
|
33
36
|
border-inline-end: none;
|
|
34
37
|
|
|
35
|
-
//
|
|
38
|
+
// Aqua highlight bar on the left of the selected row + medium font weight, echoing the CF dashboard's left-edge indicator
|
|
36
39
|
.ant-menu-item-selected {
|
|
37
40
|
position: relative;
|
|
38
41
|
|
|
@@ -53,7 +56,7 @@
|
|
|
53
56
|
}
|
|
54
57
|
}
|
|
55
58
|
|
|
56
|
-
// CF
|
|
59
|
+
// CF section titles: small size, bold, letter-spaced, muted color (uppercase English)
|
|
57
60
|
.ant-menu-item-group-title {
|
|
58
61
|
padding: 18px 20px 6px;
|
|
59
62
|
|
|
@@ -66,29 +69,29 @@
|
|
|
66
69
|
color: var(--cf-text-3);
|
|
67
70
|
}
|
|
68
71
|
|
|
69
|
-
//
|
|
72
|
+
// Items within a group use more restrained left-aligned indentation (closer to CF)
|
|
70
73
|
.ant-menu-item-group-list .ant-menu-item {
|
|
71
74
|
padding-left: 20px !important;
|
|
72
75
|
}
|
|
73
76
|
}
|
|
74
77
|
|
|
75
|
-
// ===== Cloudflare
|
|
78
|
+
// ===== Cloudflare style: tables =====
|
|
76
79
|
.ant-table-wrapper {
|
|
77
80
|
.ant-table {
|
|
78
|
-
//
|
|
81
|
+
// Lighter font weight and letter spacing for table headers
|
|
79
82
|
.ant-table-thead > tr > th {
|
|
80
83
|
font-weight: 600;
|
|
81
84
|
font-size: 13px;
|
|
82
85
|
}
|
|
83
86
|
|
|
84
|
-
//
|
|
87
|
+
// Remove the default vertical divider on the right of cells (CF tables keep horizontal lines only)
|
|
85
88
|
.ant-table-thead > tr > th::before {
|
|
86
89
|
display: none !important;
|
|
87
90
|
}
|
|
88
91
|
}
|
|
89
92
|
}
|
|
90
93
|
|
|
91
|
-
// ===== Cloudflare
|
|
94
|
+
// ===== Cloudflare style: Tags use outlined style with a light background =====
|
|
92
95
|
.ant-tag {
|
|
93
96
|
border-radius: 6px;
|
|
94
97
|
}
|
|
@@ -130,4 +133,7 @@
|
|
|
130
133
|
}
|
|
131
134
|
}
|
|
132
135
|
}
|
|
133
|
-
}
|
|
136
|
+
}
|
|
137
|
+
.ant-modal-mask {
|
|
138
|
+
pointer-events: auto !important;
|
|
139
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
// =============================================================
|
|
2
|
+
// Hsu UI design tokens (single source of truth)
|
|
3
|
+
// Two value sets, light/dark; dark is activated by html[data-theme="dark"] (Theme toggle in consuming projects)
|
|
4
|
+
// or html[data-prefers-color-scheme="dark"] (dumi docs site).
|
|
5
|
+
// TS-side constants live in ./tokens.ts (for JS consumers such as antd themeConfig); the two must be kept in sync.
|
|
6
|
+
// =============================================================
|
|
7
|
+
|
|
8
|
+
:root {
|
|
9
|
+
// ---- Colors - neutral ----
|
|
10
|
+
--cf-canvas: #f6f7f9; // Page canvas
|
|
11
|
+
--cf-surface: #ffffff; // Card/panel background
|
|
12
|
+
--cf-subtle: #fafbfc; // Table header/secondary background
|
|
13
|
+
--cf-border: #e6e8eb; // Border
|
|
14
|
+
--cf-border-weak: #eceef1; // Lighter border
|
|
15
|
+
--cf-text: rgba(0, 0, 0, 0.88);
|
|
16
|
+
--cf-text-2: rgba(0, 0, 0, 0.45);
|
|
17
|
+
--cf-text-3: rgba(0, 0, 0, 0.35);
|
|
18
|
+
--cf-row-hover: #f6f7f9;
|
|
19
|
+
|
|
20
|
+
// ---- Colors - brand & functional ----
|
|
21
|
+
--primary-color: #1677ff; // Default primary color (consuming projects may override at runtime)
|
|
22
|
+
--cf-success: #52c41a;
|
|
23
|
+
--cf-warning: #faad14;
|
|
24
|
+
--cf-error: #ff4d4f;
|
|
25
|
+
|
|
26
|
+
// ---- Fonts ----
|
|
27
|
+
--cf-font-family:
|
|
28
|
+
PingFangSC-Regular, "PingFang SC", -apple-system, BlinkMacSystemFont,
|
|
29
|
+
"Segoe UI", Roboto, "Helvetica Neue", Arial, "Microsoft YaHei", sans-serif;
|
|
30
|
+
--cf-font-size-sm: 12px;
|
|
31
|
+
--cf-font-size: 14px;
|
|
32
|
+
--cf-font-size-lg: 16px;
|
|
33
|
+
|
|
34
|
+
// ---- Border radius ----
|
|
35
|
+
--cf-radius-sm: 6px;
|
|
36
|
+
--cf-radius: 8px;
|
|
37
|
+
--cf-radius-lg: 12px;
|
|
38
|
+
|
|
39
|
+
// ---- Shadows (the CF look relies mainly on borders; shadows are for overlays only) ----
|
|
40
|
+
--cf-shadow-1: 0 1px 2px rgba(16, 24, 40, 0.05);
|
|
41
|
+
--cf-shadow-2: 0 4px 12px rgba(16, 24, 40, 0.08);
|
|
42
|
+
--cf-shadow-3: 0 8px 24px rgba(16, 24, 40, 0.12);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
html[data-theme="dark"],
|
|
46
|
+
html[data-prefers-color="dark"],
|
|
47
|
+
html[data-prefers-color-scheme="dark"] {
|
|
48
|
+
--cf-canvas: #131314;
|
|
49
|
+
--cf-surface: #1c1c1e;
|
|
50
|
+
--cf-subtle: #232325;
|
|
51
|
+
--cf-border: rgba(255, 255, 255, 0.12);
|
|
52
|
+
--cf-border-weak: rgba(255, 255, 255, 0.08);
|
|
53
|
+
--cf-text: rgba(255, 255, 255, 0.85);
|
|
54
|
+
--cf-text-2: rgba(255, 255, 255, 0.45);
|
|
55
|
+
--cf-text-3: rgba(255, 255, 255, 0.35);
|
|
56
|
+
--cf-row-hover: rgba(255, 255, 255, 0.04);
|
|
57
|
+
|
|
58
|
+
// Deeper shadows in dark mode (to distinguish overlays from the dark background)
|
|
59
|
+
--cf-shadow-1: 0 1px 2px rgba(0, 0, 0, 0.35);
|
|
60
|
+
--cf-shadow-2: 0 4px 12px rgba(0, 0, 0, 0.45);
|
|
61
|
+
--cf-shadow-3: 0 8px 24px rgba(0, 0, 0, 0.55);
|
|
62
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* TS constants for the Hsu UI design tokens (for JS-side consumers such as antd themeConfig).
|
|
3
|
+
* The CSS-variable version lives in ./tokens.scss; the two must be kept in sync.
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
export interface HsuThemeTokens {
|
|
7
|
+
/** Page canvas */
|
|
8
|
+
canvas: string;
|
|
9
|
+
/** Card/panel background */
|
|
10
|
+
surface: string;
|
|
11
|
+
/** Table header/secondary background */
|
|
12
|
+
subtle: string;
|
|
13
|
+
/** Border */
|
|
14
|
+
border: string;
|
|
15
|
+
/** Lighter border */
|
|
16
|
+
borderWeak: string;
|
|
17
|
+
/** Header bar background */
|
|
18
|
+
headerBg: string;
|
|
19
|
+
text: string;
|
|
20
|
+
text2: string;
|
|
21
|
+
text3: string;
|
|
22
|
+
rowHover: string;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export const lightTokens: HsuThemeTokens = {
|
|
26
|
+
canvas: "#f6f7f9",
|
|
27
|
+
surface: "#ffffff",
|
|
28
|
+
subtle: "#fafbfc",
|
|
29
|
+
border: "#e6e8eb",
|
|
30
|
+
borderWeak: "#eceef1",
|
|
31
|
+
headerBg: "#ffffff",
|
|
32
|
+
text: "rgba(0, 0, 0, 0.88)",
|
|
33
|
+
text2: "rgba(0, 0, 0, 0.45)",
|
|
34
|
+
text3: "rgba(0, 0, 0, 0.35)",
|
|
35
|
+
rowHover: "#f6f7f9",
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
export const darkTokens: HsuThemeTokens = {
|
|
39
|
+
canvas: "#131314",
|
|
40
|
+
surface: "#1c1c1e",
|
|
41
|
+
subtle: "#232325",
|
|
42
|
+
border: "rgba(255, 255, 255, 0.12)",
|
|
43
|
+
borderWeak: "rgba(255, 255, 255, 0.08)",
|
|
44
|
+
headerBg: "#1c1c1e",
|
|
45
|
+
text: "rgba(255, 255, 255, 0.85)",
|
|
46
|
+
text2: "rgba(255, 255, 255, 0.45)",
|
|
47
|
+
text3: "rgba(255, 255, 255, 0.35)",
|
|
48
|
+
rowHover: "rgba(255, 255, 255, 0.04)",
|
|
49
|
+
};
|
|
50
|
+
|
|
51
|
+
/** Default primary color (initial value of the CSS variable --primary-color; consuming projects may override at runtime) */
|
|
52
|
+
export const defaultPrimaryColor = "#1677ff";
|
package/src/typings.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
//
|
|
2
|
-
//
|
|
1
|
+
// Ambient declarations: supply missing module types for build-time type checking / declaration file generation.
|
|
2
|
+
// Types only; no runtime effect.
|
|
3
3
|
|
|
4
4
|
// CSS / Sass Modules
|
|
5
5
|
declare module "*.module.scss" {
|
|
@@ -19,7 +19,7 @@ declare module "*.css" {
|
|
|
19
19
|
export default content;
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
-
//
|
|
22
|
+
// Static assets
|
|
23
23
|
declare module "*.png" {
|
|
24
24
|
const src: string;
|
|
25
25
|
export default src;
|
package/src/utils/getUUID.ts
CHANGED