naive-ui 2.31.0 → 2.32.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +3197 -1769
- package/dist/index.prod.js +1 -1
- package/es/_internal/scrollbar/src/Scrollbar.d.ts +5 -0
- package/es/_internal/scrollbar/src/Scrollbar.js +49 -26
- package/es/_internal/scrollbar/src/styles/index.cssr.js +1 -1
- package/es/_internal/scrollbar/src/styles/rtl.cssr.d.ts +2 -0
- package/es/_internal/scrollbar/src/styles/rtl.cssr.js +10 -0
- package/es/_internal/scrollbar/styles/index.d.ts +1 -0
- package/es/_internal/scrollbar/styles/index.js +1 -0
- package/es/_internal/scrollbar/styles/rtl.d.ts +3 -0
- package/es/_internal/scrollbar/styles/rtl.js +6 -0
- package/es/_internal/selection/src/Selection.js +4 -2
- package/es/_internal/selection/src/styles/index.cssr.js +4 -1
- package/es/_mixins/index.d.ts +1 -0
- package/es/_mixins/index.js +1 -0
- package/es/_utils/naive/extract-public-props.d.ts +4 -1
- package/es/auto-complete/src/AutoComplete.d.ts +1 -0
- package/es/avatar/src/Avatar.d.ts +0 -1
- package/es/avatar/src/Avatar.js +12 -10
- package/es/button/src/Button.js +3 -0
- package/es/carousel/src/Carousel.d.ts +16 -37
- package/es/carousel/src/Carousel.js +269 -272
- package/es/carousel/src/CarouselArrow.js +3 -5
- package/es/carousel/src/CarouselContext.d.ts +21 -0
- package/es/carousel/src/CarouselContext.js +11 -0
- package/es/carousel/src/CarouselDots.d.ts +1 -1
- package/es/carousel/src/CarouselDots.js +23 -31
- package/es/carousel/src/CarouselItem.d.ts +4 -4
- package/es/carousel/src/CarouselItem.js +17 -36
- package/es/carousel/src/interface.d.ts +12 -31
- package/es/carousel/src/interface.js +1 -3
- package/es/carousel/src/styles/index.cssr.js +8 -3
- package/es/carousel/src/{utils.d.ts → utils/duplicatedLogic.d.ts} +3 -8
- package/es/carousel/src/utils/duplicatedLogic.js +46 -0
- package/es/carousel/src/utils/event.d.ts +1 -0
- package/es/carousel/src/utils/event.js +3 -0
- package/es/carousel/src/utils/index.d.ts +6 -0
- package/es/carousel/src/{utils.js → utils/index.js} +3 -28
- package/es/checkbox/src/CheckboxGroup.d.ts +27 -22
- package/es/checkbox/src/CheckboxGroup.js +58 -28
- package/es/code/src/Code.d.ts +16 -0
- package/es/code/src/Code.js +53 -12
- package/es/code/src/styles/index.cssr.js +14 -2
- package/es/code/styles/dark.js +4 -2
- package/es/code/styles/light.d.ts +1 -0
- package/es/code/styles/light.js +4 -2
- package/es/components.d.ts +1 -0
- package/es/components.js +1 -0
- package/es/config-provider/src/ConfigProvider.d.ts +24 -3
- package/es/config-provider/src/internal-interface.d.ts +4 -0
- package/es/date-picker/src/DatePicker.d.ts +1 -0
- package/es/date-picker/src/panel/daterange.d.ts +0 -1
- package/es/date-picker/src/panel/daterange.js +1 -1
- package/es/date-picker/src/panel/datetimerange.d.ts +0 -1
- package/es/date-picker/src/panel/datetimerange.js +1 -1
- package/es/date-picker/src/panel/monthrange.d.ts +0 -1
- package/es/date-picker/src/panel/monthrange.js +1 -1
- package/es/date-picker/src/panel/use-dual-calendar.d.ts +0 -1
- package/es/date-picker/src/panel/use-dual-calendar.js +0 -11
- package/es/dialog/src/DialogEnvironment.d.ts +4 -0
- package/es/dialog/src/DialogEnvironment.js +11 -4
- package/es/dialog/src/DialogProvider.d.ts +1 -0
- package/es/dynamic-tags/src/DynamicTags.d.ts +1 -0
- package/es/image/src/utils.d.ts +1 -1
- package/es/input/src/Input.d.ts +1 -0
- package/es/input/src/Input.js +19 -8
- package/es/input/src/interface.d.ts +1 -0
- package/es/input/src/styles/input.cssr.js +1 -6
- package/es/input-number/src/InputNumber.d.ts +1 -0
- package/es/input-number/src/InputNumber.js +4 -0
- package/es/legacy-grid/src/Row.d.ts +1 -0
- package/es/legacy-grid/src/Row.js +8 -3
- package/es/legacy-grid/src/styles/rtl.cssr.d.ts +2 -0
- package/es/legacy-grid/src/styles/rtl.cssr.js +21 -0
- package/es/legacy-grid/styles/dark.d.ts +4 -0
- package/es/legacy-grid/styles/dark.js +6 -0
- package/es/legacy-grid/styles/index.d.ts +4 -0
- package/es/legacy-grid/styles/index.js +3 -0
- package/es/legacy-grid/styles/light.d.ts +4 -0
- package/es/legacy-grid/styles/light.js +6 -0
- package/es/legacy-grid/styles/rtl.d.ts +2 -0
- package/es/legacy-grid/styles/rtl.js +5 -0
- package/es/legacy-transfer/index.d.ts +3 -0
- package/es/legacy-transfer/index.js +1 -0
- package/es/legacy-transfer/src/Transfer.d.ts +3631 -0
- package/es/legacy-transfer/src/Transfer.js +214 -0
- package/es/legacy-transfer/src/TransferFilter.d.ts +509 -0
- package/es/legacy-transfer/src/TransferFilter.js +40 -0
- package/es/legacy-transfer/src/TransferHeader.d.ts +25 -0
- package/es/legacy-transfer/src/TransferHeader.js +47 -0
- package/es/legacy-transfer/src/TransferList.d.ts +556 -0
- package/es/legacy-transfer/src/TransferList.js +93 -0
- package/es/legacy-transfer/src/TransferListItem.d.ts +513 -0
- package/es/legacy-transfer/src/TransferListItem.js +65 -0
- package/es/legacy-transfer/src/interface.d.ts +31 -0
- package/es/legacy-transfer/src/interface.js +2 -0
- package/es/legacy-transfer/src/styles/index.cssr.d.ts +2 -0
- package/es/legacy-transfer/src/styles/index.cssr.js +215 -0
- package/es/legacy-transfer/src/use-transfer-data.d.ts +41 -0
- package/es/legacy-transfer/src/use-transfer-data.js +145 -0
- package/es/legacy-transfer/styles/_common.d.ts +5 -0
- package/es/legacy-transfer/styles/_common.js +4 -0
- package/es/legacy-transfer/styles/dark.d.ts +3 -0
- package/es/legacy-transfer/styles/dark.js +27 -0
- package/es/legacy-transfer/styles/index.d.ts +3 -0
- package/es/legacy-transfer/styles/index.js +2 -0
- package/es/legacy-transfer/styles/light.d.ts +363 -0
- package/es/legacy-transfer/styles/light.js +31 -0
- package/es/locales/common/deDE.js +11 -6
- package/es/locales/common/enGB.js +8 -1
- package/es/locales/common/enUS.d.ts +8 -1
- package/es/locales/common/enUS.js +8 -1
- package/es/locales/common/eo.js +10 -2
- package/es/locales/common/esAR.js +9 -1
- package/es/locales/common/frFR.js +9 -1
- package/es/locales/common/idID.js +9 -1
- package/es/locales/common/itIT.js +9 -1
- package/es/locales/common/jaJP.js +9 -1
- package/es/locales/common/koKR.js +9 -1
- package/es/locales/common/nbNO.js +9 -1
- package/es/locales/common/nlNL.js +9 -1
- package/es/locales/common/plPL.js +9 -1
- package/es/locales/common/ptBR.js +9 -1
- package/es/locales/common/ruRU.js +9 -1
- package/es/locales/common/skSK.js +9 -1
- package/es/locales/common/thTH.js +9 -1
- package/es/locales/common/ukUA.js +9 -1
- package/es/locales/common/viVN.js +9 -1
- package/es/locales/common/zhCN.js +8 -1
- package/es/locales/common/zhTW.js +9 -1
- package/es/log/src/Log.d.ts +10 -0
- package/es/log/styles/light.d.ts +1 -0
- package/es/mention/src/Mention.d.ts +1 -0
- package/es/notification/src/Notification.d.ts +11 -1
- package/es/notification/src/Notification.js +6 -4
- package/es/notification/src/NotificationEnvironment.d.ts +12 -0
- package/es/notification/src/NotificationEnvironment.js +27 -2
- package/es/notification/src/NotificationProvider.d.ts +7 -0
- package/es/notification/src/NotificationProvider.js +4 -2
- package/es/pagination/src/Pagination.d.ts +1 -0
- package/es/progress/src/Circle.js +3 -1
- package/es/select/src/Select.js +3 -0
- package/es/statistic/src/Statistic.d.ts +1 -0
- package/es/statistic/src/Statistic.js +9 -3
- package/es/statistic/src/styles/rtl.cssr.d.ts +2 -0
- package/es/statistic/src/styles/rtl.cssr.js +9 -0
- package/es/statistic/styles/index.d.ts +1 -0
- package/es/statistic/styles/index.js +1 -0
- package/es/statistic/styles/rtl.d.ts +2 -0
- package/es/statistic/styles/rtl.js +5 -0
- package/es/styles.d.ts +6 -3
- package/es/styles.js +6 -3
- package/es/themes/dark.js +4 -0
- package/es/themes/light.js +4 -0
- package/es/thing/src/Thing.js +9 -3
- package/es/thing/src/styles/rtl.cssr.d.ts +2 -0
- package/es/thing/src/styles/rtl.cssr.js +8 -0
- package/es/thing/styles/index.d.ts +1 -0
- package/es/thing/styles/index.js +1 -0
- package/es/thing/styles/rtl.d.ts +2 -0
- package/es/thing/styles/rtl.js +8 -0
- package/es/time-picker/src/TimePicker.d.ts +1 -0
- package/es/transfer/index.d.ts +1 -1
- package/es/transfer/src/Transfer.d.ts +210 -90
- package/es/transfer/src/Transfer.js +67 -106
- package/es/transfer/src/TransferFilter.d.ts +18 -21
- package/es/transfer/src/TransferFilter.js +2 -10
- package/es/transfer/src/TransferHeader.d.ts +10 -12
- package/es/transfer/src/TransferHeader.js +24 -29
- package/es/transfer/src/TransferList.d.ts +20 -29
- package/es/transfer/src/TransferList.js +15 -32
- package/es/transfer/src/TransferListItem.d.ts +32 -19
- package/es/transfer/src/TransferListItem.js +33 -29
- package/es/transfer/src/interface.d.ts +21 -15
- package/es/transfer/src/styles/index.cssr.js +75 -139
- package/es/transfer/src/use-transfer-data.d.ts +13 -31
- package/es/transfer/src/use-transfer-data.js +45 -121
- package/es/transfer/styles/_common.d.ts +11 -2
- package/es/transfer/styles/_common.js +11 -2
- package/es/transfer/styles/dark.js +8 -4
- package/es/transfer/styles/light.d.ts +36 -10
- package/es/transfer/styles/light.js +7 -5
- package/es/tree/src/Tree.d.ts +1 -0
- package/es/tree/src/Tree.js +22 -16
- package/es/tree/src/TreeNode.d.ts +1 -0
- package/es/tree/src/TreeNode.js +5 -3
- package/es/tree/src/styles/rtl.cssr.d.ts +2 -0
- package/es/tree/src/styles/rtl.cssr.js +17 -0
- package/es/tree/styles/index.d.ts +1 -0
- package/es/tree/styles/index.js +1 -0
- package/es/tree/styles/rtl.d.ts +2 -0
- package/es/tree/styles/rtl.js +5 -0
- package/es/upload/src/interface.d.ts +2 -2
- package/es/version.d.ts +1 -1
- package/es/version.js +1 -1
- package/es/watermark/src/Watermark.d.ts +13 -0
- package/es/watermark/src/Watermark.js +35 -14
- package/es/watermark/src/styles/index.cssr.js +13 -0
- package/lib/_internal/scrollbar/src/Scrollbar.d.ts +5 -0
- package/lib/_internal/scrollbar/src/Scrollbar.js +47 -24
- package/lib/_internal/scrollbar/src/styles/index.cssr.js +1 -1
- package/lib/_internal/scrollbar/src/styles/rtl.cssr.d.ts +2 -0
- package/lib/_internal/scrollbar/src/styles/rtl.cssr.js +17 -0
- package/lib/_internal/scrollbar/styles/index.d.ts +1 -0
- package/lib/_internal/scrollbar/styles/index.js +3 -1
- package/lib/_internal/scrollbar/styles/rtl.d.ts +3 -0
- package/lib/_internal/scrollbar/styles/rtl.js +12 -0
- package/lib/_internal/selection/src/Selection.js +4 -2
- package/lib/_internal/selection/src/styles/index.cssr.js +4 -1
- package/lib/_mixins/index.d.ts +1 -0
- package/lib/_mixins/index.js +3 -1
- package/lib/_utils/naive/extract-public-props.d.ts +4 -1
- package/lib/auto-complete/src/AutoComplete.d.ts +1 -0
- package/lib/avatar/src/Avatar.d.ts +0 -1
- package/lib/avatar/src/Avatar.js +12 -10
- package/lib/button/src/Button.js +3 -0
- package/lib/carousel/src/Carousel.d.ts +16 -37
- package/lib/carousel/src/Carousel.js +290 -270
- package/lib/carousel/src/CarouselArrow.js +2 -4
- package/lib/carousel/src/CarouselContext.d.ts +21 -0
- package/lib/carousel/src/CarouselContext.js +16 -0
- package/lib/carousel/src/CarouselDots.d.ts +1 -1
- package/lib/carousel/src/CarouselDots.js +22 -30
- package/lib/carousel/src/CarouselItem.d.ts +4 -4
- package/lib/carousel/src/CarouselItem.js +18 -35
- package/lib/carousel/src/interface.d.ts +12 -31
- package/lib/carousel/src/interface.js +0 -5
- package/lib/carousel/src/styles/index.cssr.js +8 -3
- package/lib/carousel/src/{utils.d.ts → utils/duplicatedLogic.d.ts} +3 -8
- package/lib/carousel/src/utils/duplicatedLogic.js +55 -0
- package/lib/carousel/src/utils/event.d.ts +1 -0
- package/lib/carousel/src/utils/event.js +7 -0
- package/lib/carousel/src/utils/index.d.ts +6 -0
- package/lib/carousel/src/utils/index.js +53 -0
- package/lib/checkbox/src/CheckboxGroup.d.ts +27 -22
- package/lib/checkbox/src/CheckboxGroup.js +56 -26
- package/lib/code/src/Code.d.ts +16 -0
- package/lib/code/src/Code.js +53 -12
- package/lib/code/src/styles/index.cssr.js +13 -1
- package/lib/code/styles/dark.js +4 -2
- package/lib/code/styles/light.d.ts +1 -0
- package/lib/code/styles/light.js +4 -2
- package/lib/components.d.ts +1 -0
- package/lib/components.js +1 -0
- package/lib/config-provider/src/ConfigProvider.d.ts +24 -3
- package/lib/config-provider/src/internal-interface.d.ts +4 -0
- package/lib/date-picker/src/DatePicker.d.ts +1 -0
- package/lib/date-picker/src/panel/daterange.d.ts +0 -1
- package/lib/date-picker/src/panel/daterange.js +1 -1
- package/lib/date-picker/src/panel/datetimerange.d.ts +0 -1
- package/lib/date-picker/src/panel/datetimerange.js +1 -1
- package/lib/date-picker/src/panel/monthrange.d.ts +0 -1
- package/lib/date-picker/src/panel/monthrange.js +1 -1
- package/lib/date-picker/src/panel/use-dual-calendar.d.ts +0 -1
- package/lib/date-picker/src/panel/use-dual-calendar.js +0 -11
- package/lib/dialog/src/DialogEnvironment.d.ts +4 -0
- package/lib/dialog/src/DialogEnvironment.js +11 -4
- package/lib/dialog/src/DialogProvider.d.ts +1 -0
- package/lib/dynamic-tags/src/DynamicTags.d.ts +1 -0
- package/lib/image/src/utils.d.ts +1 -1
- package/lib/input/src/Input.d.ts +1 -0
- package/lib/input/src/Input.js +19 -8
- package/lib/input/src/interface.d.ts +1 -0
- package/lib/input/src/styles/input.cssr.js +1 -6
- package/lib/input-number/src/InputNumber.d.ts +1 -0
- package/lib/input-number/src/InputNumber.js +4 -0
- package/lib/legacy-grid/src/Row.d.ts +1 -0
- package/lib/legacy-grid/src/Row.js +7 -2
- package/lib/legacy-grid/src/styles/rtl.cssr.d.ts +2 -0
- package/lib/legacy-grid/src/styles/rtl.cssr.js +28 -0
- package/lib/legacy-grid/styles/dark.d.ts +4 -0
- package/lib/legacy-grid/styles/dark.js +8 -0
- package/lib/legacy-grid/styles/index.d.ts +4 -0
- package/lib/legacy-grid/styles/index.js +12 -0
- package/lib/legacy-grid/styles/light.d.ts +4 -0
- package/lib/legacy-grid/styles/light.js +8 -0
- package/lib/legacy-grid/styles/rtl.d.ts +2 -0
- package/lib/legacy-grid/styles/rtl.js +11 -0
- package/lib/legacy-transfer/index.d.ts +3 -0
- package/lib/legacy-transfer/index.js +9 -0
- package/lib/legacy-transfer/src/Transfer.d.ts +3631 -0
- package/lib/legacy-transfer/src/Transfer.js +220 -0
- package/lib/legacy-transfer/src/TransferFilter.d.ts +509 -0
- package/lib/legacy-transfer/src/TransferFilter.js +42 -0
- package/lib/legacy-transfer/src/TransferHeader.d.ts +25 -0
- package/lib/legacy-transfer/src/TransferHeader.js +49 -0
- package/lib/legacy-transfer/src/TransferList.d.ts +556 -0
- package/lib/legacy-transfer/src/TransferList.js +98 -0
- package/lib/legacy-transfer/src/TransferListItem.d.ts +513 -0
- package/lib/legacy-transfer/src/TransferListItem.js +67 -0
- package/lib/legacy-transfer/src/interface.d.ts +31 -0
- package/lib/legacy-transfer/src/interface.js +5 -0
- package/lib/legacy-transfer/src/styles/index.cssr.d.ts +2 -0
- package/lib/legacy-transfer/src/styles/index.cssr.js +223 -0
- package/lib/legacy-transfer/src/use-transfer-data.d.ts +41 -0
- package/lib/legacy-transfer/src/use-transfer-data.js +149 -0
- package/lib/legacy-transfer/styles/_common.d.ts +5 -0
- package/lib/legacy-transfer/styles/_common.js +6 -0
- package/lib/legacy-transfer/styles/dark.d.ts +3 -0
- package/lib/legacy-transfer/styles/dark.js +32 -0
- package/lib/legacy-transfer/styles/index.d.ts +3 -0
- package/lib/legacy-transfer/styles/index.js +10 -0
- package/lib/legacy-transfer/styles/light.d.ts +363 -0
- package/lib/legacy-transfer/styles/light.js +36 -0
- package/lib/locales/common/deDE.js +11 -6
- package/lib/locales/common/enGB.js +8 -1
- package/lib/locales/common/enUS.d.ts +8 -1
- package/lib/locales/common/enUS.js +8 -1
- package/lib/locales/common/eo.js +10 -2
- package/lib/locales/common/esAR.js +9 -1
- package/lib/locales/common/frFR.js +9 -1
- package/lib/locales/common/idID.js +9 -1
- package/lib/locales/common/itIT.js +9 -1
- package/lib/locales/common/jaJP.js +9 -1
- package/lib/locales/common/koKR.js +9 -1
- package/lib/locales/common/nbNO.js +9 -1
- package/lib/locales/common/nlNL.js +9 -1
- package/lib/locales/common/plPL.js +9 -1
- package/lib/locales/common/ptBR.js +9 -1
- package/lib/locales/common/ruRU.js +9 -1
- package/lib/locales/common/skSK.js +9 -1
- package/lib/locales/common/thTH.js +9 -1
- package/lib/locales/common/ukUA.js +9 -1
- package/lib/locales/common/viVN.js +9 -1
- package/lib/locales/common/zhCN.js +8 -1
- package/lib/locales/common/zhTW.js +9 -1
- package/lib/log/src/Log.d.ts +10 -0
- package/lib/log/styles/light.d.ts +1 -0
- package/lib/mention/src/Mention.d.ts +1 -0
- package/lib/notification/src/Notification.d.ts +11 -1
- package/lib/notification/src/Notification.js +6 -4
- package/lib/notification/src/NotificationEnvironment.d.ts +12 -0
- package/lib/notification/src/NotificationEnvironment.js +27 -2
- package/lib/notification/src/NotificationProvider.d.ts +7 -0
- package/lib/notification/src/NotificationProvider.js +4 -2
- package/lib/pagination/src/Pagination.d.ts +1 -0
- package/lib/progress/src/Circle.js +3 -1
- package/lib/select/src/Select.js +3 -0
- package/lib/statistic/src/Statistic.d.ts +1 -0
- package/lib/statistic/src/Statistic.js +8 -2
- package/lib/statistic/src/styles/rtl.cssr.d.ts +2 -0
- package/lib/statistic/src/styles/rtl.cssr.js +16 -0
- package/lib/statistic/styles/index.d.ts +1 -0
- package/lib/statistic/styles/index.js +3 -1
- package/lib/statistic/styles/rtl.d.ts +2 -0
- package/lib/statistic/styles/rtl.js +11 -0
- package/lib/styles.d.ts +6 -3
- package/lib/styles.js +151 -142
- package/lib/themes/dark.js +82 -78
- package/lib/themes/light.js +82 -78
- package/lib/thing/src/Thing.js +8 -2
- package/lib/thing/src/styles/rtl.cssr.d.ts +2 -0
- package/lib/thing/src/styles/rtl.cssr.js +15 -0
- package/lib/thing/styles/index.d.ts +1 -0
- package/lib/thing/styles/index.js +3 -1
- package/lib/thing/styles/rtl.d.ts +2 -0
- package/lib/thing/styles/rtl.js +14 -0
- package/lib/time-picker/src/TimePicker.d.ts +1 -0
- package/lib/transfer/index.d.ts +1 -1
- package/lib/transfer/src/Transfer.d.ts +210 -90
- package/lib/transfer/src/Transfer.js +63 -102
- package/lib/transfer/src/TransferFilter.d.ts +18 -21
- package/lib/transfer/src/TransferFilter.js +2 -10
- package/lib/transfer/src/TransferHeader.d.ts +10 -12
- package/lib/transfer/src/TransferHeader.js +23 -28
- package/lib/transfer/src/TransferList.d.ts +20 -29
- package/lib/transfer/src/TransferList.js +14 -31
- package/lib/transfer/src/TransferListItem.d.ts +32 -19
- package/lib/transfer/src/TransferListItem.js +33 -29
- package/lib/transfer/src/interface.d.ts +21 -15
- package/lib/transfer/src/styles/index.cssr.js +74 -139
- package/lib/transfer/src/use-transfer-data.d.ts +13 -31
- package/lib/transfer/src/use-transfer-data.js +44 -120
- package/lib/transfer/styles/_common.d.ts +11 -2
- package/lib/transfer/styles/_common.js +11 -2
- package/lib/transfer/styles/dark.js +8 -4
- package/lib/transfer/styles/light.d.ts +36 -10
- package/lib/transfer/styles/light.js +7 -5
- package/lib/tree/src/Tree.d.ts +1 -0
- package/lib/tree/src/Tree.js +21 -15
- package/lib/tree/src/TreeNode.d.ts +1 -0
- package/lib/tree/src/TreeNode.js +5 -3
- package/lib/tree/src/styles/rtl.cssr.d.ts +2 -0
- package/lib/tree/src/styles/rtl.cssr.js +24 -0
- package/lib/tree/styles/index.d.ts +1 -0
- package/lib/tree/styles/index.js +3 -1
- package/lib/tree/styles/rtl.d.ts +2 -0
- package/lib/tree/styles/rtl.js +11 -0
- package/lib/upload/src/interface.d.ts +2 -2
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/lib/watermark/src/Watermark.d.ts +13 -0
- package/lib/watermark/src/Watermark.js +34 -13
- package/lib/watermark/src/styles/index.cssr.js +13 -0
- package/package.json +4 -3
- package/volar.d.ts +1 -0
- package/web-types.json +183 -1
- package/lib/carousel/src/utils.js +0 -69
package/es/styles.d.ts
CHANGED
|
@@ -8,6 +8,7 @@ export { backTopDark } from './back-top/styles';
|
|
|
8
8
|
export { badgeDark, badgeRtl as unstableBadgeRtl } from './badge/styles';
|
|
9
9
|
export { breadcrumbDark } from './breadcrumb/styles';
|
|
10
10
|
export { buttonDark, buttonRtl as unstableButtonRtl } from './button/styles';
|
|
11
|
+
export { notificationRtl as unstableNotificationRtl } from './notification/styles';
|
|
11
12
|
export { buttonGroupDark, buttonGroupRtl as unstableButtonGroupRtl } from './button-group/styles';
|
|
12
13
|
export { cardDark, cardRtl as unstableCardRtl } from './card/styles';
|
|
13
14
|
export { cascaderDark } from './cascader/styles';
|
|
@@ -53,22 +54,24 @@ export { selectDark } from './select/styles';
|
|
|
53
54
|
export { sliderDark } from './slider/styles';
|
|
54
55
|
export { spaceDark, spaceRtl as unstableSpaceRtl } from './space/styles';
|
|
55
56
|
export { spinDark } from './spin/styles';
|
|
56
|
-
export { statisticDark } from './statistic/styles';
|
|
57
|
+
export { statisticDark, statisticRtl as unstableStatisticRtl } from './statistic/styles';
|
|
57
58
|
export { stepsDark } from './steps/styles';
|
|
58
59
|
export { switchDark } from './switch/styles';
|
|
59
60
|
export { tableDark, tableRtl as unstableTableRtl } from './table/styles';
|
|
60
61
|
export { tabsDark } from './tabs/styles';
|
|
61
62
|
export { tagDark, tagRtl as unstableTagRtl } from './tag/styles';
|
|
62
|
-
export { thingDark } from './thing/styles';
|
|
63
|
+
export { thingDark, thingRtl as unstableThingRtl } from './thing/styles';
|
|
63
64
|
export { timePickerDark } from './time-picker/styles';
|
|
64
65
|
export { timelineDark } from './timeline/styles';
|
|
65
66
|
export { tooltipDark } from './tooltip/styles';
|
|
66
67
|
export { transferDark } from './transfer/styles';
|
|
67
|
-
export { treeDark } from './tree/styles';
|
|
68
|
+
export { treeDark, treeRtl as unstableTreeRtl } from './tree/styles';
|
|
68
69
|
export { treeSelectDark } from './tree-select/styles';
|
|
69
70
|
export { typographyDark } from './typography/styles';
|
|
70
71
|
export { uploadDark } from './upload/styles';
|
|
71
72
|
export { watermarkDark } from './watermark/styles';
|
|
73
|
+
export { rowRtl as unstableRowRtl } from './legacy-grid/styles';
|
|
72
74
|
export { scrollbarDark } from './_internal/scrollbar/styles';
|
|
73
75
|
export { internalSelectMenuDark } from './_internal/select-menu/styles';
|
|
74
76
|
export { internalSelectionDark } from './_internal/selection/styles';
|
|
77
|
+
export { scrollbarRtl as unstableScrollbarRtl } from './_internal/scrollbar/styles';
|
package/es/styles.js
CHANGED
|
@@ -8,6 +8,7 @@ export { backTopDark } from './back-top/styles';
|
|
|
8
8
|
export { badgeDark, badgeRtl as unstableBadgeRtl } from './badge/styles';
|
|
9
9
|
export { breadcrumbDark } from './breadcrumb/styles';
|
|
10
10
|
export { buttonDark, buttonRtl as unstableButtonRtl } from './button/styles';
|
|
11
|
+
export { notificationRtl as unstableNotificationRtl } from './notification/styles';
|
|
11
12
|
export { buttonGroupDark, buttonGroupRtl as unstableButtonGroupRtl } from './button-group/styles';
|
|
12
13
|
export { cardDark, cardRtl as unstableCardRtl } from './card/styles';
|
|
13
14
|
export { cascaderDark } from './cascader/styles';
|
|
@@ -53,23 +54,25 @@ export { selectDark } from './select/styles';
|
|
|
53
54
|
export { sliderDark } from './slider/styles';
|
|
54
55
|
export { spaceDark, spaceRtl as unstableSpaceRtl } from './space/styles';
|
|
55
56
|
export { spinDark } from './spin/styles';
|
|
56
|
-
export { statisticDark } from './statistic/styles';
|
|
57
|
+
export { statisticDark, statisticRtl as unstableStatisticRtl } from './statistic/styles';
|
|
57
58
|
export { stepsDark } from './steps/styles';
|
|
58
59
|
export { switchDark } from './switch/styles';
|
|
59
60
|
export { tableDark, tableRtl as unstableTableRtl } from './table/styles';
|
|
60
61
|
export { tabsDark } from './tabs/styles';
|
|
61
62
|
export { tagDark, tagRtl as unstableTagRtl } from './tag/styles';
|
|
62
|
-
export { thingDark } from './thing/styles';
|
|
63
|
+
export { thingDark, thingRtl as unstableThingRtl } from './thing/styles';
|
|
63
64
|
export { timePickerDark } from './time-picker/styles';
|
|
64
65
|
export { timelineDark } from './timeline/styles';
|
|
65
66
|
export { tooltipDark } from './tooltip/styles';
|
|
66
67
|
export { transferDark } from './transfer/styles';
|
|
67
|
-
export { treeDark } from './tree/styles';
|
|
68
|
+
export { treeDark, treeRtl as unstableTreeRtl } from './tree/styles';
|
|
68
69
|
export { treeSelectDark } from './tree-select/styles';
|
|
69
70
|
export { typographyDark } from './typography/styles';
|
|
70
71
|
export { uploadDark } from './upload/styles';
|
|
71
72
|
export { watermarkDark } from './watermark/styles';
|
|
73
|
+
export { rowRtl as unstableRowRtl } from './legacy-grid/styles';
|
|
72
74
|
// danger zone, internal styles
|
|
73
75
|
export { scrollbarDark } from './_internal/scrollbar/styles';
|
|
74
76
|
export { internalSelectMenuDark } from './_internal/select-menu/styles';
|
|
75
77
|
export { internalSelectionDark } from './_internal/selection/styles';
|
|
78
|
+
export { scrollbarRtl as unstableScrollbarRtl } from './_internal/scrollbar/styles';
|
package/es/themes/dark.js
CHANGED
|
@@ -38,6 +38,7 @@ import { imageDark } from '../image/styles';
|
|
|
38
38
|
import { inputDark } from '../input/styles';
|
|
39
39
|
import { inputNumberDark } from '../input-number/styles';
|
|
40
40
|
import { layoutDark } from '../layout/styles';
|
|
41
|
+
import { legacyTransferDark } from '../legacy-transfer/styles';
|
|
41
42
|
import { listDark } from '../list/styles';
|
|
42
43
|
import { loadingBarDark } from '../loading-bar/styles';
|
|
43
44
|
import { logDark } from '../log/styles';
|
|
@@ -55,6 +56,7 @@ import { progressDark } from '../progress/styles';
|
|
|
55
56
|
import { radioDark } from '../radio/styles';
|
|
56
57
|
import { rateDark } from '../rate/styles';
|
|
57
58
|
import { resultDark } from '../result/styles';
|
|
59
|
+
import { rowDark } from '../legacy-grid/styles';
|
|
58
60
|
import { scrollbarDark } from '../_internal/scrollbar/styles';
|
|
59
61
|
import { selectDark } from '../select/styles';
|
|
60
62
|
import { skeletonDark } from '../skeleton/styles';
|
|
@@ -118,6 +120,7 @@ export const darkTheme = {
|
|
|
118
120
|
Image: imageDark,
|
|
119
121
|
Input: inputDark,
|
|
120
122
|
InputNumber: inputNumberDark,
|
|
123
|
+
LegacyTransfer: legacyTransferDark,
|
|
121
124
|
Layout: layoutDark,
|
|
122
125
|
List: listDark,
|
|
123
126
|
LoadingBar: loadingBarDark,
|
|
@@ -136,6 +139,7 @@ export const darkTheme = {
|
|
|
136
139
|
Radio: radioDark,
|
|
137
140
|
Rate: rateDark,
|
|
138
141
|
Result: resultDark,
|
|
142
|
+
Row: rowDark,
|
|
139
143
|
Scrollbar: scrollbarDark,
|
|
140
144
|
Select: selectDark,
|
|
141
145
|
Skeleton: skeletonDark,
|
package/es/themes/light.js
CHANGED
|
@@ -40,6 +40,7 @@ import { imageLight } from '../image/styles';
|
|
|
40
40
|
import { inputLight } from '../input/styles';
|
|
41
41
|
import { inputNumberLight } from '../input-number/styles';
|
|
42
42
|
import { layoutLight } from '../layout/styles';
|
|
43
|
+
import { legacyTransferLight } from '../legacy-transfer/styles';
|
|
43
44
|
import { listLight } from '../list/styles';
|
|
44
45
|
import { loadingBarLight } from '../loading-bar/styles';
|
|
45
46
|
import { logLight } from '../log/styles';
|
|
@@ -57,6 +58,7 @@ import { progressLight } from '../progress/styles';
|
|
|
57
58
|
import { radioLight } from '../radio/styles';
|
|
58
59
|
import { rateLight } from '../rate/styles';
|
|
59
60
|
import { resultLight } from '../result/styles';
|
|
61
|
+
import { rowLight } from '../legacy-grid/styles';
|
|
60
62
|
import { scrollbarLight } from '../_internal/scrollbar/styles';
|
|
61
63
|
import { selectLight } from '../select/styles';
|
|
62
64
|
import { skeletonLight } from '../skeleton/styles';
|
|
@@ -121,6 +123,7 @@ export const lightTheme = {
|
|
|
121
123
|
Input: inputLight,
|
|
122
124
|
InputNumber: inputNumberLight,
|
|
123
125
|
Layout: layoutLight,
|
|
126
|
+
LegacyTransfer: legacyTransferLight,
|
|
124
127
|
List: listLight,
|
|
125
128
|
LoadingBar: loadingBarLight,
|
|
126
129
|
Log: logLight,
|
|
@@ -137,6 +140,7 @@ export const lightTheme = {
|
|
|
137
140
|
Progress: progressLight,
|
|
138
141
|
Radio: radioLight,
|
|
139
142
|
Rate: rateLight,
|
|
143
|
+
Row: rowLight,
|
|
140
144
|
Result: resultLight,
|
|
141
145
|
Scrollbar: scrollbarLight,
|
|
142
146
|
Skeleton: skeletonLight,
|
package/es/thing/src/Thing.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { h, defineComponent, computed, Fragment } from 'vue';
|
|
2
|
-
import { useConfig, useTheme, useThemeClass } from '../../_mixins';
|
|
2
|
+
import { useConfig, useTheme, useThemeClass, useRtl } from '../../_mixins';
|
|
3
3
|
import { thingLight } from '../styles';
|
|
4
4
|
import style from './styles/index.cssr';
|
|
5
5
|
export const thingProps = Object.assign(Object.assign({}, useTheme.props), { title: String, titleExtra: String, description: String, content: String, contentIndented: {
|
|
@@ -10,8 +10,9 @@ export default defineComponent({
|
|
|
10
10
|
name: 'Thing',
|
|
11
11
|
props: thingProps,
|
|
12
12
|
setup(props, { slots }) {
|
|
13
|
-
const { mergedClsPrefixRef, inlineThemeDisabled } = useConfig(props);
|
|
13
|
+
const { mergedClsPrefixRef, inlineThemeDisabled, mergedRtlRef } = useConfig(props);
|
|
14
14
|
const themeRef = useTheme('Thing', '-thing', style, thingLight, props, mergedClsPrefixRef);
|
|
15
|
+
const rtlEnabledRef = useRtl('Thing', mergedRtlRef, mergedClsPrefixRef);
|
|
15
16
|
const cssVarsRef = computed(() => {
|
|
16
17
|
const { self: { titleTextColor, textColor, titleFontWeight, fontSize }, common: { cubicBezierEaseInOut } } = themeRef.value;
|
|
17
18
|
return {
|
|
@@ -28,8 +29,13 @@ export default defineComponent({
|
|
|
28
29
|
return () => {
|
|
29
30
|
var _a;
|
|
30
31
|
const { value: mergedClsPrefix } = mergedClsPrefixRef;
|
|
32
|
+
const rtlEnabled = rtlEnabledRef ? rtlEnabledRef.value : false;
|
|
31
33
|
(_a = themeClassHandle === null || themeClassHandle === void 0 ? void 0 : themeClassHandle.onRender) === null || _a === void 0 ? void 0 : _a.call(themeClassHandle);
|
|
32
|
-
return (h("div", { class: [
|
|
34
|
+
return (h("div", { class: [
|
|
35
|
+
`${mergedClsPrefix}-thing`,
|
|
36
|
+
themeClassHandle === null || themeClassHandle === void 0 ? void 0 : themeClassHandle.themeClass,
|
|
37
|
+
rtlEnabled && `${mergedClsPrefix}-thing--rtl`
|
|
38
|
+
], style: inlineThemeDisabled
|
|
33
39
|
? undefined
|
|
34
40
|
: cssVarsRef.value },
|
|
35
41
|
slots.avatar && props.contentIndented ? (h("div", { class: `${mergedClsPrefix}-thing-avatar` }, slots.avatar())) : null,
|
package/es/thing/styles/index.js
CHANGED
|
@@ -1891,6 +1891,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1891
1891
|
select: () => void;
|
|
1892
1892
|
activate: () => void;
|
|
1893
1893
|
deactivate: () => void;
|
|
1894
|
+
scrollTo: (options: ScrollToOptions) => void;
|
|
1894
1895
|
} | null>;
|
|
1895
1896
|
panelInstRef: import("vue").Ref<{
|
|
1896
1897
|
$el: HTMLElement;
|
package/es/transfer/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export { default as NTransfer, transferProps } from './src/Transfer';
|
|
2
2
|
export type { TransferProps } from './src/Transfer';
|
|
3
|
-
export type { Option as TransferOption } from './src/interface';
|
|
3
|
+
export type { Option as TransferOption, TransferRenderSourceLabel, TransferRenderTargetLabel, TransferRenderSourceList } from './src/interface';
|