knight-ui 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2189 -0
- package/base/AbstractComponent.d.ts +29 -0
- package/base/AbstractUI.d.ts +45 -0
- package/base/index.d.ts +2 -0
- package/component/_internal/BodyScrollLock.d.ts +13 -0
- package/component/_internal/ClickOutside.d.ts +21 -0
- package/component/_internal/Mask.d.ts +15 -0
- package/component/_internal/OverlayZIndex.d.ts +13 -0
- package/component/_internal/Portal.d.ts +9 -0
- package/component/_internal/index.d.ts +5 -0
- package/component/_tokens/index.d.ts +33 -0
- package/component/_types/base.d.ts +19 -0
- package/component/_types/index.d.ts +1 -0
- package/component/ai/AIChatDialogue.d.ts +44 -0
- package/component/ai/AIChatInput.d.ts +45 -0
- package/component/ai/Sidebar.d.ts +38 -0
- package/component/ai/index.d.ts +6 -0
- package/component/basic/Button.d.ts +36 -0
- package/component/basic/Divider.d.ts +28 -0
- package/component/basic/FloatButton.d.ts +53 -0
- package/component/basic/Grid.d.ts +41 -0
- package/component/basic/Icon.d.ts +30 -0
- package/component/basic/Layout.d.ts +43 -0
- package/component/basic/Resizable.d.ts +76 -0
- package/component/basic/Space.d.ts +26 -0
- package/component/basic/Typography.d.ts +64 -0
- package/component/basic/icon-paths.generated.d.ts +2 -0
- package/component/basic/icons/IconAbsoluteStroked.d.ts +3 -0
- package/component/basic/icons/IconActivity.d.ts +3 -0
- package/component/basic/icons/IconAiBellLevel1.d.ts +3 -0
- package/component/basic/icons/IconAiBellLevel2.d.ts +3 -0
- package/component/basic/icons/IconAiBellLevel3.d.ts +3 -0
- package/component/basic/icons/IconAiEditLevel1.d.ts +3 -0
- package/component/basic/icons/IconAiEditLevel2.d.ts +3 -0
- package/component/basic/icons/IconAiEditLevel3.d.ts +3 -0
- package/component/basic/icons/IconAiFileLevel1.d.ts +3 -0
- package/component/basic/icons/IconAiFileLevel2.d.ts +3 -0
- package/component/basic/icons/IconAiFileLevel3.d.ts +3 -0
- package/component/basic/icons/IconAiFilledLevel1.d.ts +3 -0
- package/component/basic/icons/IconAiFilledLevel2.d.ts +3 -0
- package/component/basic/icons/IconAiFilledLevel3.d.ts +3 -0
- package/component/basic/icons/IconAiImageLevel1.d.ts +3 -0
- package/component/basic/icons/IconAiImageLevel2.d.ts +3 -0
- package/component/basic/icons/IconAiImageLevel3.d.ts +3 -0
- package/component/basic/icons/IconAiLoading.d.ts +3 -0
- package/component/basic/icons/IconAiSearchLevel1.d.ts +3 -0
- package/component/basic/icons/IconAiSearchLevel2.d.ts +3 -0
- package/component/basic/icons/IconAiSearchLevel3.d.ts +3 -0
- package/component/basic/icons/IconAiStrokedLevel1.d.ts +3 -0
- package/component/basic/icons/IconAiStrokedLevel2.d.ts +3 -0
- package/component/basic/icons/IconAiStrokedLevel3.d.ts +3 -0
- package/component/basic/icons/IconAiWandLevel1.d.ts +3 -0
- package/component/basic/icons/IconAiWandLevel2.d.ts +3 -0
- package/component/basic/icons/IconAiWandLevel3.d.ts +3 -0
- package/component/basic/icons/IconAlarm.d.ts +3 -0
- package/component/basic/icons/IconAlarmStroked.d.ts +3 -0
- package/component/basic/icons/IconAlertCircle.d.ts +3 -0
- package/component/basic/icons/IconAlertTriangle.d.ts +3 -0
- package/component/basic/icons/IconAlignBottom.d.ts +3 -0
- package/component/basic/icons/IconAlignCenter.d.ts +3 -0
- package/component/basic/icons/IconAlignCenterVertical.d.ts +3 -0
- package/component/basic/icons/IconAlignHCenterStroked.d.ts +3 -0
- package/component/basic/icons/IconAlignHLeftStroked.d.ts +3 -0
- package/component/basic/icons/IconAlignHRightStroked.d.ts +3 -0
- package/component/basic/icons/IconAlignJustify.d.ts +3 -0
- package/component/basic/icons/IconAlignLeft.d.ts +3 -0
- package/component/basic/icons/IconAlignRight.d.ts +3 -0
- package/component/basic/icons/IconAlignTop.d.ts +3 -0
- package/component/basic/icons/IconAlignVBotStroked.d.ts +3 -0
- package/component/basic/icons/IconAlignVBottomStroked.d.ts +3 -0
- package/component/basic/icons/IconAlignVCenterStroked.d.ts +3 -0
- package/component/basic/icons/IconAlignVTopStroked.d.ts +3 -0
- package/component/basic/icons/IconApartment.d.ts +3 -0
- package/component/basic/icons/IconAppCenter.d.ts +3 -0
- package/component/basic/icons/IconApps.d.ts +3 -0
- package/component/basic/icons/IconArchive.d.ts +3 -0
- package/component/basic/icons/IconArrowDown.d.ts +3 -0
- package/component/basic/icons/IconArrowDownLeft.d.ts +3 -0
- package/component/basic/icons/IconArrowDownRight.d.ts +3 -0
- package/component/basic/icons/IconArrowLeft.d.ts +3 -0
- package/component/basic/icons/IconArrowRight.d.ts +3 -0
- package/component/basic/icons/IconArrowUp.d.ts +3 -0
- package/component/basic/icons/IconArrowUpLeft.d.ts +3 -0
- package/component/basic/icons/IconArrowUpRight.d.ts +3 -0
- package/component/basic/icons/IconArticle.d.ts +3 -0
- package/component/basic/icons/IconAscend.d.ts +3 -0
- package/component/basic/icons/IconAt.d.ts +3 -0
- package/component/basic/icons/IconBackTop.d.ts +3 -0
- package/component/basic/icons/IconBackward.d.ts +3 -0
- package/component/basic/icons/IconBarChartHStroked.d.ts +3 -0
- package/component/basic/icons/IconBarChartVStroked.d.ts +3 -0
- package/component/basic/icons/IconBeaker.d.ts +3 -0
- package/component/basic/icons/IconBell.d.ts +3 -0
- package/component/basic/icons/IconBellStroked.d.ts +3 -0
- package/component/basic/icons/IconBold.d.ts +3 -0
- package/component/basic/icons/IconBolt.d.ts +3 -0
- package/component/basic/icons/IconBook.d.ts +3 -0
- package/component/basic/icons/IconBookH5Stroked.d.ts +3 -0
- package/component/basic/icons/IconBookOpenStroked.d.ts +3 -0
- package/component/basic/icons/IconBookStroked.d.ts +3 -0
- package/component/basic/icons/IconBookmark.d.ts +3 -0
- package/component/basic/icons/IconBookmarkAddStroked.d.ts +3 -0
- package/component/basic/icons/IconBookmarkDeleteStroked.d.ts +3 -0
- package/component/basic/icons/IconBottomCenterStroked.d.ts +3 -0
- package/component/basic/icons/IconBottomLeftStroked.d.ts +3 -0
- package/component/basic/icons/IconBottomRightStroked.d.ts +3 -0
- package/component/basic/icons/IconBox.d.ts +3 -0
- package/component/basic/icons/IconBrackets.d.ts +3 -0
- package/component/basic/icons/IconBranch.d.ts +3 -0
- package/component/basic/icons/IconBriefStroked.d.ts +3 -0
- package/component/basic/icons/IconBriefcase.d.ts +3 -0
- package/component/basic/icons/IconBriefcaseStroked.d.ts +3 -0
- package/component/basic/icons/IconBulb.d.ts +3 -0
- package/component/basic/icons/IconButtonStroked.d.ts +3 -0
- package/component/basic/icons/IconBytedanceLogo.d.ts +3 -0
- package/component/basic/icons/IconCalendar.d.ts +3 -0
- package/component/basic/icons/IconCalendarClock.d.ts +3 -0
- package/component/basic/icons/IconCalendarClockStroked.d.ts +3 -0
- package/component/basic/icons/IconCalendarStroked.d.ts +3 -0
- package/component/basic/icons/IconCamera.d.ts +3 -0
- package/component/basic/icons/IconCameraStroked.d.ts +3 -0
- package/component/basic/icons/IconCandlestickChartStroked.d.ts +3 -0
- package/component/basic/icons/IconCaretdown.d.ts +3 -0
- package/component/basic/icons/IconCaretup.d.ts +3 -0
- package/component/basic/icons/IconCarouselStroked.d.ts +3 -0
- package/component/basic/icons/IconCart.d.ts +3 -0
- package/component/basic/icons/IconCartStroked.d.ts +3 -0
- package/component/basic/icons/IconCaseSensitive.d.ts +3 -0
- package/component/basic/icons/IconCenterLeftStroked.d.ts +3 -0
- package/component/basic/icons/IconCenterRightStroked.d.ts +3 -0
- package/component/basic/icons/IconChainStroked.d.ts +3 -0
- package/component/basic/icons/IconCheckChoiceStroked.d.ts +3 -0
- package/component/basic/icons/IconCheckCircleStroked.d.ts +3 -0
- package/component/basic/icons/IconCheckList.d.ts +3 -0
- package/component/basic/icons/IconCheckboxIndeterminate.d.ts +3 -0
- package/component/basic/icons/IconCheckboxTick.d.ts +3 -0
- package/component/basic/icons/IconChecklistStroked.d.ts +3 -0
- package/component/basic/icons/IconChevronDown.d.ts +3 -0
- package/component/basic/icons/IconChevronDownStroked.d.ts +3 -0
- package/component/basic/icons/IconChevronLeft.d.ts +3 -0
- package/component/basic/icons/IconChevronRight.d.ts +3 -0
- package/component/basic/icons/IconChevronRightStroked.d.ts +3 -0
- package/component/basic/icons/IconChevronUp.d.ts +3 -0
- package/component/basic/icons/IconChevronUpDown.d.ts +3 -0
- package/component/basic/icons/IconClear.d.ts +3 -0
- package/component/basic/icons/IconClock.d.ts +3 -0
- package/component/basic/icons/IconClockStroked.d.ts +3 -0
- package/component/basic/icons/IconClose.d.ts +3 -0
- package/component/basic/icons/IconCloud.d.ts +3 -0
- package/component/basic/icons/IconCloudStroked.d.ts +3 -0
- package/component/basic/icons/IconCloudUploadStroked.d.ts +3 -0
- package/component/basic/icons/IconCode.d.ts +3 -0
- package/component/basic/icons/IconCodeStroked.d.ts +3 -0
- package/component/basic/icons/IconCoinMoney.d.ts +3 -0
- package/component/basic/icons/IconCoinMoneyStroked.d.ts +3 -0
- package/component/basic/icons/IconColorPalette.d.ts +3 -0
- package/component/basic/icons/IconColumnsStroked.d.ts +3 -0
- package/component/basic/icons/IconCommand.d.ts +3 -0
- package/component/basic/icons/IconComment.d.ts +3 -0
- package/component/basic/icons/IconCommentStroked.d.ts +3 -0
- package/component/basic/icons/IconComponent.d.ts +3 -0
- package/component/basic/icons/IconComponentPlaceholderStroked.d.ts +3 -0
- package/component/basic/icons/IconComponentStroked.d.ts +3 -0
- package/component/basic/icons/IconConfigStroked.d.ts +3 -0
- package/component/basic/icons/IconConnectionPoint1.d.ts +3 -0
- package/component/basic/icons/IconConnectionPoint2.d.ts +3 -0
- package/component/basic/icons/IconContrast.d.ts +3 -0
- package/component/basic/icons/IconCopy.d.ts +3 -0
- package/component/basic/icons/IconCopyAdd.d.ts +3 -0
- package/component/basic/icons/IconCopyStroked.d.ts +3 -0
- package/component/basic/icons/IconCornerRadiusStroked.d.ts +3 -0
- package/component/basic/icons/IconCreditCard.d.ts +3 -0
- package/component/basic/icons/IconCreditCardStroked.d.ts +3 -0
- package/component/basic/icons/IconCrop.d.ts +3 -0
- package/component/basic/icons/IconCrossCircleStroked.d.ts +3 -0
- package/component/basic/icons/IconCrossStroked.d.ts +3 -0
- package/component/basic/icons/IconCrown.d.ts +3 -0
- package/component/basic/icons/IconCrownStroked.d.ts +3 -0
- package/component/basic/icons/IconCustomerSupport.d.ts +3 -0
- package/component/basic/icons/IconCustomerSupportStroked.d.ts +3 -0
- package/component/basic/icons/IconCustomize.d.ts +3 -0
- package/component/basic/icons/IconDelete.d.ts +3 -0
- package/component/basic/icons/IconDeleteStroked.d.ts +3 -0
- package/component/basic/icons/IconDescend.d.ts +3 -0
- package/component/basic/icons/IconDescend2.d.ts +3 -0
- package/component/basic/icons/IconDesktop.d.ts +3 -0
- package/component/basic/icons/IconDisc.d.ts +3 -0
- package/component/basic/icons/IconDislikeThumb.d.ts +3 -0
- package/component/basic/icons/IconDivide.d.ts +3 -0
- package/component/basic/icons/IconDongchediLogo.d.ts +3 -0
- package/component/basic/icons/IconDoubleChevronLeft.d.ts +3 -0
- package/component/basic/icons/IconDoubleChevronRight.d.ts +3 -0
- package/component/basic/icons/IconDownCircle.d.ts +3 -0
- package/component/basic/icons/IconDownCircleStroked.d.ts +3 -0
- package/component/basic/icons/IconDownload.d.ts +3 -0
- package/component/basic/icons/IconDownloadStroked.d.ts +3 -0
- package/component/basic/icons/IconDuration.d.ts +3 -0
- package/component/basic/icons/IconEdit.d.ts +3 -0
- package/component/basic/icons/IconEdit2.d.ts +3 -0
- package/component/basic/icons/IconEdit2Stroked.d.ts +3 -0
- package/component/basic/icons/IconEditStroked.d.ts +3 -0
- package/component/basic/icons/IconElementStroked.d.ts +3 -0
- package/component/basic/icons/IconEmoji.d.ts +3 -0
- package/component/basic/icons/IconExcel.d.ts +3 -0
- package/component/basic/icons/IconExit.d.ts +3 -0
- package/component/basic/icons/IconExpand.d.ts +3 -0
- package/component/basic/icons/IconExport.d.ts +3 -0
- package/component/basic/icons/IconExternalOpen.d.ts +3 -0
- package/component/basic/icons/IconExternalOpenStroked.d.ts +3 -0
- package/component/basic/icons/IconEyeClosed.d.ts +3 -0
- package/component/basic/icons/IconEyeClosedSolid.d.ts +3 -0
- package/component/basic/icons/IconEyeClosedSolidStroked.d.ts +3 -0
- package/component/basic/icons/IconEyeClosedStroked.d.ts +3 -0
- package/component/basic/icons/IconEyeOpened.d.ts +3 -0
- package/component/basic/icons/IconEyeOpenedStroked.d.ts +3 -0
- package/component/basic/icons/IconEyedropper.d.ts +3 -0
- package/component/basic/icons/IconFacebook.d.ts +3 -0
- package/component/basic/icons/IconFaceuLogo.d.ts +3 -0
- package/component/basic/icons/IconFastForward.d.ts +3 -0
- package/component/basic/icons/IconFastFoward.d.ts +3 -0
- package/component/basic/icons/IconFavoriteList.d.ts +3 -0
- package/component/basic/icons/IconFeishuLogo.d.ts +3 -0
- package/component/basic/icons/IconFemale.d.ts +3 -0
- package/component/basic/icons/IconFigma.d.ts +3 -0
- package/component/basic/icons/IconFile.d.ts +3 -0
- package/component/basic/icons/IconFillStroked.d.ts +3 -0
- package/component/basic/icons/IconFilledArrowDown.d.ts +3 -0
- package/component/basic/icons/IconFilledArrowUp.d.ts +3 -0
- package/component/basic/icons/IconFilpVertical.d.ts +3 -0
- package/component/basic/icons/IconFilter.d.ts +3 -0
- package/component/basic/icons/IconFilterStroked.d.ts +3 -0
- package/component/basic/icons/IconFingerLeftStroked.d.ts +3 -0
- package/component/basic/icons/IconFixedStroked.d.ts +3 -0
- package/component/basic/icons/IconFlag.d.ts +3 -0
- package/component/basic/icons/IconFlagStroked.d.ts +3 -0
- package/component/basic/icons/IconFlipHorizontal.d.ts +3 -0
- package/component/basic/icons/IconFlowChartStroked.d.ts +3 -0
- package/component/basic/icons/IconFolder.d.ts +3 -0
- package/component/basic/icons/IconFolderOpen.d.ts +3 -0
- package/component/basic/icons/IconFolderOpenStroked.d.ts +3 -0
- package/component/basic/icons/IconFolderStroked.d.ts +3 -0
- package/component/basic/icons/IconFollowStroked.d.ts +3 -0
- package/component/basic/icons/IconFont.d.ts +3 -0
- package/component/basic/icons/IconFontColor.d.ts +3 -0
- package/component/basic/icons/IconForward.d.ts +3 -0
- package/component/basic/icons/IconForwardStroked.d.ts +3 -0
- package/component/basic/icons/IconFullScreenStroked.d.ts +3 -0
- package/component/basic/icons/IconGallery.d.ts +3 -0
- package/component/basic/icons/IconGift.d.ts +3 -0
- package/component/basic/icons/IconGiftStroked.d.ts +3 -0
- package/component/basic/icons/IconGit.d.ts +3 -0
- package/component/basic/icons/IconGithubLogo.d.ts +3 -0
- package/component/basic/icons/IconGitlabLogo.d.ts +3 -0
- package/component/basic/icons/IconGlobe.d.ts +3 -0
- package/component/basic/icons/IconGlobeStroke.d.ts +3 -0
- package/component/basic/icons/IconGlobeStrokeStroked.d.ts +3 -0
- package/component/basic/icons/IconGlobeStroked.d.ts +3 -0
- package/component/basic/icons/IconGridRectangle.d.ts +3 -0
- package/component/basic/icons/IconGridSquare.d.ts +3 -0
- package/component/basic/icons/IconGridStroked.d.ts +3 -0
- package/component/basic/icons/IconGridView.d.ts +3 -0
- package/component/basic/icons/IconGridView1.d.ts +3 -0
- package/component/basic/icons/IconH1.d.ts +3 -0
- package/component/basic/icons/IconH2.d.ts +3 -0
- package/component/basic/icons/IconH3.d.ts +3 -0
- package/component/basic/icons/IconH4.d.ts +3 -0
- package/component/basic/icons/IconH5.d.ts +3 -0
- package/component/basic/icons/IconH6.d.ts +3 -0
- package/component/basic/icons/IconH7.d.ts +3 -0
- package/component/basic/icons/IconH8.d.ts +3 -0
- package/component/basic/icons/IconH9.d.ts +3 -0
- package/component/basic/icons/IconHandle.d.ts +3 -0
- package/component/basic/icons/IconHash.d.ts +3 -0
- package/component/basic/icons/IconHeartStroked.d.ts +3 -0
- package/component/basic/icons/IconHelm.d.ts +3 -0
- package/component/basic/icons/IconHelpCircle.d.ts +3 -0
- package/component/basic/icons/IconHelpCircleStroked.d.ts +3 -0
- package/component/basic/icons/IconHistogram.d.ts +3 -0
- package/component/basic/icons/IconHistory.d.ts +3 -0
- package/component/basic/icons/IconHn.d.ts +3 -0
- package/component/basic/icons/IconHome.d.ts +3 -0
- package/component/basic/icons/IconHomeStroked.d.ts +3 -0
- package/component/basic/icons/IconHorn.d.ts +3 -0
- package/component/basic/icons/IconHornStroked.d.ts +3 -0
- package/component/basic/icons/IconHourglass.d.ts +3 -0
- package/component/basic/icons/IconHourglassStroked.d.ts +3 -0
- package/component/basic/icons/IconIdCard.d.ts +3 -0
- package/component/basic/icons/IconIdCardStroked.d.ts +3 -0
- package/component/basic/icons/IconIdentity.d.ts +3 -0
- package/component/basic/icons/IconImage.d.ts +3 -0
- package/component/basic/icons/IconImageStroked.d.ts +3 -0
- package/component/basic/icons/IconImport.d.ts +3 -0
- package/component/basic/icons/IconInbox.d.ts +3 -0
- package/component/basic/icons/IconIndenpentCornersStroked.d.ts +3 -0
- package/component/basic/icons/IconIndentLeft.d.ts +3 -0
- package/component/basic/icons/IconIndentRight.d.ts +3 -0
- package/component/basic/icons/IconIndependentCornersStroked.d.ts +3 -0
- package/component/basic/icons/IconInfoCircle.d.ts +3 -0
- package/component/basic/icons/IconInherit.d.ts +3 -0
- package/component/basic/icons/IconInheritStroked.d.ts +3 -0
- package/component/basic/icons/IconInnerSectionStroked.d.ts +3 -0
- package/component/basic/icons/IconInstagram.d.ts +3 -0
- package/component/basic/icons/IconInteractiveStroked.d.ts +3 -0
- package/component/basic/icons/IconInviteStroked.d.ts +3 -0
- package/component/basic/icons/IconIssueStroked.d.ts +3 -0
- package/component/basic/icons/IconItalic.d.ts +3 -0
- package/component/basic/icons/IconJianying.d.ts +3 -0
- package/component/basic/icons/IconKanban.d.ts +3 -0
- package/component/basic/icons/IconKey.d.ts +3 -0
- package/component/basic/icons/IconKeyStroked.d.ts +3 -0
- package/component/basic/icons/IconLanguage.d.ts +3 -0
- package/component/basic/icons/IconLayers.d.ts +3 -0
- package/component/basic/icons/IconLeftCircle.d.ts +3 -0
- package/component/basic/icons/IconLeftCircleStroked.d.ts +3 -0
- package/component/basic/icons/IconLightningStroked.d.ts +3 -0
- package/component/basic/icons/IconLikeHeart.d.ts +3 -0
- package/component/basic/icons/IconLikeThumb.d.ts +3 -0
- package/component/basic/icons/IconLineChartStroked.d.ts +3 -0
- package/component/basic/icons/IconLineHeight.d.ts +3 -0
- package/component/basic/icons/IconLink.d.ts +3 -0
- package/component/basic/icons/IconList.d.ts +3 -0
- package/component/basic/icons/IconListView.d.ts +3 -0
- package/component/basic/icons/IconLive.d.ts +3 -0
- package/component/basic/icons/IconLoading.d.ts +3 -0
- package/component/basic/icons/IconLock.d.ts +3 -0
- package/component/basic/icons/IconLockStroked.d.ts +3 -0
- package/component/basic/icons/IconLoopTextStroked.d.ts +3 -0
- package/component/basic/icons/IconMail.d.ts +3 -0
- package/component/basic/icons/IconMailStroked.d.ts +3 -0
- package/component/basic/icons/IconMailStroked1.d.ts +3 -0
- package/component/basic/icons/IconMale.d.ts +3 -0
- package/component/basic/icons/IconMapPin.d.ts +3 -0
- package/component/basic/icons/IconMapPinStroked.d.ts +3 -0
- package/component/basic/icons/IconMarginLeftStroked.d.ts +3 -0
- package/component/basic/icons/IconMarginStroked.d.ts +3 -0
- package/component/basic/icons/IconMark.d.ts +3 -0
- package/component/basic/icons/IconMaximize.d.ts +3 -0
- package/component/basic/icons/IconMaximize2.d.ts +3 -0
- package/component/basic/icons/IconMaximize2Stroked.d.ts +3 -0
- package/component/basic/icons/IconMember.d.ts +3 -0
- package/component/basic/icons/IconMenu.d.ts +3 -0
- package/component/basic/icons/IconMicrophone.d.ts +3 -0
- package/component/basic/icons/IconMicrophoneOff.d.ts +3 -0
- package/component/basic/icons/IconMicrophoneOffStroked.d.ts +3 -0
- package/component/basic/icons/IconMicrophoneStroked.d.ts +3 -0
- package/component/basic/icons/IconMiniPlayer.d.ts +3 -0
- package/component/basic/icons/IconMinimize.d.ts +3 -0
- package/component/basic/icons/IconMinus.d.ts +3 -0
- package/component/basic/icons/IconMinusCircle.d.ts +3 -0
- package/component/basic/icons/IconMinusCircleStroked.d.ts +3 -0
- package/component/basic/icons/IconMinusStroked.d.ts +3 -0
- package/component/basic/icons/IconModalStroked.d.ts +3 -0
- package/component/basic/icons/IconMoneyExchangeStroked.d.ts +3 -0
- package/component/basic/icons/IconMonitorStroked.d.ts +3 -0
- package/component/basic/icons/IconMoon.d.ts +3 -0
- package/component/basic/icons/IconMoonStroked.d.ts +3 -0
- package/component/basic/icons/IconMore.d.ts +3 -0
- package/component/basic/icons/IconMoreStroked.d.ts +3 -0
- package/component/basic/icons/IconMusic.d.ts +3 -0
- package/component/basic/icons/IconMusicNoteStroked.d.ts +3 -0
- package/component/basic/icons/IconMute.d.ts +3 -0
- package/component/basic/icons/IconMuteStroked.d.ts +3 -0
- package/component/basic/icons/IconNineGridStroked.d.ts +3 -0
- package/component/basic/icons/IconNoteMoney.d.ts +3 -0
- package/component/basic/icons/IconNoteMoneyStroked.d.ts +3 -0
- package/component/basic/icons/IconOption.d.ts +3 -0
- package/component/basic/icons/IconOrderedList.d.ts +3 -0
- package/component/basic/icons/IconOrderedListStroked.d.ts +3 -0
- package/component/basic/icons/IconPaperclip.d.ts +3 -0
- package/component/basic/icons/IconPaperclipStroked.d.ts +3 -0
- package/component/basic/icons/IconPause.d.ts +3 -0
- package/component/basic/icons/IconPdf.d.ts +3 -0
- package/component/basic/icons/IconPercentage.d.ts +3 -0
- package/component/basic/icons/IconPhone.d.ts +3 -0
- package/component/basic/icons/IconPhoneStroke.d.ts +3 -0
- package/component/basic/icons/IconPhoneStroked.d.ts +3 -0
- package/component/basic/icons/IconPieChart2Stroked.d.ts +3 -0
- package/component/basic/icons/IconPieChartStroked.d.ts +3 -0
- package/component/basic/icons/IconPiechartH5Stroked.d.ts +3 -0
- package/component/basic/icons/IconPipixiaLogo.d.ts +3 -0
- package/component/basic/icons/IconPlay.d.ts +3 -0
- package/component/basic/icons/IconPlayCircle.d.ts +3 -0
- package/component/basic/icons/IconPlus.d.ts +3 -0
- package/component/basic/icons/IconPlusCircle.d.ts +3 -0
- package/component/basic/icons/IconPlusCircleStroked.d.ts +3 -0
- package/component/basic/icons/IconPlusStroked.d.ts +3 -0
- package/component/basic/icons/IconPriceTag.d.ts +3 -0
- package/component/basic/icons/IconPrint.d.ts +3 -0
- package/component/basic/icons/IconPrize.d.ts +3 -0
- package/component/basic/icons/IconPrizeStroked.d.ts +3 -0
- package/component/basic/icons/IconPulse.d.ts +3 -0
- package/component/basic/icons/IconPuzzle.d.ts +3 -0
- package/component/basic/icons/IconQingyan.d.ts +3 -0
- package/component/basic/icons/IconQrCode.d.ts +3 -0
- package/component/basic/icons/IconQuit.d.ts +3 -0
- package/component/basic/icons/IconQuote.d.ts +3 -0
- package/component/basic/icons/IconRankingCardStroked.d.ts +3 -0
- package/component/basic/icons/IconRealSize.d.ts +3 -0
- package/component/basic/icons/IconRealSizeStroked.d.ts +3 -0
- package/component/basic/icons/IconRedo.d.ts +3 -0
- package/component/basic/icons/IconRedoStroked.d.ts +3 -0
- package/component/basic/icons/IconRefresh.d.ts +3 -0
- package/component/basic/icons/IconRefresh2.d.ts +3 -0
- package/component/basic/icons/IconRegExp.d.ts +3 -0
- package/component/basic/icons/IconReply.d.ts +3 -0
- package/component/basic/icons/IconReplyStroked.d.ts +3 -0
- package/component/basic/icons/IconResso.d.ts +3 -0
- package/component/basic/icons/IconRestart.d.ts +3 -0
- package/component/basic/icons/IconRestore.d.ts +3 -0
- package/component/basic/icons/IconRestoreStroked.d.ts +3 -0
- package/component/basic/icons/IconRingChartStroked.d.ts +3 -0
- package/component/basic/icons/IconRotate.d.ts +3 -0
- package/component/basic/icons/IconRotationStroked.d.ts +3 -0
- package/component/basic/icons/IconRoute.d.ts +3 -0
- package/component/basic/icons/IconRowsStroked.d.ts +3 -0
- package/component/basic/icons/IconSafe.d.ts +3 -0
- package/component/basic/icons/IconSafeStroked.d.ts +3 -0
- package/component/basic/icons/IconSave.d.ts +3 -0
- package/component/basic/icons/IconSaveStroked.d.ts +3 -0
- package/component/basic/icons/IconScan.d.ts +3 -0
- package/component/basic/icons/IconScissors.d.ts +3 -0
- package/component/basic/icons/IconScissorsStroked.d.ts +3 -0
- package/component/basic/icons/IconSearch.d.ts +3 -0
- package/component/basic/icons/IconSearchStroked.d.ts +3 -0
- package/component/basic/icons/IconSectionStroked.d.ts +3 -0
- package/component/basic/icons/IconSemiLogo.d.ts +3 -0
- package/component/basic/icons/IconSend.d.ts +3 -0
- package/component/basic/icons/IconSendMsgStroked.d.ts +3 -0
- package/component/basic/icons/IconSendStroked.d.ts +3 -0
- package/component/basic/icons/IconServer.d.ts +3 -0
- package/component/basic/icons/IconServerStroked.d.ts +3 -0
- package/component/basic/icons/IconSetting.d.ts +3 -0
- package/component/basic/icons/IconSettingStroked.d.ts +3 -0
- package/component/basic/icons/IconShare.d.ts +3 -0
- package/component/basic/icons/IconShareMoneyStroked.d.ts +3 -0
- package/component/basic/icons/IconShareStroked.d.ts +3 -0
- package/component/basic/icons/IconShield.d.ts +3 -0
- package/component/basic/icons/IconShieldStroked.d.ts +3 -0
- package/component/basic/icons/IconShift.d.ts +3 -0
- package/component/basic/icons/IconShoppingBag.d.ts +3 -0
- package/component/basic/icons/IconShoppingBagStroked.d.ts +3 -0
- package/component/basic/icons/IconShrink.d.ts +3 -0
- package/component/basic/icons/IconShrinkScreenStroked.d.ts +3 -0
- package/component/basic/icons/IconSidebar.d.ts +3 -0
- package/component/basic/icons/IconSignal.d.ts +3 -0
- package/component/basic/icons/IconSimilarity.d.ts +3 -0
- package/component/basic/icons/IconSmallTriangleDown.d.ts +3 -0
- package/component/basic/icons/IconSmallTriangleLeft.d.ts +3 -0
- package/component/basic/icons/IconSmallTriangleRight.d.ts +3 -0
- package/component/basic/icons/IconSmallTriangleTop.d.ts +3 -0
- package/component/basic/icons/IconSmartphoneCheckStroked.d.ts +3 -0
- package/component/basic/icons/IconSmartphoneStroked.d.ts +3 -0
- package/component/basic/icons/IconSong.d.ts +3 -0
- package/component/basic/icons/IconSonicStroked.d.ts +3 -0
- package/component/basic/icons/IconSort.d.ts +3 -0
- package/component/basic/icons/IconSortStroked.d.ts +3 -0
- package/component/basic/icons/IconSourceControl.d.ts +3 -0
- package/component/basic/icons/IconSpin.d.ts +3 -0
- package/component/basic/icons/IconStackBarChartStroked.d.ts +3 -0
- package/component/basic/icons/IconStar.d.ts +3 -0
- package/component/basic/icons/IconStarStroked.d.ts +3 -0
- package/component/basic/icons/IconStop.d.ts +3 -0
- package/component/basic/icons/IconStopwatchStroked.d.ts +3 -0
- package/component/basic/icons/IconStoryStroked.d.ts +3 -0
- package/component/basic/icons/IconStrikeThrough.d.ts +3 -0
- package/component/basic/icons/IconSun.d.ts +3 -0
- package/component/basic/icons/IconSunStroked.d.ts +3 -0
- package/component/basic/icons/IconSync.d.ts +3 -0
- package/component/basic/icons/IconTabArrowStroked.d.ts +3 -0
- package/component/basic/icons/IconTabsStroked.d.ts +3 -0
- package/component/basic/icons/IconTaskMoneyStroked.d.ts +3 -0
- package/component/basic/icons/IconTemplate.d.ts +3 -0
- package/component/basic/icons/IconTemplateStroked.d.ts +3 -0
- package/component/basic/icons/IconTerminal.d.ts +3 -0
- package/component/basic/icons/IconTestScore.d.ts +3 -0
- package/component/basic/icons/IconTestScoreStroked.d.ts +3 -0
- package/component/basic/icons/IconText.d.ts +3 -0
- package/component/basic/icons/IconTextRectangle.d.ts +3 -0
- package/component/basic/icons/IconTextStroked.d.ts +3 -0
- package/component/basic/icons/IconThumbUpStroked.d.ts +3 -0
- package/component/basic/icons/IconTick.d.ts +3 -0
- package/component/basic/icons/IconTickCircle.d.ts +3 -0
- package/component/basic/icons/IconTicketCode.d.ts +3 -0
- package/component/basic/icons/IconTicketCodeExchangeStroked.d.ts +3 -0
- package/component/basic/icons/IconTicketCodeStroked.d.ts +3 -0
- package/component/basic/icons/IconTiktokLogo.d.ts +3 -0
- package/component/basic/icons/IconTop.d.ts +3 -0
- package/component/basic/icons/IconTopCenterStroked.d.ts +3 -0
- package/component/basic/icons/IconTopLeftStroked.d.ts +3 -0
- package/component/basic/icons/IconTopRightStroked.d.ts +3 -0
- package/component/basic/icons/IconTopbuzzLogo.d.ts +3 -0
- package/component/basic/icons/IconToutiaoLogo.d.ts +3 -0
- package/component/basic/icons/IconTransparentStroked.d.ts +3 -0
- package/component/basic/icons/IconTreeTriangleDown.d.ts +3 -0
- package/component/basic/icons/IconTreeTriangleRight.d.ts +3 -0
- package/component/basic/icons/IconTriangleArrow.d.ts +3 -0
- package/component/basic/icons/IconTriangleArrowVertical.d.ts +3 -0
- package/component/basic/icons/IconTriangleDown.d.ts +3 -0
- package/component/basic/icons/IconTriangleUp.d.ts +3 -0
- package/component/basic/icons/IconTrueFalseStroked.d.ts +3 -0
- package/component/basic/icons/IconTvCheckedStroked.d.ts +3 -0
- package/component/basic/icons/IconTwitter.d.ts +3 -0
- package/component/basic/icons/IconTypograph.d.ts +3 -0
- package/component/basic/icons/IconUnChainStroked.d.ts +3 -0
- package/component/basic/icons/IconUnderline.d.ts +3 -0
- package/component/basic/icons/IconUndo.d.ts +3 -0
- package/component/basic/icons/IconUnlink.d.ts +3 -0
- package/component/basic/icons/IconUnlock.d.ts +3 -0
- package/component/basic/icons/IconUnlockStroked.d.ts +3 -0
- package/component/basic/icons/IconUpload.d.ts +3 -0
- package/component/basic/icons/IconUploadError.d.ts +3 -0
- package/component/basic/icons/IconUser.d.ts +3 -0
- package/component/basic/icons/IconUserAdd.d.ts +3 -0
- package/component/basic/icons/IconUserCardPhone.d.ts +3 -0
- package/component/basic/icons/IconUserCardVideo.d.ts +3 -0
- package/component/basic/icons/IconUserCardVideoStroked.d.ts +3 -0
- package/component/basic/icons/IconUserCircle.d.ts +3 -0
- package/component/basic/icons/IconUserCircleStroked.d.ts +3 -0
- package/component/basic/icons/IconUserGroup.d.ts +3 -0
- package/component/basic/icons/IconUserList.d.ts +3 -0
- package/component/basic/icons/IconUserListStroked.d.ts +3 -0
- package/component/basic/icons/IconUserSetting.d.ts +3 -0
- package/component/basic/icons/IconUserStroked.d.ts +3 -0
- package/component/basic/icons/IconVennChartStroked.d.ts +3 -0
- package/component/basic/icons/IconVerify.d.ts +3 -0
- package/component/basic/icons/IconVersionStroked.d.ts +3 -0
- package/component/basic/icons/IconVideo.d.ts +3 -0
- package/component/basic/icons/IconVideoDouyinStroked.d.ts +3 -0
- package/component/basic/icons/IconVideoListStroked.d.ts +3 -0
- package/component/basic/icons/IconVideoStroked.d.ts +3 -0
- package/component/basic/icons/IconVideoUrlStroked.d.ts +3 -0
- package/component/basic/icons/IconVigoLogo.d.ts +3 -0
- package/component/basic/icons/IconVolume1.d.ts +3 -0
- package/component/basic/icons/IconVolume1Stroked.d.ts +3 -0
- package/component/basic/icons/IconVolume2.d.ts +3 -0
- package/component/basic/icons/IconVolume2Stroked.d.ts +3 -0
- package/component/basic/icons/IconVolumeSilentStroked.d.ts +3 -0
- package/component/basic/icons/IconVolumnSilent.d.ts +3 -0
- package/component/basic/icons/IconVoteStroked.d.ts +3 -0
- package/component/basic/icons/IconVoteVideoStroked.d.ts +3 -0
- package/component/basic/icons/IconWeibo.d.ts +3 -0
- package/component/basic/icons/IconWholeWord.d.ts +3 -0
- package/component/basic/icons/IconWifi.d.ts +3 -0
- package/component/basic/icons/IconWindowAdaptionStroked.d.ts +3 -0
- package/component/basic/icons/IconWord.d.ts +3 -0
- package/component/basic/icons/IconWrench.d.ts +3 -0
- package/component/basic/icons/IconWrenchStroked.d.ts +3 -0
- package/component/basic/icons/IconXiguaLogo.d.ts +3 -0
- package/component/basic/icons/IconYoutube.d.ts +3 -0
- package/component/basic/icons/index.d.ts +522 -0
- package/component/basic/index.d.ts +19 -0
- package/component/display/Avatar.d.ts +22 -0
- package/component/display/Badge.d.ts +22 -0
- package/component/display/Calendar.d.ts +28 -0
- package/component/display/Card.d.ts +32 -0
- package/component/display/Carousel.d.ts +32 -0
- package/component/display/Collapse.d.ts +34 -0
- package/component/display/Collapsible.d.ts +31 -0
- package/component/display/Cropper.d.ts +47 -0
- package/component/display/Descriptions.d.ts +46 -0
- package/component/display/Dropdown.d.ts +57 -0
- package/component/display/Empty.d.ts +18 -0
- package/component/display/Highlight.d.ts +20 -0
- package/component/display/Image.d.ts +33 -0
- package/component/display/List.d.ts +23 -0
- package/component/display/Modal.d.ts +43 -0
- package/component/display/OverflowList.d.ts +28 -0
- package/component/display/Popover.d.ts +40 -0
- package/component/display/ScrollList.d.ts +70 -0
- package/component/display/SideSheet.d.ts +40 -0
- package/component/display/Table.d.ts +59 -0
- package/component/display/Tag.d.ts +24 -0
- package/component/display/Timeline.d.ts +28 -0
- package/component/display/Tooltip.d.ts +50 -0
- package/component/display/UserGuide.d.ts +31 -0
- package/component/display/VChart.d.ts +23 -0
- package/component/display/index.d.ts +50 -0
- package/component/feedback/Banner.d.ts +31 -0
- package/component/feedback/Feedback.d.ts +62 -0
- package/component/feedback/Notification.d.ts +38 -0
- package/component/feedback/Popconfirm.d.ts +75 -0
- package/component/feedback/Progress.d.ts +49 -0
- package/component/feedback/Skeleton.d.ts +68 -0
- package/component/feedback/Spin.d.ts +31 -0
- package/component/feedback/Toast.d.ts +60 -0
- package/component/feedback/index.d.ts +14 -0
- package/component/index.d.ts +8 -0
- package/component/input/AutoComplete.d.ts +60 -0
- package/component/input/Cascader.d.ts +77 -0
- package/component/input/Checkbox.d.ts +63 -0
- package/component/input/ColorPicker.d.ts +78 -0
- package/component/input/DatePicker.d.ts +113 -0
- package/component/input/Form.d.ts +97 -0
- package/component/input/Input.d.ts +56 -0
- package/component/input/InputNumber.d.ts +46 -0
- package/component/input/KeyValueEditor.d.ts +32 -0
- package/component/input/PinCode.d.ts +46 -0
- package/component/input/Radio.d.ts +60 -0
- package/component/input/Rating.d.ts +39 -0
- package/component/input/Select.d.ts +80 -0
- package/component/input/Slider.d.ts +40 -0
- package/component/input/Switch.d.ts +33 -0
- package/component/input/TagInput.d.ts +44 -0
- package/component/input/TimePicker.d.ts +74 -0
- package/component/input/Transfer.d.ts +49 -0
- package/component/input/TreeSelect.d.ts +68 -0
- package/component/input/Upload.d.ts +95 -0
- package/component/input/index.d.ts +40 -0
- package/component/navigation/Anchor.d.ts +40 -0
- package/component/navigation/BackTop.d.ts +28 -0
- package/component/navigation/Breadcrumb.d.ts +33 -0
- package/component/navigation/Navigation.d.ts +48 -0
- package/component/navigation/Pagination.d.ts +32 -0
- package/component/navigation/Steps.d.ts +52 -0
- package/component/navigation/Tabs.d.ts +54 -0
- package/component/navigation/Tree.d.ts +68 -0
- package/component/navigation/index.d.ts +16 -0
- package/component/other/ConfigProvider.d.ts +24 -0
- package/component/other/LocaleProvider.d.ts +30 -0
- package/component/other/index.d.ts +4 -0
- package/component/plus/AudioPlayer.d.ts +70 -0
- package/component/plus/Chat.d.ts +39 -0
- package/component/plus/CodeEditor.d.ts +86 -0
- package/component/plus/CodeHighlight.d.ts +33 -0
- package/component/plus/DragMove.d.ts +51 -0
- package/component/plus/HotKeys.d.ts +29 -0
- package/component/plus/JsonViewer.d.ts +34 -0
- package/component/plus/Lottie.d.ts +40 -0
- package/component/plus/Markdown.d.ts +22 -0
- package/component/plus/VideoPlayer.d.ts +84 -0
- package/component/plus/index.d.ts +20 -0
- package/index.d.ts +3 -0
- package/index.js +2 -0
- package/index.js.map +1 -0
- package/package.json +41 -0
- package/test/UITestApp.d.ts +120 -0
- package/test/index.d.ts +1 -0
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { AbstractUI, type UIProps, type UIState } from "../../base";
|
|
3
|
+
type TimelineMode = "left" | "alternate" | "right";
|
|
4
|
+
declare class TimelineItem extends AbstractUI<TimelineItemProps, UIState> {
|
|
5
|
+
static displayName: string;
|
|
6
|
+
protected OnRenderContent(): React.ReactElement;
|
|
7
|
+
}
|
|
8
|
+
export interface TimelineItemProps extends UIProps {
|
|
9
|
+
time?: React.ReactNode;
|
|
10
|
+
dot?: React.ReactNode;
|
|
11
|
+
color?: string;
|
|
12
|
+
type?: "default" | "success" | "warning" | "danger";
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* 时间轴。
|
|
16
|
+
*/
|
|
17
|
+
export declare class Timeline extends AbstractUI<TimelineProps, UIState> {
|
|
18
|
+
static Item: typeof TimelineItem;
|
|
19
|
+
constructor(props: TimelineProps);
|
|
20
|
+
protected OnRenderContent(): React.ReactElement;
|
|
21
|
+
private extractItems;
|
|
22
|
+
}
|
|
23
|
+
export interface TimelineProps extends UIProps {
|
|
24
|
+
mode?: TimelineMode;
|
|
25
|
+
pending?: React.ReactNode;
|
|
26
|
+
pendingDot?: React.ReactNode;
|
|
27
|
+
}
|
|
28
|
+
export {};
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { AbstractUI, type UIProps, type UIState } from "../../base";
|
|
3
|
+
type TooltipPosition = "top" | "topLeft" | "topRight" | "bottom" | "bottomLeft" | "bottomRight" | "left" | "leftTop" | "leftBottom" | "right" | "rightTop" | "rightBottom";
|
|
4
|
+
type TooltipTheme = "dark" | "light";
|
|
5
|
+
/**
|
|
6
|
+
* 工具提示。
|
|
7
|
+
* 12 方位自动定位 + 箭头指向触发元素.
|
|
8
|
+
*/
|
|
9
|
+
export declare class Tooltip extends AbstractUI<TooltipProps, TooltipState> {
|
|
10
|
+
private zIndex;
|
|
11
|
+
private wrapperRef;
|
|
12
|
+
private animTimer;
|
|
13
|
+
private leaveTimer;
|
|
14
|
+
private enterTimer;
|
|
15
|
+
constructor(props: TooltipProps);
|
|
16
|
+
componentDidMount(): void;
|
|
17
|
+
componentDidUpdate(prevProps: Readonly<TooltipProps>): void;
|
|
18
|
+
componentWillUnmount(): void;
|
|
19
|
+
private enter;
|
|
20
|
+
private exit;
|
|
21
|
+
private handleClick;
|
|
22
|
+
private cleanup;
|
|
23
|
+
protected OnRenderContent(): React.ReactElement;
|
|
24
|
+
private getArrowStyle;
|
|
25
|
+
private calcPosition;
|
|
26
|
+
}
|
|
27
|
+
type TooltipAnimPhase = "entering" | "entered" | "leaving" | "exited";
|
|
28
|
+
export interface TooltipProps extends UIProps {
|
|
29
|
+
visible?: boolean;
|
|
30
|
+
defaultVisible?: boolean;
|
|
31
|
+
content?: React.ReactNode;
|
|
32
|
+
title?: React.ReactNode;
|
|
33
|
+
position?: TooltipPosition;
|
|
34
|
+
trigger?: "hover" | "click" | "focus" | "custom";
|
|
35
|
+
theme?: TooltipTheme;
|
|
36
|
+
spacing?: number;
|
|
37
|
+
offset?: number;
|
|
38
|
+
showArrow?: boolean;
|
|
39
|
+
motion?: boolean;
|
|
40
|
+
mouseEnterDelay?: number;
|
|
41
|
+
mouseLeaveDelay?: number;
|
|
42
|
+
stopPropagation?: boolean;
|
|
43
|
+
wrapperClassName?: string;
|
|
44
|
+
getPopupContainer?: () => HTMLElement;
|
|
45
|
+
onVisibleChange?: (visible: boolean) => void;
|
|
46
|
+
}
|
|
47
|
+
interface TooltipState extends UIState {
|
|
48
|
+
animPhase: TooltipAnimPhase;
|
|
49
|
+
}
|
|
50
|
+
export {};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { AbstractUI, type UIProps, type UIState } from "../../base";
|
|
3
|
+
export interface GuideStep {
|
|
4
|
+
target?: string;
|
|
5
|
+
title?: React.ReactNode;
|
|
6
|
+
content?: React.ReactNode;
|
|
7
|
+
placement?: "top" | "bottom" | "left" | "right";
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* 用户引导。
|
|
11
|
+
*/
|
|
12
|
+
export declare class UserGuide extends AbstractUI<UserGuideProps, UserGuideState> {
|
|
13
|
+
constructor(props: UserGuideProps);
|
|
14
|
+
componentDidUpdate(prevProps: Readonly<UserGuideProps>): void;
|
|
15
|
+
private goTo;
|
|
16
|
+
private handleSkip;
|
|
17
|
+
private handleFinish;
|
|
18
|
+
protected OnRenderContent(): React.ReactElement;
|
|
19
|
+
}
|
|
20
|
+
export interface UserGuideProps extends UIProps {
|
|
21
|
+
steps?: GuideStep[];
|
|
22
|
+
visible?: boolean;
|
|
23
|
+
currentStep?: number;
|
|
24
|
+
onChange?: (step: number) => void;
|
|
25
|
+
onSkip?: () => void;
|
|
26
|
+
onFinish?: () => void;
|
|
27
|
+
}
|
|
28
|
+
interface UserGuideState extends UIState {
|
|
29
|
+
currentStep: number;
|
|
30
|
+
}
|
|
31
|
+
export {};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { AbstractUI, type UIProps, type UIState } from "../../base";
|
|
3
|
+
type ChartType = "line" | "bar" | "pie" | "area" | "scatter";
|
|
4
|
+
/**
|
|
5
|
+
* 图表。
|
|
6
|
+
* 轻量级 SVG 图表渲染器.
|
|
7
|
+
*/
|
|
8
|
+
export declare class VChart extends AbstractUI<VChartProps, UIState> {
|
|
9
|
+
constructor(props: VChartProps);
|
|
10
|
+
protected OnRenderContent(): React.ReactElement;
|
|
11
|
+
private renderChart;
|
|
12
|
+
}
|
|
13
|
+
export interface VChartProps extends UIProps {
|
|
14
|
+
type?: ChartType;
|
|
15
|
+
data?: {
|
|
16
|
+
label: string;
|
|
17
|
+
value: number;
|
|
18
|
+
}[];
|
|
19
|
+
width?: number;
|
|
20
|
+
height?: number;
|
|
21
|
+
colors?: string[];
|
|
22
|
+
}
|
|
23
|
+
export {};
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
export { Avatar } from "./Avatar";
|
|
2
|
+
export type { AvatarProps } from "./Avatar";
|
|
3
|
+
export { Badge } from "./Badge";
|
|
4
|
+
export type { BadgeProps } from "./Badge";
|
|
5
|
+
export { Card } from "./Card";
|
|
6
|
+
export type { CardProps } from "./Card";
|
|
7
|
+
export { Collapse } from "./Collapse";
|
|
8
|
+
export type { CollapseProps } from "./Collapse";
|
|
9
|
+
export { Collapsible } from "./Collapsible";
|
|
10
|
+
export type { CollapsibleProps } from "./Collapsible";
|
|
11
|
+
export { Cropper } from "./Cropper";
|
|
12
|
+
export type { CropperProps } from "./Cropper";
|
|
13
|
+
export { Descriptions } from "./Descriptions";
|
|
14
|
+
export type { DescriptionsProps, DescriptionsData } from "./Descriptions";
|
|
15
|
+
export { Empty } from "./Empty";
|
|
16
|
+
export type { EmptyProps } from "./Empty";
|
|
17
|
+
export { Highlight } from "./Highlight";
|
|
18
|
+
export type { HighlightProps } from "./Highlight";
|
|
19
|
+
export { Image } from "./Image";
|
|
20
|
+
export type { ImageProps } from "./Image";
|
|
21
|
+
export { List } from "./List";
|
|
22
|
+
export type { ListProps } from "./List";
|
|
23
|
+
export { Tag } from "./Tag";
|
|
24
|
+
export type { TagProps } from "./Tag";
|
|
25
|
+
export { Calendar } from "./Calendar";
|
|
26
|
+
export type { CalendarProps } from "./Calendar";
|
|
27
|
+
export { Carousel } from "./Carousel";
|
|
28
|
+
export type { CarouselProps } from "./Carousel";
|
|
29
|
+
export { Dropdown } from "./Dropdown";
|
|
30
|
+
export type { DropdownProps, DropdownItem } from "./Dropdown";
|
|
31
|
+
export { Modal } from "./Modal";
|
|
32
|
+
export type { ModalProps } from "./Modal";
|
|
33
|
+
export { OverflowList } from "./OverflowList";
|
|
34
|
+
export type { OverflowListProps } from "./OverflowList";
|
|
35
|
+
export { Popover } from "./Popover";
|
|
36
|
+
export type { PopoverProps } from "./Popover";
|
|
37
|
+
export { ScrollList } from "./ScrollList";
|
|
38
|
+
export type { ScrollListProps } from "./ScrollList";
|
|
39
|
+
export { SideSheet } from "./SideSheet";
|
|
40
|
+
export type { SideSheetProps } from "./SideSheet";
|
|
41
|
+
export { Table } from "./Table";
|
|
42
|
+
export type { TableProps, TableColumn } from "./Table";
|
|
43
|
+
export { Timeline } from "./Timeline";
|
|
44
|
+
export type { TimelineProps, TimelineItemProps } from "./Timeline";
|
|
45
|
+
export { Tooltip } from "./Tooltip";
|
|
46
|
+
export type { TooltipProps } from "./Tooltip";
|
|
47
|
+
export { UserGuide } from "./UserGuide";
|
|
48
|
+
export type { UserGuideProps, GuideStep } from "./UserGuide";
|
|
49
|
+
export { VChart } from "./VChart";
|
|
50
|
+
export type { VChartProps } from "./VChart";
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { AbstractUI, type UIProps, type UIState } from "../../base";
|
|
3
|
+
import type { IconType } from "../basic/Icon";
|
|
4
|
+
export type BannerType = "info" | "success" | "warning" | "danger";
|
|
5
|
+
interface BannerState extends UIState {
|
|
6
|
+
closing: boolean;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* 通知横幅 — 点击整个横幅触发关闭,带 fade+collapse 过渡动画。
|
|
10
|
+
*/
|
|
11
|
+
export declare class Banner extends AbstractUI<BannerProps, BannerState> {
|
|
12
|
+
private animTimer;
|
|
13
|
+
constructor(props: BannerProps);
|
|
14
|
+
componentDidMount(): void;
|
|
15
|
+
componentDidUpdate(prevProps: Readonly<BannerProps>): void;
|
|
16
|
+
componentWillUnmount(): void;
|
|
17
|
+
private handleClose;
|
|
18
|
+
protected OnRenderContent(): React.ReactElement;
|
|
19
|
+
}
|
|
20
|
+
export interface BannerProps extends UIProps {
|
|
21
|
+
visible?: boolean;
|
|
22
|
+
type?: BannerType;
|
|
23
|
+
title?: React.ReactNode;
|
|
24
|
+
description?: React.ReactNode;
|
|
25
|
+
icon?: IconType;
|
|
26
|
+
bordered?: boolean;
|
|
27
|
+
fullMode?: boolean;
|
|
28
|
+
actions?: React.ReactNode;
|
|
29
|
+
onClose?: () => void;
|
|
30
|
+
}
|
|
31
|
+
export {};
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { AbstractUI, type UIProps, type UIState } from "../../base";
|
|
3
|
+
type FeedbackType = "emoji" | "text" | "radio" | "checkbox" | "custom";
|
|
4
|
+
interface FeedbackOption {
|
|
5
|
+
label: string;
|
|
6
|
+
value: string;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* 反馈组件。
|
|
10
|
+
*/
|
|
11
|
+
export declare class Feedback extends AbstractUI<FeedbackProps, FeedbackState> {
|
|
12
|
+
private zIndex;
|
|
13
|
+
private animTimer;
|
|
14
|
+
constructor(props: FeedbackProps);
|
|
15
|
+
componentDidMount(): void;
|
|
16
|
+
componentDidUpdate(prevProps: Readonly<FeedbackProps>): void;
|
|
17
|
+
componentWillUnmount(): void;
|
|
18
|
+
private enter;
|
|
19
|
+
private exit;
|
|
20
|
+
private cleanup;
|
|
21
|
+
private handleClose;
|
|
22
|
+
private handleSubmit;
|
|
23
|
+
private handleValueChange;
|
|
24
|
+
private handleTextChange;
|
|
25
|
+
private renderStarRating;
|
|
26
|
+
private renderTextInput;
|
|
27
|
+
private renderRadioOptions;
|
|
28
|
+
private renderCheckboxOptions;
|
|
29
|
+
protected OnRenderContent(): React.ReactElement;
|
|
30
|
+
}
|
|
31
|
+
type FeedbackAnimPhase = "entering" | "entered" | "leaving" | "exited";
|
|
32
|
+
export interface FeedbackProps extends UIProps {
|
|
33
|
+
type?: FeedbackType;
|
|
34
|
+
title?: React.ReactNode;
|
|
35
|
+
options?: FeedbackOption[];
|
|
36
|
+
/** 星级评分图标列表,默认 5 个 star */
|
|
37
|
+
starList?: Array<{
|
|
38
|
+
icon: React.FC<any>;
|
|
39
|
+
label: string;
|
|
40
|
+
}>;
|
|
41
|
+
placeholder?: string;
|
|
42
|
+
thankText?: string;
|
|
43
|
+
/** 受控: 是否显示 */
|
|
44
|
+
visible?: boolean;
|
|
45
|
+
/** 值变化实时回调 */
|
|
46
|
+
onValueChange?: (data: {
|
|
47
|
+
value: string;
|
|
48
|
+
text: string;
|
|
49
|
+
}) => void;
|
|
50
|
+
onOk?: (result: {
|
|
51
|
+
value: string;
|
|
52
|
+
text: string;
|
|
53
|
+
}) => void;
|
|
54
|
+
onCancel?: () => void;
|
|
55
|
+
}
|
|
56
|
+
interface FeedbackState extends UIState {
|
|
57
|
+
animPhase: FeedbackAnimPhase;
|
|
58
|
+
selectedValue: string;
|
|
59
|
+
feedbackText: string;
|
|
60
|
+
submitted: boolean;
|
|
61
|
+
}
|
|
62
|
+
export {};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
type NotificationTheme = "light" | "normal";
|
|
2
|
+
type NotificationPosition = "top" | "topLeft" | "topRight" | "bottom" | "bottomLeft" | "bottomRight";
|
|
3
|
+
interface NotificationConfig {
|
|
4
|
+
title?: React.ReactNode;
|
|
5
|
+
content?: React.ReactNode;
|
|
6
|
+
duration?: number;
|
|
7
|
+
position?: NotificationPosition;
|
|
8
|
+
icon?: React.ReactNode;
|
|
9
|
+
theme?: NotificationTheme;
|
|
10
|
+
showClose?: boolean;
|
|
11
|
+
zIndex?: number;
|
|
12
|
+
getPopupContainer?: () => HTMLElement;
|
|
13
|
+
onClick?: (e: MouseEvent) => void;
|
|
14
|
+
onClose?: () => void;
|
|
15
|
+
onCloseClick?: (id: number) => void;
|
|
16
|
+
id?: number;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* 通知。
|
|
20
|
+
* 静态方法: Notification.info/success/warning/error/open/close/destroyAll/config
|
|
21
|
+
*/
|
|
22
|
+
export declare class Notification {
|
|
23
|
+
private static idCounter;
|
|
24
|
+
private static instances;
|
|
25
|
+
private static containerMap;
|
|
26
|
+
private static globalConfig;
|
|
27
|
+
static config(cfg: Partial<NotificationConfig>): void;
|
|
28
|
+
private static getContainer;
|
|
29
|
+
static open(config: NotificationConfig): number;
|
|
30
|
+
static close(id: number): void;
|
|
31
|
+
static destroyAll(): void;
|
|
32
|
+
static success(config: Omit<NotificationConfig, "icon"> | string): number;
|
|
33
|
+
static info(config: Omit<NotificationConfig, "icon"> | string): number;
|
|
34
|
+
static warning(config: Omit<NotificationConfig, "icon"> | string): number;
|
|
35
|
+
static error(config: Omit<NotificationConfig, "icon"> | string): number;
|
|
36
|
+
private static renderAll;
|
|
37
|
+
}
|
|
38
|
+
export {};
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { AbstractUI, type UIProps, type UIState } from "../../base";
|
|
3
|
+
type PopconfirmPosition = "top" | "topLeft" | "topRight" | "bottom" | "bottomLeft" | "bottomRight" | "left" | "leftTop" | "leftBottom" | "right" | "rightTop" | "rightBottom";
|
|
4
|
+
type PopconfirmTrigger = "click" | "hover" | "focus" | "custom";
|
|
5
|
+
/**
|
|
6
|
+
* 气泡确认框。
|
|
7
|
+
* 使用方式: <Popconfirm><Button>删除</Button></Popconfirm>
|
|
8
|
+
*/
|
|
9
|
+
export declare class Popconfirm extends AbstractUI<PopconfirmProps, PopconfirmState> {
|
|
10
|
+
private zIndex;
|
|
11
|
+
private enterTimer;
|
|
12
|
+
private boundPositionUpdater;
|
|
13
|
+
private _triggerEl;
|
|
14
|
+
private _popupEl;
|
|
15
|
+
private _clickOutsideHandler;
|
|
16
|
+
constructor(props: PopconfirmProps);
|
|
17
|
+
componentDidMount(): void;
|
|
18
|
+
componentDidUpdate(prevProps: Readonly<PopconfirmProps>): void;
|
|
19
|
+
componentWillUnmount(): void;
|
|
20
|
+
private enter;
|
|
21
|
+
private exit;
|
|
22
|
+
private cleanup;
|
|
23
|
+
private toggle;
|
|
24
|
+
private startTracking;
|
|
25
|
+
private stopTracking;
|
|
26
|
+
private getChildRect;
|
|
27
|
+
private calcPosition;
|
|
28
|
+
private handleConfirm;
|
|
29
|
+
private handleCancel;
|
|
30
|
+
private handleTriggerClick;
|
|
31
|
+
protected OnRenderContent(): React.ReactElement;
|
|
32
|
+
private arrowPosition;
|
|
33
|
+
}
|
|
34
|
+
type PopconfirmAnimPhase = "entering" | "entered" | "leaving" | "exited";
|
|
35
|
+
export interface PopconfirmProps extends UIProps {
|
|
36
|
+
/** 受控: 是否显示 */
|
|
37
|
+
visible?: boolean;
|
|
38
|
+
/** 非受控: 默认是否显示 */
|
|
39
|
+
defaultVisible?: boolean;
|
|
40
|
+
/** 标题 */
|
|
41
|
+
title?: React.ReactNode;
|
|
42
|
+
/** 内容 */
|
|
43
|
+
content?: React.ReactNode;
|
|
44
|
+
/** 自定义图标 */
|
|
45
|
+
icon?: React.ReactNode;
|
|
46
|
+
/** 弹出位置 */
|
|
47
|
+
position?: PopconfirmPosition;
|
|
48
|
+
/** 触发方式 */
|
|
49
|
+
trigger?: PopconfirmTrigger;
|
|
50
|
+
/** 是否显示箭头 */
|
|
51
|
+
showArrow?: boolean;
|
|
52
|
+
/** 确认按钮文本 */
|
|
53
|
+
okText?: string;
|
|
54
|
+
/** 取消按钮文本 */
|
|
55
|
+
cancelText?: string;
|
|
56
|
+
/** 确认按钮 Props */
|
|
57
|
+
okButtonProps?: React.ButtonHTMLAttributes<HTMLButtonElement>;
|
|
58
|
+
/** 取消按钮 Props */
|
|
59
|
+
cancelButtonProps?: React.ButtonHTMLAttributes<HTMLButtonElement>;
|
|
60
|
+
/** 弹出偏移距离 */
|
|
61
|
+
offset?: number;
|
|
62
|
+
/** z-index */
|
|
63
|
+
zIndex?: number;
|
|
64
|
+
/** 确认回调 */
|
|
65
|
+
onConfirm?: (e: React.MouseEvent) => void;
|
|
66
|
+
/** 取消回调 */
|
|
67
|
+
onCancel?: (e: React.MouseEvent) => void;
|
|
68
|
+
/** 显示/隐藏变化回调 */
|
|
69
|
+
onVisibleChange?: (visible: boolean) => void;
|
|
70
|
+
}
|
|
71
|
+
interface PopconfirmState extends UIState {
|
|
72
|
+
animPhase: PopconfirmAnimPhase;
|
|
73
|
+
popVisible: boolean;
|
|
74
|
+
}
|
|
75
|
+
export {};
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { AbstractUI, type UIProps, type UIState } from "../../base";
|
|
3
|
+
type ProgressType = "line" | "circle";
|
|
4
|
+
type ProgressStatus = "normal" | "success" | "exception";
|
|
5
|
+
/**
|
|
6
|
+
* 进度条。
|
|
7
|
+
* 支持线形和圆形两种模式.
|
|
8
|
+
*/
|
|
9
|
+
export declare class Progress extends AbstractUI<ProgressProps, UIState> {
|
|
10
|
+
constructor(props: ProgressProps);
|
|
11
|
+
private getStatusColor;
|
|
12
|
+
private getFillBackground;
|
|
13
|
+
private renderLineSegments;
|
|
14
|
+
private renderLine;
|
|
15
|
+
private renderCircle;
|
|
16
|
+
protected OnRenderContent(): React.ReactElement;
|
|
17
|
+
}
|
|
18
|
+
export interface ProgressProps extends UIProps {
|
|
19
|
+
type?: ProgressType;
|
|
20
|
+
percent?: number;
|
|
21
|
+
/** 进度条颜色, Semi 命名为 stroke */
|
|
22
|
+
stroke?: string | Array<{
|
|
23
|
+
percent: number;
|
|
24
|
+
color: string;
|
|
25
|
+
}>;
|
|
26
|
+
/** strokeColor 映射到 stroke */
|
|
27
|
+
strokeColor?: string;
|
|
28
|
+
strokeWidth?: number;
|
|
29
|
+
/** Semi: 条形尺寸 */
|
|
30
|
+
size?: "small" | "default";
|
|
31
|
+
/** Semi: 圆形自定义宽度 */
|
|
32
|
+
width?: number;
|
|
33
|
+
/** 是否显示信息, Semi 默认 false */
|
|
34
|
+
showInfo?: boolean;
|
|
35
|
+
/** 自定义文本格式 */
|
|
36
|
+
format?: (percent: number) => React.ReactNode;
|
|
37
|
+
/** 轨道颜色 */
|
|
38
|
+
orbitStroke?: string;
|
|
39
|
+
/** 端点形状 */
|
|
40
|
+
strokeLinecap?: "round" | "square";
|
|
41
|
+
/** 条形方向 */
|
|
42
|
+
direction?: "horizontal" | "vertical";
|
|
43
|
+
status?: ProgressStatus;
|
|
44
|
+
/** hover 时显示值 Tooltip @default false */
|
|
45
|
+
tooltip?: boolean;
|
|
46
|
+
/** Tooltip 内容,默认显示百分比 */
|
|
47
|
+
tooltipContent?: string;
|
|
48
|
+
}
|
|
49
|
+
export {};
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { AbstractUI, type UIProps, type UIState } from "../../base";
|
|
3
|
+
/**
|
|
4
|
+
* 骨架屏。
|
|
5
|
+
* 包含 Skeleton, Skeleton.Avatar, Skeleton.Title, Skeleton.Paragraph, Skeleton.Button.
|
|
6
|
+
*/
|
|
7
|
+
declare class SkeletonAvatar extends AbstractUI<SkeletonAvatarProps, UIState> {
|
|
8
|
+
static displayName: string;
|
|
9
|
+
constructor(props: SkeletonAvatarProps);
|
|
10
|
+
protected OnRenderContent(): React.ReactElement;
|
|
11
|
+
private static getSize;
|
|
12
|
+
}
|
|
13
|
+
interface SkeletonAvatarProps extends UIProps {
|
|
14
|
+
size?: "extra-extra-small" | "extra-small" | "small" | "medium" | "large" | "extra-large";
|
|
15
|
+
shape?: "circle" | "square";
|
|
16
|
+
}
|
|
17
|
+
declare class SkeletonTitle extends AbstractUI<SkeletonTitleProps, UIState> {
|
|
18
|
+
static displayName: string;
|
|
19
|
+
constructor(props: SkeletonTitleProps);
|
|
20
|
+
protected OnRenderContent(): React.ReactElement;
|
|
21
|
+
}
|
|
22
|
+
interface SkeletonTitleProps extends UIProps {
|
|
23
|
+
width?: string | number;
|
|
24
|
+
}
|
|
25
|
+
declare class SkeletonParagraph extends AbstractUI<SkeletonParagraphProps, UIState> {
|
|
26
|
+
static displayName: string;
|
|
27
|
+
constructor(props: SkeletonParagraphProps);
|
|
28
|
+
protected OnRenderContent(): React.ReactElement;
|
|
29
|
+
}
|
|
30
|
+
interface SkeletonParagraphProps extends UIProps {
|
|
31
|
+
rows?: number;
|
|
32
|
+
width?: string | number | (string | number)[];
|
|
33
|
+
}
|
|
34
|
+
declare class SkeletonButton extends AbstractUI<SkeletonButtonProps, UIState> {
|
|
35
|
+
static displayName: string;
|
|
36
|
+
constructor(props: SkeletonButtonProps);
|
|
37
|
+
protected OnRenderContent(): React.ReactElement;
|
|
38
|
+
}
|
|
39
|
+
interface SkeletonButtonProps extends UIProps {
|
|
40
|
+
size?: "small" | "default" | "large";
|
|
41
|
+
}
|
|
42
|
+
declare class SkeletonImage extends AbstractUI<SkeletonImageProps, UIState> {
|
|
43
|
+
static displayName: string;
|
|
44
|
+
constructor(props: SkeletonImageProps);
|
|
45
|
+
protected OnRenderContent(): React.ReactElement;
|
|
46
|
+
private static getSize;
|
|
47
|
+
}
|
|
48
|
+
interface SkeletonImageProps extends UIProps {
|
|
49
|
+
size?: "extra-small" | "small" | "medium" | "large" | "extra-large";
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* 骨架屏容器 — 包裹子内容,loading 为 true 时显示骨架.
|
|
53
|
+
*/
|
|
54
|
+
export declare class Skeleton extends AbstractUI<SkeletonProps, UIState> {
|
|
55
|
+
static Avatar: typeof SkeletonAvatar;
|
|
56
|
+
static Title: typeof SkeletonTitle;
|
|
57
|
+
static Paragraph: typeof SkeletonParagraph;
|
|
58
|
+
static Button: typeof SkeletonButton;
|
|
59
|
+
static Image: typeof SkeletonImage;
|
|
60
|
+
constructor(props: SkeletonProps);
|
|
61
|
+
protected OnRenderContent(): React.ReactElement;
|
|
62
|
+
}
|
|
63
|
+
export interface SkeletonProps extends UIProps {
|
|
64
|
+
loading?: boolean;
|
|
65
|
+
active?: boolean;
|
|
66
|
+
placeholder?: React.ReactNode;
|
|
67
|
+
}
|
|
68
|
+
export {};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { AbstractUI, type UIProps, type UIState } from "../../base";
|
|
3
|
+
/**
|
|
4
|
+
* 加载器。
|
|
5
|
+
*/
|
|
6
|
+
export declare class Spin extends AbstractUI<SpinProps, SpinState> {
|
|
7
|
+
private _delayTimer;
|
|
8
|
+
constructor(props: SpinProps);
|
|
9
|
+
componentDidMount(): void;
|
|
10
|
+
componentDidUpdate(prevProps: Readonly<SpinProps>): void;
|
|
11
|
+
componentWillUnmount(): void;
|
|
12
|
+
private getSpinnerSize;
|
|
13
|
+
private renderIndicator;
|
|
14
|
+
protected OnRenderContent(): React.ReactElement;
|
|
15
|
+
}
|
|
16
|
+
export interface SpinProps extends UIProps {
|
|
17
|
+
spinning?: boolean;
|
|
18
|
+
size?: "small" | "middle" | "large";
|
|
19
|
+
tip?: React.ReactNode;
|
|
20
|
+
indicator?: React.ReactNode;
|
|
21
|
+
/** 延迟显示加载效果的时间(ms), Semi 默认 0 */
|
|
22
|
+
delay?: number;
|
|
23
|
+
/** 包裹模式下子内容的样式 */
|
|
24
|
+
childStyle?: React.CSSProperties;
|
|
25
|
+
/** 最外层 wrapper 的 className */
|
|
26
|
+
wrapperClassName?: string;
|
|
27
|
+
}
|
|
28
|
+
interface SpinState extends UIState {
|
|
29
|
+
_showSpinner: boolean;
|
|
30
|
+
}
|
|
31
|
+
export {};
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
type ToastTheme = "light" | "normal";
|
|
3
|
+
interface ToastConfig {
|
|
4
|
+
content: React.ReactNode;
|
|
5
|
+
duration?: number;
|
|
6
|
+
icon?: React.ReactNode;
|
|
7
|
+
showClose?: boolean;
|
|
8
|
+
theme?: ToastTheme;
|
|
9
|
+
/** 堆叠模式: 多个 Toast 纸摞重叠,hover 展开 */
|
|
10
|
+
stack?: boolean;
|
|
11
|
+
textMaxWidth?: number | string;
|
|
12
|
+
top?: number | string;
|
|
13
|
+
bottom?: number | string;
|
|
14
|
+
left?: number | string;
|
|
15
|
+
right?: number | string;
|
|
16
|
+
zIndex?: number;
|
|
17
|
+
getPopupContainer?: () => HTMLElement;
|
|
18
|
+
onClick?: (e: MouseEvent) => void;
|
|
19
|
+
onClose?: () => void;
|
|
20
|
+
id?: number;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* 轻量提示。
|
|
24
|
+
*/
|
|
25
|
+
export declare class Toast {
|
|
26
|
+
static config(cfg: Partial<ToastConfig>): void;
|
|
27
|
+
static open(config: ToastConfig): number;
|
|
28
|
+
/** 更新指定 id 的 Toast 内容 */
|
|
29
|
+
static update(id: number, config: Partial<ToastConfig>): void;
|
|
30
|
+
static close(id: number): void;
|
|
31
|
+
static destroyAll(): void;
|
|
32
|
+
static success(content: React.ReactNode, duration?: number): number;
|
|
33
|
+
static info(content: React.ReactNode, duration?: number): number;
|
|
34
|
+
static warning(content: React.ReactNode, duration?: number): number;
|
|
35
|
+
static error(content: React.ReactNode, duration?: number): number;
|
|
36
|
+
/**
|
|
37
|
+
* 消费 Context — 返回 { contextHolder, success, info, warning, error, close, open, destroyAll }.
|
|
38
|
+
* contextHolder 需插入到组件树中以获取上下文。
|
|
39
|
+
*/
|
|
40
|
+
static useToast(): ToastContextValue;
|
|
41
|
+
}
|
|
42
|
+
export interface ToastContextValue {
|
|
43
|
+
contextHolder: React.ReactElement;
|
|
44
|
+
open: (config: ToastConfig) => number;
|
|
45
|
+
update: (id: number, config: Partial<ToastConfig>) => void;
|
|
46
|
+
close: (id: number) => void;
|
|
47
|
+
destroyAll: () => void;
|
|
48
|
+
success: (content: React.ReactNode, duration?: number) => number;
|
|
49
|
+
info: (content: React.ReactNode, duration?: number) => number;
|
|
50
|
+
warning: (content: React.ReactNode, duration?: number) => number;
|
|
51
|
+
error: (content: React.ReactNode, duration?: number) => number;
|
|
52
|
+
}
|
|
53
|
+
export declare class ToastFactory {
|
|
54
|
+
/**
|
|
55
|
+
* 创建自定义配置的 Toast 实例.
|
|
56
|
+
* 返回的 toast 对象拥有与 Toast 静态方法相同的 API.
|
|
57
|
+
*/
|
|
58
|
+
static create(config: Partial<ToastConfig>): Omit<ToastContextValue, "contextHolder">;
|
|
59
|
+
}
|
|
60
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export { Banner } from "./Banner";
|
|
2
|
+
export type { BannerProps, BannerType } from "./Banner";
|
|
3
|
+
export { Feedback } from "./Feedback";
|
|
4
|
+
export type { FeedbackProps } from "./Feedback";
|
|
5
|
+
export { Notification } from "./Notification";
|
|
6
|
+
export { Popconfirm } from "./Popconfirm";
|
|
7
|
+
export type { PopconfirmProps } from "./Popconfirm";
|
|
8
|
+
export { Progress } from "./Progress";
|
|
9
|
+
export type { ProgressProps } from "./Progress";
|
|
10
|
+
export { Skeleton } from "./Skeleton";
|
|
11
|
+
export type { SkeletonProps } from "./Skeleton";
|
|
12
|
+
export { Spin } from "./Spin";
|
|
13
|
+
export type { SpinProps } from "./Spin";
|
|
14
|
+
export { Toast } from "./Toast";
|