naive-ui 2.20.2 → 2.21.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/scrollbar/src/ScrollBar.d.ts +1 -0
- package/es/_internal/scrollbar/src/ScrollBar.js +9 -4
- package/es/_internal/select-menu/src/SelectMenu.d.ts +5 -1
- package/es/_internal/selection/src/Selection.d.ts +5 -1
- package/es/_internal/suffix/src/Suffix.d.ts +5 -2
- package/es/_internal/suffix/src/Suffix.js +4 -1
- package/es/_styles/common/dark.js +2 -1
- package/es/_styles/common/light.d.ts +4 -0
- package/es/_styles/common/light.js +5 -2
- package/es/_styles/global/index.cssr.js +9 -4
- package/es/_styles/transitions/icon-switch.cssr.js +6 -2
- package/es/_utils/naive/extract-public-props.d.ts +1 -1
- package/es/alert/src/Alert.d.ts +4 -0
- package/es/auto-complete/src/AutoComplete.d.ts +9 -1
- package/es/auto-complete/src/AutoComplete.js +5 -2
- package/es/avatar/src/Avatar.d.ts +8 -1
- package/es/avatar/src/Avatar.js +41 -9
- package/es/avatar/src/styles/index.cssr.js +2 -2
- package/es/button/src/Button.d.ts +149 -52
- package/es/button/src/Button.js +128 -56
- package/es/button/src/interface.d.ts +1 -1
- package/es/button/src/styles/button.cssr.js +1 -0
- package/es/button/styles/dark.js +3 -0
- package/es/button/styles/light.d.ts +14 -5
- package/es/button/styles/light.js +10 -3
- package/es/calendar/src/Calendar.d.ts +144 -50
- package/es/calendar/styles/light.d.ts +14 -5
- package/es/card/src/Card.d.ts +4 -0
- package/es/cascader/src/Cascader.d.ts +4 -0
- package/es/cascader/src/CascaderOption.d.ts +4 -0
- package/es/cascader/src/CascaderSelectMenu.d.ts +4 -0
- package/es/cascader/src/CascaderSubmenu.d.ts +4 -0
- package/es/checkbox/src/Checkbox.d.ts +9 -5
- package/es/checkbox/src/Checkbox.js +8 -9
- package/es/collapse/src/Collapse.d.ts +4 -0
- package/es/color-picker/src/ColorInputUnit.d.ts +18 -5
- package/es/color-picker/src/ColorPicker.d.ts +126 -45
- package/es/color-picker/styles/light.d.ts +14 -5
- package/es/data-table/src/DataTable.d.ts +184 -51
- package/es/data-table/src/DataTable.js +11 -6
- package/es/data-table/src/HeaderButton/FilterButton.d.ts +21 -5
- package/es/data-table/src/HeaderButton/FilterMenu.d.ts +22 -6
- package/es/data-table/src/TableParts/Body.d.ts +26 -6
- package/es/data-table/src/TableParts/Body.js +77 -39
- package/es/data-table/src/TableParts/BodyCheckbox.js +1 -1
- package/es/data-table/src/TableParts/Cell.d.ts +42 -10
- package/es/data-table/src/TableParts/Header.d.ts +21 -5
- package/es/data-table/src/TableParts/Header.js +1 -1
- package/es/data-table/src/interface.d.ts +4 -1
- package/es/data-table/src/styles/index.cssr.js +9 -10
- package/es/data-table/src/use-table-data.js +3 -3
- package/es/data-table/styles/light.d.ts +20 -5
- package/es/data-table/styles/light.js +4 -4
- package/es/date-picker/src/DatePicker.d.ts +329 -127
- package/es/date-picker/src/DatePicker.js +7 -17
- package/es/date-picker/src/config.d.ts +9 -0
- package/es/date-picker/src/config.js +8 -0
- package/es/date-picker/src/panel/date.d.ts +53 -20
- package/es/date-picker/src/panel/daterange.d.ts +52 -19
- package/es/date-picker/src/panel/datetime.d.ts +53 -20
- package/es/date-picker/src/panel/datetimerange.d.ts +52 -19
- package/es/date-picker/src/panel/month.d.ts +88 -61
- package/es/date-picker/src/panel/month.js +9 -6
- package/es/date-picker/src/panel/use-calendar.d.ts +61 -28
- package/es/date-picker/src/panel/use-calendar.js +9 -2
- package/es/date-picker/src/panel/use-dual-calendar.d.ts +50 -17
- package/es/date-picker/src/panel/use-dual-calendar.js +4 -0
- package/es/date-picker/src/panel/use-panel-common.d.ts +48 -15
- package/es/date-picker/styles/_common.d.ts +2 -0
- package/es/date-picker/styles/_common.js +3 -1
- package/es/date-picker/styles/light.d.ts +32 -10
- package/es/dialog/src/Dialog.d.ts +105 -38
- package/es/dialog/src/DialogEnvironment.d.ts +2 -2
- package/es/dialog/src/DialogProvider.d.ts +2 -2
- package/es/dialog/styles/light.d.ts +14 -5
- package/es/drawer/src/Drawer.d.ts +4 -0
- package/es/drawer/src/DrawerBodyWrapper.d.ts +4 -0
- package/es/drawer/src/DrawerContent.d.ts +4 -0
- package/es/dropdown/index.d.ts +1 -1
- package/es/dropdown/src/Dropdown.d.ts +11 -7
- package/es/dropdown/src/DropdownGroup.d.ts +2 -3
- package/es/dropdown/src/DropdownGroupHeader.js +3 -3
- package/es/dropdown/src/DropdownMenu.d.ts +3 -4
- package/es/dropdown/src/DropdownMenu.js +5 -4
- package/es/dropdown/src/DropdownOption.d.ts +3 -4
- package/es/dropdown/src/DropdownOption.js +5 -4
- package/es/dropdown/src/DropdownRenderOption.d.ts +2 -3
- package/es/dropdown/src/interface.d.ts +9 -30
- package/es/dynamic-input/src/DynamicInput.d.ts +144 -50
- package/es/dynamic-input/src/InputPreset.d.ts +18 -5
- package/es/dynamic-input/src/PairPreset.d.ts +18 -5
- package/es/dynamic-input/styles/light.d.ts +14 -5
- package/es/dynamic-tags/src/DynamicTags.d.ts +145 -50
- package/es/dynamic-tags/styles/light.d.ts +14 -5
- package/es/ellipsis/src/Ellipsis.d.ts +4 -0
- package/es/form/src/FormItemGridItem.d.ts +2 -2
- package/es/global-style/src/GlobalStyle.js +2 -0
- package/es/grid/src/Grid.js +1 -0
- package/es/grid/src/GridItem.d.ts +2 -2
- package/es/image/src/ImagePreview.d.ts +1 -0
- package/es/image/src/ImagePreview.js +51 -4
- package/es/image/src/interface.d.ts +6 -0
- package/es/image/src/interface.js +1 -0
- package/es/input/src/Input.d.ts +5 -0
- package/es/input/src/Input.js +9 -3
- package/es/input/src/interface.d.ts +1 -0
- package/es/input-number/src/InputNumber.d.ts +179 -50
- package/es/input-number/src/InputNumber.js +22 -6
- package/es/input-number/styles/light.d.ts +14 -5
- package/es/layout/src/Layout.d.ts +8 -0
- package/es/layout/src/LayoutContent.d.ts +4 -0
- package/es/layout/src/LayoutSider.d.ts +4 -0
- package/es/locales/index.d.ts +2 -0
- package/es/locales/index.js +1 -0
- package/es/locales/utils/index.d.ts +8 -0
- package/es/locales/utils/index.js +4 -0
- package/es/log/src/Log.d.ts +10 -25
- package/es/log/src/Log.js +2 -11
- package/es/log/src/LogLine.d.ts +1 -0
- package/es/log/src/LogLine.js +12 -10
- package/es/mention/src/Mention.d.ts +5 -0
- package/es/menu/index.d.ts +1 -1
- package/es/menu/src/Menu.d.ts +33 -8
- package/es/menu/src/Menu.js +32 -10
- package/es/menu/src/MenuDivider.d.ts +2 -0
- package/es/menu/src/MenuDivider.js +11 -0
- package/es/menu/src/MenuOption.d.ts +12 -2
- package/es/menu/src/MenuOptionContent.d.ts +7 -2
- package/es/menu/src/Submenu.d.ts +21 -17
- package/es/menu/src/interface.d.ts +23 -4
- package/es/menu/src/styles/index.cssr.js +6 -1
- package/es/menu/src/utils.d.ts +4 -2
- package/es/menu/src/utils.js +16 -2
- package/es/menu/styles/light.d.ts +2 -0
- package/es/menu/styles/light.js +3 -2
- package/es/modal/src/BodyWrapper.d.ts +34 -12
- package/es/modal/src/Modal.d.ts +174 -66
- package/es/modal/src/presetProps.d.ts +1 -1
- package/es/modal/styles/light.d.ts +14 -5
- package/es/notification/src/NotificationContainer.d.ts +11 -0
- package/es/notification/src/NotificationContainer.js +7 -2
- package/es/notification/src/NotificationProvider.d.ts +17 -0
- package/es/notification/src/NotificationProvider.js +38 -3
- package/es/notification/src/styles/index.cssr.d.ts +2 -1
- package/es/notification/src/styles/index.cssr.js +41 -12
- package/es/pagination/index.d.ts +1 -1
- package/es/pagination/src/Pagination.d.ts +21 -12
- package/es/pagination/src/Pagination.js +16 -6
- package/es/pagination/src/interface.d.ts +2 -0
- package/es/popconfirm/src/Popconfirm.d.ts +151 -57
- package/es/popconfirm/src/PopconfirmPanel.d.ts +2 -2
- package/es/popconfirm/styles/light.d.ts +14 -5
- package/es/popover/src/Popover.d.ts +6 -6
- package/es/popover/src/Popover.js +2 -5
- package/es/popover/src/PopoverBody.d.ts +5 -5
- package/es/popover/src/PopoverBody.js +2 -1
- package/es/popover/src/styles/index.cssr.js +0 -1
- package/es/popselect/src/Popselect.d.ts +9 -5
- package/es/popselect/src/PopselectPanel.d.ts +4 -0
- package/es/radio/src/Radio.d.ts +3 -0
- package/es/radio/src/RadioButton.d.ts +3 -0
- package/es/radio/src/use-radio.d.ts +2 -0
- package/es/radio/src/use-radio.js +6 -3
- package/es/select/src/Select.d.ts +4 -0
- package/es/slider/src/Slider.d.ts +71 -91
- package/es/slider/src/Slider.js +342 -583
- package/es/slider/src/interface.d.ts +1 -1
- package/es/slider/src/styles/index.cssr.js +86 -16
- package/es/slider/src/utils.d.ts +10 -1
- package/es/slider/src/utils.js +9 -0
- package/es/slider/styles/_common.d.ts +1 -0
- package/es/slider/styles/_common.js +1 -0
- package/es/slider/styles/light.d.ts +1 -0
- package/es/space/src/Space.js +2 -0
- package/es/steps/src/Step.js +1 -1
- package/es/table/src/Table.d.ts +35 -0
- package/es/table/src/Table.js +8 -4
- package/es/table/src/styles/index.cssr.js +1 -1
- package/es/table/styles/light.d.ts +3 -0
- package/es/table/styles/light.js +2 -2
- package/es/tabs/index.d.ts +2 -0
- package/es/tabs/index.js +1 -0
- package/es/tabs/src/Tab.d.ts +35 -18
- package/es/tabs/src/Tab.js +11 -12
- package/es/tabs/src/Tabs.js +58 -18
- package/es/tag/src/Tag.d.ts +8 -3
- package/es/tag/src/Tag.js +10 -2
- package/es/tag/src/styles/index.cssr.js +10 -5
- package/es/tag/src/styles/rtl.cssr.js +7 -1
- package/es/theme-editor/src/ThemeEditor.d.ts +4 -0
- package/es/time-picker/src/Panel.d.ts +18 -5
- package/es/time-picker/src/TimePicker.d.ts +145 -50
- package/es/time-picker/src/TimePicker.js +3 -0
- package/es/time-picker/styles/light.d.ts +14 -5
- package/es/tooltip/src/Tooltip.d.ts +9 -5
- package/es/transfer/src/Transfer.d.ts +146 -52
- package/es/transfer/src/TransferFilter.d.ts +18 -5
- package/es/transfer/src/TransferList.d.ts +18 -5
- package/es/transfer/src/TransferListItem.d.ts +18 -5
- package/es/transfer/styles/light.d.ts +14 -5
- package/es/tree/src/Tree.d.ts +10 -6
- package/es/tree/src/TreeNodeCheckbox.d.ts +4 -0
- package/es/tree/src/TreeNodeSwitcher.d.ts +1 -1
- package/es/tree-select/src/TreeSelect.d.ts +6 -2
- package/es/upload/index.d.ts +1 -2
- package/es/upload/src/Upload.d.ts +151 -59
- package/es/upload/src/Upload.js +69 -16
- package/es/upload/src/UploadFile.d.ts +19 -6
- package/es/upload/src/UploadProgress.d.ts +18 -5
- package/es/upload/src/interface.d.ts +14 -1
- package/es/upload/styles/light.d.ts +14 -5
- package/es/version.d.ts +1 -1
- package/es/version.js +1 -1
- package/lib/_internal/scrollbar/src/ScrollBar.d.ts +1 -0
- package/lib/_internal/scrollbar/src/ScrollBar.js +9 -4
- package/lib/_internal/select-menu/src/SelectMenu.d.ts +5 -1
- package/lib/_internal/selection/src/Selection.d.ts +5 -1
- package/lib/_internal/suffix/src/Suffix.d.ts +5 -2
- package/lib/_internal/suffix/src/Suffix.js +4 -1
- package/lib/_styles/common/dark.js +2 -1
- package/lib/_styles/common/light.d.ts +4 -0
- package/lib/_styles/common/light.js +5 -2
- package/lib/_styles/global/index.cssr.js +10 -5
- package/lib/_styles/transitions/icon-switch.cssr.js +7 -2
- package/lib/_utils/naive/extract-public-props.d.ts +1 -1
- package/lib/alert/src/Alert.d.ts +4 -0
- package/lib/auto-complete/src/AutoComplete.d.ts +9 -1
- package/lib/auto-complete/src/AutoComplete.js +5 -2
- package/lib/avatar/src/Avatar.d.ts +8 -1
- package/lib/avatar/src/Avatar.js +40 -8
- package/lib/avatar/src/styles/index.cssr.js +2 -2
- package/lib/button/src/Button.d.ts +149 -52
- package/lib/button/src/Button.js +126 -54
- package/lib/button/src/interface.d.ts +1 -1
- package/lib/button/src/styles/button.cssr.js +1 -0
- package/lib/button/styles/dark.js +3 -0
- package/lib/button/styles/light.d.ts +14 -5
- package/lib/button/styles/light.js +10 -3
- package/lib/calendar/src/Calendar.d.ts +144 -50
- package/lib/calendar/styles/light.d.ts +14 -5
- package/lib/card/src/Card.d.ts +4 -0
- package/lib/cascader/src/Cascader.d.ts +4 -0
- package/lib/cascader/src/CascaderOption.d.ts +4 -0
- package/lib/cascader/src/CascaderSelectMenu.d.ts +4 -0
- package/lib/cascader/src/CascaderSubmenu.d.ts +4 -0
- package/lib/checkbox/src/Checkbox.d.ts +9 -5
- package/lib/checkbox/src/Checkbox.js +8 -9
- package/lib/collapse/src/Collapse.d.ts +4 -0
- package/lib/color-picker/src/ColorInputUnit.d.ts +18 -5
- package/lib/color-picker/src/ColorPicker.d.ts +126 -45
- package/lib/color-picker/styles/light.d.ts +14 -5
- package/lib/data-table/src/DataTable.d.ts +184 -51
- package/lib/data-table/src/DataTable.js +11 -6
- package/lib/data-table/src/HeaderButton/FilterButton.d.ts +21 -5
- package/lib/data-table/src/HeaderButton/FilterMenu.d.ts +22 -6
- package/lib/data-table/src/TableParts/Body.d.ts +26 -6
- package/lib/data-table/src/TableParts/Body.js +77 -39
- package/lib/data-table/src/TableParts/BodyCheckbox.js +1 -1
- package/lib/data-table/src/TableParts/Cell.d.ts +42 -10
- package/lib/data-table/src/TableParts/Header.d.ts +21 -5
- package/lib/data-table/src/TableParts/Header.js +1 -1
- package/lib/data-table/src/interface.d.ts +4 -1
- package/lib/data-table/src/styles/index.cssr.js +9 -10
- package/lib/data-table/src/use-table-data.js +3 -3
- package/lib/data-table/styles/light.d.ts +20 -5
- package/lib/data-table/styles/light.js +4 -4
- package/lib/date-picker/src/DatePicker.d.ts +329 -127
- package/lib/date-picker/src/DatePicker.js +7 -17
- package/lib/date-picker/src/config.d.ts +9 -0
- package/lib/date-picker/src/config.js +9 -1
- package/lib/date-picker/src/panel/date.d.ts +53 -20
- package/lib/date-picker/src/panel/daterange.d.ts +52 -19
- package/lib/date-picker/src/panel/datetime.d.ts +53 -20
- package/lib/date-picker/src/panel/datetimerange.d.ts +52 -19
- package/lib/date-picker/src/panel/month.d.ts +88 -61
- package/lib/date-picker/src/panel/month.js +9 -6
- package/lib/date-picker/src/panel/use-calendar.d.ts +61 -28
- package/lib/date-picker/src/panel/use-calendar.js +8 -1
- package/lib/date-picker/src/panel/use-dual-calendar.d.ts +50 -17
- package/lib/date-picker/src/panel/use-dual-calendar.js +4 -0
- package/lib/date-picker/src/panel/use-panel-common.d.ts +48 -15
- package/lib/date-picker/styles/_common.d.ts +2 -0
- package/lib/date-picker/styles/_common.js +3 -1
- package/lib/date-picker/styles/light.d.ts +32 -10
- package/lib/dialog/src/Dialog.d.ts +105 -38
- package/lib/dialog/src/DialogEnvironment.d.ts +2 -2
- package/lib/dialog/src/DialogProvider.d.ts +2 -2
- package/lib/dialog/styles/light.d.ts +14 -5
- package/lib/drawer/src/Drawer.d.ts +4 -0
- package/lib/drawer/src/DrawerBodyWrapper.d.ts +4 -0
- package/lib/drawer/src/DrawerContent.d.ts +4 -0
- package/lib/dropdown/index.d.ts +1 -1
- package/lib/dropdown/src/Dropdown.d.ts +11 -7
- package/lib/dropdown/src/DropdownGroup.d.ts +2 -3
- package/lib/dropdown/src/DropdownGroupHeader.js +3 -3
- package/lib/dropdown/src/DropdownMenu.d.ts +3 -4
- package/lib/dropdown/src/DropdownMenu.js +5 -4
- package/lib/dropdown/src/DropdownOption.d.ts +3 -4
- package/lib/dropdown/src/DropdownOption.js +5 -4
- package/lib/dropdown/src/DropdownRenderOption.d.ts +2 -3
- package/lib/dropdown/src/interface.d.ts +9 -30
- package/lib/dynamic-input/src/DynamicInput.d.ts +144 -50
- package/lib/dynamic-input/src/InputPreset.d.ts +18 -5
- package/lib/dynamic-input/src/PairPreset.d.ts +18 -5
- package/lib/dynamic-input/styles/light.d.ts +14 -5
- package/lib/dynamic-tags/src/DynamicTags.d.ts +145 -50
- package/lib/dynamic-tags/styles/light.d.ts +14 -5
- package/lib/ellipsis/src/Ellipsis.d.ts +4 -0
- package/lib/form/src/FormItemGridItem.d.ts +2 -2
- package/lib/global-style/src/GlobalStyle.js +2 -0
- package/lib/grid/src/Grid.js +1 -0
- package/lib/grid/src/GridItem.d.ts +2 -2
- package/lib/image/src/ImagePreview.d.ts +1 -0
- package/lib/image/src/ImagePreview.js +51 -4
- package/lib/image/src/interface.d.ts +6 -0
- package/lib/image/src/interface.js +2 -0
- package/lib/input/src/Input.d.ts +5 -0
- package/lib/input/src/Input.js +9 -3
- package/lib/input/src/interface.d.ts +1 -0
- package/lib/input-number/src/InputNumber.d.ts +179 -50
- package/lib/input-number/src/InputNumber.js +22 -6
- package/lib/input-number/styles/light.d.ts +14 -5
- package/lib/layout/src/Layout.d.ts +8 -0
- package/lib/layout/src/LayoutContent.d.ts +4 -0
- package/lib/layout/src/LayoutSider.d.ts +4 -0
- package/lib/locales/index.d.ts +2 -0
- package/lib/locales/index.js +3 -1
- package/lib/locales/utils/index.d.ts +8 -0
- package/lib/locales/utils/index.js +8 -0
- package/lib/log/src/Log.d.ts +10 -25
- package/lib/log/src/Log.js +2 -11
- package/lib/log/src/LogLine.d.ts +1 -0
- package/lib/log/src/LogLine.js +11 -9
- package/lib/mention/src/Mention.d.ts +5 -0
- package/lib/menu/index.d.ts +1 -1
- package/lib/menu/src/Menu.d.ts +33 -8
- package/lib/menu/src/Menu.js +31 -9
- package/lib/menu/src/MenuDivider.d.ts +2 -0
- package/lib/menu/src/MenuDivider.js +13 -0
- package/lib/menu/src/MenuOption.d.ts +12 -2
- package/lib/menu/src/MenuOptionContent.d.ts +7 -2
- package/lib/menu/src/Submenu.d.ts +21 -17
- package/lib/menu/src/interface.d.ts +23 -4
- package/lib/menu/src/styles/index.cssr.js +6 -1
- package/lib/menu/src/utils.d.ts +4 -2
- package/lib/menu/src/utils.js +22 -3
- package/lib/menu/styles/light.d.ts +2 -0
- package/lib/menu/styles/light.js +3 -2
- package/lib/modal/src/BodyWrapper.d.ts +34 -12
- package/lib/modal/src/Modal.d.ts +174 -66
- package/lib/modal/src/presetProps.d.ts +1 -1
- package/lib/modal/styles/light.d.ts +14 -5
- package/lib/notification/src/NotificationContainer.d.ts +11 -0
- package/lib/notification/src/NotificationContainer.js +7 -2
- package/lib/notification/src/NotificationProvider.d.ts +17 -0
- package/lib/notification/src/NotificationProvider.js +38 -3
- package/lib/notification/src/styles/index.cssr.d.ts +2 -1
- package/lib/notification/src/styles/index.cssr.js +41 -12
- package/lib/pagination/index.d.ts +1 -1
- package/lib/pagination/src/Pagination.d.ts +21 -12
- package/lib/pagination/src/Pagination.js +16 -6
- package/lib/pagination/src/interface.d.ts +2 -0
- package/lib/popconfirm/src/Popconfirm.d.ts +151 -57
- package/lib/popconfirm/src/PopconfirmPanel.d.ts +2 -2
- package/lib/popconfirm/styles/light.d.ts +14 -5
- package/lib/popover/src/Popover.d.ts +6 -6
- package/lib/popover/src/Popover.js +2 -5
- package/lib/popover/src/PopoverBody.d.ts +5 -5
- package/lib/popover/src/PopoverBody.js +2 -1
- package/lib/popover/src/styles/index.cssr.js +0 -1
- package/lib/popselect/src/Popselect.d.ts +9 -5
- package/lib/popselect/src/PopselectPanel.d.ts +4 -0
- package/lib/radio/src/Radio.d.ts +3 -0
- package/lib/radio/src/RadioButton.d.ts +3 -0
- package/lib/radio/src/use-radio.d.ts +2 -0
- package/lib/radio/src/use-radio.js +6 -3
- package/lib/select/src/Select.d.ts +4 -0
- package/lib/slider/src/Slider.d.ts +71 -91
- package/lib/slider/src/Slider.js +340 -581
- package/lib/slider/src/interface.d.ts +1 -1
- package/lib/slider/src/styles/index.cssr.js +86 -16
- package/lib/slider/src/utils.d.ts +10 -1
- package/lib/slider/src/utils.js +11 -1
- package/lib/slider/styles/_common.d.ts +1 -0
- package/lib/slider/styles/_common.js +1 -0
- package/lib/slider/styles/light.d.ts +1 -0
- package/lib/space/src/Space.js +2 -0
- package/lib/steps/src/Step.js +1 -1
- package/lib/table/src/Table.d.ts +35 -0
- package/lib/table/src/Table.js +8 -4
- package/lib/table/src/styles/index.cssr.js +1 -1
- package/lib/table/styles/light.d.ts +3 -0
- package/lib/table/styles/light.js +2 -2
- package/lib/tabs/index.d.ts +2 -0
- package/lib/tabs/index.js +3 -1
- package/lib/tabs/src/Tab.d.ts +35 -18
- package/lib/tabs/src/Tab.js +10 -11
- package/lib/tabs/src/Tabs.js +57 -17
- package/lib/tag/src/Tag.d.ts +8 -3
- package/lib/tag/src/Tag.js +10 -1
- package/lib/tag/src/styles/index.cssr.js +10 -5
- package/lib/tag/src/styles/rtl.cssr.js +7 -1
- package/lib/theme-editor/src/ThemeEditor.d.ts +4 -0
- package/lib/time-picker/src/Panel.d.ts +18 -5
- package/lib/time-picker/src/TimePicker.d.ts +145 -50
- package/lib/time-picker/src/TimePicker.js +3 -0
- package/lib/time-picker/styles/light.d.ts +14 -5
- package/lib/tooltip/src/Tooltip.d.ts +9 -5
- package/lib/transfer/src/Transfer.d.ts +146 -52
- package/lib/transfer/src/TransferFilter.d.ts +18 -5
- package/lib/transfer/src/TransferList.d.ts +18 -5
- package/lib/transfer/src/TransferListItem.d.ts +18 -5
- package/lib/transfer/styles/light.d.ts +14 -5
- package/lib/tree/src/Tree.d.ts +10 -6
- package/lib/tree/src/TreeNodeCheckbox.d.ts +4 -0
- package/lib/tree/src/TreeNodeSwitcher.d.ts +1 -1
- package/lib/tree-select/src/TreeSelect.d.ts +6 -2
- package/lib/upload/index.d.ts +1 -2
- package/lib/upload/src/Upload.d.ts +151 -59
- package/lib/upload/src/Upload.js +69 -16
- package/lib/upload/src/UploadFile.d.ts +19 -6
- package/lib/upload/src/UploadProgress.d.ts +18 -5
- package/lib/upload/src/interface.d.ts +14 -1
- package/lib/upload/styles/light.d.ts +14 -5
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/package.json +10 -9
- package/web-types.json +205 -14
|
@@ -31,7 +31,7 @@ const autoCompleteProps = Object.assign(Object.assign({}, _mixins_1.useTheme.pro
|
|
|
31
31
|
}, disabled: {
|
|
32
32
|
type: Boolean,
|
|
33
33
|
default: undefined
|
|
34
|
-
}, placeholder: String, value: String, blurAfterSelect: Boolean, clearAfterSelect: Boolean, getShow: Function, size: String, options: {
|
|
34
|
+
}, placeholder: String, value: String, blurAfterSelect: Boolean, clearAfterSelect: Boolean, getShow: Function, inputProps: Object, size: String, options: {
|
|
35
35
|
type: Array,
|
|
36
36
|
default: () => []
|
|
37
37
|
}, zIndex: Number, 'onUpdate:value': [Function, Array], onUpdateValue: [Function, Array], onSelect: [Function, Array], onBlur: [Function, Array], onFocus: [Function, Array],
|
|
@@ -237,7 +237,10 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
237
237
|
});
|
|
238
238
|
}
|
|
239
239
|
const { mergedTheme } = this;
|
|
240
|
-
return ((0, vue_1.h)(input_1.NInput, { theme: mergedTheme.peers.Input, themeOverrides: mergedTheme.peerOverrides.Input, bordered: this.mergedBordered, value: this.mergedValue, placeholder: this.placeholder, size: this.mergedSize, disabled: this.mergedDisabled, clearable: this.clearable, loading: this.loading, onClear: this.handleClear, onFocus: this.handleFocus, onUpdateValue: this.handleInput, onBlur: this.handleBlur }
|
|
240
|
+
return ((0, vue_1.h)(input_1.NInput, { theme: mergedTheme.peers.Input, themeOverrides: mergedTheme.peerOverrides.Input, bordered: this.mergedBordered, value: this.mergedValue, placeholder: this.placeholder, size: this.mergedSize, disabled: this.mergedDisabled, clearable: this.clearable, loading: this.loading, inputProps: this.inputProps, onClear: this.handleClear, onFocus: this.handleFocus, onUpdateValue: this.handleInput, onBlur: this.handleBlur }, {
|
|
241
|
+
suffix: this.$slots.suffix,
|
|
242
|
+
prefix: this.$slots.prefix
|
|
243
|
+
}));
|
|
241
244
|
}
|
|
242
245
|
}),
|
|
243
246
|
(0, vue_1.h)(vueuc_1.VFollower, { show: this.active, to: this.adjustedTo, containerClass: this.namespace, zIndex: this.zIndex, teleportDisabled: this.adjustedTo === _utils_1.useAdjustedTo.tdkey, placement: "bottom-start", width: "target" }, {
|
|
@@ -14,6 +14,7 @@ declare const avatarProps: {
|
|
|
14
14
|
};
|
|
15
15
|
readonly round: BooleanConstructor;
|
|
16
16
|
readonly onError: PropType<(e: Event) => void>;
|
|
17
|
+
readonly fallbackSrc: StringConstructor;
|
|
17
18
|
readonly theme: PropType<import("../../_mixins").Theme<"Avatar", {
|
|
18
19
|
borderRadius: string;
|
|
19
20
|
fontSize: string;
|
|
@@ -60,6 +61,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
60
61
|
};
|
|
61
62
|
readonly round: BooleanConstructor;
|
|
62
63
|
readonly onError: PropType<(e: Event) => void>;
|
|
64
|
+
readonly fallbackSrc: StringConstructor;
|
|
63
65
|
readonly theme: PropType<import("../../_mixins").Theme<"Avatar", {
|
|
64
66
|
borderRadius: string;
|
|
65
67
|
fontSize: string;
|
|
@@ -93,6 +95,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
93
95
|
}, {
|
|
94
96
|
textRef: import("vue").Ref<HTMLElement | null>;
|
|
95
97
|
selfRef: import("vue").Ref<HTMLElement | null>;
|
|
98
|
+
mergedRoundRef: import("vue").ComputedRef<boolean>;
|
|
96
99
|
mergedClsPrefix: import("vue").ComputedRef<string>;
|
|
97
100
|
fitTextTransform: () => void;
|
|
98
101
|
cssVars: import("vue").ComputedRef<{
|
|
@@ -100,8 +103,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
100
103
|
'--border-radius': string;
|
|
101
104
|
'--color': string;
|
|
102
105
|
'--bezier': string;
|
|
103
|
-
'--size': string;
|
|
106
|
+
'--merged-size': string;
|
|
104
107
|
}>;
|
|
108
|
+
hasLoadError: import("vue").Ref<boolean>;
|
|
109
|
+
handleError: (e: Event) => void;
|
|
105
110
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
|
106
111
|
readonly size?: unknown;
|
|
107
112
|
readonly src?: unknown;
|
|
@@ -110,6 +115,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
110
115
|
readonly objectFit?: unknown;
|
|
111
116
|
readonly round?: unknown;
|
|
112
117
|
readonly onError?: unknown;
|
|
118
|
+
readonly fallbackSrc?: unknown;
|
|
113
119
|
readonly theme?: unknown;
|
|
114
120
|
readonly themeOverrides?: unknown;
|
|
115
121
|
readonly builtinThemeOverrides?: unknown;
|
|
@@ -152,6 +158,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
152
158
|
heightHuge: string;
|
|
153
159
|
color: string;
|
|
154
160
|
}, any>> | undefined;
|
|
161
|
+
fallbackSrc?: string | undefined;
|
|
155
162
|
}>, {
|
|
156
163
|
round: boolean;
|
|
157
164
|
size: number | "small" | "medium" | "large";
|
package/lib/avatar/src/Avatar.js
CHANGED
|
@@ -5,6 +5,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
const vue_1 = require("vue");
|
|
7
7
|
const vueuc_1 = require("vueuc");
|
|
8
|
+
const Tag_1 = require("../../tag/src/Tag");
|
|
8
9
|
const _mixins_1 = require("../../_mixins");
|
|
9
10
|
const styles_1 = require("../styles");
|
|
10
11
|
const _utils_1 = require("../../_utils");
|
|
@@ -15,12 +16,13 @@ const avatarProps = Object.assign(Object.assign({}, _mixins_1.useTheme.props), {
|
|
|
15
16
|
}, src: String, circle: Boolean, color: String, objectFit: {
|
|
16
17
|
type: String,
|
|
17
18
|
default: 'fill'
|
|
18
|
-
}, round: Boolean, onError: Function });
|
|
19
|
+
}, round: Boolean, onError: Function, fallbackSrc: String });
|
|
19
20
|
exports.default = (0, vue_1.defineComponent)({
|
|
20
21
|
name: 'Avatar',
|
|
21
22
|
props: avatarProps,
|
|
22
23
|
setup(props) {
|
|
23
24
|
const { mergedClsPrefixRef } = (0, _mixins_1.useConfig)(props);
|
|
25
|
+
const hasLoadErrorRef = (0, vue_1.ref)(false);
|
|
24
26
|
let memoedTextHtml = null;
|
|
25
27
|
const textRef = (0, vue_1.ref)(null);
|
|
26
28
|
const selfRef = (0, vue_1.ref)(null);
|
|
@@ -41,13 +43,31 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
41
43
|
}
|
|
42
44
|
};
|
|
43
45
|
const themeRef = (0, _mixins_1.useTheme)('Avatar', 'Avatar', index_cssr_1.default, styles_1.avatarLight, props, mergedClsPrefixRef);
|
|
46
|
+
const TagInjection = (0, vue_1.inject)(Tag_1.tagInjectionKey, null);
|
|
47
|
+
const mergedRoundRef = (0, vue_1.computed)(() => {
|
|
48
|
+
if (props.round || props.circle)
|
|
49
|
+
return true;
|
|
50
|
+
if (TagInjection) {
|
|
51
|
+
return TagInjection.roundRef.value;
|
|
52
|
+
}
|
|
53
|
+
return false;
|
|
54
|
+
});
|
|
55
|
+
const handleError = (e) => {
|
|
56
|
+
hasLoadErrorRef.value = true;
|
|
57
|
+
const { onError } = props;
|
|
58
|
+
if (onError) {
|
|
59
|
+
onError(e);
|
|
60
|
+
}
|
|
61
|
+
};
|
|
62
|
+
(0, vue_1.watch)(() => props.src, () => (hasLoadErrorRef.value = false));
|
|
44
63
|
return {
|
|
45
64
|
textRef,
|
|
46
65
|
selfRef,
|
|
66
|
+
mergedRoundRef,
|
|
47
67
|
mergedClsPrefix: mergedClsPrefixRef,
|
|
48
68
|
fitTextTransform,
|
|
49
69
|
cssVars: (0, vue_1.computed)(() => {
|
|
50
|
-
const { size
|
|
70
|
+
const { size } = props;
|
|
51
71
|
const { self: { borderRadius, fontSize, color }, common: { cubicBezierEaseInOut } } = themeRef.value;
|
|
52
72
|
let height;
|
|
53
73
|
if (typeof size === 'number') {
|
|
@@ -58,18 +78,30 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
58
78
|
}
|
|
59
79
|
return {
|
|
60
80
|
'--font-size': fontSize,
|
|
61
|
-
'--border-radius':
|
|
81
|
+
'--border-radius': mergedRoundRef.value ? '50%' : borderRadius,
|
|
62
82
|
'--color': color,
|
|
63
83
|
'--bezier': cubicBezierEaseInOut,
|
|
64
|
-
'--size': height
|
|
84
|
+
'--merged-size': `var(--avatar-size-override, ${height})`
|
|
65
85
|
};
|
|
66
|
-
})
|
|
86
|
+
}),
|
|
87
|
+
hasLoadError: hasLoadErrorRef,
|
|
88
|
+
handleError
|
|
67
89
|
};
|
|
68
90
|
},
|
|
69
91
|
render() {
|
|
70
92
|
const { $slots, src, mergedClsPrefix } = this;
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
93
|
+
let img;
|
|
94
|
+
if (this.hasLoadError) {
|
|
95
|
+
img = (0, vue_1.h)("img", { src: this.fallbackSrc, style: { objectFit: this.objectFit } });
|
|
96
|
+
}
|
|
97
|
+
else if (!(!$slots.default && src)) {
|
|
98
|
+
img = ((0, vue_1.h)(vueuc_1.VResizeObserver, { onResize: this.fitTextTransform }, {
|
|
99
|
+
default: () => ((0, vue_1.h)("span", { ref: "textRef", class: `${mergedClsPrefix}-avatar__text`, style: { background: this.color } }, $slots))
|
|
100
|
+
}));
|
|
101
|
+
}
|
|
102
|
+
else {
|
|
103
|
+
img = ((0, vue_1.h)("img", { src: src, onError: this.handleError, style: { objectFit: this.objectFit } }));
|
|
104
|
+
}
|
|
105
|
+
return ((0, vue_1.h)("span", { ref: "selfRef", class: `${mergedClsPrefix}-avatar`, style: this.cssVars }, img));
|
|
74
106
|
}
|
|
75
107
|
});
|
|
@@ -13,8 +13,8 @@ const cssr_1 = require("../../../_utils/cssr"); // vars:
|
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
exports.default = (0, cssr_1.cB)('avatar', `
|
|
16
|
-
width: var(--size);
|
|
17
|
-
height: var(--size);
|
|
16
|
+
width: var(--merged-size);
|
|
17
|
+
height: var(--merged-size);
|
|
18
18
|
color: #FFF;
|
|
19
19
|
font-size: var(--font-size);
|
|
20
20
|
display: inline-flex;
|
|
@@ -12,7 +12,10 @@ declare const buttonProps: {
|
|
|
12
12
|
readonly size: PropType<Size>;
|
|
13
13
|
readonly ghost: BooleanConstructor;
|
|
14
14
|
readonly round: BooleanConstructor;
|
|
15
|
-
readonly
|
|
15
|
+
readonly secondary: BooleanConstructor;
|
|
16
|
+
readonly tertiary: BooleanConstructor;
|
|
17
|
+
readonly quaternary: BooleanConstructor;
|
|
18
|
+
readonly strong: BooleanConstructor;
|
|
16
19
|
readonly focusable: {
|
|
17
20
|
readonly type: BooleanConstructor;
|
|
18
21
|
readonly default: true;
|
|
@@ -57,20 +60,30 @@ declare const buttonProps: {
|
|
|
57
60
|
fontSizeMedium: string;
|
|
58
61
|
fontSizeLarge: string;
|
|
59
62
|
opacityDisabled: string;
|
|
63
|
+
colorOpacitySecondary: number;
|
|
64
|
+
colorOpacitySecondaryHover: number;
|
|
65
|
+
colorOpacitySecondaryPressed: number;
|
|
66
|
+
colorSecondary: string;
|
|
67
|
+
colorSecondaryHover: string;
|
|
68
|
+
colorSecondaryPressed: string;
|
|
69
|
+
colorTertiary: string;
|
|
70
|
+
colorTertiaryHover: string;
|
|
71
|
+
colorTertiaryPressed: string;
|
|
72
|
+
colorQuaternary: string;
|
|
73
|
+
colorQuaternaryHover: string;
|
|
74
|
+
colorQuaternaryPressed: string;
|
|
60
75
|
color: string;
|
|
61
76
|
colorHover: string;
|
|
62
77
|
colorPressed: string;
|
|
63
78
|
colorFocus: string;
|
|
64
79
|
colorDisabled: string;
|
|
65
80
|
textColor: string;
|
|
81
|
+
textColorTertiary: string;
|
|
66
82
|
textColorHover: string;
|
|
67
83
|
textColorPressed: string;
|
|
68
84
|
textColorFocus: string;
|
|
69
85
|
textColorDisabled: string;
|
|
70
86
|
textColorText: string;
|
|
71
|
-
textColorTextDepth1: string;
|
|
72
|
-
textColorTextDepth2: string;
|
|
73
|
-
textColorTextDepth3: string;
|
|
74
87
|
textColorTextHover: string;
|
|
75
88
|
textColorTextPressed: string;
|
|
76
89
|
textColorTextFocus: string;
|
|
@@ -217,9 +230,8 @@ declare const buttonProps: {
|
|
|
217
230
|
borderDisabledError: string;
|
|
218
231
|
rippleColorError: string;
|
|
219
232
|
waveOpacity: string;
|
|
220
|
-
fontWeightText: string;
|
|
221
233
|
fontWeight: string;
|
|
222
|
-
|
|
234
|
+
fontWeightStrong: string;
|
|
223
235
|
paddingTiny: string;
|
|
224
236
|
paddingSmall: string;
|
|
225
237
|
paddingMedium: string;
|
|
@@ -252,20 +264,30 @@ declare const buttonProps: {
|
|
|
252
264
|
fontSizeMedium: string;
|
|
253
265
|
fontSizeLarge: string;
|
|
254
266
|
opacityDisabled: string;
|
|
267
|
+
colorOpacitySecondary: number;
|
|
268
|
+
colorOpacitySecondaryHover: number;
|
|
269
|
+
colorOpacitySecondaryPressed: number;
|
|
270
|
+
colorSecondary: string;
|
|
271
|
+
colorSecondaryHover: string;
|
|
272
|
+
colorSecondaryPressed: string;
|
|
273
|
+
colorTertiary: string;
|
|
274
|
+
colorTertiaryHover: string;
|
|
275
|
+
colorTertiaryPressed: string;
|
|
276
|
+
colorQuaternary: string;
|
|
277
|
+
colorQuaternaryHover: string;
|
|
278
|
+
colorQuaternaryPressed: string;
|
|
255
279
|
color: string;
|
|
256
280
|
colorHover: string;
|
|
257
281
|
colorPressed: string;
|
|
258
282
|
colorFocus: string;
|
|
259
283
|
colorDisabled: string;
|
|
260
284
|
textColor: string;
|
|
285
|
+
textColorTertiary: string;
|
|
261
286
|
textColorHover: string;
|
|
262
287
|
textColorPressed: string;
|
|
263
288
|
textColorFocus: string;
|
|
264
289
|
textColorDisabled: string;
|
|
265
290
|
textColorText: string;
|
|
266
|
-
textColorTextDepth1: string;
|
|
267
|
-
textColorTextDepth2: string;
|
|
268
|
-
textColorTextDepth3: string;
|
|
269
291
|
textColorTextHover: string;
|
|
270
292
|
textColorTextPressed: string;
|
|
271
293
|
textColorTextFocus: string;
|
|
@@ -412,9 +434,8 @@ declare const buttonProps: {
|
|
|
412
434
|
borderDisabledError: string;
|
|
413
435
|
rippleColorError: string;
|
|
414
436
|
waveOpacity: string;
|
|
415
|
-
fontWeightText: string;
|
|
416
437
|
fontWeight: string;
|
|
417
|
-
|
|
438
|
+
fontWeightStrong: string;
|
|
418
439
|
paddingTiny: string;
|
|
419
440
|
paddingSmall: string;
|
|
420
441
|
paddingMedium: string;
|
|
@@ -447,20 +468,30 @@ declare const buttonProps: {
|
|
|
447
468
|
fontSizeMedium: string;
|
|
448
469
|
fontSizeLarge: string;
|
|
449
470
|
opacityDisabled: string;
|
|
471
|
+
colorOpacitySecondary: number;
|
|
472
|
+
colorOpacitySecondaryHover: number;
|
|
473
|
+
colorOpacitySecondaryPressed: number;
|
|
474
|
+
colorSecondary: string;
|
|
475
|
+
colorSecondaryHover: string;
|
|
476
|
+
colorSecondaryPressed: string;
|
|
477
|
+
colorTertiary: string;
|
|
478
|
+
colorTertiaryHover: string;
|
|
479
|
+
colorTertiaryPressed: string;
|
|
480
|
+
colorQuaternary: string;
|
|
481
|
+
colorQuaternaryHover: string;
|
|
482
|
+
colorQuaternaryPressed: string;
|
|
450
483
|
color: string;
|
|
451
484
|
colorHover: string;
|
|
452
485
|
colorPressed: string;
|
|
453
486
|
colorFocus: string;
|
|
454
487
|
colorDisabled: string;
|
|
455
488
|
textColor: string;
|
|
489
|
+
textColorTertiary: string;
|
|
456
490
|
textColorHover: string;
|
|
457
491
|
textColorPressed: string;
|
|
458
492
|
textColorFocus: string;
|
|
459
493
|
textColorDisabled: string;
|
|
460
494
|
textColorText: string;
|
|
461
|
-
textColorTextDepth1: string;
|
|
462
|
-
textColorTextDepth2: string;
|
|
463
|
-
textColorTextDepth3: string;
|
|
464
495
|
textColorTextHover: string;
|
|
465
496
|
textColorTextPressed: string;
|
|
466
497
|
textColorTextFocus: string;
|
|
@@ -607,9 +638,8 @@ declare const buttonProps: {
|
|
|
607
638
|
borderDisabledError: string;
|
|
608
639
|
rippleColorError: string;
|
|
609
640
|
waveOpacity: string;
|
|
610
|
-
fontWeightText: string;
|
|
611
641
|
fontWeight: string;
|
|
612
|
-
|
|
642
|
+
fontWeightStrong: string;
|
|
613
643
|
paddingTiny: string;
|
|
614
644
|
paddingSmall: string;
|
|
615
645
|
paddingMedium: string;
|
|
@@ -641,7 +671,10 @@ declare const Button: import("vue").DefineComponent<{
|
|
|
641
671
|
readonly size: PropType<Size>;
|
|
642
672
|
readonly ghost: BooleanConstructor;
|
|
643
673
|
readonly round: BooleanConstructor;
|
|
644
|
-
readonly
|
|
674
|
+
readonly secondary: BooleanConstructor;
|
|
675
|
+
readonly tertiary: BooleanConstructor;
|
|
676
|
+
readonly quaternary: BooleanConstructor;
|
|
677
|
+
readonly strong: BooleanConstructor;
|
|
645
678
|
readonly focusable: {
|
|
646
679
|
readonly type: BooleanConstructor;
|
|
647
680
|
readonly default: true;
|
|
@@ -686,20 +719,30 @@ declare const Button: import("vue").DefineComponent<{
|
|
|
686
719
|
fontSizeMedium: string;
|
|
687
720
|
fontSizeLarge: string;
|
|
688
721
|
opacityDisabled: string;
|
|
722
|
+
colorOpacitySecondary: number;
|
|
723
|
+
colorOpacitySecondaryHover: number;
|
|
724
|
+
colorOpacitySecondaryPressed: number;
|
|
725
|
+
colorSecondary: string;
|
|
726
|
+
colorSecondaryHover: string;
|
|
727
|
+
colorSecondaryPressed: string;
|
|
728
|
+
colorTertiary: string;
|
|
729
|
+
colorTertiaryHover: string;
|
|
730
|
+
colorTertiaryPressed: string;
|
|
731
|
+
colorQuaternary: string;
|
|
732
|
+
colorQuaternaryHover: string;
|
|
733
|
+
colorQuaternaryPressed: string;
|
|
689
734
|
color: string;
|
|
690
735
|
colorHover: string;
|
|
691
736
|
colorPressed: string;
|
|
692
737
|
colorFocus: string;
|
|
693
738
|
colorDisabled: string;
|
|
694
739
|
textColor: string;
|
|
740
|
+
textColorTertiary: string;
|
|
695
741
|
textColorHover: string;
|
|
696
742
|
textColorPressed: string;
|
|
697
743
|
textColorFocus: string;
|
|
698
744
|
textColorDisabled: string;
|
|
699
745
|
textColorText: string;
|
|
700
|
-
textColorTextDepth1: string;
|
|
701
|
-
textColorTextDepth2: string;
|
|
702
|
-
textColorTextDepth3: string;
|
|
703
746
|
textColorTextHover: string;
|
|
704
747
|
textColorTextPressed: string;
|
|
705
748
|
textColorTextFocus: string;
|
|
@@ -846,9 +889,8 @@ declare const Button: import("vue").DefineComponent<{
|
|
|
846
889
|
borderDisabledError: string;
|
|
847
890
|
rippleColorError: string;
|
|
848
891
|
waveOpacity: string;
|
|
849
|
-
fontWeightText: string;
|
|
850
892
|
fontWeight: string;
|
|
851
|
-
|
|
893
|
+
fontWeightStrong: string;
|
|
852
894
|
paddingTiny: string;
|
|
853
895
|
paddingSmall: string;
|
|
854
896
|
paddingMedium: string;
|
|
@@ -881,20 +923,30 @@ declare const Button: import("vue").DefineComponent<{
|
|
|
881
923
|
fontSizeMedium: string;
|
|
882
924
|
fontSizeLarge: string;
|
|
883
925
|
opacityDisabled: string;
|
|
926
|
+
colorOpacitySecondary: number;
|
|
927
|
+
colorOpacitySecondaryHover: number;
|
|
928
|
+
colorOpacitySecondaryPressed: number;
|
|
929
|
+
colorSecondary: string;
|
|
930
|
+
colorSecondaryHover: string;
|
|
931
|
+
colorSecondaryPressed: string;
|
|
932
|
+
colorTertiary: string;
|
|
933
|
+
colorTertiaryHover: string;
|
|
934
|
+
colorTertiaryPressed: string;
|
|
935
|
+
colorQuaternary: string;
|
|
936
|
+
colorQuaternaryHover: string;
|
|
937
|
+
colorQuaternaryPressed: string;
|
|
884
938
|
color: string;
|
|
885
939
|
colorHover: string;
|
|
886
940
|
colorPressed: string;
|
|
887
941
|
colorFocus: string;
|
|
888
942
|
colorDisabled: string;
|
|
889
943
|
textColor: string;
|
|
944
|
+
textColorTertiary: string;
|
|
890
945
|
textColorHover: string;
|
|
891
946
|
textColorPressed: string;
|
|
892
947
|
textColorFocus: string;
|
|
893
948
|
textColorDisabled: string;
|
|
894
949
|
textColorText: string;
|
|
895
|
-
textColorTextDepth1: string;
|
|
896
|
-
textColorTextDepth2: string;
|
|
897
|
-
textColorTextDepth3: string;
|
|
898
950
|
textColorTextHover: string;
|
|
899
951
|
textColorTextPressed: string;
|
|
900
952
|
textColorTextFocus: string;
|
|
@@ -1041,9 +1093,8 @@ declare const Button: import("vue").DefineComponent<{
|
|
|
1041
1093
|
borderDisabledError: string;
|
|
1042
1094
|
rippleColorError: string;
|
|
1043
1095
|
waveOpacity: string;
|
|
1044
|
-
fontWeightText: string;
|
|
1045
1096
|
fontWeight: string;
|
|
1046
|
-
|
|
1097
|
+
fontWeightStrong: string;
|
|
1047
1098
|
paddingTiny: string;
|
|
1048
1099
|
paddingSmall: string;
|
|
1049
1100
|
paddingMedium: string;
|
|
@@ -1076,20 +1127,30 @@ declare const Button: import("vue").DefineComponent<{
|
|
|
1076
1127
|
fontSizeMedium: string;
|
|
1077
1128
|
fontSizeLarge: string;
|
|
1078
1129
|
opacityDisabled: string;
|
|
1130
|
+
colorOpacitySecondary: number;
|
|
1131
|
+
colorOpacitySecondaryHover: number;
|
|
1132
|
+
colorOpacitySecondaryPressed: number;
|
|
1133
|
+
colorSecondary: string;
|
|
1134
|
+
colorSecondaryHover: string;
|
|
1135
|
+
colorSecondaryPressed: string;
|
|
1136
|
+
colorTertiary: string;
|
|
1137
|
+
colorTertiaryHover: string;
|
|
1138
|
+
colorTertiaryPressed: string;
|
|
1139
|
+
colorQuaternary: string;
|
|
1140
|
+
colorQuaternaryHover: string;
|
|
1141
|
+
colorQuaternaryPressed: string;
|
|
1079
1142
|
color: string;
|
|
1080
1143
|
colorHover: string;
|
|
1081
1144
|
colorPressed: string;
|
|
1082
1145
|
colorFocus: string;
|
|
1083
1146
|
colorDisabled: string;
|
|
1084
1147
|
textColor: string;
|
|
1148
|
+
textColorTertiary: string;
|
|
1085
1149
|
textColorHover: string;
|
|
1086
1150
|
textColorPressed: string;
|
|
1087
1151
|
textColorFocus: string;
|
|
1088
1152
|
textColorDisabled: string;
|
|
1089
1153
|
textColorText: string;
|
|
1090
|
-
textColorTextDepth1: string;
|
|
1091
|
-
textColorTextDepth2: string;
|
|
1092
|
-
textColorTextDepth3: string;
|
|
1093
1154
|
textColorTextHover: string;
|
|
1094
1155
|
textColorTextPressed: string;
|
|
1095
1156
|
textColorTextFocus: string;
|
|
@@ -1236,9 +1297,8 @@ declare const Button: import("vue").DefineComponent<{
|
|
|
1236
1297
|
borderDisabledError: string;
|
|
1237
1298
|
rippleColorError: string;
|
|
1238
1299
|
waveOpacity: string;
|
|
1239
|
-
fontWeightText: string;
|
|
1240
1300
|
fontWeight: string;
|
|
1241
|
-
|
|
1301
|
+
fontWeightStrong: string;
|
|
1242
1302
|
paddingTiny: string;
|
|
1243
1303
|
paddingSmall: string;
|
|
1244
1304
|
paddingMedium: string;
|
|
@@ -1268,10 +1328,10 @@ declare const Button: import("vue").DefineComponent<{
|
|
|
1268
1328
|
showBorder: import("vue").ComputedRef<boolean>;
|
|
1269
1329
|
enterPressed: import("vue").Ref<boolean>;
|
|
1270
1330
|
rtlEnabled: import("vue").Ref<import("../../config-provider/src/internal-interface").RtlItem | undefined> | undefined;
|
|
1271
|
-
|
|
1272
|
-
|
|
1331
|
+
handleMousedown: (e: MouseEvent) => void;
|
|
1332
|
+
handleKeydown: (e: KeyboardEvent) => void;
|
|
1273
1333
|
handleBlur: () => void;
|
|
1274
|
-
|
|
1334
|
+
handleKeyup: (e: KeyboardEvent) => void;
|
|
1275
1335
|
handleClick: (e: MouseEvent) => void;
|
|
1276
1336
|
customColorCssVars: import("vue").ComputedRef<{
|
|
1277
1337
|
'--border-color': string;
|
|
@@ -1322,7 +1382,10 @@ declare const Button: import("vue").DefineComponent<{
|
|
|
1322
1382
|
readonly size?: unknown;
|
|
1323
1383
|
readonly ghost?: unknown;
|
|
1324
1384
|
readonly round?: unknown;
|
|
1325
|
-
readonly
|
|
1385
|
+
readonly secondary?: unknown;
|
|
1386
|
+
readonly tertiary?: unknown;
|
|
1387
|
+
readonly quaternary?: unknown;
|
|
1388
|
+
readonly strong?: unknown;
|
|
1326
1389
|
readonly focusable?: unknown;
|
|
1327
1390
|
readonly keyboard?: unknown;
|
|
1328
1391
|
readonly tag?: unknown;
|
|
@@ -1345,10 +1408,14 @@ declare const Button: import("vue").DefineComponent<{
|
|
|
1345
1408
|
circle: boolean;
|
|
1346
1409
|
disabled: boolean;
|
|
1347
1410
|
focusable: boolean;
|
|
1411
|
+
strong: boolean;
|
|
1348
1412
|
loading: boolean;
|
|
1349
1413
|
bordered: boolean;
|
|
1414
|
+
tertiary: boolean;
|
|
1350
1415
|
keyboard: boolean;
|
|
1351
1416
|
ghost: boolean;
|
|
1417
|
+
secondary: boolean;
|
|
1418
|
+
quaternary: boolean;
|
|
1352
1419
|
iconPlacement: "left" | "right";
|
|
1353
1420
|
attrType: "button" | "reset" | "submit";
|
|
1354
1421
|
} & {
|
|
@@ -1369,20 +1436,30 @@ declare const Button: import("vue").DefineComponent<{
|
|
|
1369
1436
|
fontSizeMedium: string;
|
|
1370
1437
|
fontSizeLarge: string;
|
|
1371
1438
|
opacityDisabled: string;
|
|
1439
|
+
colorOpacitySecondary: number;
|
|
1440
|
+
colorOpacitySecondaryHover: number;
|
|
1441
|
+
colorOpacitySecondaryPressed: number;
|
|
1442
|
+
colorSecondary: string;
|
|
1443
|
+
colorSecondaryHover: string;
|
|
1444
|
+
colorSecondaryPressed: string;
|
|
1445
|
+
colorTertiary: string;
|
|
1446
|
+
colorTertiaryHover: string;
|
|
1447
|
+
colorTertiaryPressed: string;
|
|
1448
|
+
colorQuaternary: string;
|
|
1449
|
+
colorQuaternaryHover: string;
|
|
1450
|
+
colorQuaternaryPressed: string;
|
|
1372
1451
|
color: string;
|
|
1373
1452
|
colorHover: string;
|
|
1374
1453
|
colorPressed: string;
|
|
1375
1454
|
colorFocus: string;
|
|
1376
1455
|
colorDisabled: string;
|
|
1377
1456
|
textColor: string;
|
|
1457
|
+
textColorTertiary: string;
|
|
1378
1458
|
textColorHover: string;
|
|
1379
1459
|
textColorPressed: string;
|
|
1380
1460
|
textColorFocus: string;
|
|
1381
1461
|
textColorDisabled: string;
|
|
1382
1462
|
textColorText: string;
|
|
1383
|
-
textColorTextDepth1: string;
|
|
1384
|
-
textColorTextDepth2: string;
|
|
1385
|
-
textColorTextDepth3: string;
|
|
1386
1463
|
textColorTextHover: string;
|
|
1387
1464
|
textColorTextPressed: string;
|
|
1388
1465
|
textColorTextFocus: string;
|
|
@@ -1529,9 +1606,8 @@ declare const Button: import("vue").DefineComponent<{
|
|
|
1529
1606
|
borderDisabledError: string;
|
|
1530
1607
|
rippleColorError: string;
|
|
1531
1608
|
waveOpacity: string;
|
|
1532
|
-
fontWeightText: string;
|
|
1533
1609
|
fontWeight: string;
|
|
1534
|
-
|
|
1610
|
+
fontWeightStrong: string;
|
|
1535
1611
|
paddingTiny: string;
|
|
1536
1612
|
paddingSmall: string;
|
|
1537
1613
|
paddingMedium: string;
|
|
@@ -1564,20 +1640,30 @@ declare const Button: import("vue").DefineComponent<{
|
|
|
1564
1640
|
fontSizeMedium: string;
|
|
1565
1641
|
fontSizeLarge: string;
|
|
1566
1642
|
opacityDisabled: string;
|
|
1643
|
+
colorOpacitySecondary: number;
|
|
1644
|
+
colorOpacitySecondaryHover: number;
|
|
1645
|
+
colorOpacitySecondaryPressed: number;
|
|
1646
|
+
colorSecondary: string;
|
|
1647
|
+
colorSecondaryHover: string;
|
|
1648
|
+
colorSecondaryPressed: string;
|
|
1649
|
+
colorTertiary: string;
|
|
1650
|
+
colorTertiaryHover: string;
|
|
1651
|
+
colorTertiaryPressed: string;
|
|
1652
|
+
colorQuaternary: string;
|
|
1653
|
+
colorQuaternaryHover: string;
|
|
1654
|
+
colorQuaternaryPressed: string;
|
|
1567
1655
|
color: string;
|
|
1568
1656
|
colorHover: string;
|
|
1569
1657
|
colorPressed: string;
|
|
1570
1658
|
colorFocus: string;
|
|
1571
1659
|
colorDisabled: string;
|
|
1572
1660
|
textColor: string;
|
|
1661
|
+
textColorTertiary: string;
|
|
1573
1662
|
textColorHover: string;
|
|
1574
1663
|
textColorPressed: string;
|
|
1575
1664
|
textColorFocus: string;
|
|
1576
1665
|
textColorDisabled: string;
|
|
1577
1666
|
textColorText: string;
|
|
1578
|
-
textColorTextDepth1: string;
|
|
1579
|
-
textColorTextDepth2: string;
|
|
1580
|
-
textColorTextDepth3: string;
|
|
1581
1667
|
textColorTextHover: string;
|
|
1582
1668
|
textColorTextPressed: string;
|
|
1583
1669
|
textColorTextFocus: string;
|
|
@@ -1724,9 +1810,8 @@ declare const Button: import("vue").DefineComponent<{
|
|
|
1724
1810
|
borderDisabledError: string;
|
|
1725
1811
|
rippleColorError: string;
|
|
1726
1812
|
waveOpacity: string;
|
|
1727
|
-
fontWeightText: string;
|
|
1728
1813
|
fontWeight: string;
|
|
1729
|
-
|
|
1814
|
+
fontWeightStrong: string;
|
|
1730
1815
|
paddingTiny: string;
|
|
1731
1816
|
paddingSmall: string;
|
|
1732
1817
|
paddingMedium: string;
|
|
@@ -1759,20 +1844,30 @@ declare const Button: import("vue").DefineComponent<{
|
|
|
1759
1844
|
fontSizeMedium: string;
|
|
1760
1845
|
fontSizeLarge: string;
|
|
1761
1846
|
opacityDisabled: string;
|
|
1847
|
+
colorOpacitySecondary: number;
|
|
1848
|
+
colorOpacitySecondaryHover: number;
|
|
1849
|
+
colorOpacitySecondaryPressed: number;
|
|
1850
|
+
colorSecondary: string;
|
|
1851
|
+
colorSecondaryHover: string;
|
|
1852
|
+
colorSecondaryPressed: string;
|
|
1853
|
+
colorTertiary: string;
|
|
1854
|
+
colorTertiaryHover: string;
|
|
1855
|
+
colorTertiaryPressed: string;
|
|
1856
|
+
colorQuaternary: string;
|
|
1857
|
+
colorQuaternaryHover: string;
|
|
1858
|
+
colorQuaternaryPressed: string;
|
|
1762
1859
|
color: string;
|
|
1763
1860
|
colorHover: string;
|
|
1764
1861
|
colorPressed: string;
|
|
1765
1862
|
colorFocus: string;
|
|
1766
1863
|
colorDisabled: string;
|
|
1767
1864
|
textColor: string;
|
|
1865
|
+
textColorTertiary: string;
|
|
1768
1866
|
textColorHover: string;
|
|
1769
1867
|
textColorPressed: string;
|
|
1770
1868
|
textColorFocus: string;
|
|
1771
1869
|
textColorDisabled: string;
|
|
1772
1870
|
textColorText: string;
|
|
1773
|
-
textColorTextDepth1: string;
|
|
1774
|
-
textColorTextDepth2: string;
|
|
1775
|
-
textColorTextDepth3: string;
|
|
1776
1871
|
textColorTextHover: string;
|
|
1777
1872
|
textColorTextPressed: string;
|
|
1778
1873
|
textColorTextFocus: string;
|
|
@@ -1919,9 +2014,8 @@ declare const Button: import("vue").DefineComponent<{
|
|
|
1919
2014
|
borderDisabledError: string;
|
|
1920
2015
|
rippleColorError: string;
|
|
1921
2016
|
waveOpacity: string;
|
|
1922
|
-
fontWeightText: string;
|
|
1923
2017
|
fontWeight: string;
|
|
1924
|
-
|
|
2018
|
+
fontWeightStrong: string;
|
|
1925
2019
|
paddingTiny: string;
|
|
1926
2020
|
paddingSmall: string;
|
|
1927
2021
|
paddingMedium: string;
|
|
@@ -1941,7 +2035,6 @@ declare const Button: import("vue").DefineComponent<{
|
|
|
1941
2035
|
rippleDuration: string;
|
|
1942
2036
|
}, any>> | undefined;
|
|
1943
2037
|
textColor?: string | undefined;
|
|
1944
|
-
depth?: 2 | 1 | 3 | "1" | "2" | "3" | undefined;
|
|
1945
2038
|
}>, {
|
|
1946
2039
|
type: Type;
|
|
1947
2040
|
tag: keyof HTMLElementTagNameMap;
|
|
@@ -1952,10 +2045,14 @@ declare const Button: import("vue").DefineComponent<{
|
|
|
1952
2045
|
circle: boolean;
|
|
1953
2046
|
disabled: boolean;
|
|
1954
2047
|
focusable: boolean;
|
|
2048
|
+
strong: boolean;
|
|
1955
2049
|
loading: boolean;
|
|
1956
2050
|
bordered: boolean;
|
|
2051
|
+
tertiary: boolean;
|
|
1957
2052
|
keyboard: boolean;
|
|
1958
2053
|
ghost: boolean;
|
|
2054
|
+
secondary: boolean;
|
|
2055
|
+
quaternary: boolean;
|
|
1959
2056
|
iconPlacement: "left" | "right";
|
|
1960
2057
|
attrType: "button" | "reset" | "submit";
|
|
1961
2058
|
}>;
|