naive-ui 2.33.4 → 2.34.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 +3517 -6061
- package/dist/index.prod.js +2 -2
- package/es/_internal/clear/src/styles/index.cssr.js +2 -2
- package/es/_internal/close/src/styles/index.cssr.js +2 -2
- package/es/_internal/index.d.ts +1 -0
- package/es/_internal/loading/index.d.ts +1 -0
- package/es/_internal/loading/src/Loading.d.ts +26 -14
- package/es/_internal/loading/src/Loading.js +17 -20
- package/es/_internal/scrollbar/src/styles/index.cssr.js +2 -2
- package/es/_internal/select-menu/src/styles/index.cssr.js +2 -2
- package/es/_internal/selection/src/Selection.js +5 -5
- package/es/_internal/selection/src/styles/index.cssr.js +2 -2
- package/es/_internal/slot-machine/src/styles/index.cssr.js +4 -3
- package/es/_styles/global/index.cssr.js +2 -2
- package/es/alert/src/styles/index.cssr.js +2 -2
- package/es/anchor/src/styles/index.cssr.js +2 -2
- package/es/auto-complete/src/styles/index.cssr.js +2 -2
- package/es/avatar/src/Avatar.d.ts +4 -1
- package/es/avatar/src/Avatar.js +12 -13
- package/es/avatar/src/styles/index.cssr.js +2 -2
- package/es/avatar-group/index.d.ts +1 -1
- package/es/avatar-group/src/AvatarGroup.d.ts +7 -7
- package/es/avatar-group/src/styles/avatar-group-rtl.cssr.js +2 -2
- package/es/avatar-group/src/styles/avatar-group.cssr.js +2 -2
- package/es/back-top/src/styles/index.cssr.js +2 -2
- package/es/badge/src/styles/index.cssr.js +2 -2
- package/es/breadcrumb/src/styles/index.cssr.js +2 -2
- package/es/button/src/Button.d.ts +4 -1
- package/es/button/src/Button.js +3 -3
- package/es/button/src/styles/index.cssr.js +2 -2
- package/es/button-group/src/styles/index.cssr.js +0 -3
- package/es/button-group/src/styles/rtl.cssr.js +0 -2
- package/es/calendar/src/styles/index.cssr.js +2 -2
- package/es/card/src/styles/index.cssr.js +4 -3
- package/es/carousel/src/styles/index.cssr.js +2 -2
- package/es/cascader/src/Cascader.d.ts +8 -0
- package/es/cascader/src/Cascader.js +41 -2
- package/es/cascader/src/CascaderOption.d.ts +1 -1
- package/es/cascader/src/CascaderOption.js +1 -7
- package/es/cascader/src/CascaderSelectMenu.d.ts +3 -0
- package/es/cascader/src/CascaderSelectMenu.js +8 -4
- package/es/cascader/src/interface.d.ts +11 -1
- package/es/cascader/src/styles/index.cssr.js +2 -2
- package/es/checkbox/src/styles/index.cssr.js +8 -5
- package/es/code/src/Code.d.ts +1 -1
- package/es/code/src/styles/index.cssr.js +2 -2
- package/es/collapse/src/styles/index.cssr.js +2 -2
- package/es/color-picker/src/ColorPicker.d.ts +5 -5
- package/es/color-picker/src/ColorPicker.js +7 -1
- package/es/color-picker/src/styles/index.cssr.js +2 -2
- package/es/color-picker/src/utils.d.ts +1 -1
- package/es/components.d.ts +1 -0
- package/es/components.js +1 -0
- package/es/config-provider/src/ConfigProvider.d.ts +6 -0
- package/es/config-provider/src/ConfigProvider.js +7 -0
- package/es/config-provider/src/internal-interface.d.ts +4 -0
- package/es/data-table/src/DataTable.d.ts +11 -0
- package/es/data-table/src/DataTable.js +7 -3
- package/es/data-table/src/TableParts/Body.d.ts +1 -0
- package/es/data-table/src/TableParts/Body.js +14 -6
- package/es/data-table/src/TableParts/Header.js +7 -5
- package/es/data-table/src/interface.d.ts +10 -2
- package/es/data-table/src/interface.js +1 -1
- package/es/data-table/src/styles/index.cssr.js +21 -9
- package/es/date-picker/src/DatePicker.js +5 -0
- package/es/date-picker/src/panel/panelHeader.d.ts +6 -6
- package/es/date-picker/src/styles/index.cssr.js +2 -2
- package/es/descriptions/src/styles/index.cssr.js +2 -2
- package/es/dialog/src/DialogEnvironment.d.ts +3 -0
- package/es/dialog/src/DialogEnvironment.js +2 -2
- package/es/dialog/src/DialogProvider.d.ts +3 -0
- package/es/dialog/src/styles/index.cssr.js +2 -2
- package/es/divider/src/styles/index.cssr.js +2 -2
- package/es/drawer/src/styles/index.cssr.js +2 -2
- package/es/dropdown/src/styles/index.cssr.js +2 -2
- package/es/dynamic-input/src/styles/index.cssr.js +2 -2
- package/es/dynamic-tags/src/styles/index.cssr.js +2 -2
- package/es/empty/src/styles/index.cssr.js +2 -2
- package/es/equation/index.d.ts +1 -0
- package/es/equation/index.js +1 -0
- package/es/equation/src/Equation.d.ts +18 -0
- package/es/equation/src/Equation.js +29 -0
- package/es/equation/styles/dark.d.ts +3 -0
- package/es/equation/styles/dark.js +8 -0
- package/es/equation/styles/index.d.ts +3 -0
- package/es/equation/styles/index.js +2 -0
- package/es/equation/styles/light.d.ts +6 -0
- package/es/equation/styles/light.js +8 -0
- package/es/form/src/FormItem.d.ts +3 -2
- package/es/form/src/FormItem.js +24 -7
- package/es/form/src/styles/form-item.cssr.js +5 -3
- package/es/gradient-text/src/styles/index.cssr.js +2 -2
- package/es/icon/src/styles/index.cssr.js +2 -2
- package/es/icon-wrapper/src/styles/index.cssr.js +2 -2
- package/es/image/src/Image.d.ts +4 -1
- package/es/image/src/Image.js +13 -7
- package/es/image/src/ImagePreview.d.ts +3 -2
- package/es/image/src/ImagePreview.js +41 -8
- package/es/image/src/interface.d.ts +5 -0
- package/es/image/src/interface.js +2 -0
- package/es/image/src/styles/index.cssr.js +2 -2
- package/es/input/src/Input.d.ts +3 -0
- package/es/input/src/Input.js +25 -6
- package/es/input/src/WordCount.js +2 -2
- package/es/input/src/interface.d.ts +1 -0
- package/es/input/src/styles/input-group-label.cssr.js +2 -2
- package/es/input/src/styles/input.cssr.js +11 -7
- package/es/layout/src/styles/layout-footer.cssr.js +2 -2
- package/es/layout/src/styles/layout-header.cssr.js +2 -2
- package/es/layout/src/styles/layout-sider.cssr.js +2 -2
- package/es/layout/src/styles/layout.cssr.js +2 -2
- package/es/list/src/styles/index.cssr.js +2 -2
- package/es/loading-bar/src/styles/index.cssr.js +2 -2
- package/es/locales/common/arDZ.d.ts +3 -0
- package/es/locales/common/arDZ.js +120 -0
- package/es/locales/common/deDE.js +2 -1
- package/es/locales/common/enGB.js +2 -1
- package/es/locales/common/enUS.d.ts +1 -0
- package/es/locales/common/enUS.js +2 -1
- package/es/locales/common/eo.js +2 -1
- package/es/locales/common/esAR.js +2 -1
- package/es/locales/common/frFR.js +2 -1
- package/es/locales/common/idID.js +2 -1
- package/es/locales/common/itIT.js +2 -1
- package/es/locales/common/jaJP.js +2 -1
- package/es/locales/common/koKR.js +2 -1
- package/es/locales/common/nbNO.js +2 -1
- package/es/locales/common/nlNL.js +2 -1
- package/es/locales/common/plPL.js +2 -1
- package/es/locales/common/ptBR.js +2 -1
- package/es/locales/common/ruRU.js +2 -1
- package/es/locales/common/skSK.js +2 -1
- package/es/locales/common/thTH.js +2 -1
- package/es/locales/common/trTR.d.ts +3 -0
- package/es/locales/common/trTR.js +121 -0
- package/es/locales/common/ukUA.js +2 -1
- package/es/locales/common/viVN.js +2 -1
- package/es/locales/common/zhCN.js +2 -1
- package/es/locales/common/zhTW.js +2 -1
- package/es/locales/date/arDZ.d.ts +3 -0
- package/es/locales/date/arDZ.js +6 -0
- package/es/locales/date/trTR.d.ts +3 -0
- package/es/locales/date/trTR.js +6 -0
- package/es/locales/index.d.ts +4 -0
- package/es/locales/index.js +4 -0
- package/es/log/src/styles/index.cssr.js +2 -2
- package/es/mention/src/Mention.d.ts +6 -0
- package/es/mention/src/Mention.js +6 -1
- package/es/mention/src/styles/index.cssr.js +2 -2
- package/es/menu/src/styles/index.cssr.js +2 -3
- package/es/message/src/styles/index.cssr.js +2 -2
- package/es/modal/src/BodyWrapper.d.ts +1 -1
- package/es/modal/src/styles/index.cssr.js +2 -2
- package/es/notification/src/styles/index.cssr.js +2 -3
- package/es/page-header/src/styles/index.cssr.js +2 -2
- package/es/pagination/src/Pagination.js +1 -1
- package/es/pagination/src/styles/index.cssr.js +2 -2
- package/es/popconfirm/src/styles/index.cssr.js +2 -2
- package/es/popover/src/styles/index.cssr.js +5 -5
- package/es/popselect/src/styles/index.cssr.js +2 -2
- package/es/progress/src/styles/index.cssr.js +2 -2
- package/es/radio/src/styles/radio-group.cssr.js +2 -2
- package/es/radio/src/styles/radio.cssr.js +2 -2
- package/es/rate/src/styles/index.cssr.js +2 -2
- package/es/result/src/styles/index.cssr.js +2 -2
- package/es/select/src/Select.js +1 -0
- package/es/select/src/styles/index.cssr.js +2 -2
- package/es/skeleton/src/styles/index.cssr.js +2 -2
- package/es/slider/src/styles/index.cssr.js +2 -2
- package/es/spin/src/styles/index.cssr.js +2 -2
- package/es/statistic/src/styles/index.cssr.js +2 -2
- package/es/steps/src/styles/index.cssr.js +2 -2
- package/es/switch/src/styles/index.cssr.js +2 -2
- package/es/table/src/styles/index.cssr.js +2 -2
- package/es/tabs/src/Tabs.d.ts +7 -7
- package/es/tabs/src/styles/index.cssr.js +2 -2
- package/es/tag/src/styles/index.cssr.js +2 -2
- package/es/themes/dark.js +2 -0
- package/es/themes/light.js +2 -0
- package/es/thing/src/styles/index.cssr.js +2 -2
- package/es/time-picker/src/styles/index.cssr.js +2 -2
- package/es/timeline/src/styles/index.cssr.js +6 -3
- package/es/transfer/src/Transfer.d.ts +13 -0
- package/es/transfer/src/Transfer.js +6 -2
- package/es/transfer/src/TransferListItem.d.ts +2 -1
- package/es/transfer/src/TransferListItem.js +5 -4
- package/es/transfer/src/interface.d.ts +1 -0
- package/es/transfer/src/styles/index.cssr.js +2 -2
- package/es/transfer/src/use-transfer-data.d.ts +1 -0
- package/es/transfer/src/use-transfer-data.js +13 -4
- package/es/tree/src/Tree.d.ts +60 -30
- package/es/tree/src/Tree.js +70 -24
- package/es/tree/src/TreeNode.d.ts +1 -1
- package/es/tree/src/TreeNode.js +1 -1
- package/es/tree/src/TreeNodeSwitcher.d.ts +3 -0
- package/es/tree/src/TreeNodeSwitcher.js +7 -5
- package/es/tree/src/interface.d.ts +12 -1
- package/es/tree/src/styles/index.cssr.js +3 -2
- package/es/tree/src/utils.d.ts +6 -0
- package/es/tree/src/utils.js +4 -0
- package/es/tree-select/index.d.ts +1 -1
- package/es/tree-select/src/TreeSelect.d.ts +38 -19
- package/es/tree-select/src/TreeSelect.js +75 -48
- package/es/tree-select/src/interface.d.ts +33 -2
- package/es/tree-select/src/styles/index.cssr.js +2 -2
- package/es/typography/src/styles/a.cssr.js +2 -2
- package/es/typography/src/styles/blockquote.cssr.js +2 -2
- package/es/typography/src/styles/header.cssr.js +2 -2
- package/es/typography/src/styles/hr.cssr.js +2 -2
- package/es/typography/src/styles/list.cssr.js +2 -2
- package/es/typography/src/styles/p.cssr.js +2 -2
- package/es/typography/src/styles/text.cssr.js +2 -2
- package/es/upload/index.d.ts +1 -1
- package/es/upload/src/Upload.d.ts +77 -1
- package/es/upload/src/Upload.js +28 -11
- package/es/upload/src/UploadFile.d.ts +2 -0
- package/es/upload/src/UploadFile.js +9 -10
- package/es/upload/src/interface.d.ts +7 -3
- package/es/upload/src/utils.d.ts +2 -2
- package/es/upload/src/utils.js +2 -1
- package/es/version.d.ts +1 -1
- package/es/version.js +1 -1
- package/lib/_internal/clear/src/styles/index.cssr.js +2 -5
- package/lib/_internal/close/src/styles/index.cssr.js +2 -4
- package/lib/_internal/icon/src/styles/index.cssr.js +0 -2
- package/lib/_internal/index.d.ts +1 -0
- package/lib/_internal/loading/index.d.ts +1 -0
- package/lib/_internal/loading/src/Loading.d.ts +26 -14
- package/lib/_internal/loading/src/Loading.js +17 -20
- package/lib/_internal/loading/src/styles/index.cssr.js +0 -3
- package/lib/_internal/menu-mask/src/styles/index.cssr.js +0 -3
- package/lib/_internal/scrollbar/src/styles/index.cssr.js +2 -5
- package/lib/_internal/scrollbar/src/styles/rtl.cssr.js +0 -2
- package/lib/_internal/select-menu/src/styles/index.cssr.js +2 -5
- package/lib/_internal/selection/src/Selection.js +5 -5
- package/lib/_internal/selection/src/styles/index.cssr.js +2 -4
- package/lib/_internal/slot-machine/src/styles/index.cssr.js +4 -7
- package/lib/_internal/wave/src/styles/index.cssr.js +0 -2
- package/lib/_styles/global/index.cssr.js +2 -6
- package/lib/_styles/transitions/fade-down.cssr.js +0 -6
- package/lib/_styles/transitions/fade-in-height-expand.cssr.js +0 -6
- package/lib/_styles/transitions/fade-in-scale-up.cssr.js +0 -6
- package/lib/_styles/transitions/fade-in-width-expand.cssr.js +0 -6
- package/lib/_styles/transitions/fade-in.cssr.js +0 -6
- package/lib/_styles/transitions/fade-up-width-expand.cssr.js +0 -6
- package/lib/_styles/transitions/icon-switch.cssr.js +0 -6
- package/lib/affix/src/styles/index.cssr.js +0 -2
- package/lib/alert/src/styles/index.cssr.js +2 -5
- package/lib/alert/src/styles/rtl.cssr.js +0 -2
- package/lib/anchor/src/styles/index.cssr.js +2 -4
- package/lib/auto-complete/src/styles/index.cssr.js +2 -5
- package/lib/avatar/src/Avatar.d.ts +4 -1
- package/lib/avatar/src/Avatar.js +12 -13
- package/lib/avatar/src/styles/index.cssr.js +2 -4
- package/lib/avatar-group/index.d.ts +1 -1
- package/lib/avatar-group/src/AvatarGroup.d.ts +7 -7
- package/lib/avatar-group/src/styles/avatar-group-rtl.cssr.js +2 -4
- package/lib/avatar-group/src/styles/avatar-group.cssr.js +2 -4
- package/lib/back-top/src/styles/index.cssr.js +2 -5
- package/lib/badge/src/styles/index.cssr.js +2 -5
- package/lib/badge/src/styles/rtl.cssr.js +0 -2
- package/lib/breadcrumb/src/styles/index.cssr.js +2 -4
- package/lib/button/src/Button.d.ts +4 -1
- package/lib/button/src/Button.js +3 -3
- package/lib/button/src/styles/index.cssr.js +2 -7
- package/lib/button/src/styles/rtl.cssr.js +0 -2
- package/lib/button-group/src/styles/index.cssr.js +0 -5
- package/lib/button-group/src/styles/rtl.cssr.js +0 -4
- package/lib/calendar/src/styles/index.cssr.js +2 -4
- package/lib/card/src/styles/index.cssr.js +4 -5
- package/lib/card/src/styles/rtl.cssr.js +0 -2
- package/lib/carousel/src/styles/index.cssr.js +2 -4
- package/lib/cascader/src/Cascader.d.ts +8 -0
- package/lib/cascader/src/Cascader.js +41 -2
- package/lib/cascader/src/CascaderOption.d.ts +1 -1
- package/lib/cascader/src/CascaderOption.js +1 -7
- package/lib/cascader/src/CascaderSelectMenu.d.ts +3 -0
- package/lib/cascader/src/CascaderSelectMenu.js +8 -4
- package/lib/cascader/src/interface.d.ts +11 -1
- package/lib/cascader/src/styles/index.cssr.js +2 -5
- package/lib/checkbox/src/styles/index.cssr.js +8 -8
- package/lib/checkbox/src/styles/rtl.cssr.js +0 -2
- package/lib/code/src/Code.d.ts +1 -1
- package/lib/code/src/styles/index.cssr.js +2 -4
- package/lib/collapse/src/styles/index.cssr.js +2 -5
- package/lib/collapse/src/styles/rtl.cssr.js +0 -2
- package/lib/collapse-transition/src/styles/index.cssr.js +0 -3
- package/lib/collapse-transition/src/styles/rtl.cssr.js +0 -2
- package/lib/color-picker/src/ColorPicker.d.ts +5 -5
- package/lib/color-picker/src/ColorPicker.js +7 -1
- package/lib/color-picker/src/styles/index.cssr.js +2 -5
- package/lib/color-picker/src/utils.d.ts +1 -1
- package/lib/components.d.ts +1 -0
- package/lib/components.js +1 -0
- package/lib/config-provider/src/ConfigProvider.d.ts +6 -0
- package/lib/config-provider/src/ConfigProvider.js +7 -0
- package/lib/config-provider/src/internal-interface.d.ts +4 -0
- package/lib/data-table/src/DataTable.d.ts +11 -0
- package/lib/data-table/src/DataTable.js +6 -2
- package/lib/data-table/src/TableParts/Body.d.ts +1 -0
- package/lib/data-table/src/TableParts/Body.js +13 -5
- package/lib/data-table/src/TableParts/Header.js +7 -5
- package/lib/data-table/src/interface.d.ts +10 -2
- package/lib/data-table/src/interface.js +1 -1
- package/lib/data-table/src/styles/index.cssr.js +21 -13
- package/lib/date-picker/src/DatePicker.js +5 -0
- package/lib/date-picker/src/panel/panelHeader.d.ts +6 -6
- package/lib/date-picker/src/styles/index.cssr.js +2 -5
- package/lib/descriptions/src/styles/index.cssr.js +2 -4
- package/lib/dialog/src/DialogEnvironment.d.ts +3 -0
- package/lib/dialog/src/DialogEnvironment.js +2 -2
- package/lib/dialog/src/DialogProvider.d.ts +3 -0
- package/lib/dialog/src/styles/index.cssr.js +2 -4
- package/lib/divider/src/styles/index.cssr.js +2 -4
- package/lib/drawer/src/styles/index.cssr.js +2 -9
- package/lib/drawer/src/styles/rtl.cssr.js +0 -2
- package/lib/dropdown/src/styles/index.cssr.js +2 -5
- package/lib/dynamic-input/src/styles/index.cssr.js +2 -4
- package/lib/dynamic-input/src/styles/rtl.cssr.js +0 -2
- package/lib/dynamic-tags/src/styles/index.cssr.js +2 -4
- package/lib/ellipsis/src/styles/index.cssr.js +0 -2
- package/lib/empty/src/styles/index.cssr.js +2 -4
- package/lib/equation/index.d.ts +1 -0
- package/lib/equation/index.js +6 -0
- package/lib/equation/src/Equation.d.ts +18 -0
- package/lib/equation/src/Equation.js +32 -0
- package/lib/equation/styles/dark.d.ts +3 -0
- package/lib/equation/styles/dark.js +10 -0
- package/lib/equation/styles/index.d.ts +3 -0
- package/lib/equation/styles/index.js +10 -0
- package/lib/equation/styles/light.d.ts +6 -0
- package/lib/equation/styles/light.js +12 -0
- package/lib/form/src/FormItem.d.ts +3 -2
- package/lib/form/src/FormItem.js +24 -7
- package/lib/form/src/styles/form-item.cssr.js +5 -6
- package/lib/form/src/styles/form.cssr.js +0 -2
- package/lib/gradient-text/src/styles/index.cssr.js +2 -4
- package/lib/icon/src/styles/index.cssr.js +2 -4
- package/lib/icon-wrapper/src/styles/index.cssr.js +2 -4
- package/lib/image/src/Image.d.ts +4 -1
- package/lib/image/src/Image.js +11 -5
- package/lib/image/src/ImagePreview.d.ts +3 -2
- package/lib/image/src/ImagePreview.js +39 -6
- package/lib/image/src/interface.d.ts +5 -0
- package/lib/image/src/interface.js +3 -1
- package/lib/image/src/styles/index.cssr.js +2 -6
- package/lib/input/src/Input.d.ts +3 -0
- package/lib/input/src/Input.js +25 -6
- package/lib/input/src/WordCount.js +2 -2
- package/lib/input/src/interface.d.ts +1 -0
- package/lib/input/src/styles/input-group-label.cssr.js +2 -4
- package/lib/input/src/styles/input-group.cssr.js +0 -2
- package/lib/input/src/styles/input.cssr.js +11 -9
- package/lib/input/src/styles/rtl.cssr.js +0 -2
- package/lib/input-number/src/styles/input-number.cssr.js +0 -2
- package/lib/input-number/src/styles/rtl.cssr.js +0 -2
- package/lib/layout/src/styles/layout-footer.cssr.js +2 -4
- package/lib/layout/src/styles/layout-header.cssr.js +2 -4
- package/lib/layout/src/styles/layout-sider.cssr.js +2 -4
- package/lib/layout/src/styles/layout.cssr.js +2 -4
- package/lib/legacy-grid/src/styles/index.cssr.js +0 -2
- package/lib/legacy-grid/src/styles/rtl.cssr.js +0 -2
- package/lib/legacy-transfer/src/styles/index.cssr.js +0 -3
- package/lib/list/src/styles/index.cssr.js +2 -4
- package/lib/list/src/styles/rtl.cssr.js +0 -2
- package/lib/loading-bar/src/styles/index.cssr.js +2 -5
- package/lib/locales/common/arDZ.d.ts +3 -0
- package/lib/locales/common/arDZ.js +122 -0
- package/lib/locales/common/deDE.js +2 -1
- package/lib/locales/common/enGB.js +2 -1
- package/lib/locales/common/enUS.d.ts +1 -0
- package/lib/locales/common/enUS.js +2 -1
- package/lib/locales/common/eo.js +2 -1
- package/lib/locales/common/esAR.js +2 -1
- package/lib/locales/common/frFR.js +2 -1
- package/lib/locales/common/idID.js +2 -1
- package/lib/locales/common/itIT.js +2 -1
- package/lib/locales/common/jaJP.js +2 -1
- package/lib/locales/common/koKR.js +2 -1
- package/lib/locales/common/nbNO.js +2 -1
- package/lib/locales/common/nlNL.js +2 -1
- package/lib/locales/common/plPL.js +2 -1
- package/lib/locales/common/ptBR.js +2 -1
- package/lib/locales/common/ruRU.js +2 -1
- package/lib/locales/common/skSK.js +2 -1
- package/lib/locales/common/thTH.js +2 -1
- package/lib/locales/common/trTR.d.ts +3 -0
- package/lib/locales/common/trTR.js +123 -0
- package/lib/locales/common/ukUA.js +2 -1
- package/lib/locales/common/viVN.js +2 -1
- package/lib/locales/common/zhCN.js +2 -1
- package/lib/locales/common/zhTW.js +2 -1
- package/lib/locales/date/arDZ.d.ts +3 -0
- package/lib/locales/date/arDZ.js +11 -0
- package/lib/locales/date/trTR.d.ts +3 -0
- package/lib/locales/date/trTR.js +11 -0
- package/lib/locales/index.d.ts +4 -0
- package/lib/locales/index.js +9 -1
- package/lib/log/src/styles/index.cssr.js +2 -5
- package/lib/mention/src/Mention.d.ts +6 -0
- package/lib/mention/src/Mention.js +6 -1
- package/lib/mention/src/styles/index.cssr.js +2 -5
- package/lib/menu/src/styles/index.cssr.js +2 -6
- package/lib/message/src/styles/index.cssr.js +2 -6
- package/lib/message/src/styles/rtl.cssr.js +0 -2
- package/lib/modal/src/BodyWrapper.d.ts +1 -1
- package/lib/modal/src/styles/index.cssr.js +2 -6
- package/lib/notification/src/styles/index.cssr.js +2 -5
- package/lib/notification/src/styles/rtl.cssr.js +0 -2
- package/lib/page-header/src/styles/index.cssr.js +2 -4
- package/lib/page-header/src/styles/rtl.cssr.js +0 -2
- package/lib/pagination/src/Pagination.js +1 -1
- package/lib/pagination/src/styles/index.cssr.js +2 -4
- package/lib/pagination/src/styles/rtl.cssr.js +0 -2
- package/lib/popconfirm/src/styles/index.cssr.js +2 -4
- package/lib/popover/src/styles/index.cssr.js +5 -8
- package/lib/popselect/src/styles/index.cssr.js +2 -4
- package/lib/progress/src/styles/index.cssr.js +2 -4
- package/lib/radio/src/styles/radio-group.cssr.js +2 -4
- package/lib/radio/src/styles/radio.cssr.js +2 -4
- package/lib/radio/src/styles/rtl.cssr.js +0 -2
- package/lib/rate/src/styles/index.cssr.js +2 -4
- package/lib/result/src/styles/index.cssr.js +2 -4
- package/lib/select/src/Select.js +1 -0
- package/lib/select/src/styles/index.cssr.js +2 -5
- package/lib/skeleton/src/styles/index.cssr.js +2 -4
- package/lib/slider/src/styles/index.cssr.js +2 -5
- package/lib/space/src/styles/rtl.cssr.js +0 -2
- package/lib/spin/src/styles/index.cssr.js +2 -5
- package/lib/statistic/src/styles/index.cssr.js +2 -4
- package/lib/statistic/src/styles/rtl.cssr.js +0 -2
- package/lib/steps/src/styles/index.cssr.js +2 -5
- package/lib/steps/src/styles/rtl.cssr.js +0 -2
- package/lib/switch/src/styles/index.cssr.js +2 -5
- package/lib/table/src/styles/index.cssr.js +2 -4
- package/lib/table/src/styles/rtl.cssr.js +0 -2
- package/lib/tabs/src/Tabs.d.ts +7 -7
- package/lib/tabs/src/styles/index.cssr.js +2 -4
- package/lib/tag/src/styles/index.cssr.js +2 -4
- package/lib/tag/src/styles/rtl.cssr.js +0 -2
- package/lib/themes/dark.js +100 -98
- package/lib/themes/light.js +100 -98
- package/lib/thing/src/styles/index.cssr.js +2 -4
- package/lib/thing/src/styles/rtl.cssr.js +0 -2
- package/lib/time-picker/src/styles/index.cssr.js +2 -5
- package/lib/timeline/src/styles/index.cssr.js +6 -5
- package/lib/transfer/src/Transfer.d.ts +13 -0
- package/lib/transfer/src/Transfer.js +6 -2
- package/lib/transfer/src/TransferListItem.d.ts +2 -1
- package/lib/transfer/src/TransferListItem.js +5 -4
- package/lib/transfer/src/interface.d.ts +1 -0
- package/lib/transfer/src/styles/index.cssr.js +2 -4
- package/lib/transfer/src/use-transfer-data.d.ts +1 -0
- package/lib/transfer/src/use-transfer-data.js +13 -4
- package/lib/tree/src/Tree.d.ts +60 -30
- package/lib/tree/src/Tree.js +69 -23
- package/lib/tree/src/TreeNode.d.ts +1 -1
- package/lib/tree/src/TreeNode.js +1 -1
- package/lib/tree/src/TreeNodeSwitcher.d.ts +3 -0
- package/lib/tree/src/TreeNodeSwitcher.js +7 -5
- package/lib/tree/src/interface.d.ts +12 -1
- package/lib/tree/src/styles/index.cssr.js +3 -6
- package/lib/tree/src/styles/rtl.cssr.js +0 -2
- package/lib/tree/src/utils.d.ts +6 -0
- package/lib/tree/src/utils.js +6 -1
- package/lib/tree-select/index.d.ts +1 -1
- package/lib/tree-select/src/TreeSelect.d.ts +38 -19
- package/lib/tree-select/src/TreeSelect.js +75 -48
- package/lib/tree-select/src/interface.d.ts +33 -2
- package/lib/tree-select/src/styles/index.cssr.js +2 -5
- package/lib/typography/src/styles/a.cssr.js +2 -4
- package/lib/typography/src/styles/blockquote.cssr.js +2 -4
- package/lib/typography/src/styles/header.cssr.js +2 -4
- package/lib/typography/src/styles/hr.cssr.js +2 -4
- package/lib/typography/src/styles/list.cssr.js +2 -4
- package/lib/typography/src/styles/p.cssr.js +2 -4
- package/lib/typography/src/styles/text.cssr.js +2 -4
- package/lib/upload/index.d.ts +1 -1
- package/lib/upload/src/Upload.d.ts +77 -1
- package/lib/upload/src/Upload.js +27 -10
- package/lib/upload/src/UploadFile.d.ts +2 -0
- package/lib/upload/src/UploadFile.js +8 -9
- package/lib/upload/src/interface.d.ts +7 -3
- package/lib/upload/src/styles/index.cssr.js +0 -4
- package/lib/upload/src/utils.d.ts +2 -2
- package/lib/upload/src/utils.js +2 -1
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/lib/watermark/src/styles/index.cssr.js +0 -2
- package/package.json +13 -10
- package/volar.d.ts +1 -0
- package/web-types.json +236 -57
|
@@ -7,34 +7,31 @@ const vue_1 = require("vue");
|
|
|
7
7
|
const _mixins_1 = require("../../../_mixins");
|
|
8
8
|
const icon_switch_transition_1 = __importDefault(require("../../icon-switch-transition"));
|
|
9
9
|
const index_cssr_1 = __importDefault(require("./styles/index.cssr"));
|
|
10
|
+
const exposedLoadingProps = {
|
|
11
|
+
strokeWidth: {
|
|
12
|
+
type: Number,
|
|
13
|
+
default: 28
|
|
14
|
+
},
|
|
15
|
+
stroke: {
|
|
16
|
+
type: String,
|
|
17
|
+
default: undefined
|
|
18
|
+
}
|
|
19
|
+
};
|
|
10
20
|
exports.default = (0, vue_1.defineComponent)({
|
|
11
21
|
name: 'BaseLoading',
|
|
12
|
-
props: {
|
|
13
|
-
clsPrefix: {
|
|
22
|
+
props: Object.assign({ clsPrefix: {
|
|
14
23
|
type: String,
|
|
15
24
|
required: true
|
|
16
|
-
},
|
|
17
|
-
|
|
25
|
+
}, show: {
|
|
26
|
+
type: Boolean,
|
|
27
|
+
default: true
|
|
28
|
+
}, scale: {
|
|
18
29
|
type: Number,
|
|
19
30
|
default: 1
|
|
20
|
-
},
|
|
21
|
-
radius: {
|
|
31
|
+
}, radius: {
|
|
22
32
|
type: Number,
|
|
23
33
|
default: 100
|
|
24
|
-
},
|
|
25
|
-
strokeWidth: {
|
|
26
|
-
type: Number,
|
|
27
|
-
default: 28
|
|
28
|
-
},
|
|
29
|
-
stroke: {
|
|
30
|
-
type: String,
|
|
31
|
-
default: undefined
|
|
32
|
-
},
|
|
33
|
-
show: {
|
|
34
|
-
type: Boolean,
|
|
35
|
-
default: true
|
|
36
|
-
}
|
|
37
|
-
},
|
|
34
|
+
} }, exposedLoadingProps),
|
|
38
35
|
setup(props) {
|
|
39
36
|
(0, _mixins_1.useStyle)('-base-loading', index_cssr_1.default, (0, vue_1.toRef)(props, 'clsPrefix'));
|
|
40
37
|
},
|
|
@@ -3,11 +3,8 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
|
|
7
6
|
const cssr_1 = require("../../../../_utils/cssr");
|
|
8
|
-
|
|
9
7
|
const icon_switch_cssr_1 = require("../../../../_styles/transitions/icon-switch.cssr");
|
|
10
|
-
|
|
11
8
|
exports.default = (0, cssr_1.c)([(0, cssr_1.c)('@keyframes loading-container-rotate', `
|
|
12
9
|
to {
|
|
13
10
|
-webkit-transform: rotate(360deg);
|
|
@@ -3,11 +3,8 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
|
|
7
6
|
const cssr_1 = require("../../../../_utils/cssr");
|
|
8
|
-
|
|
9
7
|
const fade_in_cssr_1 = require("../../../../_styles/transitions/fade-in.cssr");
|
|
10
|
-
|
|
11
8
|
exports.default = (0, cssr_1.cB)('base-menu-mask', `
|
|
12
9
|
position: absolute;
|
|
13
10
|
left: 0;
|
|
@@ -3,18 +3,15 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
|
|
7
6
|
const cssr_1 = require("../../../../_utils/cssr");
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
const fade_in_cssr_1 = require("../../../../_styles/transitions/fade-in.cssr");
|
|
8
|
+
// vars:
|
|
10
9
|
// --n-scrollbar-bezier
|
|
11
10
|
// --n-scrollbar-color
|
|
12
11
|
// --n-scrollbar-color-hover
|
|
13
12
|
// --n-scrollbar-width
|
|
14
13
|
// --n-scrollbar-height
|
|
15
14
|
// --n-scrollbar-border-radius
|
|
16
|
-
|
|
17
|
-
|
|
18
15
|
exports.default = (0, cssr_1.cB)('scrollbar', `
|
|
19
16
|
overflow: hidden;
|
|
20
17
|
position: relative;
|
|
@@ -3,9 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
|
|
7
6
|
const cssr_1 = require("../../../../_utils/cssr");
|
|
8
|
-
|
|
9
7
|
exports.default = (0, cssr_1.cB)('scrollbar', [(0, cssr_1.cM)('rtl', `
|
|
10
8
|
direction: rtl;
|
|
11
9
|
`, [(0, cssr_1.c)('>', [(0, cssr_1.cB)('scrollbar-rail', [(0, cssr_1.cM)('horizontal', [(0, cssr_1.c)('>', [(0, cssr_1.cE)('scrollbar', `
|
|
@@ -3,14 +3,11 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
|
|
7
6
|
const cssr_1 = require("../../../../_utils/cssr");
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
const fade_in_scale_up_cssr_1 = require("../../../../_styles/transitions/fade-in-scale-up.cssr");
|
|
8
|
+
// --n-loading-color
|
|
10
9
|
// --n-loading-size
|
|
11
10
|
// --n-option-padding-right
|
|
12
|
-
|
|
13
|
-
|
|
14
11
|
exports.default = (0, cssr_1.cB)('base-select-menu', `
|
|
15
12
|
line-height: 1.5;
|
|
16
13
|
outline: none;
|
|
@@ -461,7 +461,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
461
461
|
? renderLabel(option, true)
|
|
462
462
|
: (0, _utils_1.render)(option[labelField], option, true)
|
|
463
463
|
}))));
|
|
464
|
-
const
|
|
464
|
+
const createOriginalTagNodes = () => (maxTagCountNumeric
|
|
465
465
|
? this.selectedOptions.slice(0, maxTagCount)
|
|
466
466
|
: this.selectedOptions).map(createTag);
|
|
467
467
|
const input = filterable ? ((0, vue_1.h)("div", { class: `${clsPrefix}-base-selection-input-tag`, ref: "inputTagElRef", key: "__input-tag__" },
|
|
@@ -487,7 +487,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
487
487
|
display: 'flex',
|
|
488
488
|
overflow: 'hidden'
|
|
489
489
|
} }, {
|
|
490
|
-
default:
|
|
490
|
+
default: createOriginalTagNodes,
|
|
491
491
|
counter: renderCounter,
|
|
492
492
|
tail: () => input
|
|
493
493
|
})) : ((0, vue_1.h)(vueuc_1.VOverflow, { ref: "overflowRef", updateCounter: this.updateCounter, getCounter: this.getCounter, style: {
|
|
@@ -495,12 +495,12 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
495
495
|
display: 'flex',
|
|
496
496
|
overflow: 'hidden'
|
|
497
497
|
} }, {
|
|
498
|
-
default:
|
|
498
|
+
default: createOriginalTagNodes,
|
|
499
499
|
counter: renderCounter
|
|
500
|
-
}))) : maxTagCountNumeric ? (
|
|
500
|
+
}))) : maxTagCountNumeric ? (createOriginalTagNodes().concat(counter)) : (createOriginalTagNodes());
|
|
501
501
|
const renderPopover = useMaxTagCount
|
|
502
502
|
? () => ((0, vue_1.h)("div", { class: `${clsPrefix}-base-selection-popover` }, maxTagCountResponsive
|
|
503
|
-
?
|
|
503
|
+
? createOriginalTagNodes()
|
|
504
504
|
: this.selectedOptions.map(createTag)))
|
|
505
505
|
: undefined;
|
|
506
506
|
const popoverProps = useMaxTagCount
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
const cssr_1 = require("../../../../_utils/cssr");
|
|
7
|
+
// vars:
|
|
8
8
|
// --n-bezier
|
|
9
9
|
// --n-border
|
|
10
10
|
// --n-border-active
|
|
@@ -31,8 +31,6 @@ const cssr_1 = require("../../../../_utils/cssr"); // vars:
|
|
|
31
31
|
// --n-loading-color
|
|
32
32
|
// ...clear vars
|
|
33
33
|
// ...form item vars
|
|
34
|
-
|
|
35
|
-
|
|
36
34
|
exports.default = (0, cssr_1.c)([(0, cssr_1.cB)('base-selection', `
|
|
37
35
|
position: relative;
|
|
38
36
|
z-index: auto;
|
|
@@ -3,14 +3,10 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
|
|
7
6
|
const cssr_1 = require("../../../../_utils/cssr");
|
|
8
|
-
|
|
9
7
|
const fade_in_width_expand_cssr_1 = require("../../../../_styles/transitions/fade-in-width-expand.cssr");
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
8
|
+
const fade_up_width_expand_cssr_1 = require("../../../../_styles/transitions/fade-up-width-expand.cssr");
|
|
9
|
+
// ease-out: cubic-bezier(0, 0, .2, 1)
|
|
14
10
|
exports.default = (0, cssr_1.c)([(0, cssr_1.c)('@keyframes n-base-slot-machine-fade-up-in', `
|
|
15
11
|
from {
|
|
16
12
|
transform: translateY(60%);
|
|
@@ -61,7 +57,8 @@ exports.default = (0, cssr_1.c)([(0, cssr_1.c)('@keyframes n-base-slot-machine-f
|
|
|
61
57
|
max-width: .6em;
|
|
62
58
|
`, [(0, fade_up_width_expand_cssr_1.fadeUpWidthExpandTransition)({
|
|
63
59
|
duration: '.2s'
|
|
64
|
-
}),
|
|
60
|
+
}),
|
|
61
|
+
// use 0s, not 0
|
|
65
62
|
(0, fade_in_width_expand_cssr_1.fadeInWidthExpandTransition)({
|
|
66
63
|
duration: '.2s',
|
|
67
64
|
delay: '0s'
|
|
@@ -5,20 +5,17 @@ var __importDefault = this && this.__importDefault || function (mod) {
|
|
|
5
5
|
"default": mod
|
|
6
6
|
};
|
|
7
7
|
};
|
|
8
|
-
|
|
9
8
|
Object.defineProperty(exports, "__esModule", {
|
|
10
9
|
value: true
|
|
11
10
|
});
|
|
12
|
-
|
|
13
11
|
const cssr_1 = require("../../_utils/cssr");
|
|
14
|
-
|
|
15
12
|
const _common_1 = __importDefault(require("../common/_common"));
|
|
16
|
-
|
|
17
13
|
const {
|
|
18
14
|
fontSize,
|
|
19
15
|
fontFamily,
|
|
20
16
|
lineHeight
|
|
21
|
-
} = _common_1.default;
|
|
17
|
+
} = _common_1.default;
|
|
18
|
+
// All the components need the style
|
|
22
19
|
// It is static and won't be changed in the app's lifetime
|
|
23
20
|
// If user want to overrides it they need to use `n-global-style` is provided
|
|
24
21
|
//
|
|
@@ -28,7 +25,6 @@ const {
|
|
|
28
25
|
// -webkit-tap-hilight-color:
|
|
29
26
|
// https://developer.mozilla.org/en-US/docs/Web/CSS/-webkit-tap-highlight-color
|
|
30
27
|
// In some android devices, there will be the style.
|
|
31
|
-
|
|
32
28
|
exports.default = (0, cssr_1.c)('body', `
|
|
33
29
|
margin: 0;
|
|
34
30
|
font-size: ${fontSize};
|
|
@@ -5,20 +5,15 @@ var __importDefault = this && this.__importDefault || function (mod) {
|
|
|
5
5
|
"default": mod
|
|
6
6
|
};
|
|
7
7
|
};
|
|
8
|
-
|
|
9
8
|
Object.defineProperty(exports, "__esModule", {
|
|
10
9
|
value: true
|
|
11
10
|
});
|
|
12
11
|
exports.fadeDownTransition = void 0;
|
|
13
|
-
|
|
14
12
|
const cssr_1 = require("../../_utils/cssr");
|
|
15
|
-
|
|
16
13
|
const _common_1 = __importDefault(require("../common/_common"));
|
|
17
|
-
|
|
18
14
|
const {
|
|
19
15
|
cubicBezierEaseInOut
|
|
20
16
|
} = _common_1.default;
|
|
21
|
-
|
|
22
17
|
function fadeDownTransition({
|
|
23
18
|
name = 'fade-down',
|
|
24
19
|
fromOffset = '-4px',
|
|
@@ -39,5 +34,4 @@ function fadeDownTransition({
|
|
|
39
34
|
transition: `opacity ${enterDuration} ${enterCubicBezier}, transform ${enterDuration} ${enterCubicBezier}`
|
|
40
35
|
})];
|
|
41
36
|
}
|
|
42
|
-
|
|
43
37
|
exports.fadeDownTransition = fadeDownTransition;
|
|
@@ -5,22 +5,17 @@ var __importDefault = this && this.__importDefault || function (mod) {
|
|
|
5
5
|
"default": mod
|
|
6
6
|
};
|
|
7
7
|
};
|
|
8
|
-
|
|
9
8
|
Object.defineProperty(exports, "__esModule", {
|
|
10
9
|
value: true
|
|
11
10
|
});
|
|
12
11
|
exports.fadeInHeightExpandTransition = void 0;
|
|
13
|
-
|
|
14
12
|
const cssr_1 = require("../../_utils/cssr");
|
|
15
|
-
|
|
16
13
|
const _common_1 = __importDefault(require("../common/_common"));
|
|
17
|
-
|
|
18
14
|
const {
|
|
19
15
|
cubicBezierEaseInOut,
|
|
20
16
|
cubicBezierEaseOut,
|
|
21
17
|
cubicBezierEaseIn
|
|
22
18
|
} = _common_1.default;
|
|
23
|
-
|
|
24
19
|
function fadeInHeightExpandTransition({
|
|
25
20
|
overflow = 'hidden',
|
|
26
21
|
duration = '.3s',
|
|
@@ -65,5 +60,4 @@ function fadeInHeightExpandTransition({
|
|
|
65
60
|
${originalTransition ? ',' + originalTransition : ''}
|
|
66
61
|
`)];
|
|
67
62
|
}
|
|
68
|
-
|
|
69
63
|
exports.fadeInHeightExpandTransition = fadeInHeightExpandTransition;
|
|
@@ -5,21 +5,16 @@ var __importDefault = this && this.__importDefault || function (mod) {
|
|
|
5
5
|
"default": mod
|
|
6
6
|
};
|
|
7
7
|
};
|
|
8
|
-
|
|
9
8
|
Object.defineProperty(exports, "__esModule", {
|
|
10
9
|
value: true
|
|
11
10
|
});
|
|
12
11
|
exports.fadeInScaleUpTransition = void 0;
|
|
13
|
-
|
|
14
12
|
const cssr_1 = require("../../_utils/cssr");
|
|
15
|
-
|
|
16
13
|
const _common_1 = __importDefault(require("../common/_common"));
|
|
17
|
-
|
|
18
14
|
const {
|
|
19
15
|
cubicBezierEaseIn,
|
|
20
16
|
cubicBezierEaseOut
|
|
21
17
|
} = _common_1.default;
|
|
22
|
-
|
|
23
18
|
function fadeInScaleUpTransition({
|
|
24
19
|
transformOrigin = 'inherit',
|
|
25
20
|
duration = '.2s',
|
|
@@ -41,5 +36,4 @@ function fadeInScaleUpTransition({
|
|
|
41
36
|
transform: `${originalTransform} scale(1)`
|
|
42
37
|
})];
|
|
43
38
|
}
|
|
44
|
-
|
|
45
39
|
exports.fadeInScaleUpTransition = fadeInScaleUpTransition;
|
|
@@ -5,20 +5,15 @@ var __importDefault = this && this.__importDefault || function (mod) {
|
|
|
5
5
|
"default": mod
|
|
6
6
|
};
|
|
7
7
|
};
|
|
8
|
-
|
|
9
8
|
Object.defineProperty(exports, "__esModule", {
|
|
10
9
|
value: true
|
|
11
10
|
});
|
|
12
11
|
exports.fadeInWidthExpandTransition = void 0;
|
|
13
|
-
|
|
14
12
|
const cssr_1 = require("../../_utils/cssr");
|
|
15
|
-
|
|
16
13
|
const _common_1 = __importDefault(require("../common/_common"));
|
|
17
|
-
|
|
18
14
|
const {
|
|
19
15
|
cubicBezierEaseInOut
|
|
20
16
|
} = _common_1.default;
|
|
21
|
-
|
|
22
17
|
function fadeInWidthExpandTransition({
|
|
23
18
|
duration = '.2s',
|
|
24
19
|
delay = '.1s'
|
|
@@ -45,5 +40,4 @@ function fadeInWidthExpandTransition({
|
|
|
45
40
|
margin-right ${duration} ${cubicBezierEaseInOut};
|
|
46
41
|
`)];
|
|
47
42
|
}
|
|
48
|
-
|
|
49
43
|
exports.fadeInWidthExpandTransition = fadeInWidthExpandTransition;
|
|
@@ -5,20 +5,15 @@ var __importDefault = this && this.__importDefault || function (mod) {
|
|
|
5
5
|
"default": mod
|
|
6
6
|
};
|
|
7
7
|
};
|
|
8
|
-
|
|
9
8
|
Object.defineProperty(exports, "__esModule", {
|
|
10
9
|
value: true
|
|
11
10
|
});
|
|
12
11
|
exports.fadeInTransition = void 0;
|
|
13
|
-
|
|
14
12
|
const cssr_1 = require("../../_utils/cssr");
|
|
15
|
-
|
|
16
13
|
const _common_1 = __importDefault(require("../common/_common"));
|
|
17
|
-
|
|
18
14
|
const {
|
|
19
15
|
cubicBezierEaseInOut
|
|
20
16
|
} = _common_1.default;
|
|
21
|
-
|
|
22
17
|
function fadeInTransition({
|
|
23
18
|
name = 'fade-in',
|
|
24
19
|
enterDuration = '0.2s',
|
|
@@ -36,5 +31,4 @@ function fadeInTransition({
|
|
|
36
31
|
opacity: 1
|
|
37
32
|
})];
|
|
38
33
|
}
|
|
39
|
-
|
|
40
34
|
exports.fadeInTransition = fadeInTransition;
|
|
@@ -5,20 +5,15 @@ var __importDefault = this && this.__importDefault || function (mod) {
|
|
|
5
5
|
"default": mod
|
|
6
6
|
};
|
|
7
7
|
};
|
|
8
|
-
|
|
9
8
|
Object.defineProperty(exports, "__esModule", {
|
|
10
9
|
value: true
|
|
11
10
|
});
|
|
12
11
|
exports.fadeUpWidthExpandTransition = void 0;
|
|
13
|
-
|
|
14
12
|
const cssr_1 = require("../../_utils/cssr");
|
|
15
|
-
|
|
16
13
|
const _common_1 = __importDefault(require("../common/_common"));
|
|
17
|
-
|
|
18
14
|
const {
|
|
19
15
|
cubicBezierEaseOut
|
|
20
16
|
} = _common_1.default;
|
|
21
|
-
|
|
22
17
|
function fadeUpWidthExpandTransition({
|
|
23
18
|
duration = '.2s'
|
|
24
19
|
} = {}) {
|
|
@@ -50,5 +45,4 @@ function fadeUpWidthExpandTransition({
|
|
|
50
45
|
transform: 'translateY(60%)'
|
|
51
46
|
})];
|
|
52
47
|
}
|
|
53
|
-
|
|
54
48
|
exports.fadeUpWidthExpandTransition = fadeUpWidthExpandTransition;
|
|
@@ -5,20 +5,15 @@ var __importDefault = this && this.__importDefault || function (mod) {
|
|
|
5
5
|
"default": mod
|
|
6
6
|
};
|
|
7
7
|
};
|
|
8
|
-
|
|
9
8
|
Object.defineProperty(exports, "__esModule", {
|
|
10
9
|
value: true
|
|
11
10
|
});
|
|
12
11
|
exports.iconSwitchTransition = void 0;
|
|
13
|
-
|
|
14
12
|
const cssr_1 = require("../../_utils/cssr");
|
|
15
|
-
|
|
16
13
|
const _common_1 = __importDefault(require("../common/_common"));
|
|
17
|
-
|
|
18
14
|
const {
|
|
19
15
|
cubicBezierEaseInOut
|
|
20
16
|
} = _common_1.default;
|
|
21
|
-
|
|
22
17
|
function iconSwitchTransition({
|
|
23
18
|
originalTransform = '',
|
|
24
19
|
left = 0,
|
|
@@ -43,5 +38,4 @@ function iconSwitchTransition({
|
|
|
43
38
|
transition
|
|
44
39
|
})];
|
|
45
40
|
}
|
|
46
|
-
|
|
47
41
|
exports.iconSwitchTransition = iconSwitchTransition;
|
|
@@ -3,10 +3,9 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
|
|
7
6
|
const cssr_1 = require("../../../_utils/cssr");
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
const fade_in_height_expand_cssr_1 = require("../../../_styles/transitions/fade-in-height-expand.cssr");
|
|
8
|
+
// vars:
|
|
10
9
|
// --n-bezier
|
|
11
10
|
// --n-color
|
|
12
11
|
// --n-close-color-hover
|
|
@@ -30,8 +29,6 @@ const fade_in_height_expand_cssr_1 = require("../../../_styles/transitions/fade-
|
|
|
30
29
|
// --n-padding
|
|
31
30
|
// --n-icon-margin-left
|
|
32
31
|
// --n-icon-margin-right
|
|
33
|
-
|
|
34
|
-
|
|
35
32
|
exports.default = (0, cssr_1.cB)('alert', `
|
|
36
33
|
line-height: var(--n-line-height);
|
|
37
34
|
border-radius: var(--n-border-radius);
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
const cssr_1 = require("../../../_utils/cssr");
|
|
7
|
+
// vars:
|
|
8
8
|
// --n-link-color
|
|
9
9
|
// --n-link-font-size
|
|
10
10
|
// --n-link-text-color
|
|
@@ -17,8 +17,6 @@ const cssr_1 = require("../../../_utils/cssr"); // vars:
|
|
|
17
17
|
// --n-rail-width
|
|
18
18
|
// --n-link-padding
|
|
19
19
|
// --n-link-border-radius
|
|
20
|
-
|
|
21
|
-
|
|
22
20
|
exports.default = (0, cssr_1.cB)('anchor', `
|
|
23
21
|
position: relative;
|
|
24
22
|
`, [(0, cssr_1.cNotM)('block', `
|
|
@@ -3,14 +3,11 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
|
|
7
6
|
const cssr_1 = require("../../../_utils/cssr");
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
const fade_in_scale_up_cssr_1 = require("../../../_styles/transitions/fade-in-scale-up.cssr");
|
|
8
|
+
// vars:
|
|
10
9
|
// --n-bezier
|
|
11
10
|
// --n-menu-box-shadow
|
|
12
|
-
|
|
13
|
-
|
|
14
11
|
exports.default = (0, cssr_1.c)([(0, cssr_1.cB)('auto-complete', `
|
|
15
12
|
z-index: auto;
|
|
16
13
|
position: relative;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PropType, VNodeChild } from 'vue';
|
|
1
|
+
import { PropType, VNodeChild, ImgHTMLAttributes } from 'vue';
|
|
2
2
|
import { IntersectionObserverOptions } from '../../image/src/utils';
|
|
3
3
|
import type { ExtractPublicPropTypes } from '../../_utils';
|
|
4
4
|
import type { Size, ObjectFit } from './interface';
|
|
@@ -25,6 +25,7 @@ export declare const avatarProps: {
|
|
|
25
25
|
readonly onLoad: PropType<(e: Event) => void>;
|
|
26
26
|
readonly renderPlaceholder: PropType<() => VNodeChild>;
|
|
27
27
|
readonly renderFallback: PropType<() => VNodeChild>;
|
|
28
|
+
readonly imgProps: PropType<ImgHTMLAttributes>;
|
|
28
29
|
/** @deprecated */
|
|
29
30
|
readonly color: StringConstructor;
|
|
30
31
|
readonly theme: PropType<import("../../_mixins").Theme<"Avatar", {
|
|
@@ -91,6 +92,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
91
92
|
readonly onLoad: PropType<(e: Event) => void>;
|
|
92
93
|
readonly renderPlaceholder: PropType<() => VNodeChild>;
|
|
93
94
|
readonly renderFallback: PropType<() => VNodeChild>;
|
|
95
|
+
readonly imgProps: PropType<ImgHTMLAttributes>;
|
|
94
96
|
/** @deprecated */
|
|
95
97
|
readonly color: StringConstructor;
|
|
96
98
|
readonly theme: PropType<import("../../_mixins").Theme<"Avatar", {
|
|
@@ -178,6 +180,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
178
180
|
readonly onLoad: PropType<(e: Event) => void>;
|
|
179
181
|
readonly renderPlaceholder: PropType<() => VNodeChild>;
|
|
180
182
|
readonly renderFallback: PropType<() => VNodeChild>;
|
|
183
|
+
readonly imgProps: PropType<ImgHTMLAttributes>;
|
|
181
184
|
/** @deprecated */
|
|
182
185
|
readonly color: StringConstructor;
|
|
183
186
|
readonly theme: PropType<import("../../_mixins").Theme<"Avatar", {
|
package/lib/avatar/src/Avatar.js
CHANGED
|
@@ -23,7 +23,7 @@ exports.avatarProps = Object.assign(Object.assign({}, _mixins_1.useTheme.props),
|
|
|
23
23
|
}, bordered: {
|
|
24
24
|
type: Boolean,
|
|
25
25
|
default: undefined
|
|
26
|
-
}, onError: Function, fallbackSrc: String, intersectionObserverOptions: Object, lazy: Boolean, onLoad: Function, renderPlaceholder: Function, renderFallback: Function,
|
|
26
|
+
}, onError: Function, fallbackSrc: String, intersectionObserverOptions: Object, lazy: Boolean, onLoad: Function, renderPlaceholder: Function, renderFallback: Function, imgProps: Object,
|
|
27
27
|
/** @deprecated */
|
|
28
28
|
color: String });
|
|
29
29
|
exports.default = (0, vue_1.defineComponent)({
|
|
@@ -80,10 +80,12 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
80
80
|
return props.bordered || false;
|
|
81
81
|
});
|
|
82
82
|
const handleError = (e) => {
|
|
83
|
+
var _a;
|
|
83
84
|
if (!shouldStartLoadingRef.value)
|
|
84
85
|
return;
|
|
85
86
|
hasLoadErrorRef.value = true;
|
|
86
|
-
const { onError } = props;
|
|
87
|
+
const { onError, imgProps } = props;
|
|
88
|
+
(_a = imgProps === null || imgProps === void 0 ? void 0 : imgProps.onError) === null || _a === void 0 ? void 0 : _a.call(imgProps, e);
|
|
87
89
|
if (onError) {
|
|
88
90
|
onError(e);
|
|
89
91
|
}
|
|
@@ -173,8 +175,10 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
173
175
|
shouldStartLoading: shouldStartLoadingRef,
|
|
174
176
|
loaded: loadedRef,
|
|
175
177
|
mergedOnLoad: (e) => {
|
|
176
|
-
|
|
178
|
+
var _a;
|
|
179
|
+
const { onLoad, imgProps } = props;
|
|
177
180
|
onLoad === null || onLoad === void 0 ? void 0 : onLoad(e);
|
|
181
|
+
(_a = imgProps === null || imgProps === void 0 ? void 0 : imgProps.onLoad) === null || _a === void 0 ? void 0 : _a.call(imgProps, e);
|
|
178
182
|
loadedRef.value = true;
|
|
179
183
|
}
|
|
180
184
|
};
|
|
@@ -204,17 +208,13 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
204
208
|
}));
|
|
205
209
|
}
|
|
206
210
|
else if (src) {
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
src: is_native_lazy_load_1.isImageSupportNativeLazy
|
|
211
|
+
const { imgProps } = this;
|
|
212
|
+
return (0, vue_1.h)('img', Object.assign(Object.assign({}, imgProps), { loading: is_native_lazy_load_1.isImageSupportNativeLazy && lazy ? 'lazy' : 'eager', src: is_native_lazy_load_1.isImageSupportNativeLazy
|
|
210
213
|
? src
|
|
211
214
|
: shouldStartLoading || loaded
|
|
212
215
|
? src
|
|
213
|
-
: undefined,
|
|
214
|
-
|
|
215
|
-
'data-image-src': src,
|
|
216
|
-
onError: this.handleError,
|
|
217
|
-
style: [
|
|
216
|
+
: undefined, onLoad: mergedOnLoad, 'data-image-src': src, onError: this.handleError, style: [
|
|
217
|
+
imgProps === null || imgProps === void 0 ? void 0 : imgProps.style,
|
|
218
218
|
{ objectFit: this.objectFit },
|
|
219
219
|
placeholderNode
|
|
220
220
|
? {
|
|
@@ -224,8 +224,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
224
224
|
position: 'absolute'
|
|
225
225
|
}
|
|
226
226
|
: ''
|
|
227
|
-
]
|
|
228
|
-
});
|
|
227
|
+
] }));
|
|
229
228
|
}
|
|
230
229
|
});
|
|
231
230
|
}
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
const cssr_1 = require("../../../_utils/cssr");
|
|
7
|
+
// vars:
|
|
8
8
|
// --n-font-size
|
|
9
9
|
// --n-border-radius
|
|
10
10
|
// --n-color
|
|
@@ -12,8 +12,6 @@ const cssr_1 = require("../../../_utils/cssr"); // vars:
|
|
|
12
12
|
// --n-color-popover
|
|
13
13
|
// --n-bezier
|
|
14
14
|
// --n-merged-size
|
|
15
|
-
|
|
16
|
-
|
|
17
15
|
exports.default = (0, cssr_1.cB)('avatar', `
|
|
18
16
|
width: var(--n-merged-size);
|
|
19
17
|
height: var(--n-merged-size);
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { default as NAvatarGroup, avatarGroupProps } from './src/AvatarGroup';
|
|
2
|
-
export type { AvatarGroupProps } from './src/AvatarGroup';
|
|
2
|
+
export type { AvatarGroupProps, AvatarGroupOption } from './src/AvatarGroup';
|