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
|
@@ -57,6 +57,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
57
57
|
onPatternInput: PropType<(e: InputEvent) => void>;
|
|
58
58
|
renderLabel: PropType<RenderLabel>;
|
|
59
59
|
theme: PropType<import("../../../_mixins").Theme<"InternalSelection", {
|
|
60
|
+
fontSizeTiny: string;
|
|
61
|
+
fontSizeSmall: string;
|
|
62
|
+
fontSizeMedium: string;
|
|
63
|
+
fontSizeLarge: string;
|
|
64
|
+
heightTiny: string;
|
|
65
|
+
heightSmall: string;
|
|
66
|
+
heightMedium: string;
|
|
67
|
+
heightLarge: string;
|
|
60
68
|
borderRadius: string;
|
|
61
69
|
textColor: string;
|
|
62
70
|
textColorDisabled: string;
|
|
@@ -97,16 +105,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
97
105
|
clearColor: string;
|
|
98
106
|
clearColorHover: string;
|
|
99
107
|
clearColorPressed: string;
|
|
100
|
-
heightTiny: string;
|
|
101
|
-
heightSmall: string;
|
|
102
|
-
heightMedium: string;
|
|
103
|
-
heightLarge: string;
|
|
104
|
-
fontSizeTiny: string;
|
|
105
|
-
fontSizeSmall: string;
|
|
106
|
-
fontSizeMedium: string;
|
|
107
|
-
fontSizeLarge: string;
|
|
108
108
|
paddingSingle: string;
|
|
109
109
|
clearSize: string;
|
|
110
|
+
arrowSize: string;
|
|
110
111
|
}, {
|
|
111
112
|
Popover: import("../../../_mixins").Theme<"Popover", {
|
|
112
113
|
fontSize: string;
|
|
@@ -124,6 +125,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
124
125
|
}, any>;
|
|
125
126
|
}>>;
|
|
126
127
|
themeOverrides: PropType<import("../../../_mixins/use-theme").ExtractThemeOverrides<import("../../../_mixins").Theme<"InternalSelection", {
|
|
128
|
+
fontSizeTiny: string;
|
|
129
|
+
fontSizeSmall: string;
|
|
130
|
+
fontSizeMedium: string;
|
|
131
|
+
fontSizeLarge: string;
|
|
132
|
+
heightTiny: string;
|
|
133
|
+
heightSmall: string;
|
|
134
|
+
heightMedium: string;
|
|
135
|
+
heightLarge: string;
|
|
127
136
|
borderRadius: string;
|
|
128
137
|
textColor: string;
|
|
129
138
|
textColorDisabled: string;
|
|
@@ -164,16 +173,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
164
173
|
clearColor: string;
|
|
165
174
|
clearColorHover: string;
|
|
166
175
|
clearColorPressed: string;
|
|
167
|
-
heightTiny: string;
|
|
168
|
-
heightSmall: string;
|
|
169
|
-
heightMedium: string;
|
|
170
|
-
heightLarge: string;
|
|
171
|
-
fontSizeTiny: string;
|
|
172
|
-
fontSizeSmall: string;
|
|
173
|
-
fontSizeMedium: string;
|
|
174
|
-
fontSizeLarge: string;
|
|
175
176
|
paddingSingle: string;
|
|
176
177
|
clearSize: string;
|
|
178
|
+
arrowSize: string;
|
|
177
179
|
}, {
|
|
178
180
|
Popover: import("../../../_mixins").Theme<"Popover", {
|
|
179
181
|
fontSize: string;
|
|
@@ -191,6 +193,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
191
193
|
}, any>;
|
|
192
194
|
}>>>;
|
|
193
195
|
builtinThemeOverrides: PropType<import("../../../_mixins/use-theme").ExtractThemeOverrides<import("../../../_mixins").Theme<"InternalSelection", {
|
|
196
|
+
fontSizeTiny: string;
|
|
197
|
+
fontSizeSmall: string;
|
|
198
|
+
fontSizeMedium: string;
|
|
199
|
+
fontSizeLarge: string;
|
|
200
|
+
heightTiny: string;
|
|
201
|
+
heightSmall: string;
|
|
202
|
+
heightMedium: string;
|
|
203
|
+
heightLarge: string;
|
|
194
204
|
borderRadius: string;
|
|
195
205
|
textColor: string;
|
|
196
206
|
textColorDisabled: string;
|
|
@@ -231,16 +241,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
231
241
|
clearColor: string;
|
|
232
242
|
clearColorHover: string;
|
|
233
243
|
clearColorPressed: string;
|
|
234
|
-
heightTiny: string;
|
|
235
|
-
heightSmall: string;
|
|
236
|
-
heightMedium: string;
|
|
237
|
-
heightLarge: string;
|
|
238
|
-
fontSizeTiny: string;
|
|
239
|
-
fontSizeSmall: string;
|
|
240
|
-
fontSizeMedium: string;
|
|
241
|
-
fontSizeLarge: string;
|
|
242
244
|
paddingSingle: string;
|
|
243
245
|
clearSize: string;
|
|
246
|
+
arrowSize: string;
|
|
244
247
|
}, {
|
|
245
248
|
Popover: import("../../../_mixins").Theme<"Popover", {
|
|
246
249
|
fontSize: string;
|
|
@@ -359,6 +362,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
359
362
|
name: "common";
|
|
360
363
|
};
|
|
361
364
|
self: {
|
|
365
|
+
fontSizeTiny: string;
|
|
366
|
+
fontSizeSmall: string;
|
|
367
|
+
fontSizeMedium: string;
|
|
368
|
+
fontSizeLarge: string;
|
|
369
|
+
heightTiny: string;
|
|
370
|
+
heightSmall: string;
|
|
371
|
+
heightMedium: string;
|
|
372
|
+
heightLarge: string;
|
|
362
373
|
borderRadius: string;
|
|
363
374
|
textColor: string;
|
|
364
375
|
textColorDisabled: string;
|
|
@@ -399,16 +410,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
399
410
|
clearColor: string;
|
|
400
411
|
clearColorHover: string;
|
|
401
412
|
clearColorPressed: string;
|
|
402
|
-
heightTiny: string;
|
|
403
|
-
heightSmall: string;
|
|
404
|
-
heightMedium: string;
|
|
405
|
-
heightLarge: string;
|
|
406
|
-
fontSizeTiny: string;
|
|
407
|
-
fontSizeSmall: string;
|
|
408
|
-
fontSizeMedium: string;
|
|
409
|
-
fontSizeLarge: string;
|
|
410
413
|
paddingSingle: string;
|
|
411
414
|
clearSize: string;
|
|
415
|
+
arrowSize: string;
|
|
412
416
|
};
|
|
413
417
|
peers: {
|
|
414
418
|
Popover: import("../../../_mixins").Theme<"Popover", {
|
|
@@ -523,6 +527,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
523
527
|
'--clear-color': string;
|
|
524
528
|
'--clear-color-hover': string;
|
|
525
529
|
'--clear-color-pressed': string;
|
|
530
|
+
'--arrow-size': string;
|
|
526
531
|
}>;
|
|
527
532
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
|
528
533
|
clsPrefix?: unknown;
|
|
@@ -578,6 +583,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
578
583
|
onClick?: ((e: MouseEvent) => void) | undefined;
|
|
579
584
|
placeholder?: string | undefined;
|
|
580
585
|
theme?: import("../../../_mixins").Theme<"InternalSelection", {
|
|
586
|
+
fontSizeTiny: string;
|
|
587
|
+
fontSizeSmall: string;
|
|
588
|
+
fontSizeMedium: string;
|
|
589
|
+
fontSizeLarge: string;
|
|
590
|
+
heightTiny: string;
|
|
591
|
+
heightSmall: string;
|
|
592
|
+
heightMedium: string;
|
|
593
|
+
heightLarge: string;
|
|
581
594
|
borderRadius: string;
|
|
582
595
|
textColor: string;
|
|
583
596
|
textColorDisabled: string;
|
|
@@ -618,16 +631,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
618
631
|
clearColor: string;
|
|
619
632
|
clearColorHover: string;
|
|
620
633
|
clearColorPressed: string;
|
|
621
|
-
heightTiny: string;
|
|
622
|
-
heightSmall: string;
|
|
623
|
-
heightMedium: string;
|
|
624
|
-
heightLarge: string;
|
|
625
|
-
fontSizeTiny: string;
|
|
626
|
-
fontSizeSmall: string;
|
|
627
|
-
fontSizeMedium: string;
|
|
628
|
-
fontSizeLarge: string;
|
|
629
634
|
paddingSingle: string;
|
|
630
635
|
clearSize: string;
|
|
636
|
+
arrowSize: string;
|
|
631
637
|
}, {
|
|
632
638
|
Popover: import("../../../_mixins").Theme<"Popover", {
|
|
633
639
|
fontSize: string;
|
|
@@ -645,6 +651,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
645
651
|
}, any>;
|
|
646
652
|
}> | undefined;
|
|
647
653
|
themeOverrides?: import("../../../_mixins/use-theme").ExtractThemeOverrides<import("../../../_mixins").Theme<"InternalSelection", {
|
|
654
|
+
fontSizeTiny: string;
|
|
655
|
+
fontSizeSmall: string;
|
|
656
|
+
fontSizeMedium: string;
|
|
657
|
+
fontSizeLarge: string;
|
|
658
|
+
heightTiny: string;
|
|
659
|
+
heightSmall: string;
|
|
660
|
+
heightMedium: string;
|
|
661
|
+
heightLarge: string;
|
|
648
662
|
borderRadius: string;
|
|
649
663
|
textColor: string;
|
|
650
664
|
textColorDisabled: string;
|
|
@@ -685,16 +699,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
685
699
|
clearColor: string;
|
|
686
700
|
clearColorHover: string;
|
|
687
701
|
clearColorPressed: string;
|
|
688
|
-
heightTiny: string;
|
|
689
|
-
heightSmall: string;
|
|
690
|
-
heightMedium: string;
|
|
691
|
-
heightLarge: string;
|
|
692
|
-
fontSizeTiny: string;
|
|
693
|
-
fontSizeSmall: string;
|
|
694
|
-
fontSizeMedium: string;
|
|
695
|
-
fontSizeLarge: string;
|
|
696
702
|
paddingSingle: string;
|
|
697
703
|
clearSize: string;
|
|
704
|
+
arrowSize: string;
|
|
698
705
|
}, {
|
|
699
706
|
Popover: import("../../../_mixins").Theme<"Popover", {
|
|
700
707
|
fontSize: string;
|
|
@@ -712,6 +719,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
712
719
|
}, any>;
|
|
713
720
|
}>> | undefined;
|
|
714
721
|
builtinThemeOverrides?: import("../../../_mixins/use-theme").ExtractThemeOverrides<import("../../../_mixins").Theme<"InternalSelection", {
|
|
722
|
+
fontSizeTiny: string;
|
|
723
|
+
fontSizeSmall: string;
|
|
724
|
+
fontSizeMedium: string;
|
|
725
|
+
fontSizeLarge: string;
|
|
726
|
+
heightTiny: string;
|
|
727
|
+
heightSmall: string;
|
|
728
|
+
heightMedium: string;
|
|
729
|
+
heightLarge: string;
|
|
715
730
|
borderRadius: string;
|
|
716
731
|
textColor: string;
|
|
717
732
|
textColorDisabled: string;
|
|
@@ -752,16 +767,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
752
767
|
clearColor: string;
|
|
753
768
|
clearColorHover: string;
|
|
754
769
|
clearColorPressed: string;
|
|
755
|
-
heightTiny: string;
|
|
756
|
-
heightSmall: string;
|
|
757
|
-
heightMedium: string;
|
|
758
|
-
heightLarge: string;
|
|
759
|
-
fontSizeTiny: string;
|
|
760
|
-
fontSizeSmall: string;
|
|
761
|
-
fontSizeMedium: string;
|
|
762
|
-
fontSizeLarge: string;
|
|
763
770
|
paddingSingle: string;
|
|
764
771
|
clearSize: string;
|
|
772
|
+
arrowSize: string;
|
|
765
773
|
}, {
|
|
766
774
|
Popover: import("../../../_mixins").Theme<"Popover", {
|
|
767
775
|
fontSize: string;
|
|
@@ -52,9 +52,14 @@ export default defineComponent({
|
|
|
52
52
|
});
|
|
53
53
|
const filterablePlaceholderRef = computed(() => {
|
|
54
54
|
return props.selectedOption
|
|
55
|
-
? props.
|
|
56
|
-
? props.
|
|
57
|
-
|
|
55
|
+
? props.renderTag
|
|
56
|
+
? props.renderTag({
|
|
57
|
+
option: props.selectedOption,
|
|
58
|
+
handleClose: () => { }
|
|
59
|
+
})
|
|
60
|
+
: props.renderLabel
|
|
61
|
+
? props.renderLabel(props.selectedOption, true)
|
|
62
|
+
: render(props.selectedOption.label, props.selectedOption, true)
|
|
58
63
|
: props.placeholder;
|
|
59
64
|
});
|
|
60
65
|
const labelRef = computed(() => {
|
|
@@ -327,7 +332,9 @@ export default defineComponent({
|
|
|
327
332
|
// form error
|
|
328
333
|
colorActiveError, boxShadowFocusError, boxShadowActiveError, boxShadowHoverError, borderError, borderFocusError, borderHoverError, borderActiveError,
|
|
329
334
|
// clear
|
|
330
|
-
clearColor, clearColorHover, clearColorPressed, clearSize,
|
|
335
|
+
clearColor, clearColorHover, clearColorPressed, clearSize,
|
|
336
|
+
// arrow
|
|
337
|
+
arrowSize, [createKey('height', size)]: height, [createKey('fontSize', size)]: fontSize } } = themeRef.value;
|
|
331
338
|
return {
|
|
332
339
|
'--bezier': cubicBezierEaseInOut,
|
|
333
340
|
'--border': border,
|
|
@@ -374,7 +381,9 @@ export default defineComponent({
|
|
|
374
381
|
'--clear-size': clearSize,
|
|
375
382
|
'--clear-color': clearColor,
|
|
376
383
|
'--clear-color-hover': clearColorHover,
|
|
377
|
-
'--clear-color-pressed': clearColorPressed
|
|
384
|
+
'--clear-color-pressed': clearColorPressed,
|
|
385
|
+
// arrow-size
|
|
386
|
+
'--arrow-size': arrowSize
|
|
378
387
|
};
|
|
379
388
|
})
|
|
380
389
|
};
|
|
@@ -449,7 +458,7 @@ export default defineComponent({
|
|
|
449
458
|
themeOverrides: this.mergedTheme.peerOverrides.Popover
|
|
450
459
|
}
|
|
451
460
|
: null;
|
|
452
|
-
const placeholder = !this.selected && !this.pattern && !this.isCompositing ? (h("div", { class: `${clsPrefix}-base-selection-placeholder ${clsPrefix}-base-
|
|
461
|
+
const placeholder = !this.selected && !this.pattern && !this.isCompositing ? (h("div", { class: `${clsPrefix}-base-selection-placeholder ${clsPrefix}-base-selection-overlay` }, this.placeholder)) : null;
|
|
453
462
|
if (filterable) {
|
|
454
463
|
const popoverTrigger = (h("div", { ref: "patternInputWrapperRef", class: `${clsPrefix}-base-selection-tags` },
|
|
455
464
|
tags,
|
|
@@ -480,19 +489,30 @@ export default defineComponent({
|
|
|
480
489
|
(this.active || !this.selected) &&
|
|
481
490
|
!this.isCompositing;
|
|
482
491
|
body = (h("div", { ref: "patternInputWrapperRef", class: `${clsPrefix}-base-selection-label` },
|
|
483
|
-
h("input", { ref: "patternInputRef", class: `${clsPrefix}-base-selection-
|
|
492
|
+
h("input", { ref: "patternInputRef", class: `${clsPrefix}-base-selection-input`, value: this.patternInputFocused && this.active ? this.pattern : '', placeholder: "", readonly: disabled, disabled: disabled, tabindex: -1, autofocus: this.autofocus, onFocus: this.handlePatternInputFocus, onBlur: this.handlePatternInputBlur, onInput: this.handlePatternInputInput, onCompositionstart: this.handleCompositionStart, onCompositionend: this.handleCompositionEnd }),
|
|
484
493
|
showPlaceholder ? null : this.patternInputFocused &&
|
|
485
|
-
this.active ? null : (h("div", { class: `${clsPrefix}-base-selection-label__render-label ${clsPrefix}-base-
|
|
486
|
-
?
|
|
487
|
-
|
|
488
|
-
|
|
494
|
+
this.active ? null : (h("div", { class: `${clsPrefix}-base-selection-label__render-label ${clsPrefix}-base-selection-overlay`, key: "input" }, renderTag
|
|
495
|
+
? renderTag({
|
|
496
|
+
option: this.selectedOption,
|
|
497
|
+
handleClose: () => { }
|
|
498
|
+
})
|
|
499
|
+
: renderLabel
|
|
500
|
+
? renderLabel(this.selectedOption, true)
|
|
501
|
+
: render(this.label, this.selectedOption, true))),
|
|
502
|
+
showPlaceholder ? (h("div", { class: `${clsPrefix}-base-selection-placeholder ${clsPrefix}-base-selection-overlay`, key: "placeholder" }, this.filterablePlaceholder)) : null,
|
|
489
503
|
suffix));
|
|
490
504
|
}
|
|
491
505
|
else {
|
|
492
506
|
body = (h("div", { ref: "singleElRef", class: `${clsPrefix}-base-selection-label`, tabindex: this.disabled ? undefined : 0 },
|
|
493
|
-
this.label !== undefined ? (h("div", { class: `${clsPrefix}-base-selection-
|
|
494
|
-
|
|
495
|
-
|
|
507
|
+
this.label !== undefined ? (h("div", { class: `${clsPrefix}-base-selection-input`, title: getTitleAttribute(this.label), key: "input" },
|
|
508
|
+
h("div", { class: `${clsPrefix}-base-selection-input__content` }, renderTag
|
|
509
|
+
? renderTag({
|
|
510
|
+
option: this.selectedOption,
|
|
511
|
+
handleClose: () => { }
|
|
512
|
+
})
|
|
513
|
+
: renderLabel
|
|
514
|
+
? renderLabel(this.selectedOption, true)
|
|
515
|
+
: render(this.label, this.selectedOption, true)))) : (h("div", { class: `${clsPrefix}-base-selection-placeholder ${clsPrefix}-base-selection-overlay`, key: "placeholder" }, this.placeholder)),
|
|
496
516
|
suffix));
|
|
497
517
|
}
|
|
498
518
|
}
|
|
@@ -20,6 +20,7 @@ import { c, cB, cE, cM, cNotM, insideFormItem } from '../../../../_utils/cssr';
|
|
|
20
20
|
// --text-color
|
|
21
21
|
// --text-color-disabled
|
|
22
22
|
// --arrow-color
|
|
23
|
+
// --arrow-size
|
|
23
24
|
// --loading-color
|
|
24
25
|
// ...clear vars
|
|
25
26
|
// ...form item vars
|
|
@@ -34,13 +35,10 @@ export default c([cB('base-selection', `
|
|
|
34
35
|
vertical-align: bottom;
|
|
35
36
|
border-radius: var(--border-radius);
|
|
36
37
|
min-height: var(--height);
|
|
37
|
-
line-height:
|
|
38
|
+
line-height: 1.5;
|
|
38
39
|
font-size: var(--font-size);
|
|
39
40
|
`, [cB('base-loading', `
|
|
40
41
|
color: var(--loading-color);
|
|
41
|
-
`), cB('base-selection-label', `
|
|
42
|
-
height: var(--height);
|
|
43
|
-
line-height: var(--height);
|
|
44
42
|
`), cB('base-selection-tags', {
|
|
45
43
|
minHeight: 'var(--height)'
|
|
46
44
|
}), cE('border, state-border', `
|
|
@@ -65,13 +63,14 @@ export default c([cB('base-selection', `
|
|
|
65
63
|
transform: translateY(-50%);
|
|
66
64
|
right: 10px;
|
|
67
65
|
`, [cE('arrow', `
|
|
66
|
+
font-size: var(--arrow-size);
|
|
68
67
|
color: var(--arrow-color);
|
|
69
68
|
transition: color .3s var(--bezier);
|
|
70
|
-
`)]), cB('base-
|
|
69
|
+
`)]), cB('base-selection-overlay', `
|
|
70
|
+
display: flex;
|
|
71
|
+
align-items: center;
|
|
71
72
|
white-space: nowrap;
|
|
72
73
|
overflow: hidden;
|
|
73
|
-
height: var(--height);
|
|
74
|
-
line-height: var(--height);
|
|
75
74
|
pointer-events: none;
|
|
76
75
|
position: absolute;
|
|
77
76
|
top: 0;
|
|
@@ -101,7 +100,8 @@ export default c([cB('base-selection', `
|
|
|
101
100
|
box-shadow .3s var(--bezier),
|
|
102
101
|
background-color .3s var(--bezier);
|
|
103
102
|
`), cB('base-selection-label', `
|
|
104
|
-
|
|
103
|
+
height: var(--height);
|
|
104
|
+
display: inline-flex;
|
|
105
105
|
width: 100%;
|
|
106
106
|
vertical-align: bottom;
|
|
107
107
|
cursor: pointer;
|
|
@@ -115,22 +115,24 @@ export default c([cB('base-selection', `
|
|
|
115
115
|
background-color .3s var(--bezier);
|
|
116
116
|
border-radius: inherit;
|
|
117
117
|
background-color: var(--color);
|
|
118
|
-
|
|
118
|
+
align-items: center;
|
|
119
|
+
`, [cB('base-selection-input', `
|
|
119
120
|
line-height: inherit;
|
|
120
121
|
outline: none;
|
|
121
122
|
cursor: pointer;
|
|
122
123
|
box-sizing: border-box;
|
|
123
|
-
text-overflow: ellipsis;
|
|
124
|
-
overflow: hidden;
|
|
125
124
|
border:none;
|
|
126
125
|
width: 100%;
|
|
127
|
-
white-space: nowrap;
|
|
128
126
|
padding: var(--padding-single);
|
|
129
127
|
background-color: #0000;
|
|
130
128
|
color: var(--text-color);
|
|
131
129
|
transition: color .3s var(--bezier);
|
|
132
130
|
caret-color: var(--caret-color);
|
|
133
|
-
|
|
131
|
+
`, [cE('content', `
|
|
132
|
+
text-overflow: ellipsis;
|
|
133
|
+
overflow: hidden;
|
|
134
|
+
white-space: nowrap;
|
|
135
|
+
`)]), cE('render-label', `
|
|
134
136
|
color: var(--text-color);
|
|
135
137
|
`)]), cNotM('disabled', [c('&:hover', [cE('state-border', `
|
|
136
138
|
box-shadow: var(--box-shadow-hover);
|
|
@@ -152,7 +154,7 @@ export default c([cB('base-selection', `
|
|
|
152
154
|
`), cB('base-selection-label', `
|
|
153
155
|
cursor: not-allowed;
|
|
154
156
|
background-color: var(--color-disabled);
|
|
155
|
-
`, [
|
|
157
|
+
`, [cB('base-selection-input', `
|
|
156
158
|
cursor: not-allowed;
|
|
157
159
|
color: var(--text-color-disabled);
|
|
158
160
|
`), cE('render-label', `
|
|
@@ -1,13 +1,6 @@
|
|
|
1
1
|
declare const _default: {
|
|
2
|
-
heightTiny: string;
|
|
3
|
-
heightSmall: string;
|
|
4
|
-
heightMedium: string;
|
|
5
|
-
heightLarge: string;
|
|
6
|
-
fontSizeTiny: string;
|
|
7
|
-
fontSizeSmall: string;
|
|
8
|
-
fontSizeMedium: string;
|
|
9
|
-
fontSizeLarge: string;
|
|
10
2
|
paddingSingle: string;
|
|
11
3
|
clearSize: string;
|
|
4
|
+
arrowSize: string;
|
|
12
5
|
};
|
|
13
6
|
export default _default;
|
|
@@ -1,12 +1,5 @@
|
|
|
1
1
|
export default {
|
|
2
|
-
heightTiny: '22px',
|
|
3
|
-
heightSmall: '28px',
|
|
4
|
-
heightMedium: '34px',
|
|
5
|
-
heightLarge: '40px',
|
|
6
|
-
fontSizeTiny: '12px',
|
|
7
|
-
fontSizeSmall: '14px',
|
|
8
|
-
fontSizeMedium: '14px',
|
|
9
|
-
fontSizeLarge: '15px',
|
|
10
2
|
paddingSingle: '0 26px 0 14px',
|
|
11
|
-
clearSize: '16px'
|
|
3
|
+
clearSize: '16px',
|
|
4
|
+
arrowSize: '16px'
|
|
12
5
|
};
|
|
@@ -9,8 +9,16 @@ const internalSelectionDark = {
|
|
|
9
9
|
Popover: popoverDark
|
|
10
10
|
},
|
|
11
11
|
self(vars) {
|
|
12
|
-
const { borderRadius, textColor2, textColorDisabled, inputColor, inputColorDisabled, primaryColor, primaryColorHover, warningColor, warningColorHover, errorColor, errorColorHover, iconColor, iconColorDisabled, clearColor, clearColorHover, clearColorPressed, placeholderColor, placeholderColorDisabled } = vars;
|
|
13
|
-
return Object.assign(Object.assign({}, commonVars), {
|
|
12
|
+
const { borderRadius, textColor2, textColorDisabled, inputColor, inputColorDisabled, primaryColor, primaryColorHover, warningColor, warningColorHover, errorColor, errorColorHover, iconColor, iconColorDisabled, clearColor, clearColorHover, clearColorPressed, placeholderColor, placeholderColorDisabled, fontSizeTiny, fontSizeSmall, fontSizeMedium, fontSizeLarge, heightTiny, heightSmall, heightMedium, heightLarge } = vars;
|
|
13
|
+
return Object.assign(Object.assign({}, commonVars), { fontSizeTiny,
|
|
14
|
+
fontSizeSmall,
|
|
15
|
+
fontSizeMedium,
|
|
16
|
+
fontSizeLarge,
|
|
17
|
+
heightTiny,
|
|
18
|
+
heightSmall,
|
|
19
|
+
heightMedium,
|
|
20
|
+
heightLarge,
|
|
21
|
+
borderRadius,
|
|
14
22
|
// default
|
|
15
23
|
textColor: textColor2, textColorDisabled,
|
|
16
24
|
placeholderColor,
|
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
import type { ThemeCommonVars } from '../../../_styles/common';
|
|
2
2
|
declare const self: (vars: ThemeCommonVars) => {
|
|
3
|
+
fontSizeTiny: string;
|
|
4
|
+
fontSizeSmall: string;
|
|
5
|
+
fontSizeMedium: string;
|
|
6
|
+
fontSizeLarge: string;
|
|
7
|
+
heightTiny: string;
|
|
8
|
+
heightSmall: string;
|
|
9
|
+
heightMedium: string;
|
|
10
|
+
heightLarge: string;
|
|
3
11
|
borderRadius: string;
|
|
4
12
|
textColor: string;
|
|
5
13
|
textColorDisabled: string;
|
|
@@ -40,19 +48,20 @@ declare const self: (vars: ThemeCommonVars) => {
|
|
|
40
48
|
clearColor: string;
|
|
41
49
|
clearColorHover: string;
|
|
42
50
|
clearColorPressed: string;
|
|
43
|
-
heightTiny: string;
|
|
44
|
-
heightSmall: string;
|
|
45
|
-
heightMedium: string;
|
|
46
|
-
heightLarge: string;
|
|
47
|
-
fontSizeTiny: string;
|
|
48
|
-
fontSizeSmall: string;
|
|
49
|
-
fontSizeMedium: string;
|
|
50
|
-
fontSizeLarge: string;
|
|
51
51
|
paddingSingle: string;
|
|
52
52
|
clearSize: string;
|
|
53
|
+
arrowSize: string;
|
|
53
54
|
};
|
|
54
55
|
export declare type InternalSelectionThemeVars = ReturnType<typeof self>;
|
|
55
56
|
declare const internalSelectionLight: import("../../../_mixins").Theme<"InternalSelection", {
|
|
57
|
+
fontSizeTiny: string;
|
|
58
|
+
fontSizeSmall: string;
|
|
59
|
+
fontSizeMedium: string;
|
|
60
|
+
fontSizeLarge: string;
|
|
61
|
+
heightTiny: string;
|
|
62
|
+
heightSmall: string;
|
|
63
|
+
heightMedium: string;
|
|
64
|
+
heightLarge: string;
|
|
56
65
|
borderRadius: string;
|
|
57
66
|
textColor: string;
|
|
58
67
|
textColorDisabled: string;
|
|
@@ -93,16 +102,9 @@ declare const internalSelectionLight: import("../../../_mixins").Theme<"Internal
|
|
|
93
102
|
clearColor: string;
|
|
94
103
|
clearColorHover: string;
|
|
95
104
|
clearColorPressed: string;
|
|
96
|
-
heightTiny: string;
|
|
97
|
-
heightSmall: string;
|
|
98
|
-
heightMedium: string;
|
|
99
|
-
heightLarge: string;
|
|
100
|
-
fontSizeTiny: string;
|
|
101
|
-
fontSizeSmall: string;
|
|
102
|
-
fontSizeMedium: string;
|
|
103
|
-
fontSizeLarge: string;
|
|
104
105
|
paddingSingle: string;
|
|
105
106
|
clearSize: string;
|
|
107
|
+
arrowSize: string;
|
|
106
108
|
}, {
|
|
107
109
|
Popover: import("../../../_mixins").Theme<"Popover", {
|
|
108
110
|
fontSize: string;
|
|
@@ -4,8 +4,16 @@ import { popoverLight } from '../../../popover/styles';
|
|
|
4
4
|
import commonVariables from './_common';
|
|
5
5
|
import { createTheme } from '../../../_mixins';
|
|
6
6
|
const self = (vars) => {
|
|
7
|
-
const { borderRadius, textColor2, textColorDisabled, inputColor, inputColorDisabled, primaryColor, primaryColorHover, warningColor, warningColorHover, errorColor, errorColorHover, borderColor, iconColor, iconColorDisabled, clearColor, clearColorHover, clearColorPressed, placeholderColor, placeholderColorDisabled } = vars;
|
|
8
|
-
return Object.assign(Object.assign({}, commonVariables), {
|
|
7
|
+
const { borderRadius, textColor2, textColorDisabled, inputColor, inputColorDisabled, primaryColor, primaryColorHover, warningColor, warningColorHover, errorColor, errorColorHover, borderColor, iconColor, iconColorDisabled, clearColor, clearColorHover, clearColorPressed, placeholderColor, placeholderColorDisabled, fontSizeTiny, fontSizeSmall, fontSizeMedium, fontSizeLarge, heightTiny, heightSmall, heightMedium, heightLarge } = vars;
|
|
8
|
+
return Object.assign(Object.assign({}, commonVariables), { fontSizeTiny,
|
|
9
|
+
fontSizeSmall,
|
|
10
|
+
fontSizeMedium,
|
|
11
|
+
fontSizeLarge,
|
|
12
|
+
heightTiny,
|
|
13
|
+
heightSmall,
|
|
14
|
+
heightMedium,
|
|
15
|
+
heightLarge,
|
|
16
|
+
borderRadius,
|
|
9
17
|
// default
|
|
10
18
|
textColor: textColor2, textColorDisabled,
|
|
11
19
|
placeholderColor,
|
package/es/_mixins/use-rtl.js
CHANGED
|
@@ -23,7 +23,7 @@ export default function useRtl(mountId, rtlStateRef, clsPrefixRef) {
|
|
|
23
23
|
// if it already exists, we only need to watch clsPrefix, although in most
|
|
24
24
|
// of time it's unnecessary... However we can at least listen less
|
|
25
25
|
// handlers, which is great.
|
|
26
|
-
if (exists(id))
|
|
26
|
+
if (exists(id, ssrAdapter))
|
|
27
27
|
return;
|
|
28
28
|
const { value: componentRtlState } = componentRtlStateRef;
|
|
29
29
|
if (!componentRtlState)
|
|
@@ -87,7 +87,7 @@ const derived = Object.assign(Object.assign({ name: 'common' }, commonVariables)
|
|
|
87
87
|
// close
|
|
88
88
|
closeColor: neutral(Number(base.alphaClose)), closeColorHover: neutral(Number(base.alphaClose) * 1.25), closeColorPressed: neutral(Number(base.alphaClose) * 0.8), closeColorDisabled: neutral(base.alpha4),
|
|
89
89
|
// clear
|
|
90
|
-
clearColor: neutral(base.alpha4), clearColorHover: scaleColor(neutral(base.alpha4), { lightness: 0.75 }), clearColorPressed: scaleColor(neutral(base.alpha4), { lightness: 0.9 }), scrollbarColor: overlay(base.alphaScrollbar), scrollbarColorHover: overlay(base.alphaScrollbarHover), scrollbarWidth: '5px', scrollbarHeight: '5px', scrollbarBorderRadius: '5px', progressRailColor: neutral(base.alphaProgressRail), railColor: 'rgb(219, 219, 223)', popoverColor: base.neutralPopover, tableColor: base.neutralCard, cardColor: base.neutralCard, modalColor: base.neutralModal, bodyColor: base.neutralBody, tagColor: 'rgb(250, 250, 252)', avatarColor: neutral(base.alphaAvatar), invertedColor: 'rgb(0, 20, 40)', inputColor: neutral(base.alphaInput), codeColor: 'rgb(244, 244, 248)', tabColor: 'rgb(
|
|
90
|
+
clearColor: neutral(base.alpha4), clearColorHover: scaleColor(neutral(base.alpha4), { lightness: 0.75 }), clearColorPressed: scaleColor(neutral(base.alpha4), { lightness: 0.9 }), scrollbarColor: overlay(base.alphaScrollbar), scrollbarColorHover: overlay(base.alphaScrollbarHover), scrollbarWidth: '5px', scrollbarHeight: '5px', scrollbarBorderRadius: '5px', progressRailColor: neutral(base.alphaProgressRail), railColor: 'rgb(219, 219, 223)', popoverColor: base.neutralPopover, tableColor: base.neutralCard, cardColor: base.neutralCard, modalColor: base.neutralModal, bodyColor: base.neutralBody, tagColor: 'rgb(250, 250, 252)', avatarColor: neutral(base.alphaAvatar), invertedColor: 'rgb(0, 20, 40)', inputColor: neutral(base.alphaInput), codeColor: 'rgb(244, 244, 248)', tabColor: 'rgb(247, 247, 250)', actionColor: 'rgb(250, 250, 252)', tableHeaderColor: 'rgb(250, 250, 252)', hoverColor: 'rgb(243, 243, 245)',
|
|
91
91
|
// use color with alpha since it can be nested with header filter & sorter effect
|
|
92
92
|
tableColorHover: 'rgba(0, 0, 100, 0.02)', pressedColor: 'rgb(237, 237, 239)', opacityDisabled: base.alphaDisabled, inputColorDisabled: 'rgb(250, 250, 252)', boxShadow1: '0 1px 2px -2px rgba(0, 0, 0, .08), 0 3px 6px 0 rgba(0, 0, 0, .06), 0 5px 12px 4px rgba(0, 0, 0, .04)', boxShadow2: '0 3px 6px -4px rgba(0, 0, 0, .12), 0 6px 16px 0 rgba(0, 0, 0, .08), 0 9px 28px 8px rgba(0, 0, 0, .05)', boxShadow3: '0 6px 16px -9px rgba(0, 0, 0, .08), 0 9px 28px 0 rgba(0, 0, 0, .05), 0 12px 48px 16px rgba(0, 0, 0, .03)' });
|
|
93
93
|
export default derived;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export declare type Mutable<T> = {
|
|
1
|
+
export declare type Mutable<T> = T extends Record<string, unknown> ? {
|
|
2
2
|
-readonly [P in keyof T]: T[P] extends ReadonlyArray<infer U> ? Array<Mutable<U>> : Mutable<T[P]>;
|
|
3
|
-
};
|
|
3
|
+
} : T;
|
package/es/alert/src/Alert.js
CHANGED
|
@@ -96,20 +96,20 @@ export default defineComponent({
|
|
|
96
96
|
};
|
|
97
97
|
},
|
|
98
98
|
render() {
|
|
99
|
-
const { mergedClsPrefix } = this;
|
|
100
99
|
return (h(NFadeInExpandTransition, { onAfterLeave: this.handleAfterLeave }, {
|
|
101
|
-
default: () =>
|
|
102
|
-
|
|
100
|
+
default: () => {
|
|
101
|
+
const { mergedClsPrefix, $slots } = this;
|
|
102
|
+
const attrs = {
|
|
103
103
|
class: [
|
|
104
104
|
`${mergedClsPrefix}-alert`,
|
|
105
|
-
{
|
|
106
|
-
[`${mergedClsPrefix}-alert--show-icon`]: this.showIcon
|
|
107
|
-
}
|
|
105
|
+
this.showIcon && `${mergedClsPrefix}-alert--show-icon`
|
|
108
106
|
],
|
|
109
|
-
style: this.cssVars
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
107
|
+
style: this.cssVars,
|
|
108
|
+
role: 'alert'
|
|
109
|
+
};
|
|
110
|
+
return this.visible ? (h("div", Object.assign({}, mergeProps(this.$attrs, attrs)),
|
|
111
|
+
this.closable && (h(NBaseClose, { clsPrefix: mergedClsPrefix, class: `${mergedClsPrefix}-alert__close`, onClick: this.handleCloseClick })),
|
|
112
|
+
this.showIcon && (h("div", { class: `${mergedClsPrefix}-alert__icon`, "aria-hidden": "true" }, $slots.icon ? ($slots.icon()) : (h(NBaseIcon, { clsPrefix: mergedClsPrefix }, {
|
|
113
113
|
default: () => {
|
|
114
114
|
switch (this.type) {
|
|
115
115
|
case 'success':
|
|
@@ -124,14 +124,13 @@ export default defineComponent({
|
|
|
124
124
|
return null;
|
|
125
125
|
}
|
|
126
126
|
}
|
|
127
|
-
}))))
|
|
127
|
+
})))),
|
|
128
128
|
h("div", { class: `${mergedClsPrefix}-alert-body` },
|
|
129
|
-
this.title !== undefined
|
|
129
|
+
this.title !== undefined && (h("div", { class: `${mergedClsPrefix}-alert-body__title` }, renderSlot($slots, 'header', undefined, () => [
|
|
130
130
|
this.title
|
|
131
|
-
])))
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
: null
|
|
131
|
+
]))),
|
|
132
|
+
$slots.default && (h("div", { class: `${mergedClsPrefix}-alert-body__content` }, $slots))))) : null;
|
|
133
|
+
}
|
|
135
134
|
}));
|
|
136
135
|
}
|
|
137
136
|
});
|