one-design-next 0.0.4-alpha.57
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 +32 -0
- package/dist/_util/color.d.ts +103 -0
- package/dist/_util/color.js +250 -0
- package/dist/_util/date.d.ts +53 -0
- package/dist/_util/date.js +656 -0
- package/dist/_util/focusManager.d.ts +12 -0
- package/dist/_util/focusManager.js +56 -0
- package/dist/_util/queueMtPolyfill.d.ts +5 -0
- package/dist/_util/queueMtPolyfill.js +19 -0
- package/dist/_util/time.d.ts +44 -0
- package/dist/_util/time.js +150 -0
- package/dist/_util/useActive.d.ts +6 -0
- package/dist/_util/useActive.js +25 -0
- package/dist/alert/index.d.ts +63 -0
- package/dist/alert/index.js +137 -0
- package/dist/alert/style/index.css +199 -0
- package/dist/alert/style/index.d.ts +2 -0
- package/dist/alert/style/index.js +2 -0
- package/dist/auto-complete/index.d.ts +51 -0
- package/dist/auto-complete/index.js +104 -0
- package/dist/avatar/index.d.ts +68 -0
- package/dist/avatar/index.js +177 -0
- package/dist/avatar/primitive.d.ts +6 -0
- package/dist/avatar/primitive.js +23 -0
- package/dist/avatar/style/index.css +79 -0
- package/dist/avatar/style/index.d.ts +2 -0
- package/dist/avatar/style/index.js +2 -0
- package/dist/button/index.d.ts +15 -0
- package/dist/button/index.js +64 -0
- package/dist/button/style/index.css +347 -0
- package/dist/button/style/index.d.ts +2 -0
- package/dist/button/style/index.js +2 -0
- package/dist/calendar/index.d.ts +25 -0
- package/dist/calendar/index.js +379 -0
- package/dist/calendar/style/index.css +3 -0
- package/dist/calendar/style/index.d.ts +2 -0
- package/dist/calendar/style/index.js +2 -0
- package/dist/cascader/CascaderOptionContent.d.ts +20 -0
- package/dist/cascader/CascaderOptionContent.js +75 -0
- package/dist/cascader/Panel.d.ts +53 -0
- package/dist/cascader/Panel.js +116 -0
- package/dist/cascader/index.d.ts +54 -0
- package/dist/cascader/index.js +314 -0
- package/dist/cascader/style/index.css +458 -0
- package/dist/cascader/style/index.d.ts +2 -0
- package/dist/cascader/style/index.js +2 -0
- package/dist/cascader/utils.d.ts +12 -0
- package/dist/cascader/utils.js +85 -0
- package/dist/chart/index.d.ts +14 -0
- package/dist/chart/index.js +11 -0
- package/dist/chart/style/index.css +0 -0
- package/dist/chart/style/index.d.ts +2 -0
- package/dist/chart/style/index.js +2 -0
- package/dist/checkbox/Checkbox.d.ts +69 -0
- package/dist/checkbox/Checkbox.js +148 -0
- package/dist/checkbox/Context.d.ts +21 -0
- package/dist/checkbox/Context.js +2 -0
- package/dist/checkbox/Group.d.ts +49 -0
- package/dist/checkbox/Group.js +125 -0
- package/dist/checkbox/index.d.ts +5 -0
- package/dist/checkbox/index.js +3 -0
- package/dist/checkbox/style/index.css +306 -0
- package/dist/checkbox/style/index.d.ts +2 -0
- package/dist/checkbox/style/index.js +2 -0
- package/dist/collapse/index.d.ts +43 -0
- package/dist/collapse/index.js +111 -0
- package/dist/collapse/primitive.d.ts +21 -0
- package/dist/collapse/primitive.js +107 -0
- package/dist/collapse/style/index.css +63 -0
- package/dist/collapse/style/index.d.ts +2 -0
- package/dist/collapse/style/index.js +2 -0
- package/dist/color-picker/index.d.ts +55 -0
- package/dist/color-picker/index.js +588 -0
- package/dist/color-picker/style/index.css +153 -0
- package/dist/color-picker/style/index.d.ts +2 -0
- package/dist/color-picker/style/index.js +2 -0
- package/dist/config-provider/index.d.ts +46 -0
- package/dist/config-provider/index.js +37 -0
- package/dist/date-picker/MonthPicker.d.ts +15 -0
- package/dist/date-picker/MonthPicker.js +134 -0
- package/dist/date-picker/QuarterPicker.d.ts +15 -0
- package/dist/date-picker/QuarterPicker.js +135 -0
- package/dist/date-picker/YearPicker.d.ts +13 -0
- package/dist/date-picker/YearPicker.js +81 -0
- package/dist/date-picker/index.d.ts +172 -0
- package/dist/date-picker/index.js +1138 -0
- package/dist/date-picker/style/index.css +548 -0
- package/dist/date-picker/style/index.d.ts +2 -0
- package/dist/date-picker/style/index.js +2 -0
- package/dist/date-range-picker/index.d.ts +46 -0
- package/dist/date-range-picker/index.js +1034 -0
- package/dist/dialog/index.d.ts +132 -0
- package/dist/dialog/index.js +282 -0
- package/dist/dialog/style/index.css +252 -0
- package/dist/dialog/style/index.d.ts +2 -0
- package/dist/dialog/style/index.js +2 -0
- package/dist/dialog/useModalPosition.d.ts +6 -0
- package/dist/dialog/useModalPosition.js +34 -0
- package/dist/drawer/index.d.ts +76 -0
- package/dist/drawer/index.js +186 -0
- package/dist/drawer/style/index.css +235 -0
- package/dist/drawer/style/index.d.ts +2 -0
- package/dist/drawer/style/index.js +2 -0
- package/dist/dropdown/index.d.ts +86 -0
- package/dist/dropdown/index.js +836 -0
- package/dist/dropdown/style/index.css +236 -0
- package/dist/dropdown/style/index.d.ts +2 -0
- package/dist/dropdown/style/index.js +2 -0
- package/dist/hover-fill/index.d.ts +43 -0
- package/dist/hover-fill/index.js +222 -0
- package/dist/hover-fill/style/index.css +38 -0
- package/dist/hover-fill/style/index.d.ts +2 -0
- package/dist/hover-fill/style/index.js +2 -0
- package/dist/icon/index.d.ts +11 -0
- package/dist/icon/index.js +95 -0
- package/dist/icon/style/index.css +15 -0
- package/dist/icon/style/index.d.ts +2 -0
- package/dist/icon/style/index.js +2 -0
- package/dist/icon/svg/alert/alert-circle-filled.svg +1 -0
- package/dist/icon/svg/alert/alert-circle.svg +1 -0
- package/dist/icon/svg/alert/help-circle-filled.svg +1 -0
- package/dist/icon/svg/alert/help-circle.svg +1 -0
- package/dist/icon/svg/alert/info-circle-filled.svg +1 -0
- package/dist/icon/svg/alert/info-circle.svg +1 -0
- package/dist/icon/svg/alert/stop.svg +1 -0
- package/dist/icon/svg/alert/warning-filled.svg +1 -0
- package/dist/icon/svg/alert/warning.svg +1 -0
- package/dist/icon/svg/content/QRcode.svg +1 -0
- package/dist/icon/svg/content/bell-filled.svg +1 -0
- package/dist/icon/svg/content/bell.svg +1 -0
- package/dist/icon/svg/content/bidding.svg +1 -0
- package/dist/icon/svg/content/calendar.svg +1 -0
- package/dist/icon/svg/content/code.svg +1 -0
- package/dist/icon/svg/content/customColumn.svg +1 -0
- package/dist/icon/svg/content/data.svg +1 -0
- package/dist/icon/svg/content/dataReport-filled.svg +1 -0
- package/dist/icon/svg/content/dataReport.svg +1 -0
- package/dist/icon/svg/content/download-1.svg +1 -0
- package/dist/icon/svg/content/download-filled.svg +1 -0
- package/dist/icon/svg/content/download.svg +1 -0
- package/dist/icon/svg/content/exchange.svg +1 -0
- package/dist/icon/svg/content/filter-filled.svg +1 -0
- package/dist/icon/svg/content/filter.svg +1 -0
- package/dist/icon/svg/content/hot-filled.svg +1 -0
- package/dist/icon/svg/content/hot.svg +1 -0
- package/dist/icon/svg/content/link.svg +1 -0
- package/dist/icon/svg/content/location.svg +1 -0
- package/dist/icon/svg/content/maxSize.svg +1 -0
- package/dist/icon/svg/content/mobile-filled.svg +1 -0
- package/dist/icon/svg/content/mobile.svg +1 -0
- package/dist/icon/svg/content/mute.svg +1 -0
- package/dist/icon/svg/content/mutiImage-filled.svg +1 -0
- package/dist/icon/svg/content/mutiImage.svg +1 -0
- package/dist/icon/svg/content/refresh.svg +1 -0
- package/dist/icon/svg/content/report.svg +1 -0
- package/dist/icon/svg/content/save.svg +1 -0
- package/dist/icon/svg/content/search-bold.svg +1 -0
- package/dist/icon/svg/content/search-filled.svg +1 -0
- package/dist/icon/svg/content/search.svg +1 -0
- package/dist/icon/svg/content/setting.svg +1 -0
- package/dist/icon/svg/content/share.svg +1 -0
- package/dist/icon/svg/content/sort.svg +1 -0
- package/dist/icon/svg/content/sound.svg +1 -0
- package/dist/icon/svg/content/sticker-filled.svg +1 -0
- package/dist/icon/svg/content/sticker.svg +1 -0
- package/dist/icon/svg/content/tag-filled.svg +1 -0
- package/dist/icon/svg/content/tag.svg +1 -0
- package/dist/icon/svg/content/thumbDown-filled.svg +1 -0
- package/dist/icon/svg/content/thumbDown.svg +1 -0
- package/dist/icon/svg/content/thumbUp-filled.svg +1 -0
- package/dist/icon/svg/content/thumbUp.svg +1 -0
- package/dist/icon/svg/content/time-bold.svg +1 -0
- package/dist/icon/svg/content/time.svg +1 -0
- package/dist/icon/svg/content/verify.svg +1 -0
- package/dist/icon/svg/content/video.svg +1 -0
- package/dist/icon/svg/content/videoScreenshot.svg +1 -0
- package/dist/icon/svg/content/zoomIn.svg +1 -0
- package/dist/icon/svg/content/zoomOut.svg +1 -0
- package/dist/icon/svg/data/compare.svg +1 -0
- package/dist/icon/svg/data/histogram.svg +1 -0
- package/dist/icon/svg/editor/cancel-circle-filled.svg +1 -0
- package/dist/icon/svg/editor/cancel-circle.svg +1 -0
- package/dist/icon/svg/editor/cancel.svg +1 -0
- package/dist/icon/svg/editor/check-circle-filled.svg +1 -0
- package/dist/icon/svg/editor/check-circle.svg +1 -0
- package/dist/icon/svg/editor/check.svg +1 -0
- package/dist/icon/svg/editor/copy.svg +1 -0
- package/dist/icon/svg/editor/custom-filled.svg +1 -0
- package/dist/icon/svg/editor/custom.svg +1 -0
- package/dist/icon/svg/editor/delete.svg +1 -0
- package/dist/icon/svg/editor/deleteAD-filled.svg +1 -0
- package/dist/icon/svg/editor/draggable.svg +1 -0
- package/dist/icon/svg/editor/edit.svg +1 -0
- package/dist/icon/svg/editor/import.svg +1 -0
- package/dist/icon/svg/editor/minus-circle-filled.svg +1 -0
- package/dist/icon/svg/editor/minus-circle.svg +1 -0
- package/dist/icon/svg/editor/minus.svg +1 -0
- package/dist/icon/svg/editor/modify-bold.svg +1 -0
- package/dist/icon/svg/editor/modify.svg +1 -0
- package/dist/icon/svg/editor/multiCreate.svg +1 -0
- package/dist/icon/svg/editor/mutiSelect-filled.svg +1 -0
- package/dist/icon/svg/editor/mutiSelect.svg +1 -0
- package/dist/icon/svg/editor/pause-filled.svg +1 -0
- package/dist/icon/svg/editor/play-filled.svg +1 -0
- package/dist/icon/svg/editor/plus-circle-filled.svg +1 -0
- package/dist/icon/svg/editor/plus-circle.svg +1 -0
- package/dist/icon/svg/editor/plus.svg +1 -0
- package/dist/icon/svg/editor/send.svg +1 -0
- package/dist/icon/svg/editor/subdivide.svg +1 -0
- package/dist/icon/svg/navigation/arrowDown-filled.svg +1 -0
- package/dist/icon/svg/navigation/arrowDown.svg +1 -0
- package/dist/icon/svg/navigation/arrowLeft-filled.svg +1 -0
- package/dist/icon/svg/navigation/arrowLeft.svg +1 -0
- package/dist/icon/svg/navigation/arrowRight-filled.svg +1 -0
- package/dist/icon/svg/navigation/arrowRight.svg +1 -0
- package/dist/icon/svg/navigation/arrowUp-filled.svg +1 -0
- package/dist/icon/svg/navigation/arrowUp.svg +1 -0
- package/dist/icon/svg/navigation/bottom-filled.svg +1 -0
- package/dist/icon/svg/navigation/bottom.svg +1 -0
- package/dist/icon/svg/navigation/doubleLeft-filled.svg +1 -0
- package/dist/icon/svg/navigation/doubleLeft.svg +1 -0
- package/dist/icon/svg/navigation/doubleRight-filled.svg +1 -0
- package/dist/icon/svg/navigation/doubleRight.svg +1 -0
- package/dist/icon/svg/navigation/down-bold.svg +1 -0
- package/dist/icon/svg/navigation/down-filled.svg +1 -0
- package/dist/icon/svg/navigation/down.svg +1 -0
- package/dist/icon/svg/navigation/fall-filled.svg +1 -0
- package/dist/icon/svg/navigation/fold.svg +1 -0
- package/dist/icon/svg/navigation/fullScreen.svg +1 -0
- package/dist/icon/svg/navigation/left-bold.svg +1 -0
- package/dist/icon/svg/navigation/left-filled.svg +1 -0
- package/dist/icon/svg/navigation/left.svg +1 -0
- package/dist/icon/svg/navigation/leftFirst-filled.svg +1 -0
- package/dist/icon/svg/navigation/leftFirst.svg +1 -0
- package/dist/icon/svg/navigation/logout.svg +1 -0
- package/dist/icon/svg/navigation/menu.svg +1 -0
- package/dist/icon/svg/navigation/menuLeft-bold.svg +1 -0
- package/dist/icon/svg/navigation/menuLeft.svg +1 -0
- package/dist/icon/svg/navigation/menuRight-bold.svg +1 -0
- package/dist/icon/svg/navigation/menuRight.svg +1 -0
- package/dist/icon/svg/navigation/more-vertical.svg +1 -0
- package/dist/icon/svg/navigation/more.svg +1 -0
- package/dist/icon/svg/navigation/pointerLeft-filled.svg +1 -0
- package/dist/icon/svg/navigation/pointerRight-filled.svg +1 -0
- package/dist/icon/svg/navigation/right-bold.svg +1 -0
- package/dist/icon/svg/navigation/right-filled.svg +1 -0
- package/dist/icon/svg/navigation/right.svg +1 -0
- package/dist/icon/svg/navigation/rightLast-filled.svg +1 -0
- package/dist/icon/svg/navigation/rightLast.svg +1 -0
- package/dist/icon/svg/navigation/rise-filled.svg +1 -0
- package/dist/icon/svg/navigation/top-filled.svg +1 -0
- package/dist/icon/svg/navigation/top.svg +1 -0
- package/dist/icon/svg/navigation/unfold-filled.svg +1 -0
- package/dist/icon/svg/navigation/unfold.svg +1 -0
- package/dist/icon/svg/navigation/up-bold.svg +1 -0
- package/dist/icon/svg/navigation/up-filled.svg +1 -0
- package/dist/icon/svg/navigation/up.svg +1 -0
- package/dist/icon/svg/product/AIFile.svg +1 -0
- package/dist/icon/svg/product/LandingPage.svg +1 -0
- package/dist/icon/svg/product/addressBook.svg +1 -0
- package/dist/icon/svg/product/alarmClock.svg +1 -0
- package/dist/icon/svg/product/asset-square.svg +1 -0
- package/dist/icon/svg/product/assetProtecting.svg +1 -0
- package/dist/icon/svg/product/autoAD-square-filled.svg +1 -0
- package/dist/icon/svg/product/channels-square-filled.svg +1 -0
- package/dist/icon/svg/product/channels.svg +1 -0
- package/dist/icon/svg/product/chatBubble-filled.svg +1 -0
- package/dist/icon/svg/product/checkBadge.svg +1 -0
- package/dist/icon/svg/product/comments.svg +1 -0
- package/dist/icon/svg/product/container.svg +1 -0
- package/dist/icon/svg/product/dataAuth.svg +1 -0
- package/dist/icon/svg/product/dataBoard.svg +1 -0
- package/dist/icon/svg/product/dataBox.svg +1 -0
- package/dist/icon/svg/product/dataFolder.svg +1 -0
- package/dist/icon/svg/product/dataRising.svg +1 -0
- package/dist/icon/svg/product/detect.svg +1 -0
- package/dist/icon/svg/product/exposure-filled.svg +1 -0
- package/dist/icon/svg/product/extendedConfig.svg +1 -0
- package/dist/icon/svg/product/file-filled.svg +1 -0
- package/dist/icon/svg/product/flag.svg +1 -0
- package/dist/icon/svg/product/folderZip.svg +1 -0
- package/dist/icon/svg/product/folderzip-bold.svg +1 -0
- package/dist/icon/svg/product/guideBook.svg +1 -0
- package/dist/icon/svg/product/hosting.svg +1 -0
- package/dist/icon/svg/product/icon-outlined.svg +1 -0
- package/dist/icon/svg/product/idea-bold.svg +1 -0
- package/dist/icon/svg/product/idea.svg +1 -0
- package/dist/icon/svg/product/image-bold.svg +1 -0
- package/dist/icon/svg/product/image-filled.svg +1 -0
- package/dist/icon/svg/product/image.svg +1 -0
- package/dist/icon/svg/product/images.svg +1 -0
- package/dist/icon/svg/product/keyword.svg +1 -0
- package/dist/icon/svg/product/linkSquare.svg +1 -0
- package/dist/icon/svg/product/lock.svg +1 -0
- package/dist/icon/svg/product/magic-filled.svg +1 -0
- package/dist/icon/svg/product/magic.svg +1 -0
- package/dist/icon/svg/product/miniProgram.svg +1 -0
- package/dist/icon/svg/product/minigame-filled.svg +1 -0
- package/dist/icon/svg/product/mobilePage.svg +1 -0
- package/dist/icon/svg/product/moments-filled.svg +1 -0
- package/dist/icon/svg/product/notepad-bold.svg +1 -0
- package/dist/icon/svg/product/notepad.svg +1 -0
- package/dist/icon/svg/product/offiaccount-filled.svg +1 -0
- package/dist/icon/svg/product/playing.svg +1 -0
- package/dist/icon/svg/product/qualification.svg +1 -0
- package/dist/icon/svg/product/quickFile.svg +1 -0
- package/dist/icon/svg/product/ringStruckture.svg +1 -0
- package/dist/icon/svg/product/searchAD-filled.svg +1 -0
- package/dist/icon/svg/product/searchAD.svg +1 -0
- package/dist/icon/svg/product/shield-filled.svg +1 -0
- package/dist/icon/svg/product/shield.svg +1 -0
- package/dist/icon/svg/product/shop.svg +1 -0
- package/dist/icon/svg/product/shopping.svg +1 -0
- package/dist/icon/svg/product/star-filled.svg +1 -0
- package/dist/icon/svg/product/star.svg +1 -0
- package/dist/icon/svg/product/support-bold.svg +1 -0
- package/dist/icon/svg/product/target.svg +1 -0
- package/dist/icon/svg/product/targeting.svg +1 -0
- package/dist/icon/svg/product/task-filled.svg +1 -0
- package/dist/icon/svg/product/task.svg +1 -0
- package/dist/icon/svg/product/template.svg +1 -0
- package/dist/icon/svg/product/templateBag.svg +1 -0
- package/dist/icon/svg/product/text.svg +1 -0
- package/dist/icon/svg/product/treeStructure.svg +1 -0
- package/dist/icon/svg/product/user-circle.svg +1 -0
- package/dist/icon/svg/product/userList.svg +1 -0
- package/dist/icon/svg/product/userPack.svg +1 -0
- package/dist/icon/svg/product/users-bold.svg +1 -0
- package/dist/icon/svg/product/users.svg +1 -0
- package/dist/icon/svg/product/videoBag-filled.svg +1 -0
- package/dist/icon/svg/product/viewMask.svg +1 -0
- package/dist/icon/svg/product/wallet.svg +1 -0
- package/dist/icon/svg/product/wechatBubble-filled.svg +1 -0
- package/dist/icon/svg/product/wechatBubble.svg +1 -0
- package/dist/icon/svg/product/wechatSearch.svg +1 -0
- package/dist/icon/svg/product/writing.svg +1 -0
- package/dist/icon/svg-data.d.ts +221 -0
- package/dist/icon/svg-data.js +224 -0
- package/dist/icon/test-icons.html +122 -0
- package/dist/icon/types.d.ts +3 -0
- package/dist/icon/types.js +10 -0
- package/dist/index.d.ts +43 -0
- package/dist/index.js +46 -0
- package/dist/input/index.d.ts +80 -0
- package/dist/input/index.js +437 -0
- package/dist/input/style/index.css +256 -0
- package/dist/input/style/index.d.ts +2 -0
- package/dist/input/style/index.js +2 -0
- package/dist/input-number/index.d.ts +36 -0
- package/dist/input-number/index.js +429 -0
- package/dist/input-number/style/index.css +70 -0
- package/dist/input-number/style/index.d.ts +2 -0
- package/dist/input-number/style/index.js +2 -0
- package/dist/input-otp/index.d.ts +71 -0
- package/dist/input-otp/index.js +87 -0
- package/dist/input-otp/style/index.css +114 -0
- package/dist/input-otp/style/index.d.ts +2 -0
- package/dist/input-otp/style/index.js +2 -0
- package/dist/message/MessageBase.d.ts +86 -0
- package/dist/message/MessageBase.js +395 -0
- package/dist/message/MessageReact16.d.ts +2 -0
- package/dist/message/MessageReact16.js +86 -0
- package/dist/message/MessageReact18.d.ts +2 -0
- package/dist/message/MessageReact18.js +98 -0
- package/dist/message/index.d.ts +3 -0
- package/dist/message/index.js +7 -0
- package/dist/message/style/index.css +133 -0
- package/dist/message/style/index.d.ts +2 -0
- package/dist/message/style/index.js +2 -0
- package/dist/modal-base/gap.d.ts +14 -0
- package/dist/modal-base/gap.js +31 -0
- package/dist/modal-base/index.d.ts +26 -0
- package/dist/modal-base/index.js +110 -0
- package/dist/number-flow/index.d.ts +13 -0
- package/dist/number-flow/index.js +25 -0
- package/dist/number-flow/style/index.css +0 -0
- package/dist/number-flow/style/index.d.ts +2 -0
- package/dist/number-flow/style/index.js +2 -0
- package/dist/pagination/index.d.ts +38 -0
- package/dist/pagination/index.js +349 -0
- package/dist/pagination/style/index.css +128 -0
- package/dist/pagination/style/index.d.ts +2 -0
- package/dist/pagination/style/index.js +2 -0
- package/dist/pop-base/index.d.ts +123 -0
- package/dist/pop-base/index.js +349 -0
- package/dist/pop-base/mergeProps.d.ts +37 -0
- package/dist/pop-base/mergeProps.js +144 -0
- package/dist/pop-base/style/index.css +150 -0
- package/dist/pop-base/style/index.d.ts +2 -0
- package/dist/pop-base/style/index.js +2 -0
- package/dist/pop-base/useForkRef.d.ts +5 -0
- package/dist/pop-base/useForkRef.js +52 -0
- package/dist/popover/index.d.ts +4 -0
- package/dist/popover/index.js +9 -0
- package/dist/radio/index.d.ts +21 -0
- package/dist/radio/index.js +45 -0
- package/dist/radio/primitive.d.ts +5 -0
- package/dist/radio/primitive.js +28 -0
- package/dist/radio/style/index.css +219 -0
- package/dist/radio/style/index.d.ts +2 -0
- package/dist/radio/style/index.js +2 -0
- package/dist/scroll-area/index.d.ts +24 -0
- package/dist/scroll-area/index.js +96 -0
- package/dist/scroll-area/style/index.css +77 -0
- package/dist/scroll-area/style/index.d.ts +2 -0
- package/dist/scroll-area/style/index.js +2 -0
- package/dist/select/index.d.ts +85 -0
- package/dist/select/index.js +262 -0
- package/dist/select/style/index.css +1736 -0
- package/dist/select/style/index.d.ts +2 -0
- package/dist/select/style/index.js +2 -0
- package/dist/select/useIcons.d.ts +25 -0
- package/dist/select/useIcons.js +80 -0
- package/dist/slider/index.d.ts +69 -0
- package/dist/slider/index.js +264 -0
- package/dist/slider/style/index.css +237 -0
- package/dist/slider/style/index.d.ts +2 -0
- package/dist/slider/style/index.js +2 -0
- package/dist/style/base.css +298 -0
- package/dist/style/index.d.ts +6 -0
- package/dist/style/index.js +17 -0
- package/dist/switch/index.d.ts +12 -0
- package/dist/switch/index.js +55 -0
- package/dist/switch/style/index.css +152 -0
- package/dist/switch/style/index.d.ts +2 -0
- package/dist/switch/style/index.js +2 -0
- package/dist/table/TableCellContent.d.ts +20 -0
- package/dist/table/TableCellContent.js +77 -0
- package/dist/table/index.d.ts +97 -0
- package/dist/table/index.js +791 -0
- package/dist/table/style/index.css +320 -0
- package/dist/table/style/index.d.ts +2 -0
- package/dist/table/style/index.js +2 -0
- package/dist/table/useSelection.d.ts +13 -0
- package/dist/table/useSelection.js +259 -0
- package/dist/tabs/index.d.ts +51 -0
- package/dist/tabs/index.js +617 -0
- package/dist/tabs/style/index.css +369 -0
- package/dist/tabs/style/index.d.ts +2 -0
- package/dist/tabs/style/index.js +2 -0
- package/dist/text-swap/index.d.ts +58 -0
- package/dist/text-swap/index.js +280 -0
- package/dist/text-swap/style/index.css +32 -0
- package/dist/text-swap/style/index.d.ts +2 -0
- package/dist/text-swap/style/index.js +2 -0
- package/dist/time-picker/index.d.ts +67 -0
- package/dist/time-picker/index.js +945 -0
- package/dist/time-picker/style/index.css +166 -0
- package/dist/time-picker/style/index.d.ts +2 -0
- package/dist/time-picker/style/index.js +2 -0
- package/dist/tooltip/index.d.ts +10 -0
- package/dist/tooltip/index.js +178 -0
- package/dist/tree-select/index.d.ts +25 -0
- package/dist/tree-select/index.js +140 -0
- package/dist/tree-select/style/index.css +204 -0
- package/dist/tree-select/style/index.d.ts +1 -0
- package/dist/tree-select/style/index.js +1 -0
- package/package.json +124 -0
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="zh-CN">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8">
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
6
|
+
<title>图标测试页面</title>
|
|
7
|
+
<style>
|
|
8
|
+
body {
|
|
9
|
+
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
|
|
10
|
+
padding: 20px;
|
|
11
|
+
background: #f5f5f5;
|
|
12
|
+
}
|
|
13
|
+
.icon-grid {
|
|
14
|
+
display: grid;
|
|
15
|
+
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
|
|
16
|
+
gap: 20px;
|
|
17
|
+
margin-top: 20px;
|
|
18
|
+
}
|
|
19
|
+
.icon-item {
|
|
20
|
+
background: white;
|
|
21
|
+
padding: 20px;
|
|
22
|
+
border-radius: 8px;
|
|
23
|
+
box-shadow: 0 2px 8px rgba(0,0,0,0.1);
|
|
24
|
+
text-align: center;
|
|
25
|
+
}
|
|
26
|
+
.icon-item svg {
|
|
27
|
+
width: 48px;
|
|
28
|
+
height: 48px;
|
|
29
|
+
margin-bottom: 10px;
|
|
30
|
+
border: 1px solid #e0e0e0;
|
|
31
|
+
border-radius: 4px;
|
|
32
|
+
padding: 8px;
|
|
33
|
+
}
|
|
34
|
+
.icon-name {
|
|
35
|
+
font-size: 14px;
|
|
36
|
+
color: #333;
|
|
37
|
+
font-weight: 500;
|
|
38
|
+
}
|
|
39
|
+
.icon-status {
|
|
40
|
+
font-size: 12px;
|
|
41
|
+
color: #666;
|
|
42
|
+
margin-top: 5px;
|
|
43
|
+
}
|
|
44
|
+
.status-ok { color: #52c41a; }
|
|
45
|
+
.status-error { color: #ff4d4f; }
|
|
46
|
+
h1 {
|
|
47
|
+
color: #333;
|
|
48
|
+
text-align: center;
|
|
49
|
+
margin-bottom: 30px;
|
|
50
|
+
}
|
|
51
|
+
</style>
|
|
52
|
+
</head>
|
|
53
|
+
<body>
|
|
54
|
+
<h1>图标系统测试页面</h1>
|
|
55
|
+
<div class="icon-grid" id="iconGrid">
|
|
56
|
+
<!-- 图标将在这里动态生成 -->
|
|
57
|
+
</div>
|
|
58
|
+
|
|
59
|
+
<script>
|
|
60
|
+
// 模拟的图标数据(从svg-data.tsx中提取)
|
|
61
|
+
const iconData = {
|
|
62
|
+
'unfold-filled': ['M7.41 2.73a.75.75 0 0 1 1.18 0l2.44 3.05', 'A.75.75 0 0 1 10.44 7', 'H5.56a.75.75 0 0 1-.58-1.22z', 'M8.6 13.27a.75.75 0 0 1-1.18 0l-2.44-3.05', 'A.75.75 0 0 1 5.56 9h4.88a.75.75 0 0 1 .59 1.22z', 'M7.4 2.73a.75.75 0 0 1 1.18 0l2.44 3.05', 'A.75.75 0 0 1 10.44 7', 'H5.56a.75.75 0 0 1-.58-1.22zm1.2 10.54a.75.75 0 0 1-1.18 0l-2.44-3.05', 'A.75.75 0 0 1 5.56 9h4.88a.75.75 0 0 1 .59 1.22z'],
|
|
63
|
+
'time-bold': ['M10.85 3.08', 'A5.5 5.5 0 0 0 8 2.32a5.5 5.5 0 0 0-2.85.76 6 6 0 0 0-2.07 2.07', 'A5.5 5.5 0 0 0 2.32 8q0 1.55.76 2.85a6 6 0 0 0 2.07 2.07 5.5 5.5 0 0 0 2.85.76 5.5 5.5 0 0 0 2.85-.76 6 6 0 0 0 2.07-2.07', 'A5.5 5.5 0 0 0 13.68 8a5.5 5.5 0 0 0-.76-2.85 6 6 0 0 0-2.07-2.07m-9.18 8.59', 'A7 7 0 0 1 .68 8q0-1.98.99-3.67a7.3 7.3 0 0 1 2.66-2.66', 'A7 7 0 0 1 8 .68q1.98 0 3.67.99a7.3 7.3 0 0 1 2.66 2.66', 'A7 7 0 0 1 15.32 8a7 7 0 0 1-.99 3.67 7.3 7.3 0 0 1-2.66 2.66 7 7 0 0 1-3.67.99 7 7 0 0 1-3.67-.99 7.3 7.3 0 0 1-2.66-2.66m5.75-7.75', 'A.8.8 0 0 1 8 3.68q.35 0 .58.24t.24.58v3.18h2.78q.35 0 .58.24t.24.58a.8.8 0 0 1-.24.58.8.8 0 0 1-.58.24', 'H8a.8.8 0 0 1-.58-.24.8.8 0 0 1-.24-.58v-4q0-.35.24-.58m3.43-.84', 'A5.5 5.5 0 0 0 8 2.32a5.5 5.5 0 0 0-2.85.76 6 6 0 0 0-2.07 2.07', 'A5.5 5.5 0 0 0 2.32 8q0 1.55.76 2.85a6 6 0 0 0 2.07 2.07 5.5 5.5 0 0 0 2.85.76 5.5 5.5 0 0 0 2.85-.76 6 6 0 0 0 2.07-2.07', 'A5.5 5.5 0 0 0 13.68 8a5.5 5.5 0 0 0-.76-2.85 6 6 0 0 0-2.07-2.07m-9.18 8.59', 'A7 7 0 0 1 .68 8q0-1.98.99-3.67a7.3 7.3 0 0 1 2.66-2.66', 'A7 7 0 0 1 8 .68q1.98 0 3.67.99a7.3 7.3 0 0 1 2.66 2.66', 'A7 7 0 0 1 15.32 8a7 7 0 0 1-.99 3.67 7.3 7.3 0 0 1-2.66 2.66 7 7 0 0 1-3.67.99 7 7 0 0 1-3.67-.99 7.3 7.3 0 0 1-2.66-2.66m5.75-7.75', 'A.8.8 0 0 1 8 3.68q.35 0 .58.24t.24.58v3.18h2.78q.35 0 .58.24t.24.58a.8.8 0 0 1-.24.58.8.8 0 0 1-.58.24', 'H8a.8.8 0 0 1-.58-.24.8.8 0 0 1-.24-.58v-4q0-.35.24-.58'],
|
|
64
|
+
'draggable': ['M10.22 11.56a1.33 1.33 0 1 1 0 2.66 1.33 1.33 0 0 1 0-2.67m0-9.77a1.33 1.33 0 1 1 0 2.66 1.33 1.33 0 0 1 0-2.66', 'M11.55 8', 'A1.33 1.33 0 1 0 8.9 8a1.33 1.33 0 0 0 2.67 0', 'M5.78 4.44a1.33 1.33 0 1 1 0-2.66 1.33 1.33 0 0 1 0 2.66', 'M4.44 12.9a1.33 1.33 0 1 0 2.67 0 1.33 1.33 0 0 0-2.67 0m1.34-3.56a1.33 1.33 0 1 1 0-2.66 1.33 1.33 0 0 1 0 2.66m4.44 2.22a1.33 1.33 0 1 1 0 2.67 1.33 1.33 0 0 1 0-2.67m0-9.77a1.33 1.33 0 1 1 0 2.66 1.33 1.33 0 0 1 0-2.66', 'M11.55 8', 'A1.33 1.33 0 1 0 8.9 8a1.33 1.33 0 0 0 2.67 0', 'M5.78 4.44a1.33 1.33 0 1 1 0-2.66 1.33 1.33 0 0 1 0 2.66', 'M4.44 12.9a1.33 1.33 0 1 0 2.67 0 1.33 1.33 0 0 0-2.67 0m1.34-3.56a1.33 1.33 0 1 1 0-2.66 1.33 1.33 0 0 1 0 2.66'],
|
|
65
|
+
'subdivide': ['m1.65 3.59 5.42-2.4a3 3 0 0 1 2.07 0l5.42 2.4c.87.38.86 1.3 0 1.68l-5.42 2.4c-.59.26-1.48.26-2.08 0l-5.41-2.4c-.87-.38-.86-1.3 0-1.68m.62.84 5.16 2.31c.36.16 1 .16 1.35 0l5.16-2.3-5.16-2.32a2 2 0 0 0-1.35 0z', 'M1.4 8.42a.5.5 0 1 1 .39-.93l5.55 2.53a2.3 2.3 0 0 0 1.46 0l5.6-2.52a.5.5 0 0 1 .38.92l-5.6 2.53c-.63.26-1.6.26-2.23 0zm0 3.5a.5.5 0 1 1 .39-.93l5.55 2.53a2.3 2.3 0 0 0 1.46 0', 'L14.4 11a.5.5 0 1 1 .38.92l-5.6 2.53c-.63.26-1.6.26-2.23 0zm.25-8.33 5.42-2.4a3 3 0 0 1 2.07 0l5.42 2.4c.87.38.86 1.3 0 1.68l-5.42 2.4c-.59.26-1.48.26-2.08 0l-5.41-2.4c-.87-.38-.86-1.3 0-1.68m.62.84 5.16 2.31c.36.16 1 .16 1.35 0l5.16-2.3-5.16-2.32a2 2 0 0 0-1.35 0z', 'M1.4 8.42a.5.5 0 1 1 .39-.93l5.55 2.53a2.3 2.3 0 0 0 1.46 0l5.6-2.52a.5.5 0 0 1 .38.92l-5.6 2.53c-.63.26-1.6.26-2.23 0zm0 3.5a.5.5 0 1 1 .39-.93l5.55 2.53a2.3 2.3 0 0 0 1.46 0', 'L14.4 11a.5.5 0 1 1 .38.92l-5.6 2.53c-.63.26-1.6.26-2.23 0z']
|
|
66
|
+
};
|
|
67
|
+
|
|
68
|
+
// 渲染图标
|
|
69
|
+
function renderIcon(name, paths) {
|
|
70
|
+
const svg = document.createElementNS('http://www.w3.org/2000/svg', 'svg');
|
|
71
|
+
svg.setAttribute('viewBox', '0 0 16 16');
|
|
72
|
+
svg.setAttribute('fill', 'currentColor');
|
|
73
|
+
svg.style.color = '#333';
|
|
74
|
+
|
|
75
|
+
paths.forEach((pathData, index) => {
|
|
76
|
+
const path = document.createElementNS('http://www.w3.org/2000/svg', 'path');
|
|
77
|
+
path.setAttribute('d', pathData);
|
|
78
|
+
path.setAttribute('fill-rule', 'evenodd');
|
|
79
|
+
svg.appendChild(path);
|
|
80
|
+
});
|
|
81
|
+
|
|
82
|
+
return svg;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
// 生成图标网格
|
|
86
|
+
function generateIconGrid() {
|
|
87
|
+
const grid = document.getElementById('iconGrid');
|
|
88
|
+
|
|
89
|
+
Object.entries(iconData).forEach(([name, paths]) => {
|
|
90
|
+
const iconItem = document.createElement('div');
|
|
91
|
+
iconItem.className = 'icon-item';
|
|
92
|
+
|
|
93
|
+
const svg = renderIcon(name, paths);
|
|
94
|
+
iconItem.appendChild(svg);
|
|
95
|
+
|
|
96
|
+
const iconName = document.createElement('div');
|
|
97
|
+
iconName.className = 'icon-name';
|
|
98
|
+
iconName.textContent = name;
|
|
99
|
+
iconItem.appendChild(iconName);
|
|
100
|
+
|
|
101
|
+
const iconStatus = document.createElement('div');
|
|
102
|
+
iconStatus.className = 'icon-status';
|
|
103
|
+
|
|
104
|
+
// 检查图标是否正常渲染
|
|
105
|
+
if (paths.length > 0 && paths.every(p => p && p.length > 0)) {
|
|
106
|
+
iconStatus.textContent = '✓ 正常';
|
|
107
|
+
iconStatus.className += ' status-ok';
|
|
108
|
+
} else {
|
|
109
|
+
iconStatus.textContent = '✗ 异常';
|
|
110
|
+
iconStatus.className += ' status-error';
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
iconItem.appendChild(iconStatus);
|
|
114
|
+
grid.appendChild(iconItem);
|
|
115
|
+
});
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
// 页面加载完成后生成图标
|
|
119
|
+
document.addEventListener('DOMContentLoaded', generateIconGrid);
|
|
120
|
+
</script>
|
|
121
|
+
</body>
|
|
122
|
+
</html>
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { svgData } from './svg-data';
|
|
2
|
+
export declare const adqIconNames: ("code" | "data" | "link" | "menu" | "search" | "template" | "time" | "video" | "filter" | "image" | "stop" | "text" | "sort" | "send" | "warning" | "draggable" | "writing" | "wechatSearch" | "wechatBubble" | "wechatBubble-filled" | "wallet" | "viewMask" | "videoBag-filled" | "users" | "users-bold" | "userPack" | "userList" | "user-circle" | "treeStructure" | "templateBag" | "task" | "task-filled" | "targeting" | "target" | "support-bold" | "star" | "star-filled" | "shopping" | "shop" | "shield" | "shield-filled" | "searchAD" | "searchAD-filled" | "ringStruckture" | "quickFile" | "qualification" | "playing" | "offiaccount-filled" | "notepad" | "notepad-bold" | "moments-filled" | "mobilePage" | "minigame-filled" | "miniProgram" | "magic" | "magic-filled" | "lock" | "linkSquare" | "keyword" | "images" | "image-filled" | "image-bold" | "idea" | "idea-bold" | "icon-outlined" | "hosting" | "guideBook" | "folderzip-bold" | "folderZip" | "flag" | "file-filled" | "extendedConfig" | "exposure-filled" | "detect" | "dataRising" | "dataFolder" | "dataBox" | "dataBoard" | "dataAuth" | "container" | "comments" | "checkBadge" | "chatBubble-filled" | "channels" | "channels-square-filled" | "autoAD-square-filled" | "assetProtecting" | "asset-square" | "alarmClock" | "addressBook" | "LandingPage" | "AIFile" | "subdivide" | "plus" | "plus-circle" | "plus-circle-filled" | "play-filled" | "pause-filled" | "mutiSelect" | "mutiSelect-filled" | "multiCreate" | "modify" | "modify-bold" | "minus" | "minus-circle" | "minus-circle-filled" | "import" | "edit" | "deleteAD-filled" | "delete" | "custom" | "custom-filled" | "copy" | "check" | "check-circle" | "check-circle-filled" | "cancel" | "cancel-circle" | "cancel-circle-filled" | "up" | "up-filled" | "up-bold" | "unfold" | "unfold-filled" | "top" | "top-filled" | "rise-filled" | "rightLast" | "rightLast-filled" | "right" | "right-filled" | "right-bold" | "pointerRight-filled" | "pointerLeft-filled" | "more" | "more-vertical" | "menuRight" | "menuRight-bold" | "menuLeft" | "menuLeft-bold" | "logout" | "leftFirst" | "leftFirst-filled" | "left" | "left-filled" | "left-bold" | "fullScreen" | "fold" | "fall-filled" | "down" | "down-filled" | "down-bold" | "doubleRight" | "doubleRight-filled" | "doubleLeft" | "doubleLeft-filled" | "bottom" | "bottom-filled" | "arrowUp" | "arrowUp-filled" | "arrowRight" | "arrowRight-filled" | "arrowLeft" | "arrowLeft-filled" | "arrowDown" | "arrowDown-filled" | "histogram" | "compare" | "warning-filled" | "info-circle" | "info-circle-filled" | "help-circle" | "help-circle-filled" | "alert-circle" | "alert-circle-filled" | "zoomOut" | "zoomIn" | "videoScreenshot" | "verify" | "time-bold" | "thumbUp" | "thumbUp-filled" | "thumbDown" | "thumbDown-filled" | "tag" | "tag-filled" | "sticker" | "sticker-filled" | "sound" | "share" | "setting" | "search-filled" | "search-bold" | "save" | "report" | "refresh" | "mutiImage" | "mutiImage-filled" | "mute" | "mobile" | "mobile-filled" | "maxSize" | "location" | "hot" | "hot-filled" | "filter-filled" | "exchange" | "download" | "download-filled" | "download-1" | "dataReport" | "dataReport-filled" | "customColumn" | "calendar" | "bidding" | "bell" | "bell-filled" | "QRcode")[];
|
|
3
|
+
export type SvgIconName = keyof typeof svgData;
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import './style';
|
|
2
|
+
export { Collapsible, CollapsibleContent, CollapsibleTrigger } from './collapse';
|
|
3
|
+
export { adqIconNames } from './icon';
|
|
4
|
+
export { MessageReact16, Message, type MessageProps, type MessageIntent, type odnMessageState } from './message';
|
|
5
|
+
export { ModalClose, ModalContent, ModalDescription, ModalFooter, ModalHeader, ModalOverlay, ModalPortal, ModalRoot, ModalTitle, ModalTrigger, } from './modal-base';
|
|
6
|
+
export { type PopoverProps } from "./pop-base";
|
|
7
|
+
export { MONTHS, convertDateToString, convertDateRangeToString, convertQuarterToString, convertMonthToString, convertYearToString, isDayAfter, isDayBefore, isSameDay, isSameMonth, isLegalDateString, isLegalDateRangeString, isLegalWeekString, isLegalQuarterString, isLegalMonthString, isLegalYearString, parseWeekStringToRange, parseQuarterStringToRange, parseMonthStringToRange, parseYearStringToRange, getDefaultMaxDate, getDefaultMinDate, getStartOfWeek, getEndOfWeek, getStartOfQuarter, getEndOfQuarter } from './_util/date';
|
|
8
|
+
export { isLegalTimeString, isTimeAfter, isTimeBefore, isTimeEqual, timeToSeconds, secondsToTime } from './_util/time';
|
|
9
|
+
export { default as Alert, type AlertProps, type AlertRef } from './alert';
|
|
10
|
+
export { default as AutoComplete, type AutoCompleteProps } from './auto-complete';
|
|
11
|
+
export { default as Avatar, type AvatarProps } from './avatar';
|
|
12
|
+
export { default as Button, type ButtonProps } from './button';
|
|
13
|
+
export { default as Calendar, type CalendarProps } from './calendar';
|
|
14
|
+
export { default as Cascader, type CascaderProps } from './cascader';
|
|
15
|
+
export { default as Chart } from './chart';
|
|
16
|
+
export { default as Checkbox, type CheckboxGroupProps, type CheckboxProps } from './checkbox';
|
|
17
|
+
export { default as Collapse, type CollapseProps, type CollapseItem } from './collapse';
|
|
18
|
+
export { default as ColorPicker, type ColorPickerProps } from './color-picker';
|
|
19
|
+
export { default as ConfigProvider, type ConfigConsumerProps, type ConfigProviderProps } from './config-provider';
|
|
20
|
+
export { default as DatePicker, type DatePickerProps } from './date-picker';
|
|
21
|
+
export { default as DateRangePicker, type DatePickerRangeProps } from './date-range-picker';
|
|
22
|
+
export { default as Dialog, type DialogProps } from './dialog';
|
|
23
|
+
export { default as Drawer, type DrawerProps } from './drawer';
|
|
24
|
+
export { default as Dropdown, type DropdownProps } from './dropdown';
|
|
25
|
+
export { default as HoverFill, type HoverFillProps, type HoverFillState } from './hover-fill';
|
|
26
|
+
export { default as Icon, type IconProps } from './icon';
|
|
27
|
+
export { default as Input, type InputProps, type InputRef } from './input';
|
|
28
|
+
export { default as InputNumber } from './input-number';
|
|
29
|
+
export { default as InputOtp, type InputOtpProps, type InputOtpRef } from './input-otp';
|
|
30
|
+
export { default as NumberFlow, type NumberFlowProps, type Format } from './number-flow';
|
|
31
|
+
export { default as Pagination, type PaginationProps } from './pagination';
|
|
32
|
+
export { default as Popover } from './popover';
|
|
33
|
+
export { default as Radio, type RadioProps, type RadioGroupProps } from './radio';
|
|
34
|
+
export { default as ScrollArea, type ScrollAreaProps } from './scroll-area';
|
|
35
|
+
export { default as Select, type SelectProps } from './select';
|
|
36
|
+
export { default as Slider, type SliderProps } from './slider';
|
|
37
|
+
export { default as Switch, type SwitchProps } from './switch';
|
|
38
|
+
export { default as Tabs } from './tabs';
|
|
39
|
+
export { default as TimePicker, type TimePickerProps } from './time-picker';
|
|
40
|
+
export { default as Table, type TableProps, type ColumnType, type TableSortOrder, type RowSelectionType, type TableRowSelection, type TableRowExpansion } from './table';
|
|
41
|
+
export { default as TextSwap, type TextSwapProps, type TextSwapFlipProps } from './text-swap';
|
|
42
|
+
export { default as Tooltip } from './tooltip';
|
|
43
|
+
export { default as TreeSelect, type TreeSelectProps, type TreeNodeData } from './tree-select';
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
if (!React.useInsertionEffect) {
|
|
3
|
+
React.useInsertionEffect = React.useLayoutEffect;
|
|
4
|
+
}
|
|
5
|
+
import "./style";
|
|
6
|
+
export { Collapsible, CollapsibleContent, CollapsibleTrigger } from "./collapse";
|
|
7
|
+
export { adqIconNames } from "./icon";
|
|
8
|
+
export { MessageReact16, Message } from "./message";
|
|
9
|
+
export { ModalClose, ModalContent, ModalDescription, ModalFooter, ModalHeader, ModalOverlay, ModalPortal, ModalRoot, ModalTitle, ModalTrigger } from "./modal-base";
|
|
10
|
+
export { MONTHS, convertDateToString, convertDateRangeToString, convertQuarterToString, convertMonthToString, convertYearToString, isDayAfter, isDayBefore, isSameDay, isSameMonth, isLegalDateString, isLegalDateRangeString, isLegalWeekString, isLegalQuarterString, isLegalMonthString, isLegalYearString, parseWeekStringToRange, parseQuarterStringToRange, parseMonthStringToRange, parseYearStringToRange, getDefaultMaxDate, getDefaultMinDate, getStartOfWeek, getEndOfWeek, getStartOfQuarter, getEndOfQuarter } from "./_util/date";
|
|
11
|
+
export { isLegalTimeString, isTimeAfter, isTimeBefore, isTimeEqual, timeToSeconds, secondsToTime } from "./_util/time";
|
|
12
|
+
export { default as Alert } from "./alert";
|
|
13
|
+
export { default as AutoComplete } from "./auto-complete";
|
|
14
|
+
export { default as Avatar } from "./avatar";
|
|
15
|
+
export { default as Button } from "./button";
|
|
16
|
+
export { default as Calendar } from "./calendar";
|
|
17
|
+
export { default as Cascader } from "./cascader";
|
|
18
|
+
export { default as Chart } from "./chart";
|
|
19
|
+
export { default as Checkbox } from "./checkbox";
|
|
20
|
+
export { default as Collapse } from "./collapse";
|
|
21
|
+
export { default as ColorPicker } from "./color-picker";
|
|
22
|
+
export { default as ConfigProvider } from "./config-provider";
|
|
23
|
+
export { default as DatePicker } from "./date-picker";
|
|
24
|
+
export { default as DateRangePicker } from "./date-range-picker";
|
|
25
|
+
export { default as Dialog } from "./dialog";
|
|
26
|
+
export { default as Drawer } from "./drawer";
|
|
27
|
+
export { default as Dropdown } from "./dropdown";
|
|
28
|
+
export { default as HoverFill } from "./hover-fill";
|
|
29
|
+
export { default as Icon } from "./icon";
|
|
30
|
+
export { default as Input } from "./input";
|
|
31
|
+
export { default as InputNumber } from "./input-number";
|
|
32
|
+
export { default as InputOtp } from "./input-otp";
|
|
33
|
+
export { default as NumberFlow } from "./number-flow";
|
|
34
|
+
export { default as Pagination } from "./pagination";
|
|
35
|
+
export { default as Popover } from "./popover";
|
|
36
|
+
export { default as Radio } from "./radio";
|
|
37
|
+
export { default as ScrollArea } from "./scroll-area";
|
|
38
|
+
export { default as Select } from "./select";
|
|
39
|
+
export { default as Slider } from "./slider";
|
|
40
|
+
export { default as Switch } from "./switch";
|
|
41
|
+
export { default as Tabs } from "./tabs";
|
|
42
|
+
export { default as TimePicker } from "./time-picker";
|
|
43
|
+
export { default as Table } from "./table";
|
|
44
|
+
export { default as TextSwap } from "./text-swap";
|
|
45
|
+
export { default as Tooltip } from "./tooltip";
|
|
46
|
+
export { default as TreeSelect } from "./tree-select";
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './style';
|
|
3
|
+
export interface InputCount {
|
|
4
|
+
/** 最大字符数,不同于原生 `maxLength`,超出后标红但不会截断 */
|
|
5
|
+
max?: number;
|
|
6
|
+
/** 自定义字符计数,例如标准 emoji 长度大于 1,可以自定义计数策略将其改为 1 */
|
|
7
|
+
strategy?: (value: string) => number;
|
|
8
|
+
/** 自定义计数文本显示格式 */
|
|
9
|
+
formatter?: (params: {
|
|
10
|
+
count: number;
|
|
11
|
+
max: number;
|
|
12
|
+
}) => string;
|
|
13
|
+
}
|
|
14
|
+
export interface InputProps extends Omit<React.ComponentProps<'input'>, 'size' | 'onChange'> {
|
|
15
|
+
className?: string;
|
|
16
|
+
size?: 'small' | 'medium' | 'large';
|
|
17
|
+
intent?: 'normal' | 'danger';
|
|
18
|
+
onFocus?: (e: React.FocusEvent<HTMLInputElement>) => void;
|
|
19
|
+
onBlur?: (e: React.FocusEvent<HTMLInputElement>) => void;
|
|
20
|
+
light?: boolean;
|
|
21
|
+
leftElement?: React.ReactNode;
|
|
22
|
+
rightElement?: React.ReactNode;
|
|
23
|
+
allowClear?: boolean;
|
|
24
|
+
clearIconName?: string;
|
|
25
|
+
clearIcon?: React.ReactNode;
|
|
26
|
+
count?: InputCount;
|
|
27
|
+
onChange?: (e: React.ChangeEvent<HTMLInputElement>, value: string) => void;
|
|
28
|
+
}
|
|
29
|
+
export interface TextareaCount {
|
|
30
|
+
/** 最大字符数,不同于原生 `maxLength`,超出后标红但不会截断 */
|
|
31
|
+
max?: number;
|
|
32
|
+
/** 自定义字符计数,例如标准 emoji 长度大于 1,可以自定义计数策略将其改为 1 */
|
|
33
|
+
strategy?: (value: string) => number;
|
|
34
|
+
/** 自定义计数文本显示格式 */
|
|
35
|
+
formatter?: (params: {
|
|
36
|
+
count: number;
|
|
37
|
+
max: number;
|
|
38
|
+
}) => string;
|
|
39
|
+
}
|
|
40
|
+
export interface TextareaAutoSize {
|
|
41
|
+
minRows?: number;
|
|
42
|
+
maxRows?: number;
|
|
43
|
+
}
|
|
44
|
+
export interface TextareaProps extends Omit<React.ComponentProps<'textarea'>, 'size' | 'onChange'> {
|
|
45
|
+
className?: string;
|
|
46
|
+
size?: 'small' | 'medium' | 'large';
|
|
47
|
+
intent?: 'normal' | 'danger';
|
|
48
|
+
onFocus?: (e: React.FocusEvent<HTMLTextAreaElement>) => void;
|
|
49
|
+
onBlur?: (e: React.FocusEvent<HTMLTextAreaElement>) => void;
|
|
50
|
+
light?: boolean;
|
|
51
|
+
allowClear?: boolean;
|
|
52
|
+
clearIconName?: string;
|
|
53
|
+
clearIcon?: React.ReactNode;
|
|
54
|
+
count?: TextareaCount;
|
|
55
|
+
autoSize?: boolean | TextareaAutoSize;
|
|
56
|
+
topElement?: React.ReactNode;
|
|
57
|
+
bottomElement?: React.ReactNode;
|
|
58
|
+
onChange?: (e: React.ChangeEvent<HTMLTextAreaElement>, value: string) => void;
|
|
59
|
+
}
|
|
60
|
+
export interface InputRef extends HTMLDivElement {
|
|
61
|
+
focus: () => void;
|
|
62
|
+
blur: () => void;
|
|
63
|
+
input: HTMLInputElement | null;
|
|
64
|
+
}
|
|
65
|
+
export interface TextareaRef extends HTMLDivElement {
|
|
66
|
+
focus: () => void;
|
|
67
|
+
blur: () => void;
|
|
68
|
+
textarea: HTMLTextAreaElement | null;
|
|
69
|
+
}
|
|
70
|
+
export interface InputFocusOptions extends FocusOptions {
|
|
71
|
+
cursor?: 'start' | 'end' | 'all';
|
|
72
|
+
}
|
|
73
|
+
export declare function triggerFocus(element?: HTMLInputElement | HTMLTextAreaElement, option?: InputFocusOptions): void;
|
|
74
|
+
declare const InputComponent: React.ForwardRefExoticComponent<Omit<InputProps, "ref"> & React.RefAttributes<InputRef>>;
|
|
75
|
+
declare const Textarea: React.ForwardRefExoticComponent<Omit<TextareaProps, "ref"> & React.RefAttributes<TextareaRef>>;
|
|
76
|
+
type InputWithTextarea = typeof InputComponent & {
|
|
77
|
+
Textarea: typeof Textarea;
|
|
78
|
+
};
|
|
79
|
+
declare const Input: InputWithTextarea;
|
|
80
|
+
export default Input;
|