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,511 @@
|
|
|
1
|
+
html {
|
|
2
|
+
--odn-dp-padding-block-end: 16px;
|
|
3
|
+
--odn-dp-padding-inline: 16px;
|
|
4
|
+
--odn-dp-border-radius: 6px;
|
|
5
|
+
--odn-dp-nav-padding-block-start: 6px;
|
|
6
|
+
--odn-dp-nav-padding-block-end: 6px;
|
|
7
|
+
--odn-dp-nav-padding-inline: 16px;
|
|
8
|
+
--odn-dp-nav-shadow: 0 -1px 0 #e6e6e6 inset;
|
|
9
|
+
--odn-dp-nav-button-size: 30px;
|
|
10
|
+
--odn-dp-month-margin-block-start: 12px;
|
|
11
|
+
--odn-dp-month-margin-block-end: 0px;
|
|
12
|
+
--odn-dp-month-margin-inline-start: 0px;
|
|
13
|
+
--odn-dp-month-margin-inline-end: 0px;
|
|
14
|
+
--odn-dp-weekday-width: 30px;
|
|
15
|
+
--odn-dp-weekday-height: 30px;
|
|
16
|
+
--odn-dp-weekday-font-size: 12px;
|
|
17
|
+
--odn-dp-weekday-font-weight: 400;
|
|
18
|
+
--odn-dp-weekday-color: var(--odn-color-black-9);
|
|
19
|
+
--odn-dp-table-row-gap: 4px;
|
|
20
|
+
--odn-dp-day-size: 30px;
|
|
21
|
+
--odn-dp-td-hover-fill-offset-y: 0px;
|
|
22
|
+
--odn-dp-td-hover-fill-offset-x: 0px;
|
|
23
|
+
--odn-dp-hover-fill-color: var(--odn-color-black-1);
|
|
24
|
+
--odn-dp-shortcuts-width: 100px;
|
|
25
|
+
--odn-dp-grid-body-padding-block-start: 16px;
|
|
26
|
+
--odn-dp-grid-body-padding-block-end: 16px;
|
|
27
|
+
--odn-dp-grid-body-padding-inline-start: 16px;
|
|
28
|
+
--odn-dp-grid-body-padding-inline-end: 16px;
|
|
29
|
+
--odn-dp-month-grid-columns: 4;
|
|
30
|
+
--odn-dp-quarter-grid-columns: 4;
|
|
31
|
+
--odn-dp-year-grid-columns: 4;
|
|
32
|
+
--odn-dp-month-grid-item-width: 44px;
|
|
33
|
+
--odn-dp-month-grid-item-height: 36px;
|
|
34
|
+
--odn-dp-quarter-grid-item-width: 44px;
|
|
35
|
+
--odn-dp-quarter-grid-item-height: 36px;
|
|
36
|
+
--odn-dp-year-grid-item-width: 44px;
|
|
37
|
+
--odn-dp-year-grid-item-height: 36px;
|
|
38
|
+
--odn-dp-grid-popup-min-width: 242px;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
@layer components {
|
|
42
|
+
[data-odn-date-picker-popup] {
|
|
43
|
+
position: relative;
|
|
44
|
+
display: flex;
|
|
45
|
+
overflow: hidden;
|
|
46
|
+
user-select: none;
|
|
47
|
+
}
|
|
48
|
+
[data-odn-date-picker-shortcuts] {
|
|
49
|
+
flex: none;
|
|
50
|
+
padding-top: 8px;
|
|
51
|
+
padding-bottom: 8px;
|
|
52
|
+
width: var(--odn-dp-shortcuts-width);
|
|
53
|
+
box-shadow: 1px 0 0 0 #ebebeb;
|
|
54
|
+
}
|
|
55
|
+
[data-odn-date-picker-shortcut] {
|
|
56
|
+
padding-left: 12px;
|
|
57
|
+
padding-right: 8px;
|
|
58
|
+
max-width: 100%;
|
|
59
|
+
line-height: 30px;
|
|
60
|
+
overflow: hidden;
|
|
61
|
+
text-overflow: ellipsis;
|
|
62
|
+
white-space: nowrap;
|
|
63
|
+
}
|
|
64
|
+
[data-odn-date-picker-shortcut-active=true] {
|
|
65
|
+
font-weight: 600;
|
|
66
|
+
color: var(--odn-color-primary);
|
|
67
|
+
}
|
|
68
|
+
[data-odn-date-picker-popup-content] {
|
|
69
|
+
flex: 1;
|
|
70
|
+
}
|
|
71
|
+
[data-odn-date-picker-caption-nav] {
|
|
72
|
+
position: absolute;
|
|
73
|
+
top: 0;
|
|
74
|
+
right: 0;
|
|
75
|
+
left: 0;
|
|
76
|
+
display: flex;
|
|
77
|
+
align-items: center;
|
|
78
|
+
justify-content: space-between;
|
|
79
|
+
padding: var(--odn-dp-nav-padding-block-start) var(--odn-dp-nav-padding-inline) var(--odn-dp-nav-padding-block-end);
|
|
80
|
+
box-shadow: var(--odn-dp-nav-shadow);
|
|
81
|
+
}
|
|
82
|
+
[data-odn-date-picker-caption-nav-button] {
|
|
83
|
+
display: flex;
|
|
84
|
+
align-items: center;
|
|
85
|
+
justify-content: center;
|
|
86
|
+
width: var(--odn-dp-nav-button-size);
|
|
87
|
+
height: var(--odn-dp-nav-button-size);
|
|
88
|
+
background: none;
|
|
89
|
+
border: none;
|
|
90
|
+
outline: none;
|
|
91
|
+
cursor: pointer;
|
|
92
|
+
}
|
|
93
|
+
[data-odn-date-picker-caption-nav-icon] {
|
|
94
|
+
fill: currentcolor;
|
|
95
|
+
}
|
|
96
|
+
[data-odn-date-picker-caption-nav-button-disabled=true] {
|
|
97
|
+
color: #c7c7c7;
|
|
98
|
+
pointer-events: none;
|
|
99
|
+
}
|
|
100
|
+
[data-odn-date-picker-caption-select] {
|
|
101
|
+
position: relative;
|
|
102
|
+
display: inline-flex;
|
|
103
|
+
vertical-align: middle;
|
|
104
|
+
cursor: pointer;
|
|
105
|
+
pointer-events: initial;
|
|
106
|
+
}
|
|
107
|
+
[data-odn-date-picker-caption-select-input] {
|
|
108
|
+
position: relative;
|
|
109
|
+
z-index: 1;
|
|
110
|
+
padding-left: 11px;
|
|
111
|
+
width: 100%;
|
|
112
|
+
font-size: 13px;
|
|
113
|
+
font-weight: 600;
|
|
114
|
+
background-color: transparent;
|
|
115
|
+
border: none;
|
|
116
|
+
border-radius: 4px;
|
|
117
|
+
cursor: pointer;
|
|
118
|
+
appearance: none;
|
|
119
|
+
}
|
|
120
|
+
[data-odn-date-picker-caption-select-input] option {
|
|
121
|
+
background-color: transparent !important;
|
|
122
|
+
}
|
|
123
|
+
[data-odn-date-picker-caption-select-input]:focus {
|
|
124
|
+
outline: none;
|
|
125
|
+
}
|
|
126
|
+
[data-odn-date-picker-caption-select-month] [data-odn-date-picker-caption-select-input] {
|
|
127
|
+
letter-spacing: -0.5px;
|
|
128
|
+
}
|
|
129
|
+
[data-odn-date-picker-caption-icon] {
|
|
130
|
+
position: absolute;
|
|
131
|
+
top: 6px;
|
|
132
|
+
right: 3px;
|
|
133
|
+
fill: #6b6b6b;
|
|
134
|
+
}
|
|
135
|
+
[data-odn-date-picker-container] {
|
|
136
|
+
position: relative;
|
|
137
|
+
display: inline-block;
|
|
138
|
+
}
|
|
139
|
+
[data-odn-date-picker-container-picker=day] {
|
|
140
|
+
width: 132px;
|
|
141
|
+
}
|
|
142
|
+
[data-odn-date-picker-container-picker=week],
|
|
143
|
+
[data-odn-date-picker-container-picker=month],
|
|
144
|
+
[data-odn-date-picker-container-picker=quarter],
|
|
145
|
+
[data-odn-date-picker-container-picker=year] {
|
|
146
|
+
width: 120px;
|
|
147
|
+
}
|
|
148
|
+
[data-odn-date-picker-container-disabled=true] [data-odn-date-picker-input] {
|
|
149
|
+
color: var(--odn-color-black-8);
|
|
150
|
+
background: var(--odn-color-black-3);
|
|
151
|
+
border: 1px solid var(--odn-color-black-6);
|
|
152
|
+
cursor: not-allowed;
|
|
153
|
+
}
|
|
154
|
+
[data-odn-date-picker-container-disabled=true] [data-odn-date-picker-icon-container] {
|
|
155
|
+
cursor: not-allowed;
|
|
156
|
+
}
|
|
157
|
+
[data-odn-date-picker-container-disabled=true] [data-odn-date-picker-icon] {
|
|
158
|
+
color: var(--odn-color-black-8);
|
|
159
|
+
}
|
|
160
|
+
[data-odn-date-picker-container-selected=true][data-odn-date-picker-container-disabled=false][data-odn-date-picker-container-allow-clear=true]:hover [data-odn-date-picker-icon-clear] {
|
|
161
|
+
opacity: 1;
|
|
162
|
+
}
|
|
163
|
+
[data-odn-date-picker-container-selected=true][data-odn-date-picker-container-disabled=false][data-odn-date-picker-container-allow-clear=true]:hover [data-odn-date-picker-icon-calendar] {
|
|
164
|
+
opacity: 0;
|
|
165
|
+
}
|
|
166
|
+
[data-odn-date-picker-container-range] {
|
|
167
|
+
width: 242px;
|
|
168
|
+
}
|
|
169
|
+
[data-odn-date-picker-input] {
|
|
170
|
+
position: relative;
|
|
171
|
+
z-index: 1;
|
|
172
|
+
width: 100%;
|
|
173
|
+
min-height: 100%;
|
|
174
|
+
max-height: 100%;
|
|
175
|
+
font-family: inherit;
|
|
176
|
+
text-align: inherit;
|
|
177
|
+
line-height: 1.5;
|
|
178
|
+
color: #1f1f1f;
|
|
179
|
+
background-color: #fff;
|
|
180
|
+
border-radius: var(--odn-dp-border-radius);
|
|
181
|
+
outline: none;
|
|
182
|
+
appearance: none;
|
|
183
|
+
transition: 0.2s cubic-bezier(0.32, 0.72, 0, 1) background-color, 0.2s cubic-bezier(0.32, 0.72, 0, 1) border-color;
|
|
184
|
+
padding: 6px 32px 6px 12px;
|
|
185
|
+
height: 36px;
|
|
186
|
+
font-size: 14px;
|
|
187
|
+
border: 1px solid var(--odn-color-black-6);
|
|
188
|
+
}
|
|
189
|
+
[data-odn-date-picker-input-format] {
|
|
190
|
+
cursor: pointer;
|
|
191
|
+
}
|
|
192
|
+
[data-odn-date-picker-input]:not([data-odn-date-picker-input-disabled=true]):hover {
|
|
193
|
+
border: 1px solid var(--odn-color-black-7);
|
|
194
|
+
}
|
|
195
|
+
[data-odn-date-picker-input]:not([data-odn-date-picker-input-disabled=true]):focus {
|
|
196
|
+
border: 1px solid var(--odn-color-primary);
|
|
197
|
+
}
|
|
198
|
+
[data-odn-date-picker-container-allow-clear=false] [data-odn-date-picker-icon-container],
|
|
199
|
+
[data-odn-date-picker-container-selected=false] [data-odn-date-picker-icon-container] {
|
|
200
|
+
pointer-events: none;
|
|
201
|
+
}
|
|
202
|
+
[data-odn-date-picker-icon-container] {
|
|
203
|
+
position: absolute;
|
|
204
|
+
z-index: 1;
|
|
205
|
+
top: 50%;
|
|
206
|
+
right: 8px;
|
|
207
|
+
width: 16px;
|
|
208
|
+
height: 16px;
|
|
209
|
+
transform: translateY(-50%);
|
|
210
|
+
cursor: pointer;
|
|
211
|
+
}
|
|
212
|
+
[data-odn-date-picker-icon] {
|
|
213
|
+
position: absolute;
|
|
214
|
+
top: 0;
|
|
215
|
+
left: 0;
|
|
216
|
+
z-index: 1;
|
|
217
|
+
transition: all 0.25s cubic-bezier(0.32, 0.72, 0, 1);
|
|
218
|
+
}
|
|
219
|
+
[data-odn-date-picker-icon-calendar] {
|
|
220
|
+
color: var(--odn-color-black-9);
|
|
221
|
+
}
|
|
222
|
+
[data-odn-date-picker-icon-clear] {
|
|
223
|
+
opacity: 0;
|
|
224
|
+
color: var(--odn-color-black-7);
|
|
225
|
+
}
|
|
226
|
+
[data-odn-date-picker-icon-clear]:hover {
|
|
227
|
+
color: var(--odn-color-black-8);
|
|
228
|
+
}
|
|
229
|
+
[data-odn-date-picker-icon-clear]:active {
|
|
230
|
+
color: var(--odn-color-black-9);
|
|
231
|
+
}
|
|
232
|
+
[data-odn-date-picker-caption-nav-hover-fill] {
|
|
233
|
+
position: absolute;
|
|
234
|
+
top: 10px;
|
|
235
|
+
left: 16px;
|
|
236
|
+
height: var(--odn-dp-nav-button-size);
|
|
237
|
+
background-color: transparent;
|
|
238
|
+
pointer-events: none;
|
|
239
|
+
border-radius: 4px;
|
|
240
|
+
transition: left 0.15s cubic-bezier(0.32, 0.72, 0, 1), width 0.15s cubic-bezier(0.32, 0.72, 0, 1);
|
|
241
|
+
}
|
|
242
|
+
[data-odn-date-picker-caption-nav-hover-fill-inner] {
|
|
243
|
+
position: absolute;
|
|
244
|
+
top: 0;
|
|
245
|
+
left: 0;
|
|
246
|
+
width: 100%;
|
|
247
|
+
height: 100%;
|
|
248
|
+
background-color: transparent;
|
|
249
|
+
border-radius: 4px;
|
|
250
|
+
transition: transform 0.15s cubic-bezier(0.32, 0.72, 0, 1), background 0.15s cubic-bezier(0.32, 0.72, 0, 1);
|
|
251
|
+
}
|
|
252
|
+
[data-odn-date-picker-popup-picker=week] [data-odn-date-picker-td-hover-fill] {
|
|
253
|
+
width: calc(var(--odn-dp-day-size) * 7);
|
|
254
|
+
}
|
|
255
|
+
[data-odn-date-picker-td-hover-fill] {
|
|
256
|
+
position: absolute;
|
|
257
|
+
top: 0;
|
|
258
|
+
left: 0;
|
|
259
|
+
width: var(--odn-dp-day-size);
|
|
260
|
+
height: var(--odn-dp-day-size);
|
|
261
|
+
pointer-events: none;
|
|
262
|
+
transition: top 0.15s cubic-bezier(0.32, 0.72, 0, 1), left 0.15s cubic-bezier(0.32, 0.72, 0, 1);
|
|
263
|
+
}
|
|
264
|
+
[data-odn-date-picker-td-hover-fill-inner] {
|
|
265
|
+
position: absolute;
|
|
266
|
+
top: var(--odn-dp-td-hover-fill-offset-y);
|
|
267
|
+
left: var(--odn-dp-td-hover-fill-offset-x);
|
|
268
|
+
width: 100%;
|
|
269
|
+
height: 100%;
|
|
270
|
+
background-color: transparent;
|
|
271
|
+
border-radius: 4px;
|
|
272
|
+
transition: transform 0.15s cubic-bezier(0.32, 0.72, 0, 1), background 0.15s cubic-bezier(0.32, 0.72, 0, 1);
|
|
273
|
+
}
|
|
274
|
+
.rdp-root {
|
|
275
|
+
position: relative;
|
|
276
|
+
}
|
|
277
|
+
.rdp-months {
|
|
278
|
+
display: flex;
|
|
279
|
+
justify-content: space-between;
|
|
280
|
+
gap: 16px;
|
|
281
|
+
padding-right: var(--odn-dp-padding-inline);
|
|
282
|
+
padding-bottom: var(--odn-dp-padding-block-end);
|
|
283
|
+
padding-left: var(--odn-dp-padding-inline);
|
|
284
|
+
}
|
|
285
|
+
.rdp-month_caption {
|
|
286
|
+
text-align: center;
|
|
287
|
+
}
|
|
288
|
+
.rdp-caption_label,
|
|
289
|
+
.rdp-dropdowns {
|
|
290
|
+
position: relative;
|
|
291
|
+
z-index: 1;
|
|
292
|
+
display: flex;
|
|
293
|
+
justify-content: center;
|
|
294
|
+
padding: var(--odn-dp-nav-padding-block-start) calc(var(--odn-dp-nav-padding-inline) * -1) var(--odn-dp-nav-padding-block-end);
|
|
295
|
+
height: calc(var(--odn-dp-nav-button-size) + var(--odn-dp-nav-padding-block-start) + var(--odn-dp-nav-padding-block-end));
|
|
296
|
+
pointer-events: none;
|
|
297
|
+
}
|
|
298
|
+
.rdp-caption_label {
|
|
299
|
+
align-items: center;
|
|
300
|
+
font-size: 14px;
|
|
301
|
+
font-weight: 500;
|
|
302
|
+
}
|
|
303
|
+
.rdp-month_grid {
|
|
304
|
+
margin: var(--odn-dp-month-margin-block-start) var(--odn-dp-month-margin-inline-end) var(--odn-dp-month-margin-block-end) var(--odn-dp-month-margin-inline-start);
|
|
305
|
+
}
|
|
306
|
+
.rdp-weekday {
|
|
307
|
+
padding: 0;
|
|
308
|
+
padding-bottom: var(--odn-dp-table-row-gap);
|
|
309
|
+
width: var(--odn-dp-weekday-width);
|
|
310
|
+
height: calc(var(--odn-dp-weekday-height) + var(--odn-dp-table-row-gap));
|
|
311
|
+
vertical-align: middle;
|
|
312
|
+
text-align: center;
|
|
313
|
+
color: var(--odn-dp-weekday-color);
|
|
314
|
+
font-size: var(--odn-dp-weekday-font-size);
|
|
315
|
+
font-weight: var(--odn-dp-weekday-font-weight);
|
|
316
|
+
}
|
|
317
|
+
.rdp-week_number {
|
|
318
|
+
color: #c7c7c7;
|
|
319
|
+
font-weight: 400;
|
|
320
|
+
}
|
|
321
|
+
.rdp-week_number,
|
|
322
|
+
.rdp-weekdays,
|
|
323
|
+
.rdp-week {
|
|
324
|
+
border-bottom: none;
|
|
325
|
+
}
|
|
326
|
+
.rdp-week:not(:last-child) .rdp-day,
|
|
327
|
+
.rdp-week:not(:last-child) .rdp-week_number {
|
|
328
|
+
padding-bottom: var(--odn-dp-table-row-gap);
|
|
329
|
+
}
|
|
330
|
+
.rdp-day,
|
|
331
|
+
.rdp-week_number {
|
|
332
|
+
position: relative;
|
|
333
|
+
display: table-cell;
|
|
334
|
+
padding: 0;
|
|
335
|
+
width: var(--odn-dp-day-size);
|
|
336
|
+
height: var(--odn-dp-day-size);
|
|
337
|
+
vertical-align: middle;
|
|
338
|
+
text-align: center;
|
|
339
|
+
font-size: 13px;
|
|
340
|
+
overflow: hidden;
|
|
341
|
+
cursor: pointer;
|
|
342
|
+
transition: all 0.1s cubic-bezier(0.32, 0.72, 0, 1);
|
|
343
|
+
}
|
|
344
|
+
.rdp-disabled {
|
|
345
|
+
pointer-events: none;
|
|
346
|
+
color: #c7c7c7;
|
|
347
|
+
}
|
|
348
|
+
.rdp-hidden {
|
|
349
|
+
opacity: 0;
|
|
350
|
+
visibility: hidden;
|
|
351
|
+
}
|
|
352
|
+
.rdp-outside {
|
|
353
|
+
color: #c7c7c7;
|
|
354
|
+
}
|
|
355
|
+
.rdp-range_end [data-odn-date-picker-day] {
|
|
356
|
+
border-top-left-radius: 0;
|
|
357
|
+
border-bottom-left-radius: 0;
|
|
358
|
+
}
|
|
359
|
+
.rdp-range_start [data-odn-date-picker-day] {
|
|
360
|
+
border-top-right-radius: 0;
|
|
361
|
+
border-bottom-right-radius: 0;
|
|
362
|
+
}
|
|
363
|
+
.rdp-range_middle [data-odn-date-picker-day] {
|
|
364
|
+
font-weight: 400;
|
|
365
|
+
color: #1f1f1f;
|
|
366
|
+
background: #eaf0fd;
|
|
367
|
+
border-radius: 0;
|
|
368
|
+
}
|
|
369
|
+
[data-odn-date-picker-day] {
|
|
370
|
+
width: var(--odn-dp-day-size);
|
|
371
|
+
height: var(--odn-dp-day-size);
|
|
372
|
+
cursor: pointer;
|
|
373
|
+
background: none;
|
|
374
|
+
border: none;
|
|
375
|
+
outline: none;
|
|
376
|
+
border-radius: 4px;
|
|
377
|
+
}
|
|
378
|
+
[data-odn-date-picker-locale=enUS] [data-odn-date-picker-caption-select-year] {
|
|
379
|
+
width: 66px;
|
|
380
|
+
}
|
|
381
|
+
[data-odn-date-picker-locale=zhCN] [data-odn-date-picker-caption-select-year] {
|
|
382
|
+
width: 80px;
|
|
383
|
+
}
|
|
384
|
+
[data-odn-date-picker-caption-select-month] {
|
|
385
|
+
width: 55px;
|
|
386
|
+
}
|
|
387
|
+
[data-odn-date-picker-day-selected=true],
|
|
388
|
+
[data-odn-date-picker-day-range-start=true],
|
|
389
|
+
[data-odn-date-picker-day-range-end=true] {
|
|
390
|
+
color: #fff;
|
|
391
|
+
background-color: var(--odn-color-primary);
|
|
392
|
+
font-weight: 600;
|
|
393
|
+
}
|
|
394
|
+
[data-odn-date-picker-day-range-start=true],
|
|
395
|
+
[data-odn-date-picker-day-range-start-hover=true] {
|
|
396
|
+
border-top-right-radius: 0;
|
|
397
|
+
border-bottom-right-radius: 0;
|
|
398
|
+
}
|
|
399
|
+
[data-odn-date-picker-day-range-start-hover=true]:not([data-odn-date-picker-day-range-end=true]),
|
|
400
|
+
[data-odn-date-picker-day-range-end-hover=true]:not([data-odn-date-picker-day-range-start=true]) {
|
|
401
|
+
background: #d4e1fc;
|
|
402
|
+
}
|
|
403
|
+
[data-odn-date-picker-day-range-end=true],
|
|
404
|
+
[data-odn-date-picker-day-range-end-hover=true] {
|
|
405
|
+
border-top-left-radius: 0;
|
|
406
|
+
border-bottom-left-radius: 0;
|
|
407
|
+
}
|
|
408
|
+
[data-odn-date-picker-day-selected-range=true] {
|
|
409
|
+
background: #eaf0fd;
|
|
410
|
+
border-radius: 0;
|
|
411
|
+
}
|
|
412
|
+
[data-odn-date-picker-day-selected-range=true]:hover {
|
|
413
|
+
background: #d4e1fc;
|
|
414
|
+
}
|
|
415
|
+
[data-odn-date-picker-container-light=true] [data-odn-date-picker-input] {
|
|
416
|
+
background-color: transparent;
|
|
417
|
+
border: 1px solid transparent;
|
|
418
|
+
}
|
|
419
|
+
[data-odn-date-picker-container-light=true] [data-odn-date-picker-input]:hover {
|
|
420
|
+
border: 1px solid transparent;
|
|
421
|
+
}
|
|
422
|
+
[data-odn-date-picker-container-light=true] [data-odn-date-picker-input]:focus {
|
|
423
|
+
background-color: #fff;
|
|
424
|
+
border: 1px solid var(--odn-color-primary);
|
|
425
|
+
}
|
|
426
|
+
[data-odn-date-picker-grid-popup] {
|
|
427
|
+
min-width: var(--odn-dp-grid-popup-min-width);
|
|
428
|
+
}
|
|
429
|
+
[data-odn-date-picker-grid-caption] {
|
|
430
|
+
position: relative;
|
|
431
|
+
display: flex;
|
|
432
|
+
align-items: center;
|
|
433
|
+
justify-content: space-between;
|
|
434
|
+
padding: 0 var(--odn-dp-nav-padding-inline);
|
|
435
|
+
height: 42px;
|
|
436
|
+
font-size: 13px;
|
|
437
|
+
font-weight: 600;
|
|
438
|
+
}
|
|
439
|
+
[data-odn-date-picker-grid-caption] [data-odn-date-picker-caption-nav] {
|
|
440
|
+
line-height: 30px;
|
|
441
|
+
justify-content: center;
|
|
442
|
+
pointer-events: none;
|
|
443
|
+
}
|
|
444
|
+
[data-odn-date-picker-grid-body] {
|
|
445
|
+
display: grid;
|
|
446
|
+
row-gap: 4px;
|
|
447
|
+
align-items: center;
|
|
448
|
+
justify-content: space-between;
|
|
449
|
+
padding: var(--odn-dp-grid-body-padding-block-start) var(--odn-dp-grid-body-padding-inline-end) var(--odn-dp-grid-body-padding-block-end) var(--odn-dp-grid-body-padding-inline-start);
|
|
450
|
+
}
|
|
451
|
+
[data-odn-date-picker-grid-body-month] {
|
|
452
|
+
grid-template-columns: repeat(var(--odn-dp-month-grid-columns), auto);
|
|
453
|
+
}
|
|
454
|
+
[data-odn-date-picker-grid-body-month] [data-odn-date-picker-grid-item-wrapper],
|
|
455
|
+
[data-odn-date-picker-grid-body-month] [data-odn-date-picker-grid-item] {
|
|
456
|
+
width: var(--odn-dp-month-grid-item-width);
|
|
457
|
+
height: var(--odn-dp-month-grid-item-height);
|
|
458
|
+
}
|
|
459
|
+
[data-odn-date-picker-grid-body-quarter] {
|
|
460
|
+
grid-template-columns: repeat(var(--odn-dp-quarter-grid-columns), auto);
|
|
461
|
+
}
|
|
462
|
+
[data-odn-date-picker-grid-body-quarter] [data-odn-date-picker-grid-item-wrapper],
|
|
463
|
+
[data-odn-date-picker-grid-body-quarter] [data-odn-date-picker-grid-item] {
|
|
464
|
+
width: var(--odn-dp-quarter-grid-item-width);
|
|
465
|
+
height: var(--odn-dp-quarter-grid-item-height);
|
|
466
|
+
}
|
|
467
|
+
[data-odn-date-picker-grid-body-year] {
|
|
468
|
+
grid-template-columns: repeat(var(--odn-dp-year-grid-columns), auto);
|
|
469
|
+
}
|
|
470
|
+
[data-odn-date-picker-grid-body-year] [data-odn-date-picker-grid-item-wrapper],
|
|
471
|
+
[data-odn-date-picker-grid-body-year] [data-odn-date-picker-grid-item] {
|
|
472
|
+
width: var(--odn-dp-year-grid-item-width);
|
|
473
|
+
height: var(--odn-dp-year-grid-item-height);
|
|
474
|
+
}
|
|
475
|
+
[data-odn-date-picker-grid-item] {
|
|
476
|
+
display: flex;
|
|
477
|
+
align-items: center;
|
|
478
|
+
justify-content: center;
|
|
479
|
+
font-size: 14px;
|
|
480
|
+
border-radius: 6px;
|
|
481
|
+
cursor: pointer;
|
|
482
|
+
transition: all 0.25s cubic-bezier(0.32, 0.72, 0, 1);
|
|
483
|
+
}
|
|
484
|
+
[data-odn-date-picker-grid-item]:not([data-odn-date-picker-grid-item-disabled=true]):hover {
|
|
485
|
+
color: var(--odn-color-primary);
|
|
486
|
+
}
|
|
487
|
+
[data-odn-date-picker-grid-item-disabled=true] {
|
|
488
|
+
cursor: not-allowed;
|
|
489
|
+
color: #c7c7c7;
|
|
490
|
+
}
|
|
491
|
+
[data-odn-date-picker-grid-item][data-odn-date-picker-grid-item-active=true] {
|
|
492
|
+
color: #fff;
|
|
493
|
+
background-color: var(--odn-color-primary);
|
|
494
|
+
}
|
|
495
|
+
[data-odn-date-picker-grid-item][data-odn-date-picker-grid-item-active=true]:hover {
|
|
496
|
+
color: #fff;
|
|
497
|
+
}
|
|
498
|
+
[data-odn-date-picker-prefix] {
|
|
499
|
+
position: absolute;
|
|
500
|
+
z-index: 2;
|
|
501
|
+
top: 0;
|
|
502
|
+
left: 0;
|
|
503
|
+
height: 100%;
|
|
504
|
+
display: flex;
|
|
505
|
+
align-items: center;
|
|
506
|
+
padding-left: 11px;
|
|
507
|
+
padding-right: 4px;
|
|
508
|
+
color: var(--odn-color-black-9);
|
|
509
|
+
font-size: 14px;
|
|
510
|
+
}
|
|
511
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { DatePickerCommonProps } from '../date-picker';
|
|
3
|
+
import '../date-picker/style';
|
|
4
|
+
import { type PopoverProps } from '../pop-base';
|
|
5
|
+
export interface DatePickerRangeProps extends DatePickerCommonProps {
|
|
6
|
+
/**
|
|
7
|
+
* @description 值
|
|
8
|
+
*/
|
|
9
|
+
value?: [Date, Date] | null;
|
|
10
|
+
/**
|
|
11
|
+
* @description 值变化回调, 参数为日期区间和 info 对象
|
|
12
|
+
*/
|
|
13
|
+
onChange?: (date: [Date, Date] | null, info: {
|
|
14
|
+
dateString: string;
|
|
15
|
+
}) => void;
|
|
16
|
+
/**
|
|
17
|
+
* @description 开始日期选择回调
|
|
18
|
+
*/
|
|
19
|
+
onStartDaySelect?: (date?: Date) => void;
|
|
20
|
+
/**
|
|
21
|
+
* @description 结束日期选择回调
|
|
22
|
+
*/
|
|
23
|
+
onEndDaySelect?: (date?: Date) => void;
|
|
24
|
+
/**
|
|
25
|
+
* @description 快捷选项
|
|
26
|
+
*/
|
|
27
|
+
shortcuts?: {
|
|
28
|
+
label: string;
|
|
29
|
+
value?: [Date, Date];
|
|
30
|
+
active?: boolean;
|
|
31
|
+
onClick?: (e: React.MouseEvent<HTMLDivElement>) => void;
|
|
32
|
+
}[];
|
|
33
|
+
/**
|
|
34
|
+
* @description 自定义日期格式,当使用自定义格式时,将不提供 input 的输入功能
|
|
35
|
+
*/
|
|
36
|
+
format?: (date: [Date, Date] | null, info: {
|
|
37
|
+
dateString: string;
|
|
38
|
+
}) => string;
|
|
39
|
+
/**
|
|
40
|
+
* @description 最多选择天数
|
|
41
|
+
*/
|
|
42
|
+
maxDays?: number;
|
|
43
|
+
/**
|
|
44
|
+
* @description 最少选择天数
|
|
45
|
+
*/
|
|
46
|
+
minDays?: number;
|
|
47
|
+
/**
|
|
48
|
+
* @description 显示的月份数量
|
|
49
|
+
* @default 2
|
|
50
|
+
*/
|
|
51
|
+
numberOfMonths?: number;
|
|
52
|
+
/**
|
|
53
|
+
* @description Popover 属性透传
|
|
54
|
+
*/
|
|
55
|
+
popoverProps?: Omit<PopoverProps, 'popup' | 'children'>;
|
|
56
|
+
}
|
|
57
|
+
declare const DateRangePicker: ({ allowClear, minDate, maxDate, value: valueProp, onChange, visible: visibleProp, onVisibleChange, disabled, lang, disabledDays, placeholder, onStartDaySelect, onEndDaySelect, shortcuts, popupRender, light, triggerElement, popupStyle, captionLayout, captionPrevIcon, captionNextIcon, components, classNames, format, closeOnSelect, onClick, maxDays, minDays, numberOfMonths, prefix, popoverProps, ...otherProps }: DatePickerRangeProps) => React.JSX.Element;
|
|
58
|
+
export default DateRangePicker;
|