naive-ui 2.18.1 → 2.19.2
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/es/_internal/clear/src/Clear.d.ts +1 -4
- package/es/_internal/clear/src/Clear.js +1 -4
- package/es/_internal/icons/Checkmark.js +3 -2
- package/es/_internal/select-menu/src/SelectMenu.d.ts +173 -0
- package/es/_internal/select-menu/src/SelectMenu.js +9 -6
- package/es/_internal/select-menu/src/SelectOption.js +2 -1
- package/es/_internal/select-menu/src/styles/index.cssr.js +32 -28
- package/es/_internal/select-menu/styles/light.d.ts +2 -0
- package/es/_internal/select-menu/styles/light.js +1 -1
- package/es/_internal/selection/src/Selection.d.ts +64 -56
- package/es/_internal/selection/src/Selection.js +34 -14
- package/es/_internal/selection/src/styles/index.cssr.js +16 -14
- package/es/_internal/selection/styles/_common.d.ts +1 -8
- package/es/_internal/selection/styles/_common.js +2 -9
- package/es/_internal/selection/styles/dark.js +10 -2
- package/es/_internal/selection/styles/light.d.ts +18 -16
- package/es/_internal/selection/styles/light.js +10 -2
- package/es/_mixins/use-rtl.js +1 -1
- package/es/_styles/common/light.js +1 -1
- package/es/_utils/naive/mutable.d.ts +2 -2
- package/es/alert/src/Alert.js +15 -16
- package/es/anchor/src/AnchorAdapter.d.ts +13 -8
- package/es/anchor/src/AnchorAdapter.js +3 -5
- package/es/anchor/src/BaseAnchor.d.ts +14 -1
- package/es/anchor/src/BaseAnchor.js +20 -7
- package/es/anchor/src/Link.js +5 -5
- package/es/anchor/src/styles/index.cssr.js +25 -16
- package/es/auto-complete/index.d.ts +1 -0
- package/es/auto-complete/src/AutoComplete.d.ts +10 -0
- package/es/auto-complete/src/interface.d.ts +1 -1
- package/es/auto-complete/styles/light.d.ts +1 -0
- package/es/badge/src/styles/index.cssr.js +1 -0
- package/es/card/src/Card.d.ts +17 -1
- package/es/card/src/Card.js +3 -2
- package/es/card/styles/dark.js +6 -1
- package/es/card/styles/light.d.ts +1 -0
- package/es/card/styles/light.js +2 -2
- package/es/cascader/src/Cascader.d.ts +100 -80
- package/es/cascader/src/Cascader.js +28 -19
- package/es/cascader/src/CascaderMenu.js +17 -15
- package/es/cascader/src/CascaderOption.d.ts +10 -8
- package/es/cascader/src/CascaderSelectMenu.d.ts +10 -8
- package/es/cascader/src/CascaderSubmenu.d.ts +10 -8
- package/es/cascader/src/interface.d.ts +2 -2
- package/es/cascader/src/styles/index.cssr.js +6 -1
- package/es/cascader/styles/light.d.ts +10 -8
- package/es/checkbox/src/Checkbox.d.ts +1 -0
- package/es/checkbox/src/Checkbox.js +5 -3
- package/es/checkbox/src/CheckboxGroup.js +1 -1
- package/es/composables/use-theme-vars.js +5 -5
- package/es/config-provider/src/internal-interface.d.ts +2 -0
- package/es/data-table/src/DataTable.d.ts +110 -88
- package/es/data-table/src/HeaderButton/FilterButton.d.ts +20 -16
- package/es/data-table/src/HeaderButton/FilterMenu.d.ts +20 -16
- package/es/data-table/src/TableParts/Body.d.ts +20 -16
- package/es/data-table/src/TableParts/Cell.d.ts +40 -32
- package/es/data-table/src/TableParts/Header.d.ts +20 -16
- package/es/data-table/styles/light.d.ts +10 -8
- package/es/date-picker/src/DatePicker.d.ts +8 -3
- package/es/date-picker/src/DatePicker.js +2 -2
- package/es/date-picker/src/panel/date.d.ts +3 -3
- package/es/date-picker/src/panel/date.js +10 -1
- package/es/date-picker/src/panel/daterange.js +10 -1
- package/es/date-picker/src/panel/datetimerange.js +10 -1
- package/es/descriptions/src/Descriptions.d.ts +4 -17
- package/es/descriptions/src/Descriptions.js +2 -8
- package/es/dialog/src/DialogProvider.d.ts +20 -20
- package/es/drawer/src/styles/index.cssr.js +2 -0
- package/es/dropdown/src/Dropdown.d.ts +9 -23
- package/es/dynamic-tags/src/DynamicTags.js +2 -1
- package/es/empty/src/Empty.d.ts +6 -1
- package/es/empty/src/Empty.js +16 -4
- package/es/form/src/FormItemGridItem.d.ts +1 -1
- package/es/form/src/FormItemGridItem.js +2 -2
- package/es/global-style/src/GlobalStyle.js +13 -3
- package/es/grid/src/GridItem.d.ts +2 -2
- package/es/grid/src/GridItem.js +1 -1
- package/es/input-number/src/InputNumber.d.ts +8 -3
- package/es/input-number/src/InputNumber.js +4 -4
- package/es/jest-setup.js +3 -1
- package/es/layout/src/Layout.d.ts +18 -4
- package/es/layout/src/LayoutContent.d.ts +9 -2
- package/es/layout/src/LayoutFooter.d.ts +9 -0
- package/es/layout/src/LayoutHeader.d.ts +6 -0
- package/es/layout/src/LayoutSider.d.ts +11 -0
- package/es/layout/src/LayoutSider.js +4 -2
- package/es/layout/src/ToggleButton.js +7 -3
- package/es/layout/src/styles/layout-sider.cssr.js +31 -15
- package/es/layout/styles/dark.js +3 -2
- package/es/layout/styles/light.d.ts +2 -0
- package/es/layout/styles/light.js +3 -2
- package/es/locales/common/enUS.js +1 -1
- package/es/locales/common/ruRU.js +1 -1
- package/es/locales/common/ukUA.d.ts +3 -0
- package/es/locales/common/ukUA.js +92 -0
- package/es/locales/common/zhCN.js +1 -1
- package/es/locales/date/ukUA.d.ts +3 -0
- package/es/locales/date/ukUA.js +6 -0
- package/es/locales/index.d.ts +2 -0
- package/es/locales/index.js +2 -0
- package/es/mention/src/Mention.d.ts +10 -0
- package/es/mention/styles/light.d.ts +1 -0
- package/es/menu/src/Menu.d.ts +6 -1
- package/es/menu/src/Menu.js +10 -1
- package/es/menu/src/MenuOption.d.ts +3 -1
- package/es/menu/src/MenuOptionContent.d.ts +3 -1
- package/es/menu/src/Submenu.d.ts +3 -1
- package/es/modal/src/BodyWrapper.d.ts +5 -0
- package/es/modal/src/Modal.d.ts +36 -55
- package/es/modal/src/Modal.js +18 -39
- package/es/modal/src/presetProps.d.ts +2 -1
- package/es/modal/styles/light.d.ts +1 -0
- package/es/notification/src/Notification.d.ts +1 -1
- package/es/notification/src/NotificationEnvironment.d.ts +1 -1
- package/es/notification/src/NotificationProvider.d.ts +16 -16
- package/es/page-header/src/PageHeader.d.ts +1 -0
- package/es/page-header/src/PageHeader.js +8 -2
- package/es/page-header/src/styles/rtl.cssr.d.ts +2 -0
- package/es/page-header/src/styles/rtl.cssr.js +19 -0
- package/es/page-header/styles/index.d.ts +1 -0
- package/es/page-header/styles/index.js +1 -0
- package/es/page-header/styles/rtl.d.ts +5 -0
- package/es/page-header/styles/rtl.js +5 -0
- package/es/pagination/src/Pagination.d.ts +111 -100
- package/es/pagination/styles/light.d.ts +10 -8
- package/es/popconfirm/src/Popconfirm.d.ts +8 -22
- package/es/popover/src/Popover.d.ts +12 -32
- package/es/popover/src/Popover.js +25 -18
- package/es/popover/src/PopoverBody.d.ts +2 -2
- package/es/popover/src/PopoverBody.js +4 -2
- package/es/popselect/src/Popselect.d.ts +18 -22
- package/es/popselect/src/PopselectPanel.d.ts +1 -0
- package/es/popselect/src/PopselectPanel.js +38 -19
- package/es/popselect/styles/light.d.ts +1 -0
- package/es/select/src/Select.d.ts +111 -83
- package/es/select/src/Select.js +55 -56
- package/es/select/src/interface.d.ts +2 -2
- package/es/select/styles/light.d.ts +10 -8
- package/es/spin/src/Spin.d.ts +34 -25
- package/es/spin/src/Spin.js +27 -20
- package/es/spin/src/styles/index.cssr.js +23 -9
- package/es/spin/styles/light.d.ts +2 -0
- package/es/spin/styles/light.js +3 -1
- package/es/styles.d.ts +1 -0
- package/es/styles.js +1 -0
- package/es/tabs/src/Tab.d.ts +1 -1
- package/es/tabs/src/Tab.js +4 -6
- package/es/tabs/src/Tabs.d.ts +133 -42
- package/es/tabs/src/Tabs.js +37 -38
- package/es/tabs/src/interface.d.ts +2 -1
- package/es/tabs/src/styles/index.cssr.js +34 -10
- package/es/tabs/styles/_common.d.ts +6 -0
- package/es/tabs/styles/_common.js +6 -0
- package/es/tabs/styles/dark.js +7 -1
- package/es/tabs/styles/light.d.ts +13 -0
- package/es/tabs/styles/light.js +3 -3
- package/es/tag/src/styles/index.cssr.js +1 -1
- package/es/time/src/Time.d.ts +14 -22
- package/es/time/src/Time.js +32 -18
- package/es/time-picker/src/TimePicker.d.ts +5 -0
- package/es/time-picker/src/TimePicker.js +2 -2
- package/es/tooltip/src/Tooltip.d.ts +8 -22
- package/es/transfer/src/TransferList.d.ts +1 -1
- package/es/tree/src/Tree.d.ts +25 -10
- package/es/tree/src/Tree.js +34 -11
- package/es/tree/src/TreeNode.js +5 -2
- package/es/tree/src/interface.d.ts +2 -2
- package/es/tree-select/src/TreeSelect.d.ts +103 -81
- package/es/tree-select/src/TreeSelect.js +36 -40
- package/es/tree-select/src/interface.d.ts +2 -2
- package/es/tree-select/styles/light.d.ts +9 -8
- package/es/typography/src/blockquote.d.ts +2 -8
- package/es/typography/src/blockquote.js +1 -4
- package/es/typography/src/ol.d.ts +2 -8
- package/es/typography/src/ol.js +1 -4
- package/es/typography/src/p.d.ts +2 -2
- package/es/typography/src/p.js +1 -1
- package/es/typography/src/text.d.ts +14 -58
- package/es/typography/src/text.js +2 -23
- package/es/typography/src/ul.d.ts +2 -8
- package/es/typography/src/ul.js +1 -4
- package/es/upload/index.d.ts +2 -0
- package/es/upload/index.js +2 -0
- package/es/upload/src/Upload.d.ts +16 -68
- package/es/upload/src/Upload.js +71 -98
- package/es/upload/src/UploadDragger.js +7 -1
- package/es/upload/src/UploadFileList.d.ts +2 -0
- package/es/upload/src/UploadFileList.js +34 -0
- package/es/upload/src/UploadProgress.d.ts +0 -7
- package/es/upload/src/UploadProgress.js +1 -5
- package/es/upload/src/UploadTrigger.d.ts +12 -0
- package/es/upload/src/UploadTrigger.js +63 -0
- package/es/upload/src/interface.d.ts +13 -2
- package/es/upload/src/styles/index.cssr.js +40 -32
- package/es/version.d.ts +1 -1
- package/es/version.js +1 -1
- package/lib/_internal/clear/src/Clear.d.ts +1 -4
- package/lib/_internal/clear/src/Clear.js +1 -4
- package/lib/_internal/icons/Checkmark.js +3 -2
- package/lib/_internal/select-menu/src/SelectMenu.d.ts +173 -0
- package/lib/_internal/select-menu/src/SelectMenu.js +9 -6
- package/lib/_internal/select-menu/src/SelectOption.js +2 -1
- package/lib/_internal/select-menu/src/styles/index.cssr.js +32 -28
- package/lib/_internal/select-menu/styles/light.d.ts +2 -0
- package/lib/_internal/select-menu/styles/light.js +1 -1
- package/lib/_internal/selection/src/Selection.d.ts +64 -56
- package/lib/_internal/selection/src/Selection.js +34 -14
- package/lib/_internal/selection/src/styles/index.cssr.js +16 -14
- package/lib/_internal/selection/styles/_common.d.ts +1 -8
- package/lib/_internal/selection/styles/_common.js +2 -9
- package/lib/_internal/selection/styles/dark.js +10 -2
- package/lib/_internal/selection/styles/light.d.ts +18 -16
- package/lib/_internal/selection/styles/light.js +10 -2
- package/lib/_mixins/use-rtl.js +1 -1
- package/lib/_styles/common/light.js +1 -1
- package/lib/_utils/naive/mutable.d.ts +2 -2
- package/lib/alert/src/Alert.js +15 -16
- package/lib/anchor/src/AnchorAdapter.d.ts +13 -8
- package/lib/anchor/src/AnchorAdapter.js +3 -5
- package/lib/anchor/src/BaseAnchor.d.ts +14 -1
- package/lib/anchor/src/BaseAnchor.js +19 -6
- package/lib/anchor/src/Link.js +5 -5
- package/lib/anchor/src/styles/index.cssr.js +25 -16
- package/lib/auto-complete/index.d.ts +1 -0
- package/lib/auto-complete/src/AutoComplete.d.ts +10 -0
- package/lib/auto-complete/src/interface.d.ts +1 -1
- package/lib/auto-complete/styles/light.d.ts +1 -0
- package/lib/badge/src/styles/index.cssr.js +1 -0
- package/lib/card/src/Card.d.ts +17 -1
- package/lib/card/src/Card.js +3 -2
- package/lib/card/styles/dark.js +6 -1
- package/lib/card/styles/light.d.ts +1 -0
- package/lib/card/styles/light.js +2 -2
- package/lib/cascader/src/Cascader.d.ts +100 -80
- package/lib/cascader/src/Cascader.js +28 -19
- package/lib/cascader/src/CascaderMenu.js +16 -14
- package/lib/cascader/src/CascaderOption.d.ts +10 -8
- package/lib/cascader/src/CascaderSelectMenu.d.ts +10 -8
- package/lib/cascader/src/CascaderSubmenu.d.ts +10 -8
- package/lib/cascader/src/interface.d.ts +2 -2
- package/lib/cascader/src/styles/index.cssr.js +6 -1
- package/lib/cascader/styles/light.d.ts +10 -8
- package/lib/checkbox/src/Checkbox.d.ts +1 -0
- package/lib/checkbox/src/Checkbox.js +5 -3
- package/lib/checkbox/src/CheckboxGroup.js +1 -1
- package/lib/composables/use-theme-vars.js +5 -5
- package/lib/config-provider/src/internal-interface.d.ts +2 -0
- package/lib/data-table/src/DataTable.d.ts +110 -88
- package/lib/data-table/src/HeaderButton/FilterButton.d.ts +20 -16
- package/lib/data-table/src/HeaderButton/FilterMenu.d.ts +20 -16
- package/lib/data-table/src/TableParts/Body.d.ts +20 -16
- package/lib/data-table/src/TableParts/Cell.d.ts +40 -32
- package/lib/data-table/src/TableParts/Header.d.ts +20 -16
- package/lib/data-table/styles/light.d.ts +10 -8
- package/lib/date-picker/src/DatePicker.d.ts +8 -3
- package/lib/date-picker/src/DatePicker.js +2 -2
- package/lib/date-picker/src/panel/date.d.ts +3 -3
- package/lib/date-picker/src/panel/date.js +9 -0
- package/lib/date-picker/src/panel/daterange.js +9 -0
- package/lib/date-picker/src/panel/datetimerange.js +9 -0
- package/lib/descriptions/src/Descriptions.d.ts +4 -17
- package/lib/descriptions/src/Descriptions.js +2 -8
- package/lib/dialog/src/DialogProvider.d.ts +20 -20
- package/lib/drawer/src/styles/index.cssr.js +2 -0
- package/lib/dropdown/src/Dropdown.d.ts +9 -23
- package/lib/dynamic-tags/src/DynamicTags.js +2 -1
- package/lib/empty/src/Empty.d.ts +6 -1
- package/lib/empty/src/Empty.js +15 -3
- package/lib/form/src/FormItemGridItem.d.ts +1 -1
- package/lib/form/src/FormItemGridItem.js +2 -2
- package/lib/global-style/src/GlobalStyle.js +13 -3
- package/lib/grid/src/GridItem.d.ts +2 -2
- package/lib/grid/src/GridItem.js +1 -1
- package/lib/input-number/src/InputNumber.d.ts +8 -3
- package/lib/input-number/src/InputNumber.js +4 -4
- package/lib/jest-setup.js +3 -1
- package/lib/layout/src/Layout.d.ts +18 -4
- package/lib/layout/src/LayoutContent.d.ts +9 -2
- package/lib/layout/src/LayoutFooter.d.ts +9 -0
- package/lib/layout/src/LayoutHeader.d.ts +6 -0
- package/lib/layout/src/LayoutSider.d.ts +11 -0
- package/lib/layout/src/LayoutSider.js +4 -2
- package/lib/layout/src/ToggleButton.js +7 -3
- package/lib/layout/src/styles/layout-sider.cssr.js +31 -15
- package/lib/layout/styles/dark.js +3 -2
- package/lib/layout/styles/light.d.ts +2 -0
- package/lib/layout/styles/light.js +3 -2
- package/lib/locales/common/enUS.js +1 -1
- package/lib/locales/common/ruRU.js +1 -1
- package/lib/locales/common/ukUA.d.ts +3 -0
- package/lib/locales/common/ukUA.js +94 -0
- package/lib/locales/common/zhCN.js +1 -1
- package/lib/locales/date/ukUA.d.ts +3 -0
- package/lib/locales/date/ukUA.js +8 -0
- package/lib/locales/index.d.ts +2 -0
- package/lib/locales/index.js +5 -1
- package/lib/mention/src/Mention.d.ts +10 -0
- package/lib/mention/styles/light.d.ts +1 -0
- package/lib/menu/src/Menu.d.ts +6 -1
- package/lib/menu/src/Menu.js +10 -1
- package/lib/menu/src/MenuOption.d.ts +3 -1
- package/lib/menu/src/MenuOptionContent.d.ts +3 -1
- package/lib/menu/src/Submenu.d.ts +3 -1
- package/lib/modal/src/BodyWrapper.d.ts +5 -0
- package/lib/modal/src/Modal.d.ts +36 -55
- package/lib/modal/src/Modal.js +17 -38
- package/lib/modal/src/presetProps.d.ts +2 -1
- package/lib/modal/styles/light.d.ts +1 -0
- package/lib/notification/src/Notification.d.ts +1 -1
- package/lib/notification/src/NotificationEnvironment.d.ts +1 -1
- package/lib/notification/src/NotificationProvider.d.ts +16 -16
- package/lib/page-header/src/PageHeader.d.ts +1 -0
- package/lib/page-header/src/PageHeader.js +8 -2
- package/lib/page-header/src/styles/rtl.cssr.d.ts +2 -0
- package/lib/page-header/src/styles/rtl.cssr.js +26 -0
- package/lib/page-header/styles/index.d.ts +1 -0
- package/lib/page-header/styles/index.js +3 -1
- package/lib/page-header/styles/rtl.d.ts +5 -0
- package/lib/page-header/styles/rtl.js +7 -0
- package/lib/pagination/src/Pagination.d.ts +111 -100
- package/lib/pagination/styles/light.d.ts +10 -8
- package/lib/popconfirm/src/Popconfirm.d.ts +8 -22
- package/lib/popover/src/Popover.d.ts +12 -32
- package/lib/popover/src/Popover.js +23 -16
- package/lib/popover/src/PopoverBody.d.ts +2 -2
- package/lib/popover/src/PopoverBody.js +4 -2
- package/lib/popselect/src/Popselect.d.ts +18 -22
- package/lib/popselect/src/PopselectPanel.d.ts +1 -0
- package/lib/popselect/src/PopselectPanel.js +38 -19
- package/lib/popselect/styles/light.d.ts +1 -0
- package/lib/select/src/Select.d.ts +111 -83
- package/lib/select/src/Select.js +55 -56
- package/lib/select/src/interface.d.ts +2 -2
- package/lib/select/styles/light.d.ts +10 -8
- package/lib/spin/src/Spin.d.ts +34 -25
- package/lib/spin/src/Spin.js +25 -18
- package/lib/spin/src/styles/index.cssr.js +23 -9
- package/lib/spin/styles/light.d.ts +2 -0
- package/lib/spin/styles/light.js +3 -1
- package/lib/styles.d.ts +1 -0
- package/lib/styles.js +63 -61
- package/lib/tabs/src/Tab.d.ts +1 -1
- package/lib/tabs/src/Tab.js +4 -6
- package/lib/tabs/src/Tabs.d.ts +133 -42
- package/lib/tabs/src/Tabs.js +36 -37
- package/lib/tabs/src/interface.d.ts +2 -1
- package/lib/tabs/src/styles/index.cssr.js +34 -10
- package/lib/tabs/styles/_common.d.ts +6 -0
- package/lib/tabs/styles/_common.js +6 -0
- package/lib/tabs/styles/dark.js +7 -1
- package/lib/tabs/styles/light.d.ts +13 -0
- package/lib/tabs/styles/light.js +3 -3
- package/lib/tag/src/styles/index.cssr.js +1 -1
- package/lib/time/src/Time.d.ts +14 -22
- package/lib/time/src/Time.js +31 -17
- package/lib/time-picker/src/TimePicker.d.ts +5 -0
- package/lib/time-picker/src/TimePicker.js +2 -2
- package/lib/tooltip/src/Tooltip.d.ts +8 -22
- package/lib/transfer/src/TransferList.d.ts +1 -1
- package/lib/tree/src/Tree.d.ts +25 -10
- package/lib/tree/src/Tree.js +34 -11
- package/lib/tree/src/TreeNode.js +5 -2
- package/lib/tree/src/interface.d.ts +2 -2
- package/lib/tree-select/src/TreeSelect.d.ts +103 -81
- package/lib/tree-select/src/TreeSelect.js +36 -40
- package/lib/tree-select/src/interface.d.ts +2 -2
- package/lib/tree-select/styles/light.d.ts +9 -8
- package/lib/typography/src/blockquote.d.ts +2 -8
- package/lib/typography/src/blockquote.js +1 -4
- package/lib/typography/src/ol.d.ts +2 -8
- package/lib/typography/src/ol.js +1 -4
- package/lib/typography/src/p.d.ts +2 -2
- package/lib/typography/src/p.js +1 -1
- package/lib/typography/src/text.d.ts +14 -58
- package/lib/typography/src/text.js +2 -23
- package/lib/typography/src/ul.d.ts +2 -8
- package/lib/typography/src/ul.js +1 -4
- package/lib/upload/index.d.ts +2 -0
- package/lib/upload/index.js +5 -1
- package/lib/upload/src/Upload.d.ts +16 -68
- package/lib/upload/src/Upload.js +68 -95
- package/lib/upload/src/UploadDragger.js +7 -1
- package/lib/upload/src/UploadFileList.d.ts +2 -0
- package/lib/upload/src/UploadFileList.js +36 -0
- package/lib/upload/src/UploadProgress.d.ts +0 -7
- package/lib/upload/src/UploadProgress.js +1 -5
- package/lib/upload/src/UploadTrigger.d.ts +12 -0
- package/lib/upload/src/UploadTrigger.js +65 -0
- package/lib/upload/src/interface.d.ts +13 -2
- package/lib/upload/src/styles/index.cssr.js +40 -32
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/package.json +9 -7
- package/web-types.json +239 -13
|
@@ -6,6 +6,14 @@ declare const selectLight: import("../../_mixins").Theme<"Select", {
|
|
|
6
6
|
menuBoxShadow: string;
|
|
7
7
|
}, {
|
|
8
8
|
InternalSelection: import("../../_mixins").Theme<"InternalSelection", {
|
|
9
|
+
fontSizeTiny: string;
|
|
10
|
+
fontSizeSmall: string;
|
|
11
|
+
fontSizeMedium: string;
|
|
12
|
+
fontSizeLarge: string;
|
|
13
|
+
heightTiny: string;
|
|
14
|
+
heightSmall: string;
|
|
15
|
+
heightMedium: string;
|
|
16
|
+
heightLarge: string;
|
|
9
17
|
borderRadius: string;
|
|
10
18
|
textColor: string;
|
|
11
19
|
textColorDisabled: string;
|
|
@@ -46,16 +54,9 @@ declare const selectLight: import("../../_mixins").Theme<"Select", {
|
|
|
46
54
|
clearColor: string;
|
|
47
55
|
clearColorHover: string;
|
|
48
56
|
clearColorPressed: string;
|
|
49
|
-
heightTiny: string;
|
|
50
|
-
heightSmall: string;
|
|
51
|
-
heightMedium: string;
|
|
52
|
-
heightLarge: string;
|
|
53
|
-
fontSizeTiny: string;
|
|
54
|
-
fontSizeSmall: string;
|
|
55
|
-
fontSizeMedium: string;
|
|
56
|
-
fontSizeLarge: string;
|
|
57
57
|
paddingSingle: string;
|
|
58
58
|
clearSize: string;
|
|
59
|
+
arrowSize: string;
|
|
59
60
|
}, {
|
|
60
61
|
Popover: import("../../_mixins").Theme<"Popover", {
|
|
61
62
|
fontSize: string;
|
|
@@ -92,6 +93,7 @@ declare const selectLight: import("../../_mixins").Theme<"Select", {
|
|
|
92
93
|
optionOpacityDisabled: string;
|
|
93
94
|
optionCheckColor: string;
|
|
94
95
|
optionColorPending: string;
|
|
96
|
+
optionColorActive: string;
|
|
95
97
|
actionTextColor: string;
|
|
96
98
|
loadingColor: string;
|
|
97
99
|
height: string;
|
package/es/spin/src/Spin.d.ts
CHANGED
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
2
|
import { ExtractPublicPropTypes } from '../../_utils';
|
|
3
3
|
declare const spinProps: {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
default: undefined;
|
|
7
|
-
};
|
|
4
|
+
description: StringConstructor;
|
|
5
|
+
stroke: StringConstructor;
|
|
8
6
|
size: {
|
|
9
7
|
type: PropType<number | "small" | "medium" | "large">;
|
|
10
8
|
default: string;
|
|
@@ -13,20 +11,19 @@ declare const spinProps: {
|
|
|
13
11
|
type: BooleanConstructor;
|
|
14
12
|
default: boolean;
|
|
15
13
|
};
|
|
16
|
-
strokeWidth:
|
|
17
|
-
|
|
18
|
-
|
|
14
|
+
strokeWidth: NumberConstructor;
|
|
15
|
+
rotate: {
|
|
16
|
+
type: BooleanConstructor;
|
|
17
|
+
default: boolean;
|
|
19
18
|
};
|
|
20
19
|
spinning: {
|
|
21
20
|
type: BooleanConstructor;
|
|
22
21
|
validator: () => boolean;
|
|
23
22
|
default: undefined;
|
|
24
23
|
};
|
|
25
|
-
rotate: {
|
|
26
|
-
type: BooleanConstructor;
|
|
27
|
-
default: boolean;
|
|
28
|
-
};
|
|
29
24
|
theme: PropType<import("../../_mixins").Theme<"Spin", {
|
|
25
|
+
fontSize: string;
|
|
26
|
+
textColor: string;
|
|
30
27
|
sizeTiny: string;
|
|
31
28
|
sizeSmall: string;
|
|
32
29
|
sizeMedium: string;
|
|
@@ -36,6 +33,8 @@ declare const spinProps: {
|
|
|
36
33
|
opacitySpinning: string;
|
|
37
34
|
}, any>>;
|
|
38
35
|
themeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Spin", {
|
|
36
|
+
fontSize: string;
|
|
37
|
+
textColor: string;
|
|
39
38
|
sizeTiny: string;
|
|
40
39
|
sizeSmall: string;
|
|
41
40
|
sizeMedium: string;
|
|
@@ -45,6 +44,8 @@ declare const spinProps: {
|
|
|
45
44
|
opacitySpinning: string;
|
|
46
45
|
}, any>>>;
|
|
47
46
|
builtinThemeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Spin", {
|
|
47
|
+
fontSize: string;
|
|
48
|
+
textColor: string;
|
|
48
49
|
sizeTiny: string;
|
|
49
50
|
sizeSmall: string;
|
|
50
51
|
sizeMedium: string;
|
|
@@ -56,10 +57,8 @@ declare const spinProps: {
|
|
|
56
57
|
};
|
|
57
58
|
export declare type SpinProps = ExtractPublicPropTypes<typeof spinProps>;
|
|
58
59
|
declare const _default: import("vue").DefineComponent<{
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
default: undefined;
|
|
62
|
-
};
|
|
60
|
+
description: StringConstructor;
|
|
61
|
+
stroke: StringConstructor;
|
|
63
62
|
size: {
|
|
64
63
|
type: PropType<number | "small" | "medium" | "large">;
|
|
65
64
|
default: string;
|
|
@@ -68,20 +67,19 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
68
67
|
type: BooleanConstructor;
|
|
69
68
|
default: boolean;
|
|
70
69
|
};
|
|
71
|
-
strokeWidth:
|
|
72
|
-
|
|
73
|
-
|
|
70
|
+
strokeWidth: NumberConstructor;
|
|
71
|
+
rotate: {
|
|
72
|
+
type: BooleanConstructor;
|
|
73
|
+
default: boolean;
|
|
74
74
|
};
|
|
75
75
|
spinning: {
|
|
76
76
|
type: BooleanConstructor;
|
|
77
77
|
validator: () => boolean;
|
|
78
78
|
default: undefined;
|
|
79
79
|
};
|
|
80
|
-
rotate: {
|
|
81
|
-
type: BooleanConstructor;
|
|
82
|
-
default: boolean;
|
|
83
|
-
};
|
|
84
80
|
theme: PropType<import("../../_mixins").Theme<"Spin", {
|
|
81
|
+
fontSize: string;
|
|
82
|
+
textColor: string;
|
|
85
83
|
sizeTiny: string;
|
|
86
84
|
sizeSmall: string;
|
|
87
85
|
sizeMedium: string;
|
|
@@ -91,6 +89,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
91
89
|
opacitySpinning: string;
|
|
92
90
|
}, any>>;
|
|
93
91
|
themeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Spin", {
|
|
92
|
+
fontSize: string;
|
|
93
|
+
textColor: string;
|
|
94
94
|
sizeTiny: string;
|
|
95
95
|
sizeSmall: string;
|
|
96
96
|
sizeMedium: string;
|
|
@@ -100,6 +100,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
100
100
|
opacitySpinning: string;
|
|
101
101
|
}, any>>>;
|
|
102
102
|
builtinThemeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Spin", {
|
|
103
|
+
fontSize: string;
|
|
104
|
+
textColor: string;
|
|
103
105
|
sizeTiny: string;
|
|
104
106
|
sizeSmall: string;
|
|
105
107
|
sizeMedium: string;
|
|
@@ -117,14 +119,16 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
117
119
|
'--opacity-spinning': string;
|
|
118
120
|
'--size': string;
|
|
119
121
|
'--color': string;
|
|
122
|
+
'--text-color': string;
|
|
120
123
|
}>;
|
|
121
124
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
|
125
|
+
description?: unknown;
|
|
122
126
|
stroke?: unknown;
|
|
123
127
|
size?: unknown;
|
|
124
128
|
show?: unknown;
|
|
125
129
|
strokeWidth?: unknown;
|
|
126
|
-
spinning?: unknown;
|
|
127
130
|
rotate?: unknown;
|
|
131
|
+
spinning?: unknown;
|
|
128
132
|
theme?: unknown;
|
|
129
133
|
themeOverrides?: unknown;
|
|
130
134
|
builtinThemeOverrides?: unknown;
|
|
@@ -133,9 +137,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
133
137
|
show: boolean;
|
|
134
138
|
rotate: boolean;
|
|
135
139
|
} & {
|
|
140
|
+
description?: string | undefined;
|
|
136
141
|
stroke?: string | undefined;
|
|
137
142
|
strokeWidth?: number | undefined;
|
|
138
143
|
theme?: import("../../_mixins").Theme<"Spin", {
|
|
144
|
+
fontSize: string;
|
|
145
|
+
textColor: string;
|
|
139
146
|
sizeTiny: string;
|
|
140
147
|
sizeSmall: string;
|
|
141
148
|
sizeMedium: string;
|
|
@@ -145,6 +152,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
145
152
|
opacitySpinning: string;
|
|
146
153
|
}, any> | undefined;
|
|
147
154
|
themeOverrides?: import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Spin", {
|
|
155
|
+
fontSize: string;
|
|
156
|
+
textColor: string;
|
|
148
157
|
sizeTiny: string;
|
|
149
158
|
sizeSmall: string;
|
|
150
159
|
sizeMedium: string;
|
|
@@ -154,6 +163,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
154
163
|
opacitySpinning: string;
|
|
155
164
|
}, any>> | undefined;
|
|
156
165
|
builtinThemeOverrides?: import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Spin", {
|
|
166
|
+
fontSize: string;
|
|
167
|
+
textColor: string;
|
|
157
168
|
sizeTiny: string;
|
|
158
169
|
sizeSmall: string;
|
|
159
170
|
sizeMedium: string;
|
|
@@ -166,9 +177,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
166
177
|
}>, {
|
|
167
178
|
size: number | "small" | "medium" | "large";
|
|
168
179
|
show: boolean;
|
|
169
|
-
stroke: string;
|
|
170
180
|
rotate: boolean;
|
|
171
|
-
strokeWidth: number;
|
|
172
181
|
spinning: boolean;
|
|
173
182
|
}>;
|
|
174
183
|
export default _default;
|
package/es/spin/src/Spin.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { computed, defineComponent, h, Transition } from 'vue';
|
|
1
|
+
import { computed, defineComponent, h, Transition, watchEffect } from 'vue';
|
|
2
2
|
import { useCompitable } from 'vooks';
|
|
3
3
|
import { pxfy } from 'seemly';
|
|
4
4
|
import { NBaseLoading } from '../../_internal';
|
|
5
5
|
import { useConfig, useTheme } from '../../_mixins';
|
|
6
|
-
import { createKey,
|
|
6
|
+
import { createKey, warnOnce } from '../../_utils';
|
|
7
7
|
import { spinLight } from '../styles';
|
|
8
8
|
import style from './styles/index.cssr';
|
|
9
9
|
const STROKE_WIDTH = {
|
|
@@ -11,33 +11,33 @@ const STROKE_WIDTH = {
|
|
|
11
11
|
medium: 18,
|
|
12
12
|
large: 16
|
|
13
13
|
};
|
|
14
|
-
const spinProps = Object.assign(Object.assign({}, useTheme.props), { stroke: {
|
|
15
|
-
type: String,
|
|
16
|
-
default: undefined
|
|
17
|
-
}, size: {
|
|
14
|
+
const spinProps = Object.assign(Object.assign({}, useTheme.props), { description: String, stroke: String, size: {
|
|
18
15
|
type: [String, Number],
|
|
19
16
|
default: 'medium'
|
|
20
17
|
}, show: {
|
|
21
18
|
type: Boolean,
|
|
22
19
|
default: true
|
|
23
|
-
}, strokeWidth: {
|
|
24
|
-
type:
|
|
25
|
-
default:
|
|
20
|
+
}, strokeWidth: Number, rotate: {
|
|
21
|
+
type: Boolean,
|
|
22
|
+
default: true
|
|
26
23
|
}, spinning: {
|
|
27
24
|
type: Boolean,
|
|
28
25
|
validator: () => {
|
|
29
|
-
warn('spin', '`spinning` is deprecated, please use `show` instead.');
|
|
30
26
|
return true;
|
|
31
27
|
},
|
|
32
28
|
default: undefined
|
|
33
|
-
}, rotate: {
|
|
34
|
-
type: Boolean,
|
|
35
|
-
default: true
|
|
36
29
|
} });
|
|
37
30
|
export default defineComponent({
|
|
38
31
|
name: 'Spin',
|
|
39
32
|
props: spinProps,
|
|
40
33
|
setup(props) {
|
|
34
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
35
|
+
watchEffect(() => {
|
|
36
|
+
if (props.spinning !== undefined) {
|
|
37
|
+
warnOnce('spin', '`spinning` is deprecated, please use `show` instead.');
|
|
38
|
+
}
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
41
|
const { mergedClsPrefixRef } = useConfig(props);
|
|
42
42
|
const themeRef = useTheme('Spin', 'Spin', style, spinLight, props, mergedClsPrefixRef);
|
|
43
43
|
return {
|
|
@@ -53,7 +53,7 @@ export default defineComponent({
|
|
|
53
53
|
cssVars: computed(() => {
|
|
54
54
|
const { size: spinSize } = props;
|
|
55
55
|
const { common: { cubicBezierEaseInOut }, self } = themeRef.value;
|
|
56
|
-
const { opacitySpinning, color } = self;
|
|
56
|
+
const { opacitySpinning, color, textColor } = self;
|
|
57
57
|
const size = typeof spinSize === 'number'
|
|
58
58
|
? pxfy(spinSize)
|
|
59
59
|
: self[createKey('size', spinSize)];
|
|
@@ -61,18 +61,25 @@ export default defineComponent({
|
|
|
61
61
|
'--bezier': cubicBezierEaseInOut,
|
|
62
62
|
'--opacity-spinning': opacitySpinning,
|
|
63
63
|
'--size': size,
|
|
64
|
-
'--color': color
|
|
64
|
+
'--color': color,
|
|
65
|
+
'--text-color': textColor
|
|
65
66
|
};
|
|
66
67
|
})
|
|
67
68
|
};
|
|
68
69
|
},
|
|
69
70
|
render() {
|
|
70
|
-
|
|
71
|
+
var _a;
|
|
72
|
+
const { $slots, mergedClsPrefix, description } = this;
|
|
71
73
|
const rotate = $slots.icon && this.rotate;
|
|
72
|
-
const
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
74
|
+
const descriptionNode = (description || $slots.description) && (h("div", { class: `${mergedClsPrefix}-spin-description` }, description || ((_a = $slots.description) === null || _a === void 0 ? void 0 : _a.call($slots))));
|
|
75
|
+
const icon = $slots.icon ? (h("div", { class: `${mergedClsPrefix}-spin-body` },
|
|
76
|
+
h("div", { class: [
|
|
77
|
+
`${mergedClsPrefix}-spin`,
|
|
78
|
+
rotate && `${mergedClsPrefix}-spin--rotate`
|
|
79
|
+
], style: $slots.default ? '' : this.cssVars }, $slots.icon()),
|
|
80
|
+
descriptionNode)) : (h("div", { class: `${mergedClsPrefix}-spin-body` },
|
|
81
|
+
h(NBaseLoading, { clsPrefix: mergedClsPrefix, style: $slots.default ? '' : this.cssVars, stroke: this.stroke, "stroke-width": this.mergedStrokeWidth, class: `${mergedClsPrefix}-spin` }),
|
|
82
|
+
descriptionNode));
|
|
76
83
|
return $slots.default ? (h("div", { class: `${mergedClsPrefix}-spin-container`, style: this.cssVars },
|
|
77
84
|
h("div", { class: [
|
|
78
85
|
`${mergedClsPrefix}-spin-content`,
|
|
@@ -4,6 +4,8 @@ import fadeInTransition from '../../../_styles/transitions/fade-in.cssr'; // var
|
|
|
4
4
|
// --opacity-spinning
|
|
5
5
|
// --size
|
|
6
6
|
// --color
|
|
7
|
+
// --text-color
|
|
8
|
+
// --font-size
|
|
7
9
|
|
|
8
10
|
export default c([c('@keyframes spin-rotate', `
|
|
9
11
|
from {
|
|
@@ -14,19 +16,17 @@ export default c([c('@keyframes spin-rotate', `
|
|
|
14
16
|
}
|
|
15
17
|
`), cB('spin-container', {
|
|
16
18
|
position: 'relative'
|
|
17
|
-
}, [cB('spin', `
|
|
19
|
+
}, [cB('spin-body', `
|
|
18
20
|
position: absolute;
|
|
19
21
|
top: 50%;
|
|
20
22
|
left: 50%;
|
|
21
23
|
transform: translateX(-50%) translateY(-50%);
|
|
22
|
-
`, [fadeInTransition()]), cB('spin-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
opacity: 'var(--opacity-spinning)'
|
|
29
|
-
})])]), cB('spin', `
|
|
24
|
+
`, [fadeInTransition()])]), cB('spin-body', `
|
|
25
|
+
display: inline-flex;
|
|
26
|
+
align-items: center;
|
|
27
|
+
justify-content: center;
|
|
28
|
+
flex-direction: column;
|
|
29
|
+
`), cB('spin', `
|
|
30
30
|
display: inline-flex;
|
|
31
31
|
height: var(--size);
|
|
32
32
|
width: var(--size);
|
|
@@ -34,4 +34,18 @@ export default c([c('@keyframes spin-rotate', `
|
|
|
34
34
|
color: var(--color);
|
|
35
35
|
`, [cM('rotate', `
|
|
36
36
|
animation: spin-rotate 2s linear infinite;
|
|
37
|
+
`)]), cB('spin-description', `
|
|
38
|
+
display: inline-block;
|
|
39
|
+
font-size: var(--font-size);
|
|
40
|
+
color: var(--text-color);
|
|
41
|
+
transition: color .3s var(--bezier);
|
|
42
|
+
margin-top: 8px;
|
|
43
|
+
`), cB('spin-content', `
|
|
44
|
+
opacity: 1;
|
|
45
|
+
transition: opacity .3s var(--bezier);
|
|
46
|
+
pointer-events: all;
|
|
47
|
+
`, [cM('spinning', `
|
|
48
|
+
user-select: none;
|
|
49
|
+
pointer-events: none;
|
|
50
|
+
opacity: var(--opacity-spinning);
|
|
37
51
|
`)])]);
|
package/es/spin/styles/light.js
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { commonLight } from '../../_styles/common';
|
|
2
2
|
export const self = (vars) => {
|
|
3
|
-
const { opacityDisabled, heightTiny, heightSmall, heightMedium, heightLarge, heightHuge, primaryColor } = vars;
|
|
3
|
+
const { opacityDisabled, heightTiny, heightSmall, heightMedium, heightLarge, heightHuge, primaryColor, fontSize } = vars;
|
|
4
4
|
return {
|
|
5
|
+
fontSize,
|
|
6
|
+
textColor: primaryColor,
|
|
5
7
|
sizeTiny: heightTiny,
|
|
6
8
|
sizeSmall: heightSmall,
|
|
7
9
|
sizeMedium: heightMedium,
|
package/es/styles.d.ts
CHANGED
|
@@ -38,6 +38,7 @@ export { messageDark } from './message/styles';
|
|
|
38
38
|
export { modalDark } from './modal/styles';
|
|
39
39
|
export { notificationDark } from './notification/styles';
|
|
40
40
|
export { paginationDark } from './pagination/styles';
|
|
41
|
+
export { pageHeaderRtl as unstablePageHeaderRtl } from './page-header/styles';
|
|
41
42
|
export { popconfirmDark } from './popconfirm/styles';
|
|
42
43
|
export { popoverDark } from './popover/styles';
|
|
43
44
|
export { popselectDark } from './popselect/styles';
|
package/es/styles.js
CHANGED
|
@@ -38,6 +38,7 @@ export { messageDark } from './message/styles';
|
|
|
38
38
|
export { modalDark } from './modal/styles';
|
|
39
39
|
export { notificationDark } from './notification/styles';
|
|
40
40
|
export { paginationDark } from './pagination/styles';
|
|
41
|
+
export { pageHeaderRtl as unstablePageHeaderRtl } from './page-header/styles';
|
|
41
42
|
export { popconfirmDark } from './popconfirm/styles';
|
|
42
43
|
export { popoverDark } from './popover/styles';
|
|
43
44
|
export { popselectDark } from './popselect/styles';
|
package/es/tabs/src/Tab.d.ts
CHANGED
|
@@ -30,7 +30,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
30
30
|
style: import("vue").Ref<string | import("vue").CSSProperties | undefined>;
|
|
31
31
|
clsPrefix: import("vue").Ref<string>;
|
|
32
32
|
value: import("vue").Ref<string | number | null>;
|
|
33
|
-
type: import("vue").Ref<"
|
|
33
|
+
type: import("vue").Ref<import("./interface").TabsType>;
|
|
34
34
|
handleClose(e: MouseEvent): void;
|
|
35
35
|
handleClick(): void;
|
|
36
36
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
package/es/tabs/src/Tab.js
CHANGED
|
@@ -51,12 +51,10 @@ export default defineComponent({
|
|
|
51
51
|
this.leftPadded ? (h("div", { class: `${clsPrefix}-tabs-tab-pad` })) : null,
|
|
52
52
|
h("div", { key: name, "data-name": name, "data-disabled": disabled ? true : undefined, class: [
|
|
53
53
|
`${clsPrefix}-tabs-tab`,
|
|
54
|
-
{
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
[`${clsPrefix}-tabs-tab--addable`]: addable
|
|
59
|
-
}
|
|
54
|
+
value === name && `${clsPrefix}-tabs-tab--active`,
|
|
55
|
+
disabled && `${clsPrefix}-tabs-tab--disabled`,
|
|
56
|
+
mergedClosable && `${clsPrefix}-tabs-tab--closable`,
|
|
57
|
+
addable && `${clsPrefix}-tabs-tab--addable`
|
|
60
58
|
], onClick: this.handleClick, style: addable ? undefined : style },
|
|
61
59
|
h("span", { class: `${clsPrefix}-tabs-tab__label` }, addable ? (h(NBaseIcon, { clsPrefix: clsPrefix }, {
|
|
62
60
|
default: () => h(AddIcon, null)
|