one-design-next 0.0.4-alpha.100
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 +134 -0
- package/dist/_util/canUseDom.d.ts +1 -0
- package/dist/_util/canUseDom.js +3 -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 +657 -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/_util/useControlledState.d.ts +8 -0
- package/dist/_util/useControlledState.js +30 -0
- package/dist/_util/useLayoutEffect.d.ts +4 -0
- package/dist/_util/useLayoutEffect.js +30 -0
- package/dist/alert/index.d.ts +63 -0
- package/dist/alert/index.js +137 -0
- package/dist/alert/style/index.css +184 -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 +64 -0
- package/dist/auto-complete/index.js +149 -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 +74 -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 +338 -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 +5 -0
- package/dist/calendar/style/index.d.ts +2 -0
- package/dist/calendar/style/index.js +2 -0
- package/dist/card/header.d.ts +26 -0
- package/dist/card/header.js +37 -0
- package/dist/card/index.d.ts +24 -0
- package/dist/card/index.js +31 -0
- package/dist/card/style/index.css +141 -0
- package/dist/card/style/index.d.ts +1 -0
- package/dist/card/style/index.js +1 -0
- package/dist/cascader/CascaderOptionContent.d.ts +20 -0
- package/dist/cascader/CascaderOptionContent.js +85 -0
- package/dist/cascader/Panel.d.ts +53 -0
- package/dist/cascader/Panel.js +131 -0
- package/dist/cascader/index.d.ts +59 -0
- package/dist/cascader/index.js +436 -0
- package/dist/cascader/style/index.css +414 -0
- package/dist/cascader/style/index.d.ts +2 -0
- package/dist/cascader/style/index.js +2 -0
- package/dist/cascader/utils.d.ts +14 -0
- package/dist/cascader/utils.js +109 -0
- package/dist/chart/index.d.ts +14 -0
- package/dist/chart/index.js +11 -0
- package/dist/chart/style/index.css +1 -0
- package/dist/chart/style/index.d.ts +2 -0
- package/dist/chart/style/index.js +2 -0
- package/dist/checkbox/Checkbox.d.ts +77 -0
- package/dist/checkbox/Checkbox.js +178 -0
- package/dist/checkbox/Context.d.ts +35 -0
- package/dist/checkbox/Context.js +2 -0
- package/dist/checkbox/Group.d.ts +68 -0
- package/dist/checkbox/Group.js +151 -0
- package/dist/checkbox/index.d.ts +5 -0
- package/dist/checkbox/index.js +3 -0
- package/dist/checkbox/style/index.css +330 -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 +103 -0
- package/dist/collapse/style/index.css +59 -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 +135 -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 +31 -0
- package/dist/date-picker/MonthPicker.js +161 -0
- package/dist/date-picker/QuarterPicker.d.ts +36 -0
- package/dist/date-picker/QuarterPicker.js +168 -0
- package/dist/date-picker/YearPicker.d.ts +13 -0
- package/dist/date-picker/YearPicker.js +84 -0
- package/dist/date-picker/index.d.ts +240 -0
- package/dist/date-picker/index.js +1249 -0
- package/dist/date-picker/style/index.css +511 -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 +58 -0
- package/dist/date-range-picker/index.js +1043 -0
- package/dist/dialog/index.d.ts +139 -0
- package/dist/dialog/index.js +300 -0
- package/dist/dialog/style/index.css +228 -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 +92 -0
- package/dist/drawer/index.js +214 -0
- package/dist/drawer/style/index.css +244 -0
- package/dist/drawer/style/index.d.ts +2 -0
- package/dist/drawer/style/index.js +2 -0
- package/dist/dropdown/index.d.ts +91 -0
- package/dist/dropdown/index.js +846 -0
- package/dist/dropdown/style/index.css +206 -0
- package/dist/dropdown/style/index.d.ts +2 -0
- package/dist/dropdown/style/index.js +2 -0
- package/dist/ellipsis-text/index.d.ts +19 -0
- package/dist/ellipsis-text/index.js +97 -0
- package/dist/ellipsis-text/style/index.css +1 -0
- package/dist/ellipsis-text/style/index.d.ts +2 -0
- package/dist/ellipsis-text/style/index.js +2 -0
- package/dist/empty/index.d.ts +20 -0
- package/dist/empty/index.js +2398 -0
- package/dist/empty/style/index.css +80 -0
- package/dist/empty/style/index.d.ts +2 -0
- package/dist/empty/style/index.js +2 -0
- package/dist/form/index.d.ts +106 -0
- package/dist/form/index.js +272 -0
- package/dist/form/style/index.css +84 -0
- package/dist/form/style/index.d.ts +2 -0
- package/dist/form/style/index.js +2 -0
- package/dist/hover-fill/index.d.ts +50 -0
- package/dist/hover-fill/index.js +258 -0
- package/dist/hover-fill/style/index.css +35 -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 +102 -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/card-distribute.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/chart.svg +3 -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/flame.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-add.svg +3 -0
- package/dist/icon/svg/product/user-circle.svg +1 -0
- package/dist/icon/svg/product/user-edit.svg +1 -0
- package/dist/icon/svg/product/user-pack.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 +479 -0
- package/dist/icon/svg-data.js +481 -0
- package/dist/icon/test-icons.html +122 -0
- package/dist/icon/types.d.ts +3 -0
- package/dist/icon/types.js +5 -0
- package/dist/index.d.ts +52 -0
- package/dist/index.js +57 -0
- package/dist/input/index.d.ts +82 -0
- package/dist/input/index.js +451 -0
- package/dist/input/style/index.css +244 -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 +41 -0
- package/dist/input-number/index.js +431 -0
- package/dist/input-number/style/index.css +65 -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 +110 -0
- package/dist/input-otp/style/index.d.ts +2 -0
- package/dist/input-otp/style/index.js +2 -0
- package/dist/layout/index.d.ts +3 -0
- package/dist/layout/index.js +3 -0
- package/dist/layout/layout.d.ts +32 -0
- package/dist/layout/layout.js +203 -0
- package/dist/layout/mp-layout.d.ts +68 -0
- package/dist/layout/mp-layout.js +204 -0
- package/dist/layout/style/index.css +464 -0
- package/dist/layout/style/index.d.ts +2 -0
- package/dist/layout/style/index.js +2 -0
- package/dist/link/index.d.ts +37 -0
- package/dist/link/index.js +46 -0
- package/dist/link/style/index.css +39 -0
- package/dist/link/style/index.d.ts +2 -0
- package/dist/link/style/index.js +2 -0
- package/dist/loading/index.d.ts +11 -0
- package/dist/loading/index.js +46 -0
- package/dist/loading/style/index.css +84 -0
- package/dist/loading/style/index.d.ts +2 -0
- package/dist/loading/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 +121 -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 +114 -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 +1 -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 +63 -0
- package/dist/pagination/index.js +424 -0
- package/dist/pagination/style/index.css +135 -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 +143 -0
- package/dist/pop-base/index.js +381 -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 +123 -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 +35 -0
- package/dist/radio/index.js +77 -0
- package/dist/radio/primitive.d.ts +5 -0
- package/dist/radio/primitive.js +28 -0
- package/dist/radio/style/index.css +224 -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 +29 -0
- package/dist/scroll-area/index.js +118 -0
- package/dist/scroll-area/style/index.css +107 -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 +86 -0
- package/dist/select/index.js +275 -0
- package/dist/select/style/index.css +1473 -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/select/utils.d.ts +9 -0
- package/dist/select/utils.js +40 -0
- package/dist/slider/index.d.ts +69 -0
- package/dist/slider/index.js +264 -0
- package/dist/slider/style/index.css +210 -0
- package/dist/slider/style/index.d.ts +2 -0
- package/dist/slider/style/index.js +2 -0
- package/dist/style/base.css +296 -0
- package/dist/style/index.d.ts +7 -0
- package/dist/style/index.js +18 -0
- package/dist/style/theme-adui.css +352 -0
- package/dist/switch/index.d.ts +12 -0
- package/dist/switch/index.js +55 -0
- package/dist/switch/style/index.css +149 -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 +82 -0
- package/dist/table/index.d.ts +97 -0
- package/dist/table/index.js +796 -0
- package/dist/table/style/index.css +301 -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 +268 -0
- package/dist/tabs/index.d.ts +51 -0
- package/dist/tabs/index.js +697 -0
- package/dist/tabs/style/index.css +305 -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 +29 -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 +153 -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 +180 -0
- package/dist/tree-select/style/index.d.ts +1 -0
- package/dist/tree-select/style/index.js +1 -0
- package/dist/virtual-list/index.d.ts +98 -0
- package/dist/virtual-list/index.js +56 -0
- package/dist/virtual-list/style/index.css +9 -0
- package/dist/virtual-list/style/index.d.ts +2 -0
- package/dist/virtual-list/style/index.js +2 -0
- package/package.json +132 -0
|
@@ -0,0 +1,180 @@
|
|
|
1
|
+
html {
|
|
2
|
+
--odn-ts-indent-width: 16px;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
@layer components {
|
|
6
|
+
.odn-ts .odn-select-tree-list-scrollbar-vertical {
|
|
7
|
+
width: 6px !important;
|
|
8
|
+
}
|
|
9
|
+
.odn-ts .odn-select-tree-list-scrollbar-vertical .odn-select-tree-list-scrollbar-thumb {
|
|
10
|
+
right: 2px;
|
|
11
|
+
background-color: var(--odn-color-border) !important;
|
|
12
|
+
}
|
|
13
|
+
.odn-select-tree-treenode {
|
|
14
|
+
position: relative;
|
|
15
|
+
display: flex;
|
|
16
|
+
align-items: center;
|
|
17
|
+
padding: 0 4px;
|
|
18
|
+
height: var(--odn-control-height);
|
|
19
|
+
cursor: pointer;
|
|
20
|
+
}
|
|
21
|
+
.odn-select-tree-treenode:hover {
|
|
22
|
+
background-color: var(--odn-color-black-1);
|
|
23
|
+
}
|
|
24
|
+
.odn-select-tree-treenode:active {
|
|
25
|
+
background-color: var(--odn-color-black-2);
|
|
26
|
+
}
|
|
27
|
+
.odn-select-tree-treenode.odn-select-tree-treenode-selected {
|
|
28
|
+
background-color: var(--odn-color-brand-1);
|
|
29
|
+
}
|
|
30
|
+
.odn-select-tree-treenode.odn-select-tree-treenode-selected:hover, .odn-select-tree-treenode.odn-select-tree-treenode-selected:active {
|
|
31
|
+
background-color: var(--odn-color-brand-1);
|
|
32
|
+
}
|
|
33
|
+
.odn-ts-multiple .odn-select-tree-switcher::after {
|
|
34
|
+
content: "";
|
|
35
|
+
position: absolute;
|
|
36
|
+
top: 0;
|
|
37
|
+
left: 0;
|
|
38
|
+
width: 100%;
|
|
39
|
+
height: 100%;
|
|
40
|
+
z-index: 2;
|
|
41
|
+
}
|
|
42
|
+
.odn-select-tree-switcher {
|
|
43
|
+
display: flex;
|
|
44
|
+
width: 24px;
|
|
45
|
+
height: 24px;
|
|
46
|
+
align-items: center;
|
|
47
|
+
justify-content: center;
|
|
48
|
+
margin-right: 4px;
|
|
49
|
+
color: var(--odn-color-black-11);
|
|
50
|
+
border-radius: 4px;
|
|
51
|
+
}
|
|
52
|
+
.odn-select-tree-switcher_open > svg {
|
|
53
|
+
transform: rotate(90deg);
|
|
54
|
+
}
|
|
55
|
+
.odn-select-tree-node-content-wrapper {
|
|
56
|
+
flex: 1;
|
|
57
|
+
display: flex;
|
|
58
|
+
align-items: center;
|
|
59
|
+
height: 100%;
|
|
60
|
+
}
|
|
61
|
+
.odn-select-tree-checkbox {
|
|
62
|
+
position: relative;
|
|
63
|
+
z-index: 2;
|
|
64
|
+
margin-right: 8px;
|
|
65
|
+
padding: 0;
|
|
66
|
+
color: var(--odn-color-text);
|
|
67
|
+
font-size: var(--odn-font-size);
|
|
68
|
+
line-height: 1;
|
|
69
|
+
list-style: none;
|
|
70
|
+
font-family: var(--odn-font-family);
|
|
71
|
+
position: relative;
|
|
72
|
+
white-space: nowrap;
|
|
73
|
+
cursor: pointer;
|
|
74
|
+
border-radius: 4px;
|
|
75
|
+
align-self: center;
|
|
76
|
+
}
|
|
77
|
+
.odn-select-tree-checkbox-inner {
|
|
78
|
+
display: block;
|
|
79
|
+
width: 16px;
|
|
80
|
+
height: 16px;
|
|
81
|
+
background-color: var(--odn-color-bg-container);
|
|
82
|
+
border: 1px solid var(--odn-color-black-6);
|
|
83
|
+
border-radius: 4px;
|
|
84
|
+
border-collapse: separate;
|
|
85
|
+
}
|
|
86
|
+
.odn-select-tree-checkbox-inner::after {
|
|
87
|
+
position: absolute;
|
|
88
|
+
top: 50%;
|
|
89
|
+
inset-inline-start: 25%;
|
|
90
|
+
display: table;
|
|
91
|
+
width: 5.7142857143px;
|
|
92
|
+
height: 9.1428571429px;
|
|
93
|
+
border: 2px solid var(--odn-color-white);
|
|
94
|
+
border-top: 0;
|
|
95
|
+
border-inline-start: 0;
|
|
96
|
+
transform: rotate(45deg) scale(0) translate(-50%, -50%);
|
|
97
|
+
opacity: 0;
|
|
98
|
+
content: "";
|
|
99
|
+
}
|
|
100
|
+
.odn-select-tree-checkbox:not(.odn-select-tree-checkbox-disabled):hover .odn-select-tree-checkbox-inner,
|
|
101
|
+
.odn-select-tree-checkbox:not(.odn-select-tree-checkbox-disabled):hover .odn-select-tree-checkbox-inner {
|
|
102
|
+
border-color: var(--odn-color-primary);
|
|
103
|
+
}
|
|
104
|
+
.odn-select-tree-checkbox:not(.odn-select-tree-checkbox-disabled):hover .odn-select-tree-checkbox-checked:not(.odn-select-tree-checkbox-disabled) .odn-select-tree-checkbox-inner {
|
|
105
|
+
background-color: var(--odn-color-primary-hover);
|
|
106
|
+
border-color: transparent;
|
|
107
|
+
}
|
|
108
|
+
.odn-select-tree-panel .odn-select-tree-checkbox:not(.odn-select-tree-checkbox-disabled):hover .odn-select-tree-checkbox-checked:not(.odn-select-tree-checkbox-disabled)::after {
|
|
109
|
+
border-color: var(--odn-color-primary-hover);
|
|
110
|
+
}
|
|
111
|
+
.odn-select-tree-checkbox-checked .odn-select-tree-checkbox-inner {
|
|
112
|
+
background-color: var(--odn-color-primary);
|
|
113
|
+
border-color: var(--odn-color-primary);
|
|
114
|
+
}
|
|
115
|
+
.odn-select-tree-checkbox-checked .odn-select-tree-checkbox-inner::after {
|
|
116
|
+
opacity: 1;
|
|
117
|
+
transform: rotate(45deg) scale(1) translate(-50%, -50%);
|
|
118
|
+
}
|
|
119
|
+
.odn-select-tree-checkbox-checked:not(.odn-select-tree-checkbox-disabled):hover .odn-select-tree-checkbox-inner,
|
|
120
|
+
.odn-select-tree-checkbox-checked:not(.odn-select-tree-checkbox-disabled):hover .odn-select-tree-checkbox-inner {
|
|
121
|
+
background-color: var(--odn-color-primary-hover);
|
|
122
|
+
border-color: transparent;
|
|
123
|
+
}
|
|
124
|
+
.odn-select-tree-checkbox-indeterminate .odn-select-tree-checkbox-inner {
|
|
125
|
+
background-color: var(--odn-color-primary);
|
|
126
|
+
border-color: var(--odn-color-border);
|
|
127
|
+
}
|
|
128
|
+
.odn-select-tree-checkbox-indeterminate .odn-select-tree-checkbox-inner::after {
|
|
129
|
+
top: 50%;
|
|
130
|
+
inset-inline-start: 50%;
|
|
131
|
+
width: 10px;
|
|
132
|
+
height: 2px;
|
|
133
|
+
background-color: var(--odn-color-white);
|
|
134
|
+
border: 0;
|
|
135
|
+
transform: translate(-50%, -50%) scale(1);
|
|
136
|
+
opacity: 1;
|
|
137
|
+
content: "";
|
|
138
|
+
}
|
|
139
|
+
.odn-select-tree-checkbox-indeterminate:hover .odn-select-tree-checkbox-inner {
|
|
140
|
+
background-color: var(--odn-color-primary);
|
|
141
|
+
border-color: var(--odn-color-primary);
|
|
142
|
+
}
|
|
143
|
+
.odn-select-tree-checkbox-disabled {
|
|
144
|
+
cursor: not-allowed;
|
|
145
|
+
}
|
|
146
|
+
.odn-select-tree-checkbox-disabled,
|
|
147
|
+
.odn-select-tree-checkbox-disabled .odn-select-tree-checkbox-input {
|
|
148
|
+
cursor: not-allowed;
|
|
149
|
+
pointer-events: none;
|
|
150
|
+
}
|
|
151
|
+
.odn-select-tree-checkbox-disabled .odn-select-tree-checkbox-inner {
|
|
152
|
+
background: var(--odn-color-bg-container-disabled);
|
|
153
|
+
border-color: var(--odn-color-border);
|
|
154
|
+
}
|
|
155
|
+
.odn-select-tree-checkbox-disabled .odn-select-tree-checkbox-inner::after {
|
|
156
|
+
border-color: var(--odn-color-text-disabled);
|
|
157
|
+
}
|
|
158
|
+
.odn-select-tree-checkbox-disabled::after {
|
|
159
|
+
display: none;
|
|
160
|
+
}
|
|
161
|
+
.odn-select-tree-checkbox-disabled + span {
|
|
162
|
+
color: var(--odn-color-text-disabled);
|
|
163
|
+
}
|
|
164
|
+
.odn-select-tree-checkbox-disabled.odn-select-tree-checkbox-indeterminate .odn-select-tree-checkbox-inner::after {
|
|
165
|
+
background: var(--odn-color-text-disabled);
|
|
166
|
+
}
|
|
167
|
+
.odn-select-tree-indent {
|
|
168
|
+
align-self: stretch;
|
|
169
|
+
white-space: nowrap;
|
|
170
|
+
user-select: none;
|
|
171
|
+
}
|
|
172
|
+
.odn-select-tree-indent-unit {
|
|
173
|
+
display: inline-block;
|
|
174
|
+
width: var(--odn-ts-indent-width);
|
|
175
|
+
}
|
|
176
|
+
.odn-select-tree-switcher-noop {
|
|
177
|
+
opacity: 0;
|
|
178
|
+
pointer-events: none;
|
|
179
|
+
}
|
|
180
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import './index.scss';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "./index.css";
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import './style';
|
|
3
|
+
export interface VirtualListProps<T = unknown> extends Omit<React.HTMLAttributes<HTMLElement>, 'children'> {
|
|
4
|
+
/**
|
|
5
|
+
* @description 列表项的渲染函数
|
|
6
|
+
*/
|
|
7
|
+
children: (item: T, index: number, props: {
|
|
8
|
+
style: React.CSSProperties;
|
|
9
|
+
offsetX: number;
|
|
10
|
+
}) => React.ReactNode;
|
|
11
|
+
/**
|
|
12
|
+
* @description 数据列表
|
|
13
|
+
*/
|
|
14
|
+
data: T[];
|
|
15
|
+
/**
|
|
16
|
+
* @description 列表高度
|
|
17
|
+
*/
|
|
18
|
+
height?: number;
|
|
19
|
+
/**
|
|
20
|
+
* @description 列表项最小高度
|
|
21
|
+
*/
|
|
22
|
+
itemHeight?: number;
|
|
23
|
+
/**
|
|
24
|
+
* @description 如果不满足虚拟滚动条件,设置列表仍使用容器高度
|
|
25
|
+
* @default false
|
|
26
|
+
*/
|
|
27
|
+
fullHeight?: boolean;
|
|
28
|
+
/**
|
|
29
|
+
* @description 匹配列表项的 key
|
|
30
|
+
*/
|
|
31
|
+
itemKey: React.Key | ((item: T) => React.Key);
|
|
32
|
+
/**
|
|
33
|
+
* @description 自定义列表 DOM 元素
|
|
34
|
+
* @default "div"
|
|
35
|
+
*/
|
|
36
|
+
component?: string | React.ComponentType;
|
|
37
|
+
/**
|
|
38
|
+
* @description 设置 `false` 将始终使用真实滚动而不是虚拟滚动
|
|
39
|
+
* @default true
|
|
40
|
+
*/
|
|
41
|
+
virtual?: boolean;
|
|
42
|
+
/**
|
|
43
|
+
* @description 默认 `scrollWidth` 与容器相同。设置此值后将显示水平滚动条,`scrollWidth` 将用作实际宽度而不是容器宽度。设置后,`virtual` 将始终启用
|
|
44
|
+
*/
|
|
45
|
+
scrollWidth?: number;
|
|
46
|
+
/**
|
|
47
|
+
* @description 自定义滚动条样式
|
|
48
|
+
*/
|
|
49
|
+
styles?: {
|
|
50
|
+
horizontalScrollBar?: React.CSSProperties;
|
|
51
|
+
horizontalScrollBarThumb?: React.CSSProperties;
|
|
52
|
+
verticalScrollBar?: React.CSSProperties;
|
|
53
|
+
verticalScrollBarThumb?: React.CSSProperties;
|
|
54
|
+
};
|
|
55
|
+
/**
|
|
56
|
+
* @description 是否显示滚动条
|
|
57
|
+
*/
|
|
58
|
+
showScrollBar?: boolean | 'optional';
|
|
59
|
+
/**
|
|
60
|
+
* @description 滚动事件回调
|
|
61
|
+
*/
|
|
62
|
+
onScroll?: React.UIEventHandler<HTMLElement>;
|
|
63
|
+
/**
|
|
64
|
+
* @description 虚拟滚动偏移值回调,提供从起始位置的逻辑偏移值。参数 info 包含 x 和 y 两个属性
|
|
65
|
+
*/
|
|
66
|
+
onVirtualScroll?: (info: {
|
|
67
|
+
x: number;
|
|
68
|
+
y: number;
|
|
69
|
+
}) => void;
|
|
70
|
+
/**
|
|
71
|
+
* @description 当渲染的列表项发生变化时触发
|
|
72
|
+
*/
|
|
73
|
+
onVisibleChange?: (visibleList: T[], fullList: T[]) => void;
|
|
74
|
+
/**
|
|
75
|
+
* @description 注入到内部容器的属性,仅在需要传递 aria 相关数据时使用
|
|
76
|
+
*/
|
|
77
|
+
innerProps?: Record<string, unknown>;
|
|
78
|
+
/**
|
|
79
|
+
* @description 渲染额外内容到 Filler。参数 info 包含 start、end、virtual、offsetX、offsetY、rtl、getSize 等属性
|
|
80
|
+
*/
|
|
81
|
+
extraRender?: (info: {
|
|
82
|
+
start: number;
|
|
83
|
+
end: number;
|
|
84
|
+
virtual: boolean;
|
|
85
|
+
offsetX: number;
|
|
86
|
+
offsetY: number;
|
|
87
|
+
rtl: boolean;
|
|
88
|
+
getSize: (startKey: React.Key, endKey?: React.Key) => {
|
|
89
|
+
top: number;
|
|
90
|
+
bottom: number;
|
|
91
|
+
};
|
|
92
|
+
}) => React.ReactNode;
|
|
93
|
+
}
|
|
94
|
+
/**
|
|
95
|
+
* VirtualList 虚拟列表
|
|
96
|
+
*/
|
|
97
|
+
declare const VirtualList: <T = unknown>({ component, className, styles, showScrollBar, ...otherProps }: VirtualListProps<T>) => React.ReactElement;
|
|
98
|
+
export default VirtualList;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
+
var _excluded = ["component", "className", "styles", "showScrollBar"];
|
|
3
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
4
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
5
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
6
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
7
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
8
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
9
|
+
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
10
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
11
|
+
import RcVirtualList from 'rc-virtual-list';
|
|
12
|
+
import * as React from 'react';
|
|
13
|
+
import "./style";
|
|
14
|
+
/**
|
|
15
|
+
* VirtualList 虚拟列表
|
|
16
|
+
*/
|
|
17
|
+
var VirtualList = function VirtualList(_ref) {
|
|
18
|
+
var _ref$component = _ref.component,
|
|
19
|
+
component = _ref$component === void 0 ? 'div' : _ref$component,
|
|
20
|
+
className = _ref.className,
|
|
21
|
+
styles = _ref.styles,
|
|
22
|
+
_ref$showScrollBar = _ref.showScrollBar,
|
|
23
|
+
showScrollBar = _ref$showScrollBar === void 0 ? true : _ref$showScrollBar,
|
|
24
|
+
otherProps = _objectWithoutProperties(_ref, _excluded);
|
|
25
|
+
var defaultStyles = {
|
|
26
|
+
verticalScrollBar: {
|
|
27
|
+
width: '6px'
|
|
28
|
+
},
|
|
29
|
+
verticalScrollBarThumb: {
|
|
30
|
+
right: 2,
|
|
31
|
+
backgroundColor: 'var(--odn-color-border)'
|
|
32
|
+
},
|
|
33
|
+
horizontalScrollBar: {
|
|
34
|
+
height: '6px'
|
|
35
|
+
},
|
|
36
|
+
horizontalScrollBarThumb: {
|
|
37
|
+
bottom: 2,
|
|
38
|
+
backgroundColor: 'var(--odn-color-border)'
|
|
39
|
+
}
|
|
40
|
+
};
|
|
41
|
+
var mergedStyles = _objectSpread(_objectSpread(_objectSpread({}, defaultStyles), styles), {}, {
|
|
42
|
+
verticalScrollBar: _objectSpread(_objectSpread({}, defaultStyles.verticalScrollBar), styles === null || styles === void 0 ? void 0 : styles.verticalScrollBar),
|
|
43
|
+
verticalScrollBarThumb: _objectSpread(_objectSpread({}, defaultStyles.verticalScrollBarThumb), styles === null || styles === void 0 ? void 0 : styles.verticalScrollBarThumb),
|
|
44
|
+
horizontalScrollBar: _objectSpread(_objectSpread({}, defaultStyles.horizontalScrollBar), styles === null || styles === void 0 ? void 0 : styles.horizontalScrollBar),
|
|
45
|
+
horizontalScrollBarThumb: _objectSpread(_objectSpread({}, defaultStyles.horizontalScrollBarThumb), styles === null || styles === void 0 ? void 0 : styles.horizontalScrollBarThumb)
|
|
46
|
+
});
|
|
47
|
+
return /*#__PURE__*/React.createElement(RcVirtualList, _extends({
|
|
48
|
+
"data-odn-virtual-list": true,
|
|
49
|
+
prefixCls: "odn-virtual-list",
|
|
50
|
+
component: component,
|
|
51
|
+
className: className,
|
|
52
|
+
styles: mergedStyles,
|
|
53
|
+
showScrollBar: showScrollBar
|
|
54
|
+
}, otherProps));
|
|
55
|
+
};
|
|
56
|
+
export default VirtualList;
|
package/package.json
ADDED
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "one-design-next",
|
|
3
|
+
"version": "0.0.4-alpha.100",
|
|
4
|
+
"description": "One Design Next from TAD@tencent.com",
|
|
5
|
+
"module": "dist/index.js",
|
|
6
|
+
"types": "dist/index.d.ts",
|
|
7
|
+
"type": "module",
|
|
8
|
+
"scripts": {
|
|
9
|
+
"start": "npm run dev",
|
|
10
|
+
"dev": "npm run build:skills && npm run build:variables && dumi dev",
|
|
11
|
+
"build": "father build && npm run build:styles",
|
|
12
|
+
"build:watch": "father dev",
|
|
13
|
+
"build:styles": "node scripts/build-styles.js",
|
|
14
|
+
"build:variables": "node scripts/build-variables.js",
|
|
15
|
+
"build:icons": "node scripts/build-icons.js",
|
|
16
|
+
"generate:llms": "node scripts/generate-llms.mjs",
|
|
17
|
+
"docs:build": "npm run build:skills && npm run build:variables && npm run generate:llms && dumi build",
|
|
18
|
+
"docs:preview": "dumi preview",
|
|
19
|
+
"prepare": "husky install && dumi setup",
|
|
20
|
+
"doctor": "father doctor",
|
|
21
|
+
"lint": "npm run lint:es && npm run lint:css",
|
|
22
|
+
"lint:css": "stylelint \"{components,test}/**/*.{css,scss}\"",
|
|
23
|
+
"lint:es": "eslint \"{components,test}/**/*.{js,jsx,ts,tsx}\"",
|
|
24
|
+
"prepublishOnly": "father doctor && npm run build",
|
|
25
|
+
"create-component": "node scripts/create-component.js",
|
|
26
|
+
"build:skills": "node scripts/build-skills.mjs",
|
|
27
|
+
"create-skill": "node scripts/create-skill.mjs"
|
|
28
|
+
},
|
|
29
|
+
"authors": [
|
|
30
|
+
"yijiejiang@tencent.com"
|
|
31
|
+
],
|
|
32
|
+
"license": "MIT",
|
|
33
|
+
"files": [
|
|
34
|
+
"dist"
|
|
35
|
+
],
|
|
36
|
+
"commitlint": {
|
|
37
|
+
"extends": [
|
|
38
|
+
"@commitlint/config-conventional"
|
|
39
|
+
]
|
|
40
|
+
},
|
|
41
|
+
"lint-staged": {
|
|
42
|
+
"*.{md,json}": [
|
|
43
|
+
"prettier --write --no-error-on-unmatched-pattern"
|
|
44
|
+
],
|
|
45
|
+
"*.{css,scss}": [
|
|
46
|
+
"stylelint --fix",
|
|
47
|
+
"prettier --write"
|
|
48
|
+
],
|
|
49
|
+
"*.{js,jsx}": [
|
|
50
|
+
"eslint --fix",
|
|
51
|
+
"prettier --write"
|
|
52
|
+
],
|
|
53
|
+
"*.{ts,tsx}": [
|
|
54
|
+
"eslint --fix",
|
|
55
|
+
"prettier --parser=typescript --write"
|
|
56
|
+
]
|
|
57
|
+
},
|
|
58
|
+
"publishConfig": {
|
|
59
|
+
"access": "public"
|
|
60
|
+
},
|
|
61
|
+
"engines": {
|
|
62
|
+
"node": ">=16.0.0"
|
|
63
|
+
},
|
|
64
|
+
"peerDependencies": {
|
|
65
|
+
"react": "~16.14.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^19.0.0-rc",
|
|
66
|
+
"react-dom": "~16.14.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^19.0.0-rc"
|
|
67
|
+
},
|
|
68
|
+
"devDependencies": {
|
|
69
|
+
"@commitlint/cli": "^17.1.2",
|
|
70
|
+
"@commitlint/config-conventional": "^17.1.0",
|
|
71
|
+
"@tailwindcss/postcss": "^4",
|
|
72
|
+
"@tweakpane/core": "^2.0.5",
|
|
73
|
+
"@types/d3": "^7.4.3",
|
|
74
|
+
"@types/d3-cloud": "^1.2.9",
|
|
75
|
+
"@types/fs-extra": "^11.0.4",
|
|
76
|
+
"@types/react": "^18.0.0",
|
|
77
|
+
"@types/react-dom": "^18.0.0",
|
|
78
|
+
"@umijs/lint": "latest",
|
|
79
|
+
"@umijs/plugins": "latest",
|
|
80
|
+
"@xyflow/react": "^12.10.2",
|
|
81
|
+
"copy-to-clipboard": "latest",
|
|
82
|
+
"d3": "^7.9.0",
|
|
83
|
+
"d3-cloud": "^1.2.9",
|
|
84
|
+
"dumi": "latest",
|
|
85
|
+
"eslint": "^9.32.0",
|
|
86
|
+
"father": "^4.1.0",
|
|
87
|
+
"fs-extra": "^11.3.3",
|
|
88
|
+
"github-slugger": "^2.0.0",
|
|
89
|
+
"glob": "latest",
|
|
90
|
+
"husky": "^8.0.1",
|
|
91
|
+
"lint-staged": "^13.0.3",
|
|
92
|
+
"lucide-react": "latest",
|
|
93
|
+
"p5i": "^0.6.0",
|
|
94
|
+
"prettier": "^3.7.4",
|
|
95
|
+
"prettier-plugin-organize-imports": "^4.3.0",
|
|
96
|
+
"prettier-plugin-packagejson": "^2.5.20",
|
|
97
|
+
"prism-react-renderer": "^2.4.1",
|
|
98
|
+
"react": "^18.0.0",
|
|
99
|
+
"react-dom": "^18.0.0",
|
|
100
|
+
"react-use-measure": "latest",
|
|
101
|
+
"sass": "latest",
|
|
102
|
+
"stylelint": "^16.23.1",
|
|
103
|
+
"stylelint-config-standard-scss": "^15.0.1",
|
|
104
|
+
"svgo": "latest",
|
|
105
|
+
"tailwind-merge": "^3.4.0",
|
|
106
|
+
"tailwindcss": "^4",
|
|
107
|
+
"tweakpane": "latest"
|
|
108
|
+
},
|
|
109
|
+
"dependencies": {
|
|
110
|
+
"@base-ui/react": "^1.3.0",
|
|
111
|
+
"@floating-ui/react": "^0.27.19",
|
|
112
|
+
"@number-flow/react": "^0.6.0",
|
|
113
|
+
"@radix-ui/react-avatar": "^1.1.11",
|
|
114
|
+
"@radix-ui/react-collapsible": "^1.1.12",
|
|
115
|
+
"@radix-ui/react-dialog": "^1.1.15",
|
|
116
|
+
"@radix-ui/react-dropdown-menu": "^2.1.16",
|
|
117
|
+
"@radix-ui/react-one-time-password-field": "^0.1.8",
|
|
118
|
+
"@radix-ui/react-radio-group": "^1.3.8",
|
|
119
|
+
"@radix-ui/react-scroll-area": "^1.2.10",
|
|
120
|
+
"@radix-ui/react-slot": "^1.2.4",
|
|
121
|
+
"@radix-ui/react-switch": "^1.2.6",
|
|
122
|
+
"clsx": "^2.1.1",
|
|
123
|
+
"motion": "^12.38.0",
|
|
124
|
+
"rc-cascader": "^3.34.0",
|
|
125
|
+
"rc-select": "^14.16.8",
|
|
126
|
+
"rc-slider": "^11.1.9",
|
|
127
|
+
"rc-table": "^7.55.1",
|
|
128
|
+
"rc-tree-select": "^5.27.0",
|
|
129
|
+
"rc-virtual-list": "^3.19.2",
|
|
130
|
+
"react-day-picker": "^9.14.0"
|
|
131
|
+
}
|
|
132
|
+
}
|