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
|
@@ -20,6 +20,7 @@ const styles_1 = require("../styles");
|
|
|
20
20
|
const interface_1 = require("./interface");
|
|
21
21
|
const utils_1 = require("./utils");
|
|
22
22
|
const index_cssr_1 = __importDefault(require("./styles/index.cssr"));
|
|
23
|
+
const utils_2 = require("../../tree/src/utils");
|
|
23
24
|
exports.treeSelectProps = Object.assign(Object.assign(Object.assign(Object.assign({}, _mixins_1.useTheme.props), { bordered: {
|
|
24
25
|
type: Boolean,
|
|
25
26
|
default: true
|
|
@@ -203,12 +204,13 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
203
204
|
(0, _utils_1.call)(_onUpdateShow, value);
|
|
204
205
|
uncontrolledShowRef.value = value;
|
|
205
206
|
}
|
|
206
|
-
function doUpdateValue(value, option) {
|
|
207
|
+
function doUpdateValue(value, option, meta) {
|
|
207
208
|
const { onUpdateValue, 'onUpdate:value': _onUpdateValue } = props;
|
|
208
|
-
if (onUpdateValue)
|
|
209
|
-
(0, _utils_1.call)(onUpdateValue, value, option);
|
|
209
|
+
if (onUpdateValue) {
|
|
210
|
+
(0, _utils_1.call)(onUpdateValue, value, option, meta);
|
|
211
|
+
}
|
|
210
212
|
if (_onUpdateValue) {
|
|
211
|
-
(0, _utils_1.call)(_onUpdateValue, value, option);
|
|
213
|
+
(0, _utils_1.call)(_onUpdateValue, value, option, meta);
|
|
212
214
|
}
|
|
213
215
|
uncontrolledValueRef.value = value;
|
|
214
216
|
nTriggerFormInput();
|
|
@@ -223,13 +225,13 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
223
225
|
(0, _utils_1.call)(_onUpdateIndeterminateKeys, value, option);
|
|
224
226
|
}
|
|
225
227
|
}
|
|
226
|
-
function doUpdateExpandedKeys(keys, option) {
|
|
228
|
+
function doUpdateExpandedKeys(keys, option, meta) {
|
|
227
229
|
const { onUpdateExpandedKeys, 'onUpdate:expandedKeys': _onUpdateExpandedKeys } = props;
|
|
228
230
|
if (onUpdateExpandedKeys) {
|
|
229
|
-
(0, _utils_1.call)(onUpdateExpandedKeys, keys, option);
|
|
231
|
+
(0, _utils_1.call)(onUpdateExpandedKeys, keys, option, meta);
|
|
230
232
|
}
|
|
231
233
|
if (_onUpdateExpandedKeys) {
|
|
232
|
-
(0, _utils_1.call)(_onUpdateExpandedKeys, keys, option);
|
|
234
|
+
(0, _utils_1.call)(_onUpdateExpandedKeys, keys, option, meta);
|
|
233
235
|
}
|
|
234
236
|
uncontrolledExpandedKeysRef.value = keys;
|
|
235
237
|
}
|
|
@@ -287,10 +289,12 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
287
289
|
const { value: { getNode } } = dataTreeMateRef;
|
|
288
290
|
return keys.map((key) => { var _a; return ((_a = getNode(key)) === null || _a === void 0 ? void 0 : _a.rawNode) || null; });
|
|
289
291
|
}
|
|
290
|
-
function handleUpdateCheckedKeys(keys) {
|
|
292
|
+
function handleUpdateCheckedKeys(keys, _, meta) {
|
|
291
293
|
const options = getOptionsByKeys(keys);
|
|
294
|
+
const action = meta.action === 'check' ? 'select' : 'unselect';
|
|
295
|
+
const node = meta.node;
|
|
292
296
|
if (props.multiple) {
|
|
293
|
-
doUpdateValue(keys, options);
|
|
297
|
+
doUpdateValue(keys, options, { node, action });
|
|
294
298
|
if (props.filterable) {
|
|
295
299
|
focusSelectionInput();
|
|
296
300
|
if (props.clearFilterAfterSelect)
|
|
@@ -299,8 +303,11 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
299
303
|
}
|
|
300
304
|
else {
|
|
301
305
|
keys.length
|
|
302
|
-
? doUpdateValue(keys[0], options[0] || null
|
|
303
|
-
|
|
306
|
+
? doUpdateValue(keys[0], options[0] || null, {
|
|
307
|
+
node,
|
|
308
|
+
action
|
|
309
|
+
})
|
|
310
|
+
: doUpdateValue(null, null, { node, action });
|
|
304
311
|
closeMenu();
|
|
305
312
|
// Currently it is not necessary. However if there is an action slot,
|
|
306
313
|
// it will be useful. So just leave it here.
|
|
@@ -351,10 +358,10 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
351
358
|
closeMenu();
|
|
352
359
|
}
|
|
353
360
|
if (multiple) {
|
|
354
|
-
doUpdateValue([], []);
|
|
361
|
+
doUpdateValue([], [], { node: null, action: 'clear' });
|
|
355
362
|
}
|
|
356
363
|
else {
|
|
357
|
-
doUpdateValue(null, null);
|
|
364
|
+
doUpdateValue(null, null, { node: null, action: 'clear' });
|
|
358
365
|
}
|
|
359
366
|
}
|
|
360
367
|
function handleDeleteOption(option) {
|
|
@@ -369,18 +376,28 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
369
376
|
});
|
|
370
377
|
const index = checkedKeysValue.findIndex((key) => key === option.value);
|
|
371
378
|
if (~index) {
|
|
379
|
+
const checkedKeyToBeRemoved = checkedKeysValue[index];
|
|
380
|
+
const checkOptionToBeRemoved = getOptionsByKeys([
|
|
381
|
+
checkedKeyToBeRemoved
|
|
382
|
+
])[0];
|
|
372
383
|
if (props.checkable) {
|
|
373
384
|
const { checkedKeys } = treeMate.uncheck(option.value, checkedKeysValue, {
|
|
374
385
|
checkStrategy: props.checkStrategy,
|
|
375
386
|
cascade: mergedCascadeRef.value,
|
|
376
387
|
allowNotLoaded: props.allowCheckingNotLoaded
|
|
377
388
|
});
|
|
378
|
-
doUpdateValue(checkedKeys, getOptionsByKeys(checkedKeys)
|
|
389
|
+
doUpdateValue(checkedKeys, getOptionsByKeys(checkedKeys), {
|
|
390
|
+
node: checkOptionToBeRemoved,
|
|
391
|
+
action: 'delete'
|
|
392
|
+
});
|
|
379
393
|
}
|
|
380
394
|
else {
|
|
381
395
|
const nextValue = Array.from(checkedKeysValue);
|
|
382
396
|
nextValue.splice(index, 1);
|
|
383
|
-
doUpdateValue(nextValue, getOptionsByKeys(nextValue)
|
|
397
|
+
doUpdateValue(nextValue, getOptionsByKeys(nextValue), {
|
|
398
|
+
node: checkOptionToBeRemoved,
|
|
399
|
+
action: 'delete'
|
|
400
|
+
});
|
|
384
401
|
}
|
|
385
402
|
}
|
|
386
403
|
}
|
|
@@ -461,6 +478,46 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
461
478
|
(_a = followerInstRef.value) === null || _a === void 0 ? void 0 : _a.syncPosition();
|
|
462
479
|
}
|
|
463
480
|
(0, _utils_1.useOnResize)(menuElRef, handleTriggerOrMenuResize);
|
|
481
|
+
const mergedCheckStrategyRef = (0, utils_2.useMergedCheckStrategy)(props);
|
|
482
|
+
const exposedCheckedStatusRef = (0, vue_1.computed)(() => {
|
|
483
|
+
if (props.checkable) {
|
|
484
|
+
const mergedValue = mergedValueRef.value;
|
|
485
|
+
if (props.multiple && Array.isArray(mergedValue)) {
|
|
486
|
+
return dataTreeMateRef.value.getCheckedKeys(mergedValue, {
|
|
487
|
+
cascade: props.cascade,
|
|
488
|
+
checkStrategy: mergedCheckStrategyRef.value,
|
|
489
|
+
allowNotLoaded: props.allowCheckingNotLoaded
|
|
490
|
+
});
|
|
491
|
+
}
|
|
492
|
+
else {
|
|
493
|
+
return {
|
|
494
|
+
checkedKeys: Array.isArray(mergedValue) || mergedValue === null
|
|
495
|
+
? []
|
|
496
|
+
: [mergedValue],
|
|
497
|
+
indeterminateKeys: []
|
|
498
|
+
};
|
|
499
|
+
}
|
|
500
|
+
}
|
|
501
|
+
return {
|
|
502
|
+
checkedKeys: [],
|
|
503
|
+
indeterminateKeys: []
|
|
504
|
+
};
|
|
505
|
+
});
|
|
506
|
+
const exposedMethods = {
|
|
507
|
+
getCheckedData: () => {
|
|
508
|
+
const { checkedKeys } = exposedCheckedStatusRef.value;
|
|
509
|
+
return { keys: checkedKeys, options: getOptionsByKeys(checkedKeys) };
|
|
510
|
+
},
|
|
511
|
+
getIndeterminateData: () => {
|
|
512
|
+
const { indeterminateKeys } = exposedCheckedStatusRef.value;
|
|
513
|
+
return {
|
|
514
|
+
keys: indeterminateKeys,
|
|
515
|
+
options: getOptionsByKeys(indeterminateKeys)
|
|
516
|
+
};
|
|
517
|
+
},
|
|
518
|
+
focus: () => { var _a; return (_a = triggerInstRef.value) === null || _a === void 0 ? void 0 : _a.focus(); },
|
|
519
|
+
blur: () => { var _a; return (_a = triggerInstRef.value) === null || _a === void 0 ? void 0 : _a.blur(); }
|
|
520
|
+
};
|
|
464
521
|
const themeRef = (0, _mixins_1.useTheme)('TreeSelect', '-tree-select', index_cssr_1.default, styles_1.treeSelectLight, props, mergedClsPrefixRef);
|
|
465
522
|
const cssVarsRef = (0, vue_1.computed)(() => {
|
|
466
523
|
const { common: { cubicBezierEaseInOut }, self: { menuBoxShadow, menuBorderRadius, menuColor, menuHeight, actionPadding, actionDividerColor, actionTextColor } } = themeRef.value;
|
|
@@ -478,34 +535,9 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
478
535
|
const themeClassHandle = inlineThemeDisabled
|
|
479
536
|
? (0, _mixins_1.useThemeClass)('tree-select', undefined, cssVarsRef, props)
|
|
480
537
|
: undefined;
|
|
481
|
-
return {
|
|
482
|
-
menuElRef,
|
|
483
|
-
mergedStatus: mergedStatusRef,
|
|
484
|
-
triggerInstRef,
|
|
538
|
+
return Object.assign(Object.assign({}, exposedMethods), { menuElRef, mergedStatus: mergedStatusRef, triggerInstRef,
|
|
485
539
|
followerInstRef,
|
|
486
|
-
treeInstRef,
|
|
487
|
-
mergedClsPrefix: mergedClsPrefixRef,
|
|
488
|
-
mergedValue: mergedValueRef,
|
|
489
|
-
mergedShow: mergedShowRef,
|
|
490
|
-
namespace: namespaceRef,
|
|
491
|
-
adjustedTo: (0, _utils_1.useAdjustedTo)(props),
|
|
492
|
-
isMounted: (0, vooks_1.useIsMounted)(),
|
|
493
|
-
focused: focusedRef,
|
|
494
|
-
menuPadding: menuPaddingRef,
|
|
495
|
-
mergedPlaceholder: mergedPlaceholderRef,
|
|
496
|
-
mergedExpandedKeys: mergedExpandedKeysRef,
|
|
497
|
-
treeSelectedKeys: treeSelectedKeysRef,
|
|
498
|
-
treeCheckedKeys: treeCheckedKeysRef,
|
|
499
|
-
mergedSize: mergedSizeRef,
|
|
500
|
-
mergedDisabled: mergedDisabledRef,
|
|
501
|
-
selectedOption: selectedOptionRef,
|
|
502
|
-
selectedOptions: selectedOptionsRef,
|
|
503
|
-
pattern: patternRef,
|
|
504
|
-
pendingNodeKey: pendingNodeKeyRef,
|
|
505
|
-
mergedCascade: mergedCascadeRef,
|
|
506
|
-
mergedFilter: mergedFilterRef,
|
|
507
|
-
selectionRenderTag: selectionRenderTagRef,
|
|
508
|
-
handleTriggerOrMenuResize,
|
|
540
|
+
treeInstRef, mergedClsPrefix: mergedClsPrefixRef, mergedValue: mergedValueRef, mergedShow: mergedShowRef, namespace: namespaceRef, adjustedTo: (0, _utils_1.useAdjustedTo)(props), isMounted: (0, vooks_1.useIsMounted)(), focused: focusedRef, menuPadding: menuPaddingRef, mergedPlaceholder: mergedPlaceholderRef, mergedExpandedKeys: mergedExpandedKeysRef, treeSelectedKeys: treeSelectedKeysRef, treeCheckedKeys: treeCheckedKeysRef, mergedSize: mergedSizeRef, mergedDisabled: mergedDisabledRef, selectedOption: selectedOptionRef, selectedOptions: selectedOptionsRef, pattern: patternRef, pendingNodeKey: pendingNodeKeyRef, mergedCascade: mergedCascadeRef, mergedFilter: mergedFilterRef, selectionRenderTag: selectionRenderTagRef, handleTriggerOrMenuResize,
|
|
509
541
|
doUpdateExpandedKeys,
|
|
510
542
|
handleMenuLeave,
|
|
511
543
|
handleTriggerClick,
|
|
@@ -521,12 +553,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
521
553
|
handlePatternInput,
|
|
522
554
|
handleKeydown,
|
|
523
555
|
handleTabOut,
|
|
524
|
-
handleMenuMousedown,
|
|
525
|
-
mergedTheme: themeRef,
|
|
526
|
-
cssVars: inlineThemeDisabled ? undefined : cssVarsRef,
|
|
527
|
-
themeClass: themeClassHandle === null || themeClassHandle === void 0 ? void 0 : themeClassHandle.themeClass,
|
|
528
|
-
onRender: themeClassHandle === null || themeClassHandle === void 0 ? void 0 : themeClassHandle.onRender
|
|
529
|
-
};
|
|
556
|
+
handleMenuMousedown, mergedTheme: themeRef, cssVars: inlineThemeDisabled ? undefined : cssVarsRef, themeClass: themeClassHandle === null || themeClassHandle === void 0 ? void 0 : themeClassHandle.themeClass, onRender: themeClassHandle === null || themeClassHandle === void 0 ? void 0 : themeClassHandle.onRender });
|
|
530
557
|
},
|
|
531
558
|
render() {
|
|
532
559
|
const { mergedTheme, mergedClsPrefix, $slots } = this;
|
|
@@ -6,8 +6,27 @@ export declare type TreeSelectOption = Omit<TreeOptionBase, 'checkboxDisabled' |
|
|
|
6
6
|
[k: string]: unknown;
|
|
7
7
|
};
|
|
8
8
|
export declare type TreeSelectTmNode = TreeNode<TreeSelectOption>;
|
|
9
|
-
export declare type OnUpdateValue = (value: string & number & (string | number) & string[] & number[] & Array<string | number> & null, option: TreeSelectOption & null & TreeSelectOption[] & Array<TreeSelectOption | null
|
|
10
|
-
|
|
9
|
+
export declare type OnUpdateValue = (value: string & number & (string | number) & string[] & number[] & Array<string | number> & null, option: TreeSelectOption & null & TreeSelectOption[] & Array<TreeSelectOption | null>, meta: {
|
|
10
|
+
node: TreeSelectOption;
|
|
11
|
+
action: 'select' | 'unselect';
|
|
12
|
+
} | {
|
|
13
|
+
node: TreeSelectOption | null;
|
|
14
|
+
action: 'delete';
|
|
15
|
+
} | {
|
|
16
|
+
node: null;
|
|
17
|
+
action: 'clear';
|
|
18
|
+
}) => void;
|
|
19
|
+
export declare type OnUpdateValueImpl = (value: string | number | (string | number) | string[] | number[] | Array<string | number> | null, option: TreeSelectOption | null | Array<TreeSelectOption | null>, meta: {
|
|
20
|
+
node: TreeSelectOption;
|
|
21
|
+
action: 'select' | 'unselect';
|
|
22
|
+
} | {
|
|
23
|
+
node: TreeSelectOption | null;
|
|
24
|
+
action: 'delete';
|
|
25
|
+
} | {
|
|
26
|
+
node: null;
|
|
27
|
+
action: 'clear';
|
|
28
|
+
}) => void;
|
|
29
|
+
export declare type OnUpdateIndeterminateKeysImpl = (value: string | number | (string | number) | string[] | number[] | Array<string | number> | null, option: TreeSelectOption | null | Array<TreeSelectOption | null>) => void;
|
|
11
30
|
export declare type Value = string | number | Array<string | number> | null;
|
|
12
31
|
export interface TreeSelectInjection {
|
|
13
32
|
pendingNodeKeyRef: Ref<string | number | null>;
|
|
@@ -30,3 +49,15 @@ export declare type TreeSelectRenderSuffix = TreeSelectRenderTreePart;
|
|
|
30
49
|
export declare type TreeSelectNodeProps = (info: {
|
|
31
50
|
option: TreeSelectOption;
|
|
32
51
|
}) => HTMLAttributes & Record<string, unknown>;
|
|
52
|
+
export interface TreeSelectInst {
|
|
53
|
+
getCheckedData: () => {
|
|
54
|
+
keys: Array<string | number>;
|
|
55
|
+
options: Array<TreeSelectOption | null>;
|
|
56
|
+
};
|
|
57
|
+
getIndeterminateData: () => {
|
|
58
|
+
keys: Array<string | number>;
|
|
59
|
+
options: Array<TreeSelectOption | null>;
|
|
60
|
+
};
|
|
61
|
+
focus: () => void;
|
|
62
|
+
blur: () => void;
|
|
63
|
+
}
|
|
@@ -3,10 +3,9 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
|
|
7
6
|
const fade_in_scale_up_cssr_1 = require("../../../_styles/transitions/fade-in-scale-up.cssr");
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
const cssr_1 = require("../../../_utils/cssr");
|
|
8
|
+
// vars:
|
|
10
9
|
// --n-bezier
|
|
11
10
|
// --n-menu-height
|
|
12
11
|
// --n-menu-border-radius
|
|
@@ -15,8 +14,6 @@ const cssr_1 = require("../../../_utils/cssr"); // vars:
|
|
|
15
14
|
// --n-action-padding
|
|
16
15
|
// --n-action-text-color
|
|
17
16
|
// --n-action-divider-color
|
|
18
|
-
|
|
19
|
-
|
|
20
17
|
exports.default = (0, cssr_1.c)([(0, cssr_1.cB)('tree-select', `
|
|
21
18
|
z-index: auto;
|
|
22
19
|
outline: none;
|
|
@@ -3,12 +3,10 @@
|
|
|
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-text-color
|
|
9
9
|
// --n-bezier
|
|
10
|
-
|
|
11
|
-
|
|
12
10
|
exports.default = (0, cssr_1.cB)('a', `
|
|
13
11
|
cursor: pointer;
|
|
14
12
|
transition:
|
|
@@ -3,15 +3,13 @@
|
|
|
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-font-size
|
|
10
10
|
// --n-line-height
|
|
11
11
|
// --n-prefix-color
|
|
12
12
|
// --n-text-color
|
|
13
|
-
|
|
14
|
-
|
|
15
13
|
exports.default = (0, cssr_1.cB)('blockquote', `
|
|
16
14
|
font-size: var(--n-font-size);
|
|
17
15
|
line-height: var(--n-line-height);
|
|
@@ -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-font-size
|
|
10
10
|
// --n-margin
|
|
@@ -13,8 +13,6 @@ const cssr_1 = require("../../../_utils/cssr"); // vars:
|
|
|
13
13
|
// --n-font-weight
|
|
14
14
|
// --n-text-color
|
|
15
15
|
// --n-prefix-width
|
|
16
|
-
|
|
17
|
-
|
|
18
16
|
exports.default = (0, cssr_1.cB)('h', `
|
|
19
17
|
font-size: var(--n-font-size);
|
|
20
18
|
font-weight: var(--n-font-weight);
|
|
@@ -3,11 +3,9 @@
|
|
|
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-color
|
|
9
|
-
|
|
10
|
-
|
|
11
9
|
exports.default = (0, cssr_1.cB)('hr', `
|
|
12
10
|
margin: 12px 0;
|
|
13
11
|
transition: border-color .3s var(--n-bezier);
|
|
@@ -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
|
const liStyle = (0, cssr_1.c)('li', {
|
|
10
8
|
transition: 'color .3s var(--n-bezier)',
|
|
11
9
|
lineHeight: 'var(--n-line-height)',
|
|
@@ -17,7 +15,8 @@ const childStyle = [(0, cssr_1.c)('&:first-child', `
|
|
|
17
15
|
margin-top: 0;
|
|
18
16
|
`), (0, cssr_1.c)('&:last-child', `
|
|
19
17
|
margin-bottom: 0;
|
|
20
|
-
`)];
|
|
18
|
+
`)];
|
|
19
|
+
// vars:
|
|
21
20
|
// --n-bezier
|
|
22
21
|
// --n-font-size
|
|
23
22
|
// --n-line-height
|
|
@@ -25,7 +24,6 @@ const childStyle = [(0, cssr_1.c)('&:first-child', `
|
|
|
25
24
|
// --n-li-margin
|
|
26
25
|
// --n-ol-padding
|
|
27
26
|
// --n-ul-padding
|
|
28
|
-
|
|
29
27
|
exports.default = (0, cssr_1.c)([(0, cssr_1.cB)('ol', {
|
|
30
28
|
fontSize: 'var(--n-font-size)',
|
|
31
29
|
padding: 'var(--n-ol-padding)'
|
|
@@ -3,15 +3,13 @@
|
|
|
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-font-size
|
|
10
10
|
// --n-line-height
|
|
11
11
|
// --n-margin
|
|
12
12
|
// --n-text-color
|
|
13
|
-
|
|
14
|
-
|
|
15
13
|
exports.default = (0, cssr_1.cB)('p', `
|
|
16
14
|
box-sizing: border-box;
|
|
17
15
|
transition: color .3s var(--n-bezier);
|
|
@@ -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-text-color
|
|
9
9
|
// --n-font-weight-strong
|
|
10
10
|
// --n-font-famliy-mono
|
|
@@ -12,8 +12,6 @@ const cssr_1 = require("../../../_utils/cssr"); // vars:
|
|
|
12
12
|
// --n-code-text-color
|
|
13
13
|
// --n-code-color
|
|
14
14
|
// --n-code-border
|
|
15
|
-
|
|
16
|
-
|
|
17
15
|
exports.default = (0, cssr_1.cB)('text', `
|
|
18
16
|
transition: color .3s var(--n-bezier);
|
|
19
17
|
color: var(--n-text-color);
|
package/lib/upload/index.d.ts
CHANGED
|
@@ -3,4 +3,4 @@ export { default as NUploadDragger } from './src/UploadDragger';
|
|
|
3
3
|
export { default as NUploadTrigger } from './src/UploadTrigger';
|
|
4
4
|
export { default as NUploadFileList } from './src/UploadFileList';
|
|
5
5
|
export type { UploadProps } from './src/Upload';
|
|
6
|
-
export type { UploadInst, FileInfo as UploadFileInfo, CustomRequestOptions as UploadCustomRequestOptions } from './src/interface';
|
|
6
|
+
export type { UploadInst, FileInfo as UploadFileInfo, CustomRequestOptions as UploadCustomRequestOptions, SettledFileInfo as UploadSettledFileInfo } from './src/interface';
|