naive-ui 2.32.0 → 2.32.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/README.zh-CN.md +1 -1
- package/dist/index.js +46388 -42920
- package/dist/index.prod.js +2 -2
- package/es/_internal/scrollbar/src/Scrollbar.js +2 -1
- package/es/_internal/select-menu/styles/light.js +1 -1
- package/es/_internal/selection/src/Selection.js +1 -1
- package/es/_utils/cssr/index.js +4 -4
- package/es/alert/src/Alert.d.ts +14 -0
- package/es/alert/src/Alert.js +11 -2
- package/es/alert/src/styles/index.cssr.js +11 -2
- package/es/alert/styles/dark.js +5 -1
- package/es/anchor/styles/light.js +2 -1
- package/es/auto-complete/src/AutoComplete.d.ts +14 -1
- package/es/auto-complete/src/AutoComplete.js +22 -16
- package/es/auto-complete/styles/light.d.ts +1 -0
- package/es/breadcrumb/styles/light.js +1 -1
- package/es/button/styles/light.js +5 -1
- package/es/card/styles/light.js +1 -1
- package/es/carousel/src/Carousel.js +7 -5
- package/es/cascader/src/Cascader.d.ts +13 -0
- package/es/cascader/src/Cascader.js +12 -4
- package/es/checkbox/src/CheckboxGroup.js +2 -2
- package/es/checkbox/styles/light.js +1 -1
- package/es/collapse/src/Collapse.d.ts +22 -0
- package/es/collapse/src/Collapse.js +4 -2
- package/es/collapse/src/CollapseItem.d.ts +6 -1
- package/es/collapse/src/CollapseItem.js +4 -2
- package/es/collapse/src/styles/index.cssr.js +10 -21
- package/es/collapse/styles/light.d.ts +2 -0
- package/es/collapse/styles/light.js +5 -3
- package/es/color-picker/src/ColorInputUnit.d.ts +1 -0
- package/es/color-picker/src/ColorPicker.d.ts +9 -0
- package/es/color-picker/src/ColorPicker.js +3 -2
- package/es/color-picker/styles/light.d.ts +1 -0
- package/es/countdown/src/Countdown.js +1 -1
- package/es/data-table/src/DataTable.d.ts +18 -0
- package/es/data-table/src/DataTable.js +6 -3
- package/es/data-table/src/HeaderButton/FilterButton.d.ts +2 -0
- package/es/data-table/src/HeaderButton/FilterMenu.d.ts +4 -2
- package/es/data-table/src/TableParts/Body.d.ts +6 -0
- package/es/data-table/src/TableParts/Body.js +22 -14
- package/es/data-table/src/TableParts/Cell.d.ts +4 -0
- package/es/data-table/src/TableParts/ExpandTrigger.d.ts +7 -1
- package/es/data-table/src/TableParts/ExpandTrigger.js +15 -9
- package/es/data-table/src/TableParts/Header.d.ts +3 -1
- package/es/data-table/src/interface.d.ts +6 -3
- package/es/data-table/src/styles/index.cssr.js +25 -7
- package/es/data-table/src/use-expand.d.ts +3 -1
- package/es/data-table/src/use-expand.js +15 -8
- package/es/data-table/src/use-group-header.js +1 -1
- package/es/data-table/src/use-sorter.js +1 -1
- package/es/data-table/src/use-table-data.js +1 -1
- package/es/data-table/styles/light.d.ts +1 -0
- package/es/date-picker/src/DatePicker.d.ts +23 -2
- package/es/date-picker/src/DatePicker.js +4 -4
- package/es/date-picker/src/panel/date.d.ts +6 -3
- package/es/date-picker/src/panel/daterange.d.ts +3 -0
- package/es/date-picker/src/panel/datetime.d.ts +3 -0
- package/es/date-picker/src/panel/datetimerange.d.ts +3 -0
- package/es/date-picker/src/panel/month.d.ts +3 -0
- package/es/date-picker/src/panel/monthrange.d.ts +3 -0
- package/es/date-picker/src/panel/panelHeader.d.ts +6 -0
- package/es/date-picker/src/panel/panelHeader.js +3 -1
- package/es/date-picker/src/panel/use-calendar.d.ts +3 -0
- package/es/date-picker/src/panel/use-dual-calendar.d.ts +3 -0
- package/es/date-picker/src/panel/use-panel-common.d.ts +3 -0
- package/es/date-picker/src/styles/index.cssr.js +6 -6
- package/es/date-picker/styles/light.d.ts +2 -0
- package/es/descriptions/styles/light.js +1 -1
- package/es/drawer/src/Drawer.d.ts +8 -8
- package/es/drawer/src/Drawer.js +3 -3
- package/es/drawer/src/DrawerBodyWrapper.d.ts +1 -0
- package/es/drawer/src/DrawerBodyWrapper.js +6 -0
- package/es/drawer/src/styles/rtl.cssr.d.ts +2 -0
- package/es/drawer/src/styles/rtl.cssr.js +8 -0
- package/es/drawer/styles/index.d.ts +1 -0
- package/es/drawer/styles/index.js +1 -0
- package/es/drawer/styles/rtl.d.ts +3 -0
- package/es/drawer/styles/rtl.js +8 -0
- package/es/dropdown/src/Dropdown.js +6 -6
- package/es/dropdown/src/styles/index.cssr.js +35 -33
- package/es/dynamic-input/src/DynamicInput.d.ts +10 -0
- package/es/dynamic-input/src/InputPreset.d.ts +1 -0
- package/es/dynamic-input/src/PairPreset.d.ts +1 -0
- package/es/dynamic-input/styles/light.d.ts +1 -0
- package/es/dynamic-tags/src/DynamicTags.d.ts +10 -0
- package/es/dynamic-tags/styles/light.d.ts +1 -0
- package/es/empty/styles/light.js +1 -1
- package/es/grid/src/Grid.d.ts +5 -0
- package/es/grid/src/Grid.js +18 -0
- package/es/grid/src/GridItem.d.ts +2 -0
- package/es/grid/src/GridItem.js +15 -2
- package/es/input/src/Input.d.ts +21 -1
- package/es/input/src/Input.js +23 -6
- package/es/input/src/InputGroupLabel.d.ts +9 -0
- package/es/input/src/styles/input.cssr.d.ts +1 -0
- package/es/input/src/styles/input.cssr.js +12 -4
- package/es/input/styles/dark.js +1 -1
- package/es/input/styles/light.d.ts +1 -0
- package/es/input/styles/light.js +1 -1
- package/es/input-number/src/InputNumber.d.ts +15 -5
- package/es/input-number/src/InputNumber.js +6 -8
- package/es/input-number/src/interface.d.ts +1 -0
- package/es/input-number/styles/light.d.ts +1 -0
- package/es/layout/src/Layout.js +3 -1
- package/es/legacy-grid/src/Row.js +2 -2
- package/es/legacy-transfer/src/Transfer.d.ts +10 -0
- package/es/legacy-transfer/src/TransferFilter.d.ts +1 -0
- package/es/legacy-transfer/src/TransferList.d.ts +1 -0
- package/es/legacy-transfer/src/TransferListItem.d.ts +1 -0
- package/es/legacy-transfer/styles/light.d.ts +1 -0
- package/es/list/src/List.d.ts +47 -3
- package/es/list/src/List.js +17 -7
- package/es/list/src/ListItem.d.ts +1 -0
- package/es/list/src/ListItem.js +3 -1
- package/es/list/src/styles/index.cssr.js +35 -12
- package/es/list/src/styles/rtl.cssr.d.ts +2 -0
- package/es/list/src/styles/rtl.cssr.js +11 -0
- package/es/list/styles/index.d.ts +1 -0
- package/es/list/styles/index.js +1 -0
- package/es/list/styles/light.d.ts +3 -0
- package/es/list/styles/light.js +4 -1
- package/es/list/styles/rtl.d.ts +2 -0
- package/es/list/styles/rtl.js +5 -0
- package/es/locales/common/viVN.js +7 -9
- 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 +13 -0
- package/es/menu/src/Menu.js +4 -1
- package/es/menu/src/Submenu.js +1 -1
- package/es/menu/src/utils.d.ts +1 -1
- package/es/menu/src/utils.js +5 -1
- package/es/message/src/Message.d.ts +1 -0
- package/es/message/src/Message.js +8 -3
- package/es/message/src/styles/rtl.cssr.d.ts +2 -0
- package/es/message/src/styles/rtl.cssr.js +8 -0
- package/es/message/styles/index.d.ts +1 -0
- package/es/message/styles/index.js +1 -0
- package/es/message/styles/light.js +4 -1
- package/es/message/styles/rtl.d.ts +2 -0
- package/es/message/styles/rtl.js +5 -0
- package/es/modal/src/Modal.js +2 -1
- package/es/notification/styles/light.js +3 -1
- package/es/number-animation/src/NumberAnimation.js +1 -1
- package/es/pagination/src/Pagination.d.ts +31 -26
- package/es/pagination/src/Pagination.js +207 -164
- package/es/pagination/src/styles/index.cssr.js +7 -1
- package/es/pagination/styles/light.d.ts +1 -0
- package/es/popover/src/Popover.js +2 -2
- package/es/popover/src/PopoverBody.js +3 -2
- package/es/popselect/src/Popselect.d.ts +3 -3
- package/es/radio/styles/dark.js +1 -1
- package/es/radio/styles/light.js +1 -1
- package/es/select/index.d.ts +1 -1
- package/es/select/src/Select.d.ts +4 -1
- package/es/select/src/Select.js +4 -4
- package/es/skeleton/src/Skeleton.js +1 -1
- package/es/slider/styles/dark.js +2 -1
- package/es/slider/styles/light.js +2 -1
- package/es/statistic/src/Statistic.d.ts +10 -0
- package/es/statistic/src/Statistic.js +2 -1
- package/es/statistic/src/styles/index.cssr.js +4 -3
- package/es/statistic/styles/light.d.ts +1 -0
- package/es/statistic/styles/light.js +1 -0
- package/es/steps/src/Steps.d.ts +1 -0
- package/es/steps/src/Steps.js +6 -3
- package/es/steps/src/styles/rtl.cssr.d.ts +2 -0
- package/es/steps/src/styles/rtl.cssr.js +14 -0
- package/es/steps/styles/index.d.ts +1 -0
- package/es/steps/styles/index.js +1 -0
- package/es/steps/styles/rtl.d.ts +2 -0
- package/es/steps/styles/rtl.js +5 -0
- package/es/styles.d.ts +4 -3
- package/es/styles.js +4 -3
- package/es/switch/src/Switch.js +32 -5
- package/es/switch/src/styles/index.cssr.js +2 -2
- package/es/tag/src/Tag.d.ts +4 -4
- package/es/tag/src/Tag.js +3 -3
- package/es/tag/src/styles/index.cssr.js +0 -1
- package/es/tag/styles/light.js +4 -1
- package/es/thing/src/Thing.d.ts +19 -21
- package/es/thing/src/Thing.js +4 -7
- package/es/time-picker/src/Panel.d.ts +1 -0
- package/es/time-picker/src/TimePicker.d.ts +12 -2
- package/es/time-picker/src/TimePicker.js +4 -4
- package/es/time-picker/src/styles/index.cssr.js +12 -12
- package/es/time-picker/styles/light.d.ts +1 -0
- package/es/timeline/src/TimelineItem.js +1 -1
- package/es/tooltip/styles/dark.js +1 -1
- package/es/tooltip/styles/light.js +1 -1
- package/es/transfer/src/Transfer.d.ts +37 -6
- package/es/transfer/src/Transfer.js +32 -23
- package/es/transfer/src/TransferFilter.d.ts +1 -0
- package/es/transfer/src/TransferList.d.ts +1 -0
- package/es/transfer/src/TransferList.js +1 -1
- package/es/transfer/src/TransferListItem.d.ts +1 -0
- package/es/transfer/src/interface.d.ts +1 -1
- package/es/transfer/src/use-transfer-data.d.ts +11 -4
- package/es/transfer/src/use-transfer-data.js +59 -16
- package/es/transfer/styles/light.d.ts +1 -0
- package/es/tree/index.d.ts +1 -1
- package/es/tree/src/Tree.d.ts +34 -1
- package/es/tree/src/Tree.js +25 -11
- package/es/tree/src/interface.d.ts +5 -0
- package/es/tree/src/keyboard.d.ts +4 -1
- package/es/tree/src/keyboard.js +3 -1
- package/es/tree-select/src/TreeSelect.d.ts +13 -0
- package/es/tree-select/src/TreeSelect.js +4 -4
- package/es/typography/styles/light.js +1 -1
- package/es/upload/src/Upload.d.ts +10 -0
- package/es/upload/src/Upload.js +1 -1
- package/es/upload/src/UploadFile.js +4 -2
- package/es/upload/src/utils.d.ts +1 -0
- package/es/upload/src/utils.js +12 -0
- package/es/version.d.ts +1 -1
- package/es/version.js +1 -1
- package/lib/_internal/scrollbar/src/Scrollbar.js +2 -1
- package/lib/_internal/select-menu/styles/light.js +1 -1
- package/lib/_internal/selection/src/Selection.js +1 -1
- package/lib/_utils/cssr/index.js +2 -2
- package/lib/alert/src/Alert.d.ts +14 -0
- package/lib/alert/src/Alert.js +11 -2
- package/lib/alert/src/styles/index.cssr.js +11 -2
- package/lib/alert/styles/dark.js +5 -1
- package/lib/anchor/styles/light.js +2 -1
- package/lib/auto-complete/src/AutoComplete.d.ts +14 -1
- package/lib/auto-complete/src/AutoComplete.js +22 -16
- package/lib/auto-complete/styles/light.d.ts +1 -0
- package/lib/breadcrumb/styles/light.js +1 -1
- package/lib/button/styles/light.js +5 -1
- package/lib/card/styles/light.js +1 -1
- package/lib/carousel/src/Carousel.js +7 -5
- package/lib/cascader/src/Cascader.d.ts +13 -0
- package/lib/cascader/src/Cascader.js +11 -3
- package/lib/checkbox/src/CheckboxGroup.js +2 -2
- package/lib/checkbox/styles/light.js +1 -1
- package/lib/collapse/src/Collapse.d.ts +22 -0
- package/lib/collapse/src/Collapse.js +4 -2
- package/lib/collapse/src/CollapseItem.d.ts +6 -1
- package/lib/collapse/src/CollapseItem.js +4 -2
- package/lib/collapse/src/styles/index.cssr.js +10 -21
- package/lib/collapse/styles/light.d.ts +2 -0
- package/lib/collapse/styles/light.js +5 -3
- package/lib/color-picker/src/ColorInputUnit.d.ts +1 -0
- package/lib/color-picker/src/ColorPicker.d.ts +9 -0
- package/lib/color-picker/src/ColorPicker.js +2 -1
- package/lib/color-picker/styles/light.d.ts +1 -0
- package/lib/countdown/src/Countdown.js +1 -1
- package/lib/data-table/src/DataTable.d.ts +18 -0
- package/lib/data-table/src/DataTable.js +6 -3
- package/lib/data-table/src/HeaderButton/FilterButton.d.ts +2 -0
- package/lib/data-table/src/HeaderButton/FilterMenu.d.ts +4 -2
- package/lib/data-table/src/TableParts/Body.d.ts +6 -0
- package/lib/data-table/src/TableParts/Body.js +22 -14
- package/lib/data-table/src/TableParts/Cell.d.ts +4 -0
- package/lib/data-table/src/TableParts/ExpandTrigger.d.ts +7 -1
- package/lib/data-table/src/TableParts/ExpandTrigger.js +15 -9
- package/lib/data-table/src/TableParts/Header.d.ts +3 -1
- package/lib/data-table/src/interface.d.ts +6 -3
- package/lib/data-table/src/styles/index.cssr.js +25 -7
- package/lib/data-table/src/use-expand.d.ts +3 -1
- package/lib/data-table/src/use-expand.js +15 -8
- package/lib/data-table/src/use-group-header.js +1 -1
- package/lib/data-table/src/use-sorter.js +1 -1
- package/lib/data-table/src/use-table-data.js +1 -1
- package/lib/data-table/styles/light.d.ts +1 -0
- package/lib/date-picker/src/DatePicker.d.ts +23 -2
- package/lib/date-picker/src/DatePicker.js +3 -3
- package/lib/date-picker/src/panel/date.d.ts +6 -3
- package/lib/date-picker/src/panel/daterange.d.ts +3 -0
- package/lib/date-picker/src/panel/datetime.d.ts +3 -0
- package/lib/date-picker/src/panel/datetimerange.d.ts +3 -0
- package/lib/date-picker/src/panel/month.d.ts +3 -0
- package/lib/date-picker/src/panel/monthrange.d.ts +3 -0
- package/lib/date-picker/src/panel/panelHeader.d.ts +6 -0
- package/lib/date-picker/src/panel/panelHeader.js +3 -1
- package/lib/date-picker/src/panel/use-calendar.d.ts +3 -0
- package/lib/date-picker/src/panel/use-dual-calendar.d.ts +3 -0
- package/lib/date-picker/src/panel/use-panel-common.d.ts +3 -0
- package/lib/date-picker/src/styles/index.cssr.js +6 -6
- package/lib/date-picker/styles/light.d.ts +2 -0
- package/lib/descriptions/styles/light.js +1 -1
- package/lib/drawer/src/Drawer.d.ts +8 -8
- package/lib/drawer/src/Drawer.js +3 -3
- package/lib/drawer/src/DrawerBodyWrapper.d.ts +1 -0
- package/lib/drawer/src/DrawerBodyWrapper.js +6 -0
- package/lib/drawer/src/styles/rtl.cssr.d.ts +2 -0
- package/lib/drawer/src/styles/rtl.cssr.js +15 -0
- package/lib/drawer/styles/index.d.ts +1 -0
- package/lib/drawer/styles/index.js +3 -1
- package/lib/drawer/styles/rtl.d.ts +3 -0
- package/lib/drawer/styles/rtl.js +14 -0
- package/lib/dropdown/src/Dropdown.js +6 -6
- package/lib/dropdown/src/styles/index.cssr.js +35 -33
- package/lib/dynamic-input/src/DynamicInput.d.ts +10 -0
- package/lib/dynamic-input/src/InputPreset.d.ts +1 -0
- package/lib/dynamic-input/src/PairPreset.d.ts +1 -0
- package/lib/dynamic-input/styles/light.d.ts +1 -0
- package/lib/dynamic-tags/src/DynamicTags.d.ts +10 -0
- package/lib/dynamic-tags/styles/light.d.ts +1 -0
- package/lib/empty/styles/light.js +1 -1
- package/lib/grid/src/Grid.d.ts +5 -0
- package/lib/grid/src/Grid.js +18 -0
- package/lib/grid/src/GridItem.d.ts +2 -0
- package/lib/grid/src/GridItem.js +14 -1
- package/lib/input/src/Input.d.ts +21 -1
- package/lib/input/src/Input.js +45 -5
- package/lib/input/src/InputGroupLabel.d.ts +9 -0
- package/lib/input/src/styles/input.cssr.d.ts +1 -0
- package/lib/input/src/styles/input.cssr.js +13 -4
- package/lib/input/styles/dark.js +1 -1
- package/lib/input/styles/light.d.ts +1 -0
- package/lib/input/styles/light.js +1 -1
- package/lib/input-number/src/InputNumber.d.ts +15 -5
- package/lib/input-number/src/InputNumber.js +6 -8
- package/lib/input-number/src/interface.d.ts +1 -0
- package/lib/input-number/styles/light.d.ts +1 -0
- package/lib/layout/src/Layout.js +3 -1
- package/lib/legacy-grid/src/Row.js +2 -2
- package/lib/legacy-transfer/src/Transfer.d.ts +10 -0
- package/lib/legacy-transfer/src/TransferFilter.d.ts +1 -0
- package/lib/legacy-transfer/src/TransferList.d.ts +1 -0
- package/lib/legacy-transfer/src/TransferListItem.d.ts +1 -0
- package/lib/legacy-transfer/styles/light.d.ts +1 -0
- package/lib/list/src/List.d.ts +47 -3
- package/lib/list/src/List.js +15 -5
- package/lib/list/src/ListItem.d.ts +1 -0
- package/lib/list/src/ListItem.js +3 -1
- package/lib/list/src/styles/index.cssr.js +35 -12
- package/lib/list/src/styles/rtl.cssr.d.ts +2 -0
- package/lib/list/src/styles/rtl.cssr.js +18 -0
- package/lib/list/styles/index.d.ts +1 -0
- package/lib/list/styles/index.js +3 -1
- package/lib/list/styles/light.d.ts +3 -0
- package/lib/list/styles/light.js +4 -1
- package/lib/list/styles/rtl.d.ts +2 -0
- package/lib/list/styles/rtl.js +11 -0
- package/lib/locales/common/viVN.js +7 -9
- 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 +13 -0
- package/lib/menu/src/Menu.js +4 -1
- package/lib/menu/src/Submenu.js +1 -1
- package/lib/menu/src/utils.d.ts +1 -1
- package/lib/menu/src/utils.js +5 -1
- package/lib/message/src/Message.d.ts +1 -0
- package/lib/message/src/Message.js +7 -2
- package/lib/message/src/styles/rtl.cssr.d.ts +2 -0
- package/lib/message/src/styles/rtl.cssr.js +15 -0
- package/lib/message/styles/index.d.ts +1 -0
- package/lib/message/styles/index.js +3 -1
- package/lib/message/styles/light.js +4 -1
- package/lib/message/styles/rtl.d.ts +2 -0
- package/lib/message/styles/rtl.js +11 -0
- package/lib/modal/src/Modal.js +2 -1
- package/lib/notification/styles/light.js +3 -1
- package/lib/number-animation/src/NumberAnimation.js +1 -1
- package/lib/pagination/src/Pagination.d.ts +31 -26
- package/lib/pagination/src/Pagination.js +206 -163
- package/lib/pagination/src/styles/index.cssr.js +7 -1
- package/lib/pagination/styles/light.d.ts +1 -0
- package/lib/popover/src/Popover.js +2 -2
- package/lib/popover/src/PopoverBody.js +3 -2
- package/lib/popselect/src/Popselect.d.ts +3 -3
- package/lib/radio/styles/dark.js +1 -1
- package/lib/radio/styles/light.js +1 -1
- package/lib/select/index.d.ts +1 -1
- package/lib/select/src/Select.d.ts +4 -1
- package/lib/select/src/Select.js +3 -3
- package/lib/skeleton/src/Skeleton.js +1 -1
- package/lib/slider/styles/dark.js +2 -1
- package/lib/slider/styles/light.js +2 -1
- package/lib/statistic/src/Statistic.d.ts +10 -0
- package/lib/statistic/src/Statistic.js +2 -1
- package/lib/statistic/src/styles/index.cssr.js +4 -3
- package/lib/statistic/styles/light.d.ts +1 -0
- package/lib/statistic/styles/light.js +1 -0
- package/lib/steps/src/Steps.d.ts +1 -0
- package/lib/steps/src/Steps.js +5 -2
- package/lib/steps/src/styles/rtl.cssr.d.ts +2 -0
- package/lib/steps/src/styles/rtl.cssr.js +21 -0
- package/lib/steps/styles/index.d.ts +1 -0
- package/lib/steps/styles/index.js +3 -1
- package/lib/steps/styles/rtl.d.ts +2 -0
- package/lib/steps/styles/rtl.js +11 -0
- package/lib/styles.d.ts +4 -3
- package/lib/styles.js +154 -149
- package/lib/switch/src/Switch.js +32 -5
- package/lib/switch/src/styles/index.cssr.js +2 -2
- package/lib/tag/src/Tag.d.ts +4 -4
- package/lib/tag/src/Tag.js +3 -3
- package/lib/tag/src/styles/index.cssr.js +0 -1
- package/lib/tag/styles/light.js +4 -1
- package/lib/thing/src/Thing.d.ts +19 -21
- package/lib/thing/src/Thing.js +4 -7
- package/lib/time-picker/src/Panel.d.ts +1 -0
- package/lib/time-picker/src/TimePicker.d.ts +12 -2
- package/lib/time-picker/src/TimePicker.js +3 -3
- package/lib/time-picker/src/styles/index.cssr.js +12 -12
- package/lib/time-picker/styles/light.d.ts +1 -0
- package/lib/timeline/src/TimelineItem.js +1 -1
- package/lib/tooltip/styles/dark.js +1 -1
- package/lib/tooltip/styles/light.js +1 -1
- package/lib/transfer/src/Transfer.d.ts +37 -6
- package/lib/transfer/src/Transfer.js +32 -23
- package/lib/transfer/src/TransferFilter.d.ts +1 -0
- package/lib/transfer/src/TransferList.d.ts +1 -0
- package/lib/transfer/src/TransferList.js +1 -1
- package/lib/transfer/src/TransferListItem.d.ts +1 -0
- package/lib/transfer/src/interface.d.ts +1 -1
- package/lib/transfer/src/use-transfer-data.d.ts +11 -4
- package/lib/transfer/src/use-transfer-data.js +59 -16
- package/lib/transfer/styles/light.d.ts +1 -0
- package/lib/tree/index.d.ts +1 -1
- package/lib/tree/src/Tree.d.ts +34 -1
- package/lib/tree/src/Tree.js +25 -11
- package/lib/tree/src/interface.d.ts +5 -0
- package/lib/tree/src/keyboard.d.ts +4 -1
- package/lib/tree/src/keyboard.js +3 -1
- package/lib/tree-select/src/TreeSelect.d.ts +13 -0
- package/lib/tree-select/src/TreeSelect.js +3 -3
- package/lib/typography/styles/light.js +1 -1
- package/lib/upload/src/Upload.d.ts +10 -0
- package/lib/upload/src/Upload.js +1 -1
- package/lib/upload/src/UploadFile.js +3 -1
- package/lib/upload/src/utils.d.ts +1 -0
- package/lib/upload/src/utils.js +14 -1
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/package.json +25 -19
- package/volar.d.ts +1 -1
- package/web-types.json +210 -3
|
@@ -11,6 +11,7 @@ export declare const inputGroupLabelProps: {
|
|
|
11
11
|
readonly default: undefined;
|
|
12
12
|
};
|
|
13
13
|
readonly theme: PropType<import("../../_mixins").Theme<"Input", {
|
|
14
|
+
countTextColorDisabled: string;
|
|
14
15
|
countTextColor: string;
|
|
15
16
|
heightTiny: string;
|
|
16
17
|
heightSmall: string;
|
|
@@ -71,6 +72,7 @@ export declare const inputGroupLabelProps: {
|
|
|
71
72
|
clearSize: string;
|
|
72
73
|
}, any>>;
|
|
73
74
|
readonly themeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Input", {
|
|
75
|
+
countTextColorDisabled: string;
|
|
74
76
|
countTextColor: string;
|
|
75
77
|
heightTiny: string;
|
|
76
78
|
heightSmall: string;
|
|
@@ -131,6 +133,7 @@ export declare const inputGroupLabelProps: {
|
|
|
131
133
|
clearSize: string;
|
|
132
134
|
}, any>>>;
|
|
133
135
|
readonly builtinThemeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Input", {
|
|
136
|
+
countTextColorDisabled: string;
|
|
134
137
|
countTextColor: string;
|
|
135
138
|
heightTiny: string;
|
|
136
139
|
heightSmall: string;
|
|
@@ -202,6 +205,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
202
205
|
readonly default: undefined;
|
|
203
206
|
};
|
|
204
207
|
readonly theme: PropType<import("../../_mixins").Theme<"Input", {
|
|
208
|
+
countTextColorDisabled: string;
|
|
205
209
|
countTextColor: string;
|
|
206
210
|
heightTiny: string;
|
|
207
211
|
heightSmall: string;
|
|
@@ -262,6 +266,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
262
266
|
clearSize: string;
|
|
263
267
|
}, any>>;
|
|
264
268
|
readonly themeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Input", {
|
|
269
|
+
countTextColorDisabled: string;
|
|
265
270
|
countTextColor: string;
|
|
266
271
|
heightTiny: string;
|
|
267
272
|
heightSmall: string;
|
|
@@ -322,6 +327,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
322
327
|
clearSize: string;
|
|
323
328
|
}, any>>>;
|
|
324
329
|
readonly builtinThemeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Input", {
|
|
330
|
+
countTextColorDisabled: string;
|
|
325
331
|
countTextColor: string;
|
|
326
332
|
heightTiny: string;
|
|
327
333
|
heightSmall: string;
|
|
@@ -406,6 +412,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
406
412
|
readonly default: undefined;
|
|
407
413
|
};
|
|
408
414
|
readonly theme: PropType<import("../../_mixins").Theme<"Input", {
|
|
415
|
+
countTextColorDisabled: string;
|
|
409
416
|
countTextColor: string;
|
|
410
417
|
heightTiny: string;
|
|
411
418
|
heightSmall: string;
|
|
@@ -466,6 +473,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
466
473
|
clearSize: string;
|
|
467
474
|
}, any>>;
|
|
468
475
|
readonly themeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Input", {
|
|
476
|
+
countTextColorDisabled: string;
|
|
469
477
|
countTextColor: string;
|
|
470
478
|
heightTiny: string;
|
|
471
479
|
heightSmall: string;
|
|
@@ -526,6 +534,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
526
534
|
clearSize: string;
|
|
527
535
|
}, any>>>;
|
|
528
536
|
readonly builtinThemeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Input", {
|
|
537
|
+
countTextColorDisabled: string;
|
|
529
538
|
countTextColor: string;
|
|
530
539
|
heightTiny: string;
|
|
531
540
|
heightSmall: string;
|
|
@@ -30,6 +30,7 @@ import { cB, c, cE, cM, cNotM } from '../../../_utils/cssr'; // vars:
|
|
|
30
30
|
// --n-icon-color-pressed
|
|
31
31
|
// --n-icon-color-disabled
|
|
32
32
|
// --n-count-text-color
|
|
33
|
+
// --n-count-text-color-disabled
|
|
33
34
|
// --n-loading-color
|
|
34
35
|
// ...form item vars
|
|
35
36
|
|
|
@@ -79,7 +80,10 @@ cE('input, textarea', `
|
|
|
79
80
|
width: 0;
|
|
80
81
|
height: 0;
|
|
81
82
|
display: none;
|
|
82
|
-
`), c('&::placeholder',
|
|
83
|
+
`), c('&::placeholder', `
|
|
84
|
+
color: #0000;
|
|
85
|
+
-webkit-text-fill-color: transparent !important;
|
|
86
|
+
`), c('&:-webkit-autofill ~', [cE('placeholder', 'display: none;')])]), cM('round', [cNotM('textarea', 'border-radius: calc(var(--n-height) / 2);')]), cE('placeholder', `
|
|
83
87
|
pointer-events: none;
|
|
84
88
|
position: absolute;
|
|
85
89
|
left: 0;
|
|
@@ -169,12 +173,13 @@ cM('pair', [cE('input-el, placeholder', 'text-align: center;'), cE('separator',
|
|
|
169
173
|
cursor: not-allowed;
|
|
170
174
|
color: var(--n-text-color-disabled);
|
|
171
175
|
text-decoration-color: var(--n-text-color-disabled);
|
|
172
|
-
-webkit-text-fill-color: var(--n-text-color-disabled);
|
|
173
176
|
`), cE('placeholder', 'color: var(--n-placeholder-color-disabled);'), cE('separator', 'color: var(--n-text-color-disabled);', [cB('icon', `
|
|
174
177
|
color: var(--n-icon-color-disabled);
|
|
175
178
|
`), cB('base-icon', `
|
|
176
179
|
color: var(--n-icon-color-disabled);
|
|
177
|
-
`)]),
|
|
180
|
+
`)]), cB('input-word-count', `
|
|
181
|
+
color: var(--n-count-text-color-disabled);
|
|
182
|
+
`), cE('suffix, prefix', 'color: var(--n-text-color-disabled);', [cB('icon', `
|
|
178
183
|
color: var(--n-icon-color-disabled);
|
|
179
184
|
`), cB('internal-icon', `
|
|
180
185
|
color: var(--n-icon-color-disabled);
|
|
@@ -261,4 +266,7 @@ cM('pair', [cE('input-el, placeholder', 'text-align: center;'), cE('separator',
|
|
|
261
266
|
`, [cE('state-border', `
|
|
262
267
|
box-shadow: var(--n-box-shadow-focus-${status});
|
|
263
268
|
border: var(--n-border-focus-${status});
|
|
264
|
-
`)])])]))]);
|
|
269
|
+
`)])])]))]);
|
|
270
|
+
export const safariStyle = cB('input', [cM('disabled', [cE('input-el, textarea-el', `
|
|
271
|
+
-webkit-text-fill-color: var(--n-text-color-disabled);
|
|
272
|
+
`)])]);
|
package/es/input/styles/dark.js
CHANGED
|
@@ -6,7 +6,7 @@ const inputDark = {
|
|
|
6
6
|
common: commonDark,
|
|
7
7
|
self(vars) {
|
|
8
8
|
const { textColor2, textColor3, textColorDisabled, primaryColor, primaryColorHover, inputColor, inputColorDisabled, warningColor, warningColorHover, errorColor, errorColorHover, borderRadius, lineHeight, fontSizeTiny, fontSizeSmall, fontSizeMedium, fontSizeLarge, heightTiny, heightSmall, heightMedium, heightLarge, clearColor, clearColorHover, clearColorPressed, placeholderColor, placeholderColorDisabled, iconColor, iconColorDisabled, iconColorHover, iconColorPressed } = vars;
|
|
9
|
-
return Object.assign(Object.assign({}, commonVariables), { countTextColor: textColor3, heightTiny,
|
|
9
|
+
return Object.assign(Object.assign({}, commonVariables), { countTextColorDisabled: textColorDisabled, countTextColor: textColor3, heightTiny,
|
|
10
10
|
heightSmall,
|
|
11
11
|
heightMedium,
|
|
12
12
|
heightLarge,
|
package/es/input/styles/light.js
CHANGED
|
@@ -3,7 +3,7 @@ import { changeColor } from 'seemly';
|
|
|
3
3
|
import { commonLight } from '../../_styles/common';
|
|
4
4
|
const self = (vars) => {
|
|
5
5
|
const { textColor2, textColor3, textColorDisabled, primaryColor, primaryColorHover, inputColor, inputColorDisabled, borderColor, warningColor, warningColorHover, errorColor, errorColorHover, borderRadius, lineHeight, fontSizeTiny, fontSizeSmall, fontSizeMedium, fontSizeLarge, heightTiny, heightSmall, heightMedium, heightLarge, actionColor, clearColor, clearColorHover, clearColorPressed, placeholderColor, placeholderColorDisabled, iconColor, iconColorDisabled, iconColorHover, iconColorPressed } = vars;
|
|
6
|
-
return Object.assign(Object.assign({}, commonVariables), { countTextColor: textColor3, heightTiny,
|
|
6
|
+
return Object.assign(Object.assign({}, commonVariables), { countTextColorDisabled: textColorDisabled, countTextColor: textColor3, heightTiny,
|
|
7
7
|
heightSmall,
|
|
8
8
|
heightMedium,
|
|
9
9
|
heightLarge,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
2
|
import type { FormValidationStatus } from '../../form/src/interface';
|
|
3
3
|
import { MaybeArray, ExtractPublicPropTypes } from '../../_utils';
|
|
4
|
-
import type { OnUpdateValue } from './interface';
|
|
4
|
+
import type { OnUpdateValue, Size } from './interface';
|
|
5
5
|
export declare const inputNumberProps: {
|
|
6
6
|
autofocus: BooleanConstructor;
|
|
7
7
|
loading: {
|
|
@@ -20,7 +20,7 @@ export declare const inputNumberProps: {
|
|
|
20
20
|
};
|
|
21
21
|
min: (StringConstructor | NumberConstructor)[];
|
|
22
22
|
max: (StringConstructor | NumberConstructor)[];
|
|
23
|
-
size: PropType<
|
|
23
|
+
size: PropType<Size>;
|
|
24
24
|
disabled: {
|
|
25
25
|
type: PropType<boolean | undefined>;
|
|
26
26
|
default: undefined;
|
|
@@ -269,6 +269,7 @@ export declare const inputNumberProps: {
|
|
|
269
269
|
rippleDuration: string;
|
|
270
270
|
}, any>;
|
|
271
271
|
Input: import("../../_mixins").Theme<"Input", {
|
|
272
|
+
countTextColorDisabled: string;
|
|
272
273
|
countTextColor: string;
|
|
273
274
|
heightTiny: string;
|
|
274
275
|
heightSmall: string;
|
|
@@ -537,6 +538,7 @@ export declare const inputNumberProps: {
|
|
|
537
538
|
rippleDuration: string;
|
|
538
539
|
}, any>;
|
|
539
540
|
Input: import("../../_mixins").Theme<"Input", {
|
|
541
|
+
countTextColorDisabled: string;
|
|
540
542
|
countTextColor: string;
|
|
541
543
|
heightTiny: string;
|
|
542
544
|
heightSmall: string;
|
|
@@ -805,6 +807,7 @@ export declare const inputNumberProps: {
|
|
|
805
807
|
rippleDuration: string;
|
|
806
808
|
}, any>;
|
|
807
809
|
Input: import("../../_mixins").Theme<"Input", {
|
|
810
|
+
countTextColorDisabled: string;
|
|
808
811
|
countTextColor: string;
|
|
809
812
|
heightTiny: string;
|
|
810
813
|
heightSmall: string;
|
|
@@ -885,7 +888,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
885
888
|
};
|
|
886
889
|
min: (StringConstructor | NumberConstructor)[];
|
|
887
890
|
max: (StringConstructor | NumberConstructor)[];
|
|
888
|
-
size: PropType<
|
|
891
|
+
size: PropType<Size>;
|
|
889
892
|
disabled: {
|
|
890
893
|
type: PropType<boolean | undefined>;
|
|
891
894
|
default: undefined;
|
|
@@ -1134,6 +1137,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1134
1137
|
rippleDuration: string;
|
|
1135
1138
|
}, any>;
|
|
1136
1139
|
Input: import("../../_mixins").Theme<"Input", {
|
|
1140
|
+
countTextColorDisabled: string;
|
|
1137
1141
|
countTextColor: string;
|
|
1138
1142
|
heightTiny: string;
|
|
1139
1143
|
heightSmall: string;
|
|
@@ -1402,6 +1406,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1402
1406
|
rippleDuration: string;
|
|
1403
1407
|
}, any>;
|
|
1404
1408
|
Input: import("../../_mixins").Theme<"Input", {
|
|
1409
|
+
countTextColorDisabled: string;
|
|
1405
1410
|
countTextColor: string;
|
|
1406
1411
|
heightTiny: string;
|
|
1407
1412
|
heightSmall: string;
|
|
@@ -1670,6 +1675,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1670
1675
|
rippleDuration: string;
|
|
1671
1676
|
}, any>;
|
|
1672
1677
|
Input: import("../../_mixins").Theme<"Input", {
|
|
1678
|
+
countTextColorDisabled: string;
|
|
1673
1679
|
countTextColor: string;
|
|
1674
1680
|
heightTiny: string;
|
|
1675
1681
|
heightSmall: string;
|
|
@@ -1756,7 +1762,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1756
1762
|
mergedValue: import("vue").ComputedRef<number | null>;
|
|
1757
1763
|
mergedPlaceholder: import("vue").ComputedRef<string>;
|
|
1758
1764
|
displayedValueInvalid: import("vue").ComputedRef<boolean>;
|
|
1759
|
-
mergedSize: import("vue").ComputedRef<"small" | "medium" | "large">;
|
|
1765
|
+
mergedSize: import("vue").ComputedRef<"small" | "medium" | "large" | "tiny">;
|
|
1760
1766
|
mergedDisabled: import("vue").ComputedRef<boolean>;
|
|
1761
1767
|
displayedValue: import("vue").Ref<string>;
|
|
1762
1768
|
addable: import("vue").ComputedRef<boolean>;
|
|
@@ -2087,6 +2093,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2087
2093
|
rippleDuration: string;
|
|
2088
2094
|
}, any>;
|
|
2089
2095
|
Input: import("../../_mixins").Theme<"Input", {
|
|
2096
|
+
countTextColorDisabled: string;
|
|
2090
2097
|
countTextColor: string;
|
|
2091
2098
|
heightTiny: string;
|
|
2092
2099
|
heightSmall: string;
|
|
@@ -2189,7 +2196,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2189
2196
|
};
|
|
2190
2197
|
min: (StringConstructor | NumberConstructor)[];
|
|
2191
2198
|
max: (StringConstructor | NumberConstructor)[];
|
|
2192
|
-
size: PropType<
|
|
2199
|
+
size: PropType<Size>;
|
|
2193
2200
|
disabled: {
|
|
2194
2201
|
type: PropType<boolean | undefined>;
|
|
2195
2202
|
default: undefined;
|
|
@@ -2438,6 +2445,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2438
2445
|
rippleDuration: string;
|
|
2439
2446
|
}, any>;
|
|
2440
2447
|
Input: import("../../_mixins").Theme<"Input", {
|
|
2448
|
+
countTextColorDisabled: string;
|
|
2441
2449
|
countTextColor: string;
|
|
2442
2450
|
heightTiny: string;
|
|
2443
2451
|
heightSmall: string;
|
|
@@ -2706,6 +2714,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2706
2714
|
rippleDuration: string;
|
|
2707
2715
|
}, any>;
|
|
2708
2716
|
Input: import("../../_mixins").Theme<"Input", {
|
|
2717
|
+
countTextColorDisabled: string;
|
|
2709
2718
|
countTextColor: string;
|
|
2710
2719
|
heightTiny: string;
|
|
2711
2720
|
heightSmall: string;
|
|
@@ -2974,6 +2983,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2974
2983
|
rippleDuration: string;
|
|
2975
2984
|
}, any>;
|
|
2976
2985
|
Input: import("../../_mixins").Theme<"Input", {
|
|
2986
|
+
countTextColorDisabled: string;
|
|
2977
2987
|
countTextColor: string;
|
|
2978
2988
|
heightTiny: string;
|
|
2979
2989
|
heightSmall: string;
|
|
@@ -382,27 +382,25 @@ export default defineComponent({
|
|
|
382
382
|
}
|
|
383
383
|
}
|
|
384
384
|
function handleMinusMousedown() {
|
|
385
|
+
clearMinusHoldTimeout();
|
|
385
386
|
firstMinusMousedownId = window.setTimeout(() => {
|
|
386
387
|
minusHoldStateIntervalId = window.setInterval(() => {
|
|
387
388
|
doMinus();
|
|
388
389
|
}, HOLDING_CHANGE_INTERVAL);
|
|
389
390
|
}, HOLDING_CHANGE_THRESHOLD);
|
|
390
|
-
on('mouseup', document,
|
|
391
|
-
window.setTimeout(clearMinusHoldTimeout, 0);
|
|
392
|
-
}, {
|
|
391
|
+
on('mouseup', document, clearMinusHoldTimeout, {
|
|
393
392
|
once: true
|
|
394
393
|
});
|
|
395
394
|
}
|
|
396
395
|
let firstAddMousedownId = null;
|
|
397
396
|
function handleAddMousedown() {
|
|
397
|
+
clearAddHoldTimeout();
|
|
398
398
|
firstAddMousedownId = window.setTimeout(() => {
|
|
399
399
|
addHoldStateIntervalId = window.setInterval(() => {
|
|
400
400
|
doAdd();
|
|
401
401
|
}, HOLDING_CHANGE_INTERVAL);
|
|
402
402
|
}, HOLDING_CHANGE_THRESHOLD);
|
|
403
|
-
on('mouseup', document,
|
|
404
|
-
window.setTimeout(clearAddHoldTimeout, 0);
|
|
405
|
-
}, {
|
|
403
|
+
on('mouseup', document, clearAddHoldTimeout, {
|
|
406
404
|
once: true
|
|
407
405
|
});
|
|
408
406
|
}
|
|
@@ -518,7 +516,7 @@ export default defineComponent({
|
|
|
518
516
|
render() {
|
|
519
517
|
const { mergedClsPrefix, $slots } = this;
|
|
520
518
|
const renderMinusButton = () => {
|
|
521
|
-
return (h(NxButton, { text: true, disabled: !this.minusable || this.mergedDisabled || this.readonly, focusable: false, builtinThemeOverrides: this.buttonThemeOverrides, onClick: this.handleMinusClick, onMousedown: this.handleMinusMousedown, ref: "minusButtonInstRef" }, {
|
|
519
|
+
return (h(NxButton, { text: true, disabled: !this.minusable || this.mergedDisabled || this.readonly, focusable: false, theme: this.mergedTheme.peers.Button, themeOverrides: this.mergedTheme.peerOverrides.Button, builtinThemeOverrides: this.buttonThemeOverrides, onClick: this.handleMinusClick, onMousedown: this.handleMinusMousedown, ref: "minusButtonInstRef" }, {
|
|
522
520
|
icon: () => resolveSlot($slots['minus-icon'], () => [
|
|
523
521
|
h(NBaseIcon, { clsPrefix: mergedClsPrefix }, {
|
|
524
522
|
default: () => h(RemoveIcon, null)
|
|
@@ -527,7 +525,7 @@ export default defineComponent({
|
|
|
527
525
|
}));
|
|
528
526
|
};
|
|
529
527
|
const renderAddButton = () => {
|
|
530
|
-
return (h(NxButton, { text: true, disabled: !this.addable || this.mergedDisabled || this.readonly, focusable: false, builtinThemeOverrides: this.buttonThemeOverrides, onClick: this.handleAddClick, onMousedown: this.handleAddMousedown, ref: "addButtonInstRef" }, {
|
|
528
|
+
return (h(NxButton, { text: true, disabled: !this.addable || this.mergedDisabled || this.readonly, focusable: false, theme: this.mergedTheme.peers.Button, themeOverrides: this.mergedTheme.peerOverrides.Button, builtinThemeOverrides: this.buttonThemeOverrides, onClick: this.handleAddClick, onMousedown: this.handleAddMousedown, ref: "addButtonInstRef" }, {
|
|
531
529
|
icon: () => resolveSlot($slots['add-icon'], () => [
|
|
532
530
|
h(NBaseIcon, { clsPrefix: mergedClsPrefix }, {
|
|
533
531
|
default: () => h(AddIcon, null)
|
|
@@ -211,6 +211,7 @@ declare const inputNumberLight: import("../../_mixins").Theme<"InputNumber", {
|
|
|
211
211
|
rippleDuration: string;
|
|
212
212
|
}, any>;
|
|
213
213
|
Input: import("../../_mixins").Theme<"Input", {
|
|
214
|
+
countTextColorDisabled: string;
|
|
214
215
|
countTextColor: string;
|
|
215
216
|
heightTiny: string;
|
|
216
217
|
heightSmall: string;
|
package/es/layout/src/Layout.js
CHANGED
|
@@ -91,7 +91,9 @@ export function createLayoutComponent(isContent) {
|
|
|
91
91
|
};
|
|
92
92
|
});
|
|
93
93
|
const themeClassHandle = inlineThemeDisabled
|
|
94
|
-
? useThemeClass('layout',
|
|
94
|
+
? useThemeClass('layout', computed(() => {
|
|
95
|
+
return props.embedded ? 'e' : '';
|
|
96
|
+
}), cssVarsRef, props)
|
|
95
97
|
: undefined;
|
|
96
98
|
return Object.assign({ mergedClsPrefix: mergedClsPrefixRef, scrollableElRef,
|
|
97
99
|
scrollbarInstRef,
|
|
@@ -37,8 +37,8 @@ export default defineComponent({
|
|
|
37
37
|
provide(rowInjectionKey, {
|
|
38
38
|
mergedClsPrefixRef,
|
|
39
39
|
gutterRef: toRef(props, 'gutter'),
|
|
40
|
-
verticalGutterRef
|
|
41
|
-
horizontalGutterRef
|
|
40
|
+
verticalGutterRef,
|
|
41
|
+
horizontalGutterRef
|
|
42
42
|
});
|
|
43
43
|
return {
|
|
44
44
|
mergedClsPrefix: mergedClsPrefixRef,
|
|
@@ -88,6 +88,7 @@ export declare const transferProps: {
|
|
|
88
88
|
colorHover: string;
|
|
89
89
|
}, any>;
|
|
90
90
|
Input: import("../../_mixins").Theme<"Input", {
|
|
91
|
+
countTextColorDisabled: string;
|
|
91
92
|
countTextColor: string;
|
|
92
93
|
heightTiny: string;
|
|
93
94
|
heightSmall: string;
|
|
@@ -423,6 +424,7 @@ export declare const transferProps: {
|
|
|
423
424
|
colorHover: string;
|
|
424
425
|
}, any>;
|
|
425
426
|
Input: import("../../_mixins").Theme<"Input", {
|
|
427
|
+
countTextColorDisabled: string;
|
|
426
428
|
countTextColor: string;
|
|
427
429
|
heightTiny: string;
|
|
428
430
|
heightSmall: string;
|
|
@@ -758,6 +760,7 @@ export declare const transferProps: {
|
|
|
758
760
|
colorHover: string;
|
|
759
761
|
}, any>;
|
|
760
762
|
Input: import("../../_mixins").Theme<"Input", {
|
|
763
|
+
countTextColorDisabled: string;
|
|
761
764
|
countTextColor: string;
|
|
762
765
|
heightTiny: string;
|
|
763
766
|
heightSmall: string;
|
|
@@ -1123,6 +1126,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1123
1126
|
colorHover: string;
|
|
1124
1127
|
}, any>;
|
|
1125
1128
|
Input: import("../../_mixins").Theme<"Input", {
|
|
1129
|
+
countTextColorDisabled: string;
|
|
1126
1130
|
countTextColor: string;
|
|
1127
1131
|
heightTiny: string;
|
|
1128
1132
|
heightSmall: string;
|
|
@@ -1458,6 +1462,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1458
1462
|
colorHover: string;
|
|
1459
1463
|
}, any>;
|
|
1460
1464
|
Input: import("../../_mixins").Theme<"Input", {
|
|
1465
|
+
countTextColorDisabled: string;
|
|
1461
1466
|
countTextColor: string;
|
|
1462
1467
|
heightTiny: string;
|
|
1463
1468
|
heightSmall: string;
|
|
@@ -1793,6 +1798,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1793
1798
|
colorHover: string;
|
|
1794
1799
|
}, any>;
|
|
1795
1800
|
Input: import("../../_mixins").Theme<"Input", {
|
|
1801
|
+
countTextColorDisabled: string;
|
|
1796
1802
|
countTextColor: string;
|
|
1797
1803
|
heightTiny: string;
|
|
1798
1804
|
heightSmall: string;
|
|
@@ -2245,6 +2251,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2245
2251
|
colorHover: string;
|
|
2246
2252
|
}, any>;
|
|
2247
2253
|
Input: import("../../_mixins").Theme<"Input", {
|
|
2254
|
+
countTextColorDisabled: string;
|
|
2248
2255
|
countTextColor: string;
|
|
2249
2256
|
heightTiny: string;
|
|
2250
2257
|
heightSmall: string;
|
|
@@ -2673,6 +2680,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2673
2680
|
colorHover: string;
|
|
2674
2681
|
}, any>;
|
|
2675
2682
|
Input: import("../../_mixins").Theme<"Input", {
|
|
2683
|
+
countTextColorDisabled: string;
|
|
2676
2684
|
countTextColor: string;
|
|
2677
2685
|
heightTiny: string;
|
|
2678
2686
|
heightSmall: string;
|
|
@@ -3008,6 +3016,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
3008
3016
|
colorHover: string;
|
|
3009
3017
|
}, any>;
|
|
3010
3018
|
Input: import("../../_mixins").Theme<"Input", {
|
|
3019
|
+
countTextColorDisabled: string;
|
|
3011
3020
|
countTextColor: string;
|
|
3012
3021
|
heightTiny: string;
|
|
3013
3022
|
heightSmall: string;
|
|
@@ -3343,6 +3352,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
3343
3352
|
colorHover: string;
|
|
3344
3353
|
}, any>;
|
|
3345
3354
|
Input: import("../../_mixins").Theme<"Input", {
|
|
3355
|
+
countTextColorDisabled: string;
|
|
3346
3356
|
countTextColor: string;
|
|
3347
3357
|
heightTiny: string;
|
|
3348
3358
|
heightSmall: string;
|
|
@@ -182,6 +182,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
182
182
|
colorHover: string;
|
|
183
183
|
}, any>;
|
|
184
184
|
Input: import("../../_mixins").Theme<"Input", {
|
|
185
|
+
countTextColorDisabled: string;
|
|
185
186
|
countTextColor: string;
|
|
186
187
|
heightTiny: string;
|
|
187
188
|
heightSmall: string;
|
|
@@ -195,6 +195,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
195
195
|
colorHover: string;
|
|
196
196
|
}, any>;
|
|
197
197
|
Input: import("../../_mixins").Theme<"Input", {
|
|
198
|
+
countTextColorDisabled: string;
|
|
198
199
|
countTextColor: string;
|
|
199
200
|
heightTiny: string;
|
|
200
201
|
heightSmall: string;
|
|
@@ -182,6 +182,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
182
182
|
colorHover: string;
|
|
183
183
|
}, any>;
|
|
184
184
|
Input: import("../../_mixins").Theme<"Input", {
|
|
185
|
+
countTextColorDisabled: string;
|
|
185
186
|
countTextColor: string;
|
|
186
187
|
heightTiny: string;
|
|
187
188
|
heightSmall: string;
|
|
@@ -82,6 +82,7 @@ declare const transferLight: import("../../_mixins").Theme<"Transfer", {
|
|
|
82
82
|
colorHover: string;
|
|
83
83
|
}, any>;
|
|
84
84
|
Input: import("../../_mixins").Theme<"Input", {
|
|
85
|
+
countTextColorDisabled: string;
|
|
85
86
|
countTextColor: string;
|
|
86
87
|
heightTiny: string;
|
|
87
88
|
heightSmall: string;
|
package/es/list/src/List.d.ts
CHANGED
|
@@ -5,15 +5,21 @@ export declare const listProps: {
|
|
|
5
5
|
type: PropType<"small" | "medium" | "large">;
|
|
6
6
|
default: string;
|
|
7
7
|
};
|
|
8
|
-
bordered:
|
|
8
|
+
bordered: BooleanConstructor;
|
|
9
|
+
clickable: BooleanConstructor;
|
|
10
|
+
hoverable: BooleanConstructor;
|
|
11
|
+
showDivider: {
|
|
9
12
|
type: BooleanConstructor;
|
|
10
13
|
default: boolean;
|
|
11
14
|
};
|
|
12
15
|
theme: PropType<import("../../_mixins").Theme<"List", {
|
|
13
16
|
textColor: string;
|
|
14
17
|
color: string;
|
|
18
|
+
colorHover: string;
|
|
15
19
|
colorModal: string;
|
|
20
|
+
colorHoverModal: string;
|
|
16
21
|
colorPopover: string;
|
|
22
|
+
colorHoverPopover: string;
|
|
17
23
|
borderColor: string;
|
|
18
24
|
borderColorModal: string;
|
|
19
25
|
borderColorPopover: string;
|
|
@@ -23,8 +29,11 @@ export declare const listProps: {
|
|
|
23
29
|
themeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"List", {
|
|
24
30
|
textColor: string;
|
|
25
31
|
color: string;
|
|
32
|
+
colorHover: string;
|
|
26
33
|
colorModal: string;
|
|
34
|
+
colorHoverModal: string;
|
|
27
35
|
colorPopover: string;
|
|
36
|
+
colorHoverPopover: string;
|
|
28
37
|
borderColor: string;
|
|
29
38
|
borderColorModal: string;
|
|
30
39
|
borderColorPopover: string;
|
|
@@ -34,8 +43,11 @@ export declare const listProps: {
|
|
|
34
43
|
builtinThemeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"List", {
|
|
35
44
|
textColor: string;
|
|
36
45
|
color: string;
|
|
46
|
+
colorHover: string;
|
|
37
47
|
colorModal: string;
|
|
48
|
+
colorHoverModal: string;
|
|
38
49
|
colorPopover: string;
|
|
50
|
+
colorHoverPopover: string;
|
|
39
51
|
borderColor: string;
|
|
40
52
|
borderColorModal: string;
|
|
41
53
|
borderColorPopover: string;
|
|
@@ -45,6 +57,7 @@ export declare const listProps: {
|
|
|
45
57
|
};
|
|
46
58
|
export declare type ListProps = ExtractPublicPropTypes<typeof listProps>;
|
|
47
59
|
interface ListInjection {
|
|
60
|
+
showDividerRef: Ref<boolean>;
|
|
48
61
|
mergedClsPrefixRef: Ref<string>;
|
|
49
62
|
}
|
|
50
63
|
export declare const listInjectionKey: import("vue").InjectionKey<ListInjection>;
|
|
@@ -53,15 +66,21 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
53
66
|
type: PropType<"small" | "medium" | "large">;
|
|
54
67
|
default: string;
|
|
55
68
|
};
|
|
56
|
-
bordered:
|
|
69
|
+
bordered: BooleanConstructor;
|
|
70
|
+
clickable: BooleanConstructor;
|
|
71
|
+
hoverable: BooleanConstructor;
|
|
72
|
+
showDivider: {
|
|
57
73
|
type: BooleanConstructor;
|
|
58
74
|
default: boolean;
|
|
59
75
|
};
|
|
60
76
|
theme: PropType<import("../../_mixins").Theme<"List", {
|
|
61
77
|
textColor: string;
|
|
62
78
|
color: string;
|
|
79
|
+
colorHover: string;
|
|
63
80
|
colorModal: string;
|
|
81
|
+
colorHoverModal: string;
|
|
64
82
|
colorPopover: string;
|
|
83
|
+
colorHoverPopover: string;
|
|
65
84
|
borderColor: string;
|
|
66
85
|
borderColorModal: string;
|
|
67
86
|
borderColorPopover: string;
|
|
@@ -71,8 +90,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
71
90
|
themeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"List", {
|
|
72
91
|
textColor: string;
|
|
73
92
|
color: string;
|
|
93
|
+
colorHover: string;
|
|
74
94
|
colorModal: string;
|
|
95
|
+
colorHoverModal: string;
|
|
75
96
|
colorPopover: string;
|
|
97
|
+
colorHoverPopover: string;
|
|
76
98
|
borderColor: string;
|
|
77
99
|
borderColorModal: string;
|
|
78
100
|
borderColorPopover: string;
|
|
@@ -82,8 +104,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
82
104
|
builtinThemeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"List", {
|
|
83
105
|
textColor: string;
|
|
84
106
|
color: string;
|
|
107
|
+
colorHover: string;
|
|
85
108
|
colorModal: string;
|
|
109
|
+
colorHoverModal: string;
|
|
86
110
|
colorPopover: string;
|
|
111
|
+
colorHoverPopover: string;
|
|
87
112
|
borderColor: string;
|
|
88
113
|
borderColorModal: string;
|
|
89
114
|
borderColorPopover: string;
|
|
@@ -92,6 +117,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
92
117
|
}, any>>>;
|
|
93
118
|
}, {
|
|
94
119
|
mergedClsPrefix: import("vue").ComputedRef<string>;
|
|
120
|
+
rtlEnabled: Ref<import("../../config-provider/src/internal-interface").RtlItem | undefined> | undefined;
|
|
95
121
|
cssVars: import("vue").ComputedRef<{
|
|
96
122
|
'--n-font-size': string;
|
|
97
123
|
'--n-bezier': string;
|
|
@@ -103,6 +129,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
103
129
|
'--n-border-color-popover': string;
|
|
104
130
|
'--n-color-modal': string;
|
|
105
131
|
'--n-color-popover': string;
|
|
132
|
+
'--n-color-hover': string;
|
|
133
|
+
'--n-color-hover-modal': string;
|
|
134
|
+
'--n-color-hover-popover': string;
|
|
106
135
|
}> | undefined;
|
|
107
136
|
themeClass: Ref<string> | undefined;
|
|
108
137
|
onRender: (() => void) | undefined;
|
|
@@ -111,15 +140,21 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
111
140
|
type: PropType<"small" | "medium" | "large">;
|
|
112
141
|
default: string;
|
|
113
142
|
};
|
|
114
|
-
bordered:
|
|
143
|
+
bordered: BooleanConstructor;
|
|
144
|
+
clickable: BooleanConstructor;
|
|
145
|
+
hoverable: BooleanConstructor;
|
|
146
|
+
showDivider: {
|
|
115
147
|
type: BooleanConstructor;
|
|
116
148
|
default: boolean;
|
|
117
149
|
};
|
|
118
150
|
theme: PropType<import("../../_mixins").Theme<"List", {
|
|
119
151
|
textColor: string;
|
|
120
152
|
color: string;
|
|
153
|
+
colorHover: string;
|
|
121
154
|
colorModal: string;
|
|
155
|
+
colorHoverModal: string;
|
|
122
156
|
colorPopover: string;
|
|
157
|
+
colorHoverPopover: string;
|
|
123
158
|
borderColor: string;
|
|
124
159
|
borderColorModal: string;
|
|
125
160
|
borderColorPopover: string;
|
|
@@ -129,8 +164,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
129
164
|
themeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"List", {
|
|
130
165
|
textColor: string;
|
|
131
166
|
color: string;
|
|
167
|
+
colorHover: string;
|
|
132
168
|
colorModal: string;
|
|
169
|
+
colorHoverModal: string;
|
|
133
170
|
colorPopover: string;
|
|
171
|
+
colorHoverPopover: string;
|
|
134
172
|
borderColor: string;
|
|
135
173
|
borderColorModal: string;
|
|
136
174
|
borderColorPopover: string;
|
|
@@ -140,8 +178,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
140
178
|
builtinThemeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"List", {
|
|
141
179
|
textColor: string;
|
|
142
180
|
color: string;
|
|
181
|
+
colorHover: string;
|
|
143
182
|
colorModal: string;
|
|
183
|
+
colorHoverModal: string;
|
|
144
184
|
colorPopover: string;
|
|
185
|
+
colorHoverPopover: string;
|
|
145
186
|
borderColor: string;
|
|
146
187
|
borderColorModal: string;
|
|
147
188
|
borderColorPopover: string;
|
|
@@ -151,5 +192,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
151
192
|
}>>, {
|
|
152
193
|
size: "small" | "medium" | "large";
|
|
153
194
|
bordered: boolean;
|
|
195
|
+
clickable: boolean;
|
|
196
|
+
hoverable: boolean;
|
|
197
|
+
showDivider: boolean;
|
|
154
198
|
}>;
|
|
155
199
|
export default _default;
|