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/lib/themes/light.js
CHANGED
|
@@ -43,45 +43,47 @@ const styles_36 = require("../image/styles");
|
|
|
43
43
|
const styles_37 = require("../input/styles");
|
|
44
44
|
const styles_38 = require("../input-number/styles");
|
|
45
45
|
const styles_39 = require("../layout/styles");
|
|
46
|
-
const styles_40 = require("../
|
|
47
|
-
const styles_41 = require("../
|
|
48
|
-
const styles_42 = require("../
|
|
49
|
-
const styles_43 = require("../
|
|
50
|
-
const styles_44 = require("../
|
|
51
|
-
const styles_45 = require("../
|
|
52
|
-
const styles_46 = require("../
|
|
53
|
-
const styles_47 = require("../
|
|
54
|
-
const styles_48 = require("../
|
|
55
|
-
const styles_49 = require("../
|
|
56
|
-
const styles_50 = require("../
|
|
57
|
-
const styles_51 = require("../
|
|
58
|
-
const styles_52 = require("../
|
|
59
|
-
const styles_53 = require("../
|
|
60
|
-
const styles_54 = require("../
|
|
61
|
-
const styles_55 = require("../
|
|
62
|
-
const styles_56 = require("../
|
|
63
|
-
const styles_57 = require("../
|
|
64
|
-
const styles_58 = require("../
|
|
65
|
-
const styles_59 = require("../
|
|
66
|
-
const styles_60 = require("../
|
|
67
|
-
const styles_61 = require("../
|
|
68
|
-
const styles_62 = require("../
|
|
69
|
-
const styles_63 = require("../
|
|
70
|
-
const styles_64 = require("../
|
|
71
|
-
const styles_65 = require("../
|
|
72
|
-
const styles_66 = require("../
|
|
73
|
-
const styles_67 = require("../
|
|
74
|
-
const styles_68 = require("../
|
|
75
|
-
const styles_69 = require("../
|
|
76
|
-
const styles_70 = require("../
|
|
77
|
-
const styles_71 = require("../
|
|
78
|
-
const styles_72 = require("../
|
|
79
|
-
const styles_73 = require("../
|
|
80
|
-
const styles_74 = require("../
|
|
81
|
-
const styles_75 = require("../
|
|
82
|
-
const styles_76 = require("../
|
|
83
|
-
const styles_77 = require("../
|
|
84
|
-
const styles_78 = require("../
|
|
46
|
+
const styles_40 = require("../legacy-transfer/styles");
|
|
47
|
+
const styles_41 = require("../list/styles");
|
|
48
|
+
const styles_42 = require("../loading-bar/styles");
|
|
49
|
+
const styles_43 = require("../log/styles");
|
|
50
|
+
const styles_44 = require("../menu/styles");
|
|
51
|
+
const styles_45 = require("../mention/styles");
|
|
52
|
+
const styles_46 = require("../message/styles");
|
|
53
|
+
const styles_47 = require("../modal/styles");
|
|
54
|
+
const styles_48 = require("../notification/styles");
|
|
55
|
+
const styles_49 = require("../page-header/styles");
|
|
56
|
+
const styles_50 = require("../pagination/styles");
|
|
57
|
+
const styles_51 = require("../popconfirm/styles");
|
|
58
|
+
const styles_52 = require("../popover/styles");
|
|
59
|
+
const styles_53 = require("../popselect/styles");
|
|
60
|
+
const styles_54 = require("../progress/styles");
|
|
61
|
+
const styles_55 = require("../radio/styles");
|
|
62
|
+
const styles_56 = require("../rate/styles");
|
|
63
|
+
const styles_57 = require("../result/styles");
|
|
64
|
+
const styles_58 = require("../legacy-grid/styles");
|
|
65
|
+
const styles_59 = require("../_internal/scrollbar/styles");
|
|
66
|
+
const styles_60 = require("../select/styles");
|
|
67
|
+
const styles_61 = require("../skeleton/styles");
|
|
68
|
+
const styles_62 = require("../slider/styles");
|
|
69
|
+
const styles_63 = require("../space/styles");
|
|
70
|
+
const styles_64 = require("../spin/styles");
|
|
71
|
+
const styles_65 = require("../statistic/styles");
|
|
72
|
+
const styles_66 = require("../steps/styles");
|
|
73
|
+
const styles_67 = require("../switch/styles");
|
|
74
|
+
const styles_68 = require("../table/styles");
|
|
75
|
+
const styles_69 = require("../tabs/styles");
|
|
76
|
+
const styles_70 = require("../tag/styles");
|
|
77
|
+
const styles_71 = require("../thing/styles");
|
|
78
|
+
const styles_72 = require("../time-picker/styles");
|
|
79
|
+
const styles_73 = require("../timeline/styles");
|
|
80
|
+
const styles_74 = require("../tooltip/styles");
|
|
81
|
+
const styles_75 = require("../transfer/styles");
|
|
82
|
+
const styles_76 = require("../typography/styles");
|
|
83
|
+
const styles_77 = require("../tree/styles");
|
|
84
|
+
const styles_78 = require("../tree-select/styles");
|
|
85
|
+
const styles_79 = require("../upload/styles");
|
|
86
|
+
const styles_80 = require("../watermark/styles");
|
|
85
87
|
exports.lightTheme = {
|
|
86
88
|
name: 'light',
|
|
87
89
|
common: common_1.commonLight,
|
|
@@ -124,43 +126,45 @@ exports.lightTheme = {
|
|
|
124
126
|
Input: styles_37.inputLight,
|
|
125
127
|
InputNumber: styles_38.inputNumberLight,
|
|
126
128
|
Layout: styles_39.layoutLight,
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
129
|
+
LegacyTransfer: styles_40.legacyTransferLight,
|
|
130
|
+
List: styles_41.listLight,
|
|
131
|
+
LoadingBar: styles_42.loadingBarLight,
|
|
132
|
+
Log: styles_43.logLight,
|
|
133
|
+
Menu: styles_44.menuLight,
|
|
134
|
+
Mention: styles_45.mentionLight,
|
|
135
|
+
Message: styles_46.messageLight,
|
|
136
|
+
Modal: styles_47.modalLight,
|
|
137
|
+
Notification: styles_48.notificationLight,
|
|
138
|
+
PageHeader: styles_49.pageHeaderLight,
|
|
139
|
+
Pagination: styles_50.paginationLight,
|
|
140
|
+
Popconfirm: styles_51.popconfirmLight,
|
|
141
|
+
Popover: styles_52.popoverLight,
|
|
142
|
+
Popselect: styles_53.popselectLight,
|
|
143
|
+
Progress: styles_54.progressLight,
|
|
144
|
+
Radio: styles_55.radioLight,
|
|
145
|
+
Rate: styles_56.rateLight,
|
|
146
|
+
Row: styles_58.rowLight,
|
|
147
|
+
Result: styles_57.resultLight,
|
|
148
|
+
Scrollbar: styles_59.scrollbarLight,
|
|
149
|
+
Skeleton: styles_61.skeletonLight,
|
|
150
|
+
Select: styles_60.selectLight,
|
|
151
|
+
Slider: styles_62.sliderLight,
|
|
152
|
+
Space: styles_63.spaceLight,
|
|
153
|
+
Spin: styles_64.spinLight,
|
|
154
|
+
Statistic: styles_65.statisticLight,
|
|
155
|
+
Steps: styles_66.stepsLight,
|
|
156
|
+
Switch: styles_67.switchLight,
|
|
157
|
+
Table: styles_68.tableLight,
|
|
158
|
+
Tabs: styles_69.tabsLight,
|
|
159
|
+
Tag: styles_70.tagLight,
|
|
160
|
+
Thing: styles_71.thingLight,
|
|
161
|
+
TimePicker: styles_72.timePickerLight,
|
|
162
|
+
Timeline: styles_73.timelineLight,
|
|
163
|
+
Tooltip: styles_74.tooltipLight,
|
|
164
|
+
Transfer: styles_75.transferLight,
|
|
165
|
+
Tree: styles_77.treeLight,
|
|
166
|
+
TreeSelect: styles_78.treeSelectLight,
|
|
167
|
+
Typography: styles_76.typographyLight,
|
|
168
|
+
Upload: styles_79.uploadLight,
|
|
169
|
+
Watermark: styles_80.watermarkLight
|
|
166
170
|
};
|
package/lib/thing/src/Thing.js
CHANGED
|
@@ -16,8 +16,9 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
16
16
|
name: 'Thing',
|
|
17
17
|
props: exports.thingProps,
|
|
18
18
|
setup(props, { slots }) {
|
|
19
|
-
const { mergedClsPrefixRef, inlineThemeDisabled } = (0, _mixins_1.useConfig)(props);
|
|
19
|
+
const { mergedClsPrefixRef, inlineThemeDisabled, mergedRtlRef } = (0, _mixins_1.useConfig)(props);
|
|
20
20
|
const themeRef = (0, _mixins_1.useTheme)('Thing', '-thing', index_cssr_1.default, styles_1.thingLight, props, mergedClsPrefixRef);
|
|
21
|
+
const rtlEnabledRef = (0, _mixins_1.useRtl)('Thing', mergedRtlRef, mergedClsPrefixRef);
|
|
21
22
|
const cssVarsRef = (0, vue_1.computed)(() => {
|
|
22
23
|
const { self: { titleTextColor, textColor, titleFontWeight, fontSize }, common: { cubicBezierEaseInOut } } = themeRef.value;
|
|
23
24
|
return {
|
|
@@ -34,8 +35,13 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
34
35
|
return () => {
|
|
35
36
|
var _a;
|
|
36
37
|
const { value: mergedClsPrefix } = mergedClsPrefixRef;
|
|
38
|
+
const rtlEnabled = rtlEnabledRef ? rtlEnabledRef.value : false;
|
|
37
39
|
(_a = themeClassHandle === null || themeClassHandle === void 0 ? void 0 : themeClassHandle.onRender) === null || _a === void 0 ? void 0 : _a.call(themeClassHandle);
|
|
38
|
-
return ((0, vue_1.h)("div", { class: [
|
|
40
|
+
return ((0, vue_1.h)("div", { class: [
|
|
41
|
+
`${mergedClsPrefix}-thing`,
|
|
42
|
+
themeClassHandle === null || themeClassHandle === void 0 ? void 0 : themeClassHandle.themeClass,
|
|
43
|
+
rtlEnabled && `${mergedClsPrefix}-thing--rtl`
|
|
44
|
+
], style: inlineThemeDisabled
|
|
39
45
|
? undefined
|
|
40
46
|
: cssVarsRef.value },
|
|
41
47
|
slots.avatar && props.contentIndented ? ((0, vue_1.h)("div", { class: `${mergedClsPrefix}-thing-avatar` }, slots.avatar())) : null,
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
|
|
7
|
+
const cssr_1 = require("../../../_utils/cssr");
|
|
8
|
+
|
|
9
|
+
exports.default = (0, cssr_1.cB)('thing', [(0, cssr_1.cM)('rtl', `
|
|
10
|
+
direction: rtl;
|
|
11
|
+
text-align: right;
|
|
12
|
+
`, [(0, cssr_1.cB)('thing-avatar', `
|
|
13
|
+
margin-left: 12px;
|
|
14
|
+
margin-right: 0;
|
|
15
|
+
`)])]);
|
|
@@ -3,8 +3,10 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.thingLight = exports.thingDark = void 0;
|
|
6
|
+
exports.thingRtl = exports.thingLight = exports.thingDark = void 0;
|
|
7
7
|
var dark_1 = require("./dark");
|
|
8
8
|
Object.defineProperty(exports, "thingDark", { enumerable: true, get: function () { return __importDefault(dark_1).default; } });
|
|
9
9
|
var light_1 = require("./light");
|
|
10
10
|
Object.defineProperty(exports, "thingLight", { enumerable: true, get: function () { return __importDefault(light_1).default; } });
|
|
11
|
+
var rtl_1 = require("./rtl");
|
|
12
|
+
Object.defineProperty(exports, "thingRtl", { enumerable: true, get: function () { return rtl_1.thingRtl; } });
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.thingRtl = void 0;
|
|
7
|
+
const rtl_cssr_1 = __importDefault(require("../src/styles/rtl.cssr"));
|
|
8
|
+
const rtl_1 = require("../../button/styles/rtl");
|
|
9
|
+
const rtl_2 = require("../../space/styles/rtl");
|
|
10
|
+
exports.thingRtl = {
|
|
11
|
+
name: 'Thing',
|
|
12
|
+
style: rtl_cssr_1.default,
|
|
13
|
+
peers: [rtl_1.buttonRtl, rtl_2.spaceRtl]
|
|
14
|
+
};
|
|
@@ -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/lib/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';
|