naive-ui 2.30.6 → 2.31.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.zh-CN.md +2 -2
- package/dist/index.js +4233 -2556
- package/dist/index.prod.js +2 -2
- package/es/_internal/close/src/Close.js +1 -1
- package/es/_internal/scrollbar/src/Scrollbar.js +8 -2
- package/es/_internal/scrollbar/src/styles/index.cssr.js +1 -0
- package/es/_internal/select-menu/src/styles/index.cssr.js +1 -1
- package/es/_internal/selection/src/styles/index.cssr.js +1 -0
- package/es/_mixins/use-rtl.d.ts +1 -1
- package/es/_mixins/use-rtl.js +1 -1
- package/es/_utils/env/browser.d.ts +3 -0
- package/es/_utils/env/browser.js +4 -0
- package/es/_utils/env/is-native-lazy-load.d.ts +1 -0
- package/es/_utils/env/is-native-lazy-load.js +3 -0
- package/es/affix/index.d.ts +1 -1
- package/es/affix/index.js +1 -1
- package/es/alert/index.d.ts +1 -1
- package/es/alert/index.js +1 -1
- package/es/alert/src/Alert.d.ts +1 -1
- package/es/alert/src/Alert.js +2 -2
- package/es/anchor/index.d.ts +2 -2
- package/es/anchor/index.js +2 -2
- package/es/anchor/src/AnchorAdapter.d.ts +1 -1
- package/es/anchor/src/AnchorAdapter.js +1 -1
- package/es/anchor/src/Link.d.ts +1 -1
- package/es/anchor/src/Link.js +1 -1
- package/es/auto-complete/index.d.ts +1 -1
- package/es/auto-complete/index.js +1 -1
- package/es/auto-complete/src/AutoComplete.d.ts +1 -1
- package/es/auto-complete/src/AutoComplete.js +1 -1
- package/es/avatar/index.d.ts +1 -1
- package/es/avatar/index.js +1 -1
- package/es/avatar/src/Avatar.d.ts +13 -1
- package/es/avatar/src/Avatar.js +61 -8
- package/es/avatar-group/index.d.ts +1 -1
- package/es/avatar-group/index.js +1 -1
- package/es/avatar-group/src/AvatarGroup.d.ts +1 -1
- package/es/avatar-group/src/AvatarGroup.js +2 -2
- package/es/back-top/index.d.ts +1 -1
- package/es/back-top/index.js +1 -1
- package/es/back-top/src/BackTop.d.ts +1 -1
- package/es/back-top/src/BackTop.js +1 -1
- package/es/badge/index.d.ts +1 -1
- package/es/badge/index.js +1 -1
- package/es/badge/src/Badge.d.ts +1 -1
- package/es/badge/src/Badge.js +2 -2
- package/es/breadcrumb/index.d.ts +2 -2
- package/es/breadcrumb/index.js +2 -2
- package/es/breadcrumb/src/Breadcrumb.d.ts +1 -1
- package/es/breadcrumb/src/Breadcrumb.js +1 -1
- package/es/breadcrumb/src/BreadcrumbItem.d.ts +1 -1
- package/es/breadcrumb/src/BreadcrumbItem.js +1 -1
- package/es/breadcrumb/src/styles/index.cssr.js +1 -0
- package/es/button/index.d.ts +1 -1
- package/es/button/index.js +1 -1
- package/es/button/src/Button.d.ts +13 -4
- package/es/button/src/Button.js +8 -4
- package/es/button/src/styles/index.cssr.js +4 -0
- package/es/button-group/index.d.ts +1 -1
- package/es/button-group/index.js +1 -1
- package/es/button-group/src/ButtonGroup.d.ts +1 -1
- package/es/button-group/src/ButtonGroup.js +2 -2
- package/es/calendar/index.d.ts +1 -1
- package/es/calendar/index.js +1 -1
- package/es/calendar/src/Calendar.d.ts +1 -1
- package/es/calendar/src/Calendar.js +1 -1
- package/es/card/index.d.ts +1 -1
- package/es/card/index.js +1 -1
- package/es/card/src/Card.d.ts +2 -2
- package/es/card/src/Card.js +2 -2
- package/es/carousel/index.d.ts +1 -1
- package/es/carousel/index.js +1 -1
- package/es/carousel/src/Carousel.d.ts +1 -1
- package/es/carousel/src/Carousel.js +1 -1
- package/es/carousel/src/styles/index.cssr.js +1 -0
- package/es/cascader/index.d.ts +1 -1
- package/es/cascader/index.js +1 -1
- package/es/cascader/src/Cascader.d.ts +1 -1
- package/es/cascader/src/Cascader.js +1 -1
- package/es/cascader/src/utils.d.ts +1 -4
- package/es/cascader/src/utils.js +18 -28
- package/es/checkbox/index.d.ts +2 -2
- package/es/checkbox/index.js +2 -2
- package/es/checkbox/src/Checkbox.d.ts +1 -1
- package/es/checkbox/src/Checkbox.js +2 -2
- package/es/checkbox/src/CheckboxGroup.d.ts +1 -1
- package/es/checkbox/src/CheckboxGroup.js +1 -1
- package/es/checkbox/src/styles/index.cssr.js +2 -0
- package/es/code/index.d.ts +1 -1
- package/es/code/index.js +1 -1
- package/es/code/src/Code.d.ts +1 -1
- package/es/code/src/Code.js +1 -1
- package/es/collapse/index.d.ts +2 -2
- package/es/collapse/index.js +2 -2
- package/es/collapse/src/Collapse.d.ts +1 -1
- package/es/collapse/src/Collapse.js +2 -2
- package/es/collapse/src/CollapseItem.d.ts +1 -1
- package/es/collapse/src/CollapseItem.js +2 -2
- package/es/collapse-transition/index.d.ts +1 -1
- package/es/collapse-transition/index.js +1 -1
- package/es/collapse-transition/src/CollapseTransition.d.ts +2 -2
- package/es/collapse-transition/src/CollapseTransition.js +3 -3
- package/es/color-picker/index.d.ts +1 -1
- package/es/color-picker/index.js +1 -1
- package/es/color-picker/src/ColorPicker.d.ts +2 -2
- package/es/color-picker/src/ColorPicker.js +2 -2
- package/es/countdown/index.d.ts +2 -2
- package/es/countdown/index.js +1 -1
- package/es/countdown/src/Countdown.d.ts +9 -2
- package/es/countdown/src/Countdown.js +42 -26
- package/es/data-table/index.d.ts +1 -1
- package/es/data-table/index.js +1 -1
- package/es/data-table/src/TableParts/Body.d.ts +4 -0
- package/es/data-table/src/TableParts/Body.js +50 -34
- package/es/data-table/src/TableParts/BodyRadio.d.ts +30 -0
- package/es/data-table/src/TableParts/BodyRadio.js +30 -0
- package/es/data-table/src/TableParts/Header.js +2 -2
- package/es/data-table/src/interface.d.ts +2 -1
- package/es/data-table/src/use-check.d.ts +1 -1
- package/es/data-table/src/use-check.js +15 -3
- package/es/date-picker/index.d.ts +1 -1
- package/es/date-picker/index.js +1 -1
- package/es/date-picker/src/DatePicker.d.ts +41 -1
- package/es/date-picker/src/DatePicker.js +34 -13
- package/es/date-picker/src/config.d.ts +1 -1
- package/es/date-picker/src/panel/date.d.ts +4 -0
- package/es/date-picker/src/panel/daterange.d.ts +7 -1
- package/es/date-picker/src/panel/daterange.js +1 -1
- package/es/date-picker/src/panel/datetime.d.ts +4 -0
- package/es/date-picker/src/panel/datetimerange.d.ts +7 -1
- package/es/date-picker/src/panel/datetimerange.js +1 -1
- package/es/date-picker/src/panel/month.d.ts +4 -0
- package/es/date-picker/src/panel/month.js +1 -1
- package/es/date-picker/src/panel/monthrange.d.ts +11 -5
- package/es/date-picker/src/panel/monthrange.js +13 -7
- package/es/date-picker/src/panel/panelHeader.d.ts +8 -0
- package/es/date-picker/src/panel/use-calendar.d.ts +4 -0
- package/es/date-picker/src/panel/use-dual-calendar.d.ts +9 -3
- package/es/date-picker/src/panel/use-dual-calendar.js +26 -6
- package/es/date-picker/src/panel/use-panel-common.d.ts +4 -0
- package/es/date-picker/src/styles/index.cssr.js +4 -0
- package/es/date-picker/src/utils.d.ts +1 -1
- package/es/date-picker/src/utils.js +2 -2
- package/es/date-picker/styles/_common.d.ts +4 -0
- package/es/date-picker/styles/_common.js +5 -1
- package/es/date-picker/styles/light.d.ts +8 -0
- package/es/descriptions/index.d.ts +2 -2
- package/es/descriptions/index.js +2 -2
- package/es/descriptions/src/Descriptions.d.ts +2 -2
- package/es/descriptions/src/Descriptions.js +2 -2
- package/es/descriptions/src/DescriptionsItem.d.ts +2 -2
- package/es/descriptions/src/DescriptionsItem.js +2 -2
- package/es/dialog/index.d.ts +2 -1
- package/es/dialog/index.js +2 -1
- package/es/dialog/src/DialogProvider.d.ts +1 -1
- package/es/dialog/src/DialogProvider.js +1 -1
- package/es/divider/index.d.ts +1 -1
- package/es/divider/index.js +1 -1
- package/es/divider/src/Divider.d.ts +1 -1
- package/es/divider/src/Divider.js +1 -1
- package/es/drawer/index.d.ts +2 -2
- package/es/drawer/index.js +2 -2
- package/es/drawer/src/Drawer.d.ts +60 -27
- package/es/drawer/src/Drawer.js +39 -18
- package/es/drawer/src/DrawerBodyWrapper.d.ts +9 -0
- package/es/drawer/src/DrawerBodyWrapper.js +98 -3
- package/es/drawer/src/DrawerContent.d.ts +2 -1
- package/es/drawer/src/DrawerContent.js +1 -1
- package/es/drawer/src/interface.d.ts +2 -0
- package/es/drawer/src/styles/index.cssr.js +42 -5
- package/es/drawer/styles/light.d.ts +2 -0
- package/es/drawer/styles/light.js +3 -2
- package/es/dropdown/index.d.ts +2 -2
- package/es/dropdown/index.js +1 -1
- package/es/dropdown/src/Dropdown.d.ts +10 -2
- package/es/dropdown/src/Dropdown.js +15 -4
- package/es/dropdown/src/DropdownMenu.d.ts +3 -0
- package/es/dropdown/src/DropdownMenu.js +23 -15
- package/es/dropdown/src/DropdownOption.d.ts +5 -0
- package/es/dropdown/src/DropdownOption.js +32 -10
- package/es/dropdown/src/interface.d.ts +2 -1
- package/es/dropdown/src/styles/index.cssr.js +17 -11
- package/es/dynamic-input/index.d.ts +1 -1
- package/es/dynamic-input/index.js +1 -1
- package/es/dynamic-input/src/DynamicInput.d.ts +1 -1
- package/es/dynamic-input/src/DynamicInput.js +2 -2
- package/es/dynamic-tags/index.d.ts +1 -1
- package/es/dynamic-tags/index.js +1 -1
- package/es/dynamic-tags/src/DynamicTags.d.ts +1 -1
- package/es/dynamic-tags/src/DynamicTags.js +1 -1
- package/es/element/index.d.ts +1 -1
- package/es/element/index.js +1 -1
- package/es/element/src/Element.d.ts +1 -1
- package/es/element/src/Element.js +1 -1
- package/es/ellipsis/index.d.ts +1 -1
- package/es/ellipsis/index.js +1 -1
- package/es/ellipsis/src/Ellipsis.d.ts +1 -1
- package/es/ellipsis/src/Ellipsis.js +1 -1
- package/es/empty/index.d.ts +1 -1
- package/es/empty/index.js +1 -1
- package/es/empty/src/Empty.d.ts +1 -1
- package/es/empty/src/Empty.js +1 -1
- package/es/form/index.d.ts +3 -3
- package/es/form/index.js +3 -3
- package/es/form/src/Form.d.ts +1 -1
- package/es/form/src/Form.js +1 -1
- package/es/form/src/FormItemRow.d.ts +1 -1
- package/es/form/src/FormItemRow.js +1 -1
- package/es/form/src/styles/form-item.cssr.js +2 -0
- package/es/gradient-text/index.d.ts +1 -1
- package/es/gradient-text/index.js +1 -1
- package/es/gradient-text/src/GradientText.d.ts +1 -1
- package/es/gradient-text/src/GradientText.js +1 -1
- package/es/grid/index.d.ts +3 -3
- package/es/grid/index.js +3 -3
- package/es/grid/src/Grid.d.ts +1 -1
- package/es/grid/src/Grid.js +2 -2
- package/es/icon/index.d.ts +1 -1
- package/es/icon/index.js +1 -1
- package/es/icon/src/Icon.d.ts +1 -2
- package/es/icon/src/Icon.js +1 -1
- package/es/icon-wrapper/index.d.ts +1 -1
- package/es/icon-wrapper/index.js +1 -1
- package/es/icon-wrapper/src/IconWrapper.d.ts +1 -2
- package/es/icon-wrapper/src/IconWrapper.js +1 -1
- package/es/image/index.d.ts +2 -2
- package/es/image/index.js +2 -2
- package/es/image/src/Image.d.ts +1 -1
- package/es/image/src/Image.js +17 -10
- package/es/image/src/ImageGroup.d.ts +1 -1
- package/es/image/src/ImageGroup.js +1 -1
- package/es/image/src/styles/index.cssr.js +1 -0
- package/es/input/index.d.ts +3 -3
- package/es/input/index.js +3 -3
- package/es/input/src/Input.d.ts +1 -1
- package/es/input/src/Input.js +2 -2
- package/es/input/src/InputGroup.d.ts +1 -1
- package/es/input/src/InputGroup.js +1 -1
- package/es/input/src/InputGroupLabel.d.ts +1 -1
- package/es/input/src/InputGroupLabel.js +1 -1
- package/es/input/src/styles/input-group-label.cssr.js +1 -0
- package/es/input/src/styles/input.cssr.js +3 -0
- package/es/input-number/index.d.ts +1 -1
- package/es/input-number/index.js +1 -1
- package/es/input-number/src/InputNumber.d.ts +1 -1
- package/es/input-number/src/InputNumber.js +2 -2
- package/es/layout/index.d.ts +4 -4
- package/es/layout/index.js +4 -4
- package/es/layout/src/Layout.d.ts +1 -1
- package/es/layout/src/Layout.js +1 -1
- package/es/layout/src/LayoutFooter.d.ts +1 -1
- package/es/layout/src/LayoutFooter.js +1 -1
- package/es/layout/src/LayoutHeader.d.ts +1 -1
- package/es/layout/src/LayoutHeader.js +1 -1
- package/es/layout/src/LayoutSider.d.ts +1 -1
- package/es/layout/src/LayoutSider.js +1 -1
- package/es/legacy-grid/index.d.ts +2 -2
- package/es/legacy-grid/index.js +2 -2
- package/es/list/index.d.ts +1 -1
- package/es/list/index.js +1 -1
- package/es/list/src/List.d.ts +1 -1
- package/es/list/src/List.js +1 -1
- package/es/loading-bar/index.d.ts +1 -1
- package/es/loading-bar/index.js +1 -1
- package/es/loading-bar/src/LoadingBarProvider.d.ts +3 -3
- package/es/loading-bar/src/LoadingBarProvider.js +2 -2
- package/es/locales/common/ukUA.js +14 -18
- package/es/locales/common/viVN.d.ts +3 -0
- package/es/locales/common/viVN.js +113 -0
- package/es/locales/date/viVN.d.ts +3 -0
- package/es/locales/date/viVN.js +6 -0
- package/es/locales/index.d.ts +2 -0
- package/es/locales/index.js +2 -0
- package/es/log/index.d.ts +1 -1
- package/es/log/index.js +1 -1
- package/es/log/src/Log.d.ts +1 -1
- package/es/log/src/Log.js +1 -1
- package/es/mention/index.d.ts +1 -1
- package/es/mention/index.js +1 -1
- package/es/mention/src/Mention.d.ts +1 -1
- package/es/mention/src/Mention.js +1 -1
- package/es/menu/index.d.ts +1 -1
- package/es/menu/index.js +1 -1
- package/es/menu/src/Menu.d.ts +1 -1
- package/es/menu/src/Menu.js +1 -1
- package/es/message/index.d.ts +1 -1
- package/es/message/index.js +1 -1
- package/es/message/src/MessageProvider.d.ts +1 -1
- package/es/message/src/MessageProvider.js +1 -1
- package/es/modal/index.d.ts +1 -1
- package/es/modal/index.js +1 -1
- package/es/modal/src/Modal.d.ts +1 -1
- package/es/modal/src/Modal.js +1 -1
- package/es/modal/src/presetProps.d.ts +1 -1
- package/es/modal/src/styles/index.cssr.js +1 -0
- package/es/notification/index.d.ts +1 -1
- package/es/notification/index.js +1 -1
- package/es/notification/src/Notification.d.ts +4 -0
- package/es/notification/src/Notification.js +11 -4
- package/es/notification/src/NotificationContainer.d.ts +3 -0
- package/es/notification/src/NotificationContainer.js +1 -1
- package/es/notification/src/NotificationProvider.d.ts +28 -1
- package/es/notification/src/NotificationProvider.js +1 -1
- package/es/notification/src/styles/index.cssr.js +7 -6
- package/es/notification/src/styles/rtl.cssr.d.ts +2 -0
- package/es/notification/src/styles/rtl.cssr.js +22 -0
- package/es/notification/styles/_common.d.ts +3 -0
- package/es/notification/styles/_common.js +4 -1
- package/es/notification/styles/index.d.ts +1 -0
- package/es/notification/styles/index.js +1 -0
- package/es/notification/styles/light.d.ts +6 -0
- package/es/notification/styles/rtl.d.ts +2 -0
- package/es/notification/styles/rtl.js +5 -0
- package/es/number-animation/index.d.ts +1 -1
- package/es/number-animation/index.js +1 -1
- package/es/number-animation/src/NumberAnimation.d.ts +5 -1
- package/es/number-animation/src/NumberAnimation.js +5 -2
- package/es/page-header/index.d.ts +1 -1
- package/es/page-header/index.js +1 -1
- package/es/page-header/src/PageHeader.d.ts +1 -1
- package/es/page-header/src/PageHeader.js +2 -2
- package/es/pagination/index.d.ts +1 -1
- package/es/pagination/index.js +1 -1
- package/es/pagination/src/Pagination.d.ts +1 -1
- package/es/pagination/src/Pagination.js +2 -2
- package/es/pagination/src/styles/index.cssr.js +1 -0
- package/es/popconfirm/index.d.ts +1 -1
- package/es/popconfirm/index.js +1 -1
- package/es/popconfirm/src/Popconfirm.d.ts +4 -1
- package/es/popconfirm/src/Popconfirm.js +1 -1
- package/es/popover/index.d.ts +1 -1
- package/es/popover/index.js +1 -1
- package/es/popover/src/Popover.d.ts +8 -1
- package/es/popover/src/Popover.js +4 -2
- package/es/popover/src/PopoverBody.d.ts +6 -0
- package/es/popover/src/PopoverBody.js +23 -14
- package/es/popover/src/styles/index.cssr.js +19 -15
- package/es/popselect/index.d.ts +1 -1
- package/es/popselect/index.js +1 -1
- package/es/popselect/src/Popselect.d.ts +4 -1
- package/es/popselect/src/Popselect.js +1 -1
- package/es/progress/index.d.ts +1 -1
- package/es/progress/index.js +1 -1
- package/es/progress/src/Progress.d.ts +1 -1
- package/es/progress/src/Progress.js +1 -1
- package/es/radio/index.d.ts +3 -3
- package/es/radio/index.js +3 -3
- package/es/radio/src/Radio.d.ts +25 -0
- package/es/radio/src/Radio.js +2 -1
- package/es/radio/src/RadioButton.d.ts +25 -0
- package/es/radio/src/RadioButton.js +1 -0
- package/es/radio/src/RadioGroup.d.ts +1 -1
- package/es/radio/src/RadioGroup.js +2 -2
- package/es/radio/src/styles/radio-group.cssr.js +2 -0
- package/es/radio/src/styles/radio.cssr.js +1 -0
- package/es/rate/index.d.ts +1 -1
- package/es/rate/index.js +1 -1
- package/es/rate/src/Rate.d.ts +1 -1
- package/es/rate/src/Rate.js +1 -1
- package/es/result/index.d.ts +1 -1
- package/es/result/index.js +1 -1
- package/es/result/src/Result.d.ts +1 -1
- package/es/result/src/Result.js +1 -1
- package/es/scrollbar/index.d.ts +1 -1
- package/es/scrollbar/index.js +1 -1
- package/es/scrollbar/src/Scrollbar.d.ts +1 -1
- package/es/scrollbar/src/Scrollbar.js +1 -1
- package/es/select/index.d.ts +2 -2
- package/es/select/index.js +1 -1
- package/es/select/src/Select.d.ts +5 -5
- package/es/select/src/Select.js +11 -2
- package/es/select/src/interface.d.ts +1 -0
- package/es/skeleton/index.d.ts +1 -1
- package/es/skeleton/index.js +1 -1
- package/es/skeleton/src/Skeleton.d.ts +1 -1
- package/es/skeleton/src/Skeleton.js +1 -1
- package/es/slider/index.d.ts +1 -1
- package/es/slider/index.js +1 -1
- package/es/slider/src/Slider.d.ts +1 -1
- package/es/slider/src/Slider.js +1 -1
- package/es/slider/src/styles/index.cssr.js +1 -0
- package/es/space/index.d.ts +1 -1
- package/es/space/index.js +1 -1
- package/es/space/src/Space.d.ts +1 -1
- package/es/space/src/Space.js +2 -2
- package/es/spin/index.d.ts +1 -1
- package/es/spin/index.js +1 -1
- package/es/spin/src/Spin.d.ts +1 -1
- package/es/spin/src/Spin.js +1 -1
- package/es/spin/src/styles/index.cssr.js +1 -0
- package/es/statistic/index.d.ts +1 -1
- package/es/statistic/index.js +1 -1
- package/es/statistic/src/Statistic.d.ts +1 -1
- package/es/statistic/src/Statistic.js +1 -1
- package/es/steps/index.d.ts +2 -2
- package/es/steps/index.js +2 -2
- package/es/steps/src/Step.d.ts +1 -1
- package/es/steps/src/Step.js +1 -1
- package/es/steps/src/Steps.d.ts +1 -1
- package/es/steps/src/Steps.js +1 -1
- package/es/switch/index.d.ts +1 -1
- package/es/switch/index.js +1 -1
- package/es/switch/src/Switch.d.ts +1 -1
- package/es/switch/src/Switch.js +1 -1
- package/es/switch/src/styles/index.cssr.js +1 -0
- package/es/table/index.d.ts +1 -1
- package/es/table/index.js +1 -1
- package/es/table/src/Table.d.ts +1 -1
- package/es/table/src/Table.js +2 -2
- package/es/tabs/index.d.ts +3 -3
- package/es/tabs/index.js +3 -3
- package/es/tabs/src/Tab.d.ts +2 -2
- package/es/tabs/src/Tab.js +2 -2
- package/es/tabs/src/Tabs.d.ts +1 -1
- package/es/tabs/src/Tabs.js +2 -2
- package/es/tag/index.d.ts +1 -1
- package/es/tag/index.js +1 -1
- package/es/tag/src/Tag.d.ts +1 -1
- package/es/tag/src/Tag.js +2 -2
- package/es/thing/index.d.ts +1 -1
- package/es/thing/index.js +1 -1
- package/es/thing/src/Thing.d.ts +1 -1
- package/es/thing/src/Thing.js +1 -1
- package/es/time/index.d.ts +1 -1
- package/es/time/index.js +1 -1
- package/es/time/src/Time.d.ts +1 -1
- package/es/time/src/Time.js +1 -1
- package/es/time-picker/index.d.ts +1 -1
- package/es/time-picker/index.js +1 -1
- package/es/time-picker/src/TimePicker.d.ts +1 -1
- package/es/time-picker/src/TimePicker.js +1 -1
- package/es/timeline/index.d.ts +2 -2
- package/es/timeline/index.js +2 -2
- package/es/timeline/src/Timeline.d.ts +1 -1
- package/es/timeline/src/Timeline.js +1 -1
- package/es/timeline/src/TimelineItem.d.ts +1 -1
- package/es/timeline/src/TimelineItem.js +1 -1
- package/es/tooltip/index.d.ts +1 -1
- package/es/tooltip/index.js +1 -1
- package/es/tooltip/src/Tooltip.d.ts +4 -1
- package/es/tooltip/src/Tooltip.js +1 -1
- package/es/transfer/index.d.ts +1 -1
- package/es/transfer/index.js +1 -1
- package/es/transfer/src/Transfer.d.ts +1 -1
- package/es/transfer/src/Transfer.js +1 -1
- package/es/tree/index.d.ts +1 -1
- package/es/tree/index.js +1 -1
- package/es/tree/src/Tree.d.ts +23 -5
- package/es/tree/src/Tree.js +47 -20
- package/es/tree/src/TreeNode.d.ts +1 -1
- package/es/tree/src/TreeNode.js +21 -6
- package/es/tree/src/interface.d.ts +3 -1
- package/es/tree-select/index.d.ts +2 -2
- package/es/tree-select/index.js +1 -1
- package/es/tree-select/src/TreeSelect.d.ts +29 -7
- package/es/tree-select/src/TreeSelect.js +21 -5
- package/es/tree-select/src/interface.d.ts +17 -1
- package/es/typography/index.d.ts +7 -6
- package/es/typography/index.js +7 -6
- package/es/typography/src/a.d.ts +1 -1
- package/es/typography/src/a.js +1 -1
- package/es/typography/src/blockquote.d.ts +1 -1
- package/es/typography/src/blockquote.js +1 -1
- package/es/typography/src/create-header.d.ts +1 -1
- package/es/typography/src/create-header.js +1 -1
- package/es/typography/src/ol.d.ts +1 -1
- package/es/typography/src/ol.js +1 -1
- package/es/typography/src/p.d.ts +1 -1
- package/es/typography/src/p.js +1 -1
- package/es/typography/src/text.d.ts +1 -1
- package/es/typography/src/text.js +1 -1
- package/es/typography/src/ul.d.ts +1 -1
- package/es/typography/src/ul.js +1 -1
- package/es/upload/index.d.ts +1 -1
- package/es/upload/index.js +1 -1
- package/es/upload/src/Upload.d.ts +1 -1
- package/es/upload/src/Upload.js +1 -1
- package/es/upload/src/UploadFile.d.ts +2 -2
- package/es/upload/src/UploadFile.js +8 -4
- package/es/version.d.ts +1 -1
- package/es/version.js +1 -1
- package/es/watermark/index.d.ts +1 -1
- package/es/watermark/index.js +1 -1
- package/es/watermark/src/Watermark.d.ts +1 -1
- package/es/watermark/src/Watermark.js +1 -1
- package/es/watermark/src/styles/index.cssr.js +4 -1
- package/lib/_internal/close/src/Close.js +1 -1
- package/lib/_internal/scrollbar/src/Scrollbar.js +8 -2
- package/lib/_internal/scrollbar/src/styles/index.cssr.js +1 -0
- package/lib/_internal/select-menu/src/styles/index.cssr.js +1 -1
- package/lib/_internal/selection/src/styles/index.cssr.js +1 -0
- package/lib/_mixins/use-rtl.d.ts +1 -1
- package/lib/_mixins/use-rtl.js +2 -1
- package/lib/_utils/env/browser.d.ts +3 -0
- package/lib/_utils/env/browser.js +7 -0
- package/lib/_utils/env/is-native-lazy-load.d.ts +1 -0
- package/lib/_utils/env/is-native-lazy-load.js +6 -0
- package/lib/affix/index.d.ts +1 -1
- package/lib/affix/index.js +2 -1
- package/lib/alert/index.d.ts +1 -1
- package/lib/alert/index.js +2 -1
- package/lib/alert/src/Alert.d.ts +1 -1
- package/lib/alert/src/Alert.js +5 -4
- package/lib/anchor/index.d.ts +2 -2
- package/lib/anchor/index.js +3 -1
- package/lib/anchor/src/AnchorAdapter.d.ts +1 -1
- package/lib/anchor/src/AnchorAdapter.js +3 -2
- package/lib/anchor/src/Link.d.ts +1 -1
- package/lib/anchor/src/Link.js +3 -3
- package/lib/auto-complete/index.d.ts +1 -1
- package/lib/auto-complete/index.js +2 -1
- package/lib/auto-complete/src/AutoComplete.d.ts +1 -1
- package/lib/auto-complete/src/AutoComplete.js +3 -2
- package/lib/avatar/index.d.ts +1 -1
- package/lib/avatar/index.js +2 -1
- package/lib/avatar/src/Avatar.d.ts +13 -1
- package/lib/avatar/src/Avatar.js +60 -7
- package/lib/avatar-group/index.d.ts +1 -1
- package/lib/avatar-group/index.js +2 -1
- package/lib/avatar-group/src/AvatarGroup.d.ts +1 -1
- package/lib/avatar-group/src/AvatarGroup.js +5 -4
- package/lib/back-top/index.d.ts +1 -1
- package/lib/back-top/index.js +2 -1
- package/lib/back-top/src/BackTop.d.ts +1 -1
- package/lib/back-top/src/BackTop.js +3 -2
- package/lib/badge/index.d.ts +1 -1
- package/lib/badge/index.js +2 -1
- package/lib/badge/src/Badge.d.ts +1 -1
- package/lib/badge/src/Badge.js +5 -4
- package/lib/breadcrumb/index.d.ts +2 -2
- package/lib/breadcrumb/index.js +3 -1
- package/lib/breadcrumb/src/Breadcrumb.d.ts +1 -1
- package/lib/breadcrumb/src/Breadcrumb.js +3 -3
- package/lib/breadcrumb/src/BreadcrumbItem.d.ts +1 -1
- package/lib/breadcrumb/src/BreadcrumbItem.js +3 -2
- package/lib/breadcrumb/src/styles/index.cssr.js +1 -0
- package/lib/button/index.d.ts +1 -1
- package/lib/button/index.js +2 -1
- package/lib/button/src/Button.d.ts +13 -4
- package/lib/button/src/Button.js +11 -7
- package/lib/button/src/styles/index.cssr.js +4 -0
- package/lib/button-group/index.d.ts +1 -1
- package/lib/button-group/index.js +2 -1
- package/lib/button-group/src/ButtonGroup.d.ts +1 -1
- package/lib/button-group/src/ButtonGroup.js +5 -4
- package/lib/calendar/index.d.ts +1 -1
- package/lib/calendar/index.js +2 -1
- package/lib/calendar/src/Calendar.d.ts +1 -1
- package/lib/calendar/src/Calendar.js +3 -2
- package/lib/card/index.d.ts +1 -1
- package/lib/card/index.js +2 -1
- package/lib/card/src/Card.d.ts +2 -2
- package/lib/card/src/Card.js +5 -5
- package/lib/carousel/index.d.ts +1 -1
- package/lib/carousel/index.js +2 -1
- package/lib/carousel/src/Carousel.d.ts +1 -1
- package/lib/carousel/src/Carousel.js +3 -2
- package/lib/carousel/src/styles/index.cssr.js +1 -0
- package/lib/cascader/index.d.ts +1 -1
- package/lib/cascader/index.js +2 -1
- package/lib/cascader/src/Cascader.d.ts +1 -1
- package/lib/cascader/src/Cascader.js +3 -2
- package/lib/cascader/src/utils.d.ts +1 -4
- package/lib/cascader/src/utils.js +18 -29
- package/lib/checkbox/index.d.ts +2 -2
- package/lib/checkbox/index.js +3 -1
- package/lib/checkbox/src/Checkbox.d.ts +1 -1
- package/lib/checkbox/src/Checkbox.js +5 -4
- package/lib/checkbox/src/CheckboxGroup.d.ts +1 -1
- package/lib/checkbox/src/CheckboxGroup.js +3 -3
- package/lib/checkbox/src/styles/index.cssr.js +2 -0
- package/lib/code/index.d.ts +1 -1
- package/lib/code/index.js +2 -1
- package/lib/code/src/Code.d.ts +1 -1
- package/lib/code/src/Code.js +3 -2
- package/lib/collapse/index.d.ts +2 -2
- package/lib/collapse/index.js +3 -1
- package/lib/collapse/src/Collapse.d.ts +1 -1
- package/lib/collapse/src/Collapse.js +5 -5
- package/lib/collapse/src/CollapseItem.d.ts +1 -1
- package/lib/collapse/src/CollapseItem.js +5 -4
- package/lib/collapse-transition/index.d.ts +1 -1
- package/lib/collapse-transition/index.js +2 -1
- package/lib/collapse-transition/src/CollapseTransition.d.ts +2 -2
- package/lib/collapse-transition/src/CollapseTransition.js +5 -4
- package/lib/color-picker/index.d.ts +1 -1
- package/lib/color-picker/index.js +2 -1
- package/lib/color-picker/src/ColorPicker.d.ts +2 -2
- package/lib/color-picker/src/ColorPicker.js +3 -3
- package/lib/countdown/index.d.ts +2 -2
- package/lib/countdown/index.js +2 -1
- package/lib/countdown/src/Countdown.d.ts +9 -2
- package/lib/countdown/src/Countdown.js +44 -27
- package/lib/data-table/index.d.ts +1 -1
- package/lib/data-table/index.js +2 -1
- package/lib/data-table/src/TableParts/Body.d.ts +4 -0
- package/lib/data-table/src/TableParts/Body.js +50 -34
- package/lib/data-table/src/TableParts/BodyRadio.d.ts +30 -0
- package/lib/data-table/src/TableParts/BodyRadio.js +32 -0
- package/lib/data-table/src/TableParts/Header.js +2 -2
- package/lib/data-table/src/interface.d.ts +2 -1
- package/lib/data-table/src/use-check.d.ts +1 -1
- package/lib/data-table/src/use-check.js +15 -3
- package/lib/date-picker/index.d.ts +1 -1
- package/lib/date-picker/index.js +2 -1
- package/lib/date-picker/src/DatePicker.d.ts +41 -1
- package/lib/date-picker/src/DatePicker.js +36 -14
- package/lib/date-picker/src/config.d.ts +1 -1
- package/lib/date-picker/src/panel/date.d.ts +4 -0
- package/lib/date-picker/src/panel/daterange.d.ts +7 -1
- package/lib/date-picker/src/panel/daterange.js +1 -1
- package/lib/date-picker/src/panel/datetime.d.ts +4 -0
- package/lib/date-picker/src/panel/datetimerange.d.ts +7 -1
- package/lib/date-picker/src/panel/datetimerange.js +1 -1
- package/lib/date-picker/src/panel/month.d.ts +4 -0
- package/lib/date-picker/src/panel/month.js +1 -1
- package/lib/date-picker/src/panel/monthrange.d.ts +11 -5
- package/lib/date-picker/src/panel/monthrange.js +13 -7
- package/lib/date-picker/src/panel/panelHeader.d.ts +8 -0
- package/lib/date-picker/src/panel/use-calendar.d.ts +4 -0
- package/lib/date-picker/src/panel/use-dual-calendar.d.ts +9 -3
- package/lib/date-picker/src/panel/use-dual-calendar.js +24 -4
- package/lib/date-picker/src/panel/use-panel-common.d.ts +4 -0
- package/lib/date-picker/src/styles/index.cssr.js +4 -0
- package/lib/date-picker/src/utils.d.ts +1 -1
- package/lib/date-picker/src/utils.js +2 -2
- package/lib/date-picker/styles/_common.d.ts +4 -0
- package/lib/date-picker/styles/_common.js +5 -1
- package/lib/date-picker/styles/light.d.ts +8 -0
- package/lib/descriptions/index.d.ts +2 -2
- package/lib/descriptions/index.js +3 -1
- package/lib/descriptions/src/Descriptions.d.ts +2 -2
- package/lib/descriptions/src/Descriptions.js +3 -2
- package/lib/descriptions/src/DescriptionsItem.d.ts +2 -2
- package/lib/descriptions/src/DescriptionsItem.js +3 -2
- package/lib/dialog/index.d.ts +2 -1
- package/lib/dialog/index.js +4 -1
- package/lib/dialog/src/DialogProvider.d.ts +1 -1
- package/lib/dialog/src/DialogProvider.js +3 -3
- package/lib/divider/index.d.ts +1 -1
- package/lib/divider/index.js +2 -1
- package/lib/divider/src/Divider.d.ts +1 -1
- package/lib/divider/src/Divider.js +3 -2
- package/lib/drawer/index.d.ts +2 -2
- package/lib/drawer/index.js +3 -1
- package/lib/drawer/src/Drawer.d.ts +60 -27
- package/lib/drawer/src/Drawer.js +39 -17
- package/lib/drawer/src/DrawerBodyWrapper.d.ts +9 -0
- package/lib/drawer/src/DrawerBodyWrapper.js +97 -2
- package/lib/drawer/src/DrawerContent.d.ts +2 -1
- package/lib/drawer/src/DrawerContent.js +3 -2
- package/lib/drawer/src/interface.d.ts +2 -0
- package/lib/drawer/src/styles/index.cssr.js +42 -5
- package/lib/drawer/styles/light.d.ts +2 -0
- package/lib/drawer/styles/light.js +3 -2
- package/lib/dropdown/index.d.ts +2 -2
- package/lib/dropdown/index.js +2 -1
- package/lib/dropdown/src/Dropdown.d.ts +10 -2
- package/lib/dropdown/src/Dropdown.js +17 -5
- package/lib/dropdown/src/DropdownMenu.d.ts +3 -0
- package/lib/dropdown/src/DropdownMenu.js +23 -15
- package/lib/dropdown/src/DropdownOption.d.ts +5 -0
- package/lib/dropdown/src/DropdownOption.js +32 -10
- package/lib/dropdown/src/interface.d.ts +2 -1
- package/lib/dropdown/src/styles/index.cssr.js +16 -10
- package/lib/dynamic-input/index.d.ts +1 -1
- package/lib/dynamic-input/index.js +2 -1
- package/lib/dynamic-input/src/DynamicInput.d.ts +1 -1
- package/lib/dynamic-input/src/DynamicInput.js +5 -4
- package/lib/dynamic-tags/index.d.ts +1 -1
- package/lib/dynamic-tags/index.js +2 -1
- package/lib/dynamic-tags/src/DynamicTags.d.ts +1 -1
- package/lib/dynamic-tags/src/DynamicTags.js +3 -2
- package/lib/element/index.d.ts +1 -1
- package/lib/element/index.js +2 -1
- package/lib/element/src/Element.d.ts +1 -1
- package/lib/element/src/Element.js +3 -2
- package/lib/ellipsis/index.d.ts +1 -1
- package/lib/ellipsis/index.js +2 -1
- package/lib/ellipsis/src/Ellipsis.d.ts +1 -1
- package/lib/ellipsis/src/Ellipsis.js +3 -2
- package/lib/empty/index.d.ts +1 -1
- package/lib/empty/index.js +2 -1
- package/lib/empty/src/Empty.d.ts +1 -1
- package/lib/empty/src/Empty.js +3 -2
- package/lib/form/index.d.ts +3 -3
- package/lib/form/index.js +5 -1
- package/lib/form/src/Form.d.ts +1 -1
- package/lib/form/src/Form.js +3 -2
- package/lib/form/src/FormItemRow.d.ts +1 -1
- package/lib/form/src/FormItemRow.js +3 -2
- package/lib/form/src/styles/form-item.cssr.js +2 -0
- package/lib/gradient-text/index.d.ts +1 -1
- package/lib/gradient-text/index.js +2 -1
- package/lib/gradient-text/src/GradientText.d.ts +1 -1
- package/lib/gradient-text/src/GradientText.js +3 -2
- package/lib/grid/index.d.ts +3 -3
- package/lib/grid/index.js +4 -1
- package/lib/grid/src/Grid.d.ts +1 -1
- package/lib/grid/src/Grid.js +4 -3
- package/lib/icon/index.d.ts +1 -1
- package/lib/icon/index.js +2 -1
- package/lib/icon/src/Icon.d.ts +1 -2
- package/lib/icon/src/Icon.js +3 -3
- package/lib/icon-wrapper/index.d.ts +1 -1
- package/lib/icon-wrapper/index.js +2 -1
- package/lib/icon-wrapper/src/IconWrapper.d.ts +1 -2
- package/lib/icon-wrapper/src/IconWrapper.js +3 -3
- package/lib/image/index.d.ts +2 -2
- package/lib/image/index.js +3 -1
- package/lib/image/src/Image.d.ts +1 -1
- package/lib/image/src/Image.js +19 -11
- package/lib/image/src/ImageGroup.d.ts +1 -1
- package/lib/image/src/ImageGroup.js +3 -3
- package/lib/image/src/styles/index.cssr.js +1 -0
- package/lib/input/index.d.ts +3 -3
- package/lib/input/index.js +4 -1
- package/lib/input/src/Input.d.ts +1 -1
- package/lib/input/src/Input.js +5 -4
- package/lib/input/src/InputGroup.d.ts +1 -1
- package/lib/input/src/InputGroup.js +3 -2
- package/lib/input/src/InputGroupLabel.d.ts +1 -1
- package/lib/input/src/InputGroupLabel.js +3 -2
- package/lib/input/src/styles/input-group-label.cssr.js +1 -0
- package/lib/input/src/styles/input.cssr.js +3 -0
- package/lib/input-number/index.d.ts +1 -1
- package/lib/input-number/index.js +2 -1
- package/lib/input-number/src/InputNumber.d.ts +1 -1
- package/lib/input-number/src/InputNumber.js +5 -4
- package/lib/layout/index.d.ts +4 -4
- package/lib/layout/index.js +6 -1
- package/lib/layout/src/Layout.d.ts +1 -1
- package/lib/layout/src/Layout.js +3 -3
- package/lib/layout/src/LayoutFooter.d.ts +1 -1
- package/lib/layout/src/LayoutFooter.js +3 -2
- package/lib/layout/src/LayoutHeader.d.ts +1 -1
- package/lib/layout/src/LayoutHeader.js +3 -2
- package/lib/layout/src/LayoutSider.d.ts +1 -1
- package/lib/layout/src/LayoutSider.js +3 -2
- package/lib/legacy-grid/index.d.ts +2 -2
- package/lib/legacy-grid/index.js +3 -1
- package/lib/list/index.d.ts +1 -1
- package/lib/list/index.js +2 -1
- package/lib/list/src/List.d.ts +1 -1
- package/lib/list/src/List.js +3 -3
- package/lib/loading-bar/index.d.ts +1 -1
- package/lib/loading-bar/index.js +2 -1
- package/lib/loading-bar/src/LoadingBarProvider.d.ts +3 -3
- package/lib/loading-bar/src/LoadingBarProvider.js +3 -2
- package/lib/locales/common/ukUA.js +14 -18
- package/lib/locales/common/viVN.d.ts +3 -0
- package/lib/locales/common/viVN.js +115 -0
- package/lib/locales/date/viVN.d.ts +3 -0
- package/lib/locales/date/viVN.js +11 -0
- package/lib/locales/index.d.ts +2 -0
- package/lib/locales/index.js +5 -1
- package/lib/log/index.d.ts +1 -1
- package/lib/log/index.js +2 -1
- package/lib/log/src/Log.d.ts +1 -1
- package/lib/log/src/Log.js +3 -2
- package/lib/mention/index.d.ts +1 -1
- package/lib/mention/index.js +2 -1
- package/lib/mention/src/Mention.d.ts +1 -1
- package/lib/mention/src/Mention.js +3 -2
- package/lib/menu/index.d.ts +1 -1
- package/lib/menu/index.js +2 -1
- package/lib/menu/src/Menu.d.ts +1 -1
- package/lib/menu/src/Menu.js +3 -2
- package/lib/message/index.d.ts +1 -1
- package/lib/message/index.js +2 -1
- package/lib/message/src/MessageProvider.d.ts +1 -1
- package/lib/message/src/MessageProvider.js +3 -2
- package/lib/modal/index.d.ts +1 -1
- package/lib/modal/index.js +2 -1
- package/lib/modal/src/Modal.d.ts +1 -1
- package/lib/modal/src/Modal.js +3 -2
- package/lib/modal/src/presetProps.d.ts +1 -1
- package/lib/modal/src/styles/index.cssr.js +1 -0
- package/lib/notification/index.d.ts +1 -1
- package/lib/notification/index.js +2 -1
- package/lib/notification/src/Notification.d.ts +4 -0
- package/lib/notification/src/Notification.js +11 -4
- package/lib/notification/src/NotificationContainer.d.ts +3 -0
- package/lib/notification/src/NotificationContainer.js +1 -1
- package/lib/notification/src/NotificationProvider.d.ts +28 -1
- package/lib/notification/src/NotificationProvider.js +3 -3
- package/lib/notification/src/styles/index.cssr.js +7 -6
- package/lib/notification/src/styles/rtl.cssr.d.ts +2 -0
- package/lib/notification/src/styles/rtl.cssr.js +29 -0
- package/lib/notification/styles/_common.d.ts +3 -0
- package/lib/notification/styles/_common.js +4 -1
- package/lib/notification/styles/index.d.ts +1 -0
- package/lib/notification/styles/index.js +3 -1
- package/lib/notification/styles/light.d.ts +6 -0
- package/lib/notification/styles/rtl.d.ts +2 -0
- package/lib/notification/styles/rtl.js +11 -0
- package/lib/number-animation/index.d.ts +1 -1
- package/lib/number-animation/index.js +2 -1
- package/lib/number-animation/src/NumberAnimation.d.ts +5 -1
- package/lib/number-animation/src/NumberAnimation.js +7 -3
- package/lib/page-header/index.d.ts +1 -1
- package/lib/page-header/index.js +2 -1
- package/lib/page-header/src/PageHeader.d.ts +1 -1
- package/lib/page-header/src/PageHeader.js +5 -4
- package/lib/pagination/index.d.ts +1 -1
- package/lib/pagination/index.js +2 -1
- package/lib/pagination/src/Pagination.d.ts +1 -1
- package/lib/pagination/src/Pagination.js +5 -4
- package/lib/pagination/src/styles/index.cssr.js +1 -0
- package/lib/popconfirm/index.d.ts +1 -1
- package/lib/popconfirm/index.js +2 -1
- package/lib/popconfirm/src/Popconfirm.d.ts +4 -1
- package/lib/popconfirm/src/Popconfirm.js +3 -2
- package/lib/popover/index.d.ts +1 -1
- package/lib/popover/index.js +2 -1
- package/lib/popover/src/Popover.d.ts +8 -1
- package/lib/popover/src/Popover.js +6 -4
- package/lib/popover/src/PopoverBody.d.ts +6 -0
- package/lib/popover/src/PopoverBody.js +23 -14
- package/lib/popover/src/styles/index.cssr.js +19 -15
- package/lib/popselect/index.d.ts +1 -1
- package/lib/popselect/index.js +2 -1
- package/lib/popselect/src/Popselect.d.ts +4 -1
- package/lib/popselect/src/Popselect.js +3 -2
- package/lib/progress/index.d.ts +1 -1
- package/lib/progress/index.js +2 -1
- package/lib/progress/src/Progress.d.ts +1 -1
- package/lib/progress/src/Progress.js +3 -2
- package/lib/radio/index.d.ts +3 -3
- package/lib/radio/index.js +4 -1
- package/lib/radio/src/Radio.d.ts +25 -0
- package/lib/radio/src/Radio.js +4 -2
- package/lib/radio/src/RadioButton.d.ts +25 -0
- package/lib/radio/src/RadioButton.js +2 -0
- package/lib/radio/src/RadioGroup.d.ts +1 -1
- package/lib/radio/src/RadioGroup.js +5 -4
- package/lib/radio/src/styles/radio-group.cssr.js +2 -0
- package/lib/radio/src/styles/radio.cssr.js +1 -0
- package/lib/rate/index.d.ts +1 -1
- package/lib/rate/index.js +2 -1
- package/lib/rate/src/Rate.d.ts +1 -1
- package/lib/rate/src/Rate.js +3 -2
- package/lib/result/index.d.ts +1 -1
- package/lib/result/index.js +2 -1
- package/lib/result/src/Result.d.ts +1 -1
- package/lib/result/src/Result.js +3 -2
- package/lib/scrollbar/index.d.ts +1 -1
- package/lib/scrollbar/index.js +2 -1
- package/lib/scrollbar/src/Scrollbar.d.ts +1 -1
- package/lib/scrollbar/src/Scrollbar.js +3 -2
- package/lib/select/index.d.ts +2 -2
- package/lib/select/index.js +2 -1
- package/lib/select/src/Select.d.ts +5 -5
- package/lib/select/src/Select.js +13 -3
- package/lib/select/src/interface.d.ts +1 -0
- package/lib/skeleton/index.d.ts +1 -1
- package/lib/skeleton/index.js +2 -1
- package/lib/skeleton/src/Skeleton.d.ts +1 -1
- package/lib/skeleton/src/Skeleton.js +3 -2
- package/lib/slider/index.d.ts +1 -1
- package/lib/slider/index.js +2 -1
- package/lib/slider/src/Slider.d.ts +1 -1
- package/lib/slider/src/Slider.js +3 -2
- package/lib/slider/src/styles/index.cssr.js +1 -0
- package/lib/space/index.d.ts +1 -1
- package/lib/space/index.js +2 -1
- package/lib/space/src/Space.d.ts +1 -1
- package/lib/space/src/Space.js +5 -7
- package/lib/spin/index.d.ts +1 -1
- package/lib/spin/index.js +2 -1
- package/lib/spin/src/Spin.d.ts +1 -1
- package/lib/spin/src/Spin.js +3 -2
- package/lib/spin/src/styles/index.cssr.js +1 -0
- package/lib/statistic/index.d.ts +1 -1
- package/lib/statistic/index.js +2 -1
- package/lib/statistic/src/Statistic.d.ts +1 -1
- package/lib/statistic/src/Statistic.js +3 -2
- package/lib/steps/index.d.ts +2 -2
- package/lib/steps/index.js +3 -1
- package/lib/steps/src/Step.d.ts +1 -1
- package/lib/steps/src/Step.js +3 -2
- package/lib/steps/src/Steps.d.ts +1 -1
- package/lib/steps/src/Steps.js +3 -3
- package/lib/switch/index.d.ts +1 -1
- package/lib/switch/index.js +2 -1
- package/lib/switch/src/Switch.d.ts +1 -1
- package/lib/switch/src/Switch.js +3 -2
- package/lib/switch/src/styles/index.cssr.js +1 -0
- package/lib/table/index.d.ts +1 -1
- package/lib/table/index.js +2 -1
- package/lib/table/src/Table.d.ts +1 -1
- package/lib/table/src/Table.js +5 -4
- package/lib/tabs/index.d.ts +3 -3
- package/lib/tabs/index.js +4 -1
- package/lib/tabs/src/Tab.d.ts +2 -2
- package/lib/tabs/src/Tab.js +3 -2
- package/lib/tabs/src/Tabs.d.ts +1 -1
- package/lib/tabs/src/Tabs.js +4 -3
- package/lib/tag/index.d.ts +1 -1
- package/lib/tag/index.js +2 -1
- package/lib/tag/src/Tag.d.ts +1 -1
- package/lib/tag/src/Tag.js +5 -5
- package/lib/thing/index.d.ts +1 -1
- package/lib/thing/index.js +2 -1
- package/lib/thing/src/Thing.d.ts +1 -1
- package/lib/thing/src/Thing.js +3 -2
- package/lib/time/index.d.ts +1 -1
- package/lib/time/index.js +2 -1
- package/lib/time/src/Time.d.ts +1 -1
- package/lib/time/src/Time.js +3 -2
- package/lib/time-picker/index.d.ts +1 -1
- package/lib/time-picker/index.js +2 -1
- package/lib/time-picker/src/TimePicker.d.ts +1 -1
- package/lib/time-picker/src/TimePicker.js +3 -2
- package/lib/timeline/index.d.ts +2 -2
- package/lib/timeline/index.js +3 -1
- package/lib/timeline/src/Timeline.d.ts +1 -1
- package/lib/timeline/src/Timeline.js +3 -3
- package/lib/timeline/src/TimelineItem.d.ts +1 -1
- package/lib/timeline/src/TimelineItem.js +3 -2
- package/lib/tooltip/index.d.ts +1 -1
- package/lib/tooltip/index.js +2 -1
- package/lib/tooltip/src/Tooltip.d.ts +4 -1
- package/lib/tooltip/src/Tooltip.js +3 -2
- package/lib/transfer/index.d.ts +1 -1
- package/lib/transfer/index.js +2 -1
- package/lib/transfer/src/Transfer.d.ts +1 -1
- package/lib/transfer/src/Transfer.js +3 -2
- package/lib/tree/index.d.ts +1 -1
- package/lib/tree/index.js +2 -1
- package/lib/tree/src/Tree.d.ts +23 -5
- package/lib/tree/src/Tree.js +49 -22
- package/lib/tree/src/TreeNode.d.ts +1 -1
- package/lib/tree/src/TreeNode.js +21 -6
- package/lib/tree/src/interface.d.ts +3 -1
- package/lib/tree-select/index.d.ts +2 -2
- package/lib/tree-select/index.js +2 -1
- package/lib/tree-select/src/TreeSelect.d.ts +29 -7
- package/lib/tree-select/src/TreeSelect.js +22 -5
- package/lib/tree-select/src/interface.d.ts +17 -1
- package/lib/typography/index.d.ts +7 -6
- package/lib/typography/index.js +14 -1
- package/lib/typography/src/a.d.ts +1 -1
- package/lib/typography/src/a.js +3 -2
- package/lib/typography/src/blockquote.d.ts +1 -1
- package/lib/typography/src/blockquote.js +3 -2
- package/lib/typography/src/create-header.d.ts +1 -1
- package/lib/typography/src/create-header.js +3 -2
- package/lib/typography/src/ol.d.ts +1 -1
- package/lib/typography/src/ol.js +3 -2
- package/lib/typography/src/p.d.ts +1 -1
- package/lib/typography/src/p.js +3 -2
- package/lib/typography/src/text.d.ts +1 -1
- package/lib/typography/src/text.js +3 -2
- package/lib/typography/src/ul.d.ts +1 -1
- package/lib/typography/src/ul.js +3 -2
- package/lib/upload/index.d.ts +1 -1
- package/lib/upload/index.js +2 -1
- package/lib/upload/src/Upload.d.ts +1 -1
- package/lib/upload/src/Upload.js +3 -2
- package/lib/upload/src/UploadFile.d.ts +2 -2
- package/lib/upload/src/UploadFile.js +8 -4
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/lib/watermark/index.d.ts +1 -1
- package/lib/watermark/index.js +2 -1
- package/lib/watermark/src/Watermark.d.ts +1 -1
- package/lib/watermark/src/Watermark.js +3 -2
- package/lib/watermark/src/styles/index.cssr.js +4 -1
- package/package.json +2 -2
- package/web-types.json +203 -11
package/es/form/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { default as NForm } from './src/Form';
|
|
2
|
-
export { default as NFormItem } from './src/FormItem';
|
|
3
|
-
export { default as NFormItemGridItem, default as NFormItemGi } from './src/FormItemGridItem';
|
|
1
|
+
export { default as NForm, formProps } from './src/Form';
|
|
2
|
+
export { default as NFormItem, formItemProps } from './src/FormItem';
|
|
3
|
+
export { default as NFormItemGridItem, default as NFormItemGi, formItemGiProps, formItemGiProps as formItemGridItemProps } from './src/FormItemGridItem';
|
|
4
4
|
// deprecated
|
|
5
5
|
export { default as NFormItemCol } from './src/FormItemCol';
|
|
6
6
|
export { default as NFormItemRow } from './src/FormItemRow';
|
package/es/form/src/Form.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { PropType, ExtractPropTypes } from 'vue';
|
|
2
2
|
import type { FormRules, LabelAlign, LabelPlacement, FormInst, Size, FormValidateMessages } from './interface';
|
|
3
3
|
import { ExtractPublicPropTypes } from '../../_utils';
|
|
4
|
-
declare const formProps: {
|
|
4
|
+
export declare const formProps: {
|
|
5
5
|
readonly inline: BooleanConstructor;
|
|
6
6
|
readonly labelWidth: PropType<string | number>;
|
|
7
7
|
readonly labelAlign: PropType<LabelAlign>;
|
package/es/form/src/Form.js
CHANGED
|
@@ -13,7 +13,7 @@ import { formLight } from '../styles';
|
|
|
13
13
|
import style from './styles/form.cssr';
|
|
14
14
|
import { keysOf } from '../../_utils';
|
|
15
15
|
import { formInjectionKey, formItemInstsInjectionKey } from './context';
|
|
16
|
-
const formProps = Object.assign(Object.assign({}, useTheme.props), { inline: Boolean, labelWidth: [Number, String], labelAlign: String, labelPlacement: {
|
|
16
|
+
export const formProps = Object.assign(Object.assign({}, useTheme.props), { inline: Boolean, labelWidth: [Number, String], labelAlign: String, labelPlacement: {
|
|
17
17
|
type: String,
|
|
18
18
|
default: 'top'
|
|
19
19
|
}, model: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ExtractPublicPropTypes } from '../../_utils';
|
|
2
|
-
declare const formItemRowProps: {
|
|
2
|
+
export declare const formItemRowProps: {
|
|
3
3
|
label: StringConstructor;
|
|
4
4
|
labelWidth: import("vue").PropType<string | number>;
|
|
5
5
|
labelStyle: import("vue").PropType<string | import("vue").CSSProperties>;
|
|
@@ -2,7 +2,7 @@ import { h, ref, defineComponent } from 'vue';
|
|
|
2
2
|
import NRow, { rowProps, rowPropKeys } from '../../legacy-grid/src/Row';
|
|
3
3
|
import { keep } from '../../_utils';
|
|
4
4
|
import NFormItemCol, { formItemColProps, formItemColPropKeys } from './FormItemCol';
|
|
5
|
-
const formItemRowProps = Object.assign(Object.assign({}, rowProps), formItemColProps);
|
|
5
|
+
export const formItemRowProps = Object.assign(Object.assign({}, rowProps), formItemColProps);
|
|
6
6
|
export default defineComponent({
|
|
7
7
|
name: 'FormItemRow',
|
|
8
8
|
props: formItemRowProps,
|
|
@@ -33,10 +33,12 @@ export default cB('form-item', {
|
|
|
33
33
|
box-sizing: border-box;
|
|
34
34
|
`, [cE('asterisk', `
|
|
35
35
|
user-select: none;
|
|
36
|
+
-webkit-user-select: none;
|
|
36
37
|
color: var(--n-asterisk-color);
|
|
37
38
|
transition: color .3s var(--n-bezier);
|
|
38
39
|
`), cE('asterisk-placeholder', `
|
|
39
40
|
user-select: none;
|
|
41
|
+
-webkit-user-select: none;
|
|
40
42
|
visibility: hidden;
|
|
41
43
|
`)]), cB('form-item-blank', {
|
|
42
44
|
gridArea: 'blank',
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { default as NGradientText } from './src/GradientText';
|
|
1
|
+
export { default as NGradientText, gradientTextProps } from './src/GradientText';
|
|
2
2
|
export type { GradientTextProps } from './src/GradientText';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default as NGradientText } from './src/GradientText';
|
|
1
|
+
export { default as NGradientText, gradientTextProps } from './src/GradientText';
|
|
@@ -3,7 +3,7 @@ import { useConfig, useTheme, useThemeClass } from '../../_mixins';
|
|
|
3
3
|
import { createKey, formatLength, useHoudini } from '../../_utils';
|
|
4
4
|
import { gradientTextLight } from '../styles';
|
|
5
5
|
import style from './styles/index.cssr';
|
|
6
|
-
const gradientTextProps = Object.assign(Object.assign({}, useTheme.props), { size: [String, Number], fontSize: [String, Number], type: {
|
|
6
|
+
export const gradientTextProps = Object.assign(Object.assign({}, useTheme.props), { size: [String, Number], fontSize: [String, Number], type: {
|
|
7
7
|
type: String,
|
|
8
8
|
default: 'primary'
|
|
9
9
|
}, color: [Object, String], gradient: [Object, String] });
|
package/es/grid/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { default as NGrid } from './src/Grid';
|
|
1
|
+
export { default as NGrid, gridProps } from './src/Grid';
|
|
2
2
|
export type { GridProps } from './src/Grid';
|
|
3
|
-
export { default as NGridItem } from './src/GridItem';
|
|
4
|
-
export { default as NGi } from './src/GridItem';
|
|
3
|
+
export { default as NGridItem, gridItemProps } from './src/GridItem';
|
|
4
|
+
export { default as NGi, gridItemProps as giProps } from './src/GridItem';
|
|
5
5
|
export type { GridItemProps } from './src/GridItem';
|
package/es/grid/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { default as NGrid } from './src/Grid';
|
|
2
|
-
export { default as NGridItem } from './src/GridItem';
|
|
3
|
-
export { default as NGi } from './src/GridItem';
|
|
1
|
+
export { default as NGrid, gridProps } from './src/Grid';
|
|
2
|
+
export { default as NGridItem, gridItemProps } from './src/GridItem';
|
|
3
|
+
export { default as NGi, gridItemProps as giProps } from './src/GridItem';
|
package/es/grid/src/Grid.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { CSSProperties, PropType, Ref } from 'vue';
|
|
2
2
|
import { VResizeObserverOnResize } from 'vueuc';
|
|
3
3
|
import { ExtractPublicPropTypes } from '../../_utils';
|
|
4
|
-
declare const gridProps: {
|
|
4
|
+
export declare const gridProps: {
|
|
5
5
|
readonly responsive: {
|
|
6
6
|
readonly type: PropType<"screen" | "self">;
|
|
7
7
|
readonly default: "self";
|
package/es/grid/src/Grid.js
CHANGED
|
@@ -8,7 +8,7 @@ import { getSlot, flatten, isBrowser, isNodeVShowFalse } from '../../_utils';
|
|
|
8
8
|
import { defaultSpan, gridInjectionKey } from './config';
|
|
9
9
|
const defaultCols = 24;
|
|
10
10
|
const SSR_ATTR_NAME = '__ssr__';
|
|
11
|
-
const gridProps = {
|
|
11
|
+
export const gridProps = {
|
|
12
12
|
responsive: {
|
|
13
13
|
type: [String, Boolean],
|
|
14
14
|
default: 'self'
|
|
@@ -135,7 +135,7 @@ export default defineComponent({
|
|
|
135
135
|
clonedNode.props.privateShow = false;
|
|
136
136
|
}
|
|
137
137
|
else {
|
|
138
|
-
clonedNode.props = {
|
|
138
|
+
clonedNode.props = { privateShow: false };
|
|
139
139
|
}
|
|
140
140
|
childrenAndRawSpan.push({
|
|
141
141
|
child: clonedNode,
|
package/es/icon/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { NIcon } from './src/Icon';
|
|
1
|
+
export { NIcon, iconProps } from './src/Icon';
|
|
2
2
|
export type { IconProps } from './src/Icon';
|
package/es/icon/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { NIcon } from './src/Icon';
|
|
1
|
+
export { NIcon, iconProps } from './src/Icon';
|
package/es/icon/src/Icon.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Component, PropType } from 'vue';
|
|
2
2
|
import type { ExtractPublicPropTypes } from '../../_utils';
|
|
3
3
|
export declare type Depth = 1 | 2 | 3 | 4 | 5 | '1' | '2' | '3' | '4' | '5' | undefined;
|
|
4
|
-
declare const iconProps: {
|
|
4
|
+
export declare const iconProps: {
|
|
5
5
|
readonly depth: PropType<Depth>;
|
|
6
6
|
readonly size: PropType<string | number>;
|
|
7
7
|
readonly color: StringConstructor;
|
|
@@ -104,4 +104,3 @@ export declare const NIcon: import("vue").DefineComponent<{
|
|
|
104
104
|
opacity5Depth: string;
|
|
105
105
|
}, any>>>;
|
|
106
106
|
}>>, {}>;
|
|
107
|
-
export {};
|
package/es/icon/src/Icon.js
CHANGED
|
@@ -3,7 +3,7 @@ import { useThemeClass, useConfig, useTheme } from '../../_mixins';
|
|
|
3
3
|
import { formatLength, warn } from '../../_utils';
|
|
4
4
|
import { iconLight } from '../styles';
|
|
5
5
|
import style from './styles/index.cssr';
|
|
6
|
-
const iconProps = Object.assign(Object.assign({}, useTheme.props), { depth: [String, Number], size: [Number, String], color: String, component: Object });
|
|
6
|
+
export const iconProps = Object.assign(Object.assign({}, useTheme.props), { depth: [String, Number], size: [Number, String], color: String, component: Object });
|
|
7
7
|
export const NIcon = defineComponent({
|
|
8
8
|
_n_icon__: true,
|
|
9
9
|
name: 'Icon',
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { NIconWrapper } from './src/IconWrapper';
|
|
1
|
+
export { NIconWrapper, iconWrapperProps } from './src/IconWrapper';
|
|
2
2
|
export type { IconWrapperProps } from './src/IconWrapper';
|
package/es/icon-wrapper/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { NIconWrapper } from './src/IconWrapper';
|
|
1
|
+
export { NIconWrapper, iconWrapperProps } from './src/IconWrapper';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ExtractPublicPropTypes } from '../../_utils';
|
|
2
|
-
declare const iconWrapperProps: {
|
|
2
|
+
export declare const iconWrapperProps: {
|
|
3
3
|
readonly size: {
|
|
4
4
|
readonly type: NumberConstructor;
|
|
5
5
|
readonly default: 24;
|
|
@@ -74,4 +74,3 @@ export declare const NIconWrapper: import("vue").DefineComponent<{
|
|
|
74
74
|
readonly size: number;
|
|
75
75
|
readonly borderRadius: number;
|
|
76
76
|
}>;
|
|
77
|
-
export {};
|
|
@@ -3,7 +3,7 @@ import { useConfig, useTheme, useThemeClass } from '../../_mixins';
|
|
|
3
3
|
import { formatLength } from '../../_utils';
|
|
4
4
|
import { iconWrapperLight } from '../styles';
|
|
5
5
|
import style from './styles/index.cssr';
|
|
6
|
-
const iconWrapperProps = Object.assign(Object.assign({}, useTheme.props), { size: {
|
|
6
|
+
export const iconWrapperProps = Object.assign(Object.assign({}, useTheme.props), { size: {
|
|
7
7
|
type: Number,
|
|
8
8
|
default: 24
|
|
9
9
|
}, borderRadius: {
|
package/es/image/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { default as NImage } from './src/Image';
|
|
1
|
+
export { default as NImage, imageProps } from './src/Image';
|
|
2
2
|
export type { ImageProps } from './src/Image';
|
|
3
|
-
export { default as NImageGroup } from './src/ImageGroup';
|
|
3
|
+
export { default as NImageGroup, imageGroupProps } from './src/ImageGroup';
|
|
4
4
|
export type { ImageGroupProps } from './src/ImageGroup';
|
package/es/image/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { default as NImage } from './src/Image';
|
|
2
|
-
export { default as NImageGroup } from './src/ImageGroup';
|
|
1
|
+
export { default as NImage, imageProps } from './src/Image';
|
|
2
|
+
export { default as NImageGroup, imageGroupProps } from './src/ImageGroup';
|
package/es/image/src/Image.d.ts
CHANGED
package/es/image/src/Image.js
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { defineComponent, h, inject, ref, toRef, watchEffect, onMounted, onBeforeUnmount } from 'vue';
|
|
2
|
-
import
|
|
3
|
-
import { imageGroupInjectionKey } from './ImageGroup';
|
|
2
|
+
import { isImageSupportNativeLazy } from '../../_utils/env/is-native-lazy-load';
|
|
4
3
|
import { useConfig } from '../../_mixins';
|
|
5
4
|
import { imagePreviewSharedProps } from './interface';
|
|
6
5
|
import { observeIntersection } from './utils';
|
|
7
|
-
|
|
6
|
+
import { imageGroupInjectionKey } from './ImageGroup';
|
|
7
|
+
import NImagePreview from './ImagePreview';
|
|
8
|
+
export const imageProps = Object.assign({ alt: String, height: [String, Number], imgProps: Object, lazy: Boolean, intersectionObserverOptions: Object, objectFit: {
|
|
8
9
|
type: String,
|
|
9
10
|
default: 'fill'
|
|
10
11
|
}, previewSrc: String, fallbackSrc: String, width: [String, Number], src: String, previewDisabled: Boolean, loadDescription: String, onError: Function, onLoad: Function }, imagePreviewSharedProps);
|
|
@@ -44,6 +45,9 @@ export default defineComponent({
|
|
|
44
45
|
(_a = imageRef.value) === null || _a === void 0 ? void 0 : _a.setAttribute('data-group-id', (imageGroupHandle === null || imageGroupHandle === void 0 ? void 0 : imageGroupHandle.groupId) || '');
|
|
45
46
|
});
|
|
46
47
|
onMounted(() => {
|
|
48
|
+
if (isImageSupportNativeLazy) {
|
|
49
|
+
return;
|
|
50
|
+
}
|
|
47
51
|
let unobserve;
|
|
48
52
|
const stopWatchHandle = watchEffect(() => {
|
|
49
53
|
unobserve === null || unobserve === void 0 ? void 0 : unobserve();
|
|
@@ -81,19 +85,22 @@ export default defineComponent({
|
|
|
81
85
|
},
|
|
82
86
|
render() {
|
|
83
87
|
var _a, _b;
|
|
84
|
-
const { mergedClsPrefix, imgProps = {}, loaded, $attrs } = this;
|
|
88
|
+
const { mergedClsPrefix, imgProps = {}, loaded, $attrs, lazy } = this;
|
|
85
89
|
const placeholderNode = (_b = (_a = this.$slots).placeholder) === null || _b === void 0 ? void 0 : _b.call(_a);
|
|
86
|
-
const
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
90
|
+
const loadSrc = this.src || imgProps.src || '';
|
|
91
|
+
const imgNode = h('img', Object.assign(Object.assign({}, imgProps), { class: imgProps.class, ref: 'imageRef', width: this.width || imgProps.width, height: this.height || imgProps.height, src: isImageSupportNativeLazy
|
|
92
|
+
? loadSrc
|
|
93
|
+
: this.showError
|
|
94
|
+
? this.fallbackSrc
|
|
95
|
+
: this.shouldStartLoading
|
|
96
|
+
? loadSrc
|
|
97
|
+
: undefined, alt: this.alt || imgProps.alt, 'aria-label': this.alt || imgProps.alt, onClick: this.click, onError: this.mergedOnError, onLoad: this.mergedOnLoad, loading: lazy ? 'lazy' : 'eager', style: [
|
|
91
98
|
imgProps.style || '',
|
|
92
99
|
placeholderNode && !loaded
|
|
93
100
|
? { height: '0', width: '0', visibility: 'hidden' }
|
|
94
101
|
: '',
|
|
95
102
|
{ objectFit: this.objectFit }
|
|
96
|
-
],
|
|
103
|
+
], 'data-error': this.showError, 'data-preview-src': this.previewSrc || this.src }));
|
|
97
104
|
return (h("div", Object.assign({}, $attrs, { role: "none", class: [
|
|
98
105
|
$attrs.class,
|
|
99
106
|
`${mergedClsPrefix}-image`,
|
|
@@ -5,7 +5,7 @@ export declare const imageGroupInjectionKey: import("vue").InjectionKey<ImagePre
|
|
|
5
5
|
groupId: string;
|
|
6
6
|
mergedClsPrefixRef: Ref<string>;
|
|
7
7
|
}>;
|
|
8
|
-
declare const imageGroupProps: {
|
|
8
|
+
export declare const imageGroupProps: {
|
|
9
9
|
showToolbar: {
|
|
10
10
|
type: BooleanConstructor;
|
|
11
11
|
default: boolean;
|
|
@@ -5,7 +5,7 @@ import { useConfig } from '../../_mixins';
|
|
|
5
5
|
import NImagePreview from './ImagePreview';
|
|
6
6
|
import { imagePreviewSharedProps } from './interface';
|
|
7
7
|
export const imageGroupInjectionKey = createInjectionKey('n-image-group');
|
|
8
|
-
const imageGroupProps = imagePreviewSharedProps;
|
|
8
|
+
export const imageGroupProps = imagePreviewSharedProps;
|
|
9
9
|
export default defineComponent({
|
|
10
10
|
name: 'ImageGroup',
|
|
11
11
|
props: imageGroupProps,
|
|
@@ -51,6 +51,7 @@ export default c([c('body >', [cB('image-container', 'position: fixed;')]), cB('
|
|
|
51
51
|
pointer-events: none;
|
|
52
52
|
`, [fadeInScaleUpTransition()]), cB('image-preview', `
|
|
53
53
|
user-select: none;
|
|
54
|
+
-webkit-user-select: none;
|
|
54
55
|
pointer-events: all;
|
|
55
56
|
margin: auto;
|
|
56
57
|
max-height: calc(100vh - 32px);
|
package/es/input/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { default as NInput } from './src/Input';
|
|
1
|
+
export { default as NInput, inputProps } from './src/Input';
|
|
2
2
|
export type { InputInst } from './src/interface';
|
|
3
3
|
export type { InputProps } from './src/Input';
|
|
4
|
-
export { default as NInputGroup } from './src/InputGroup';
|
|
5
|
-
export { default as NInputGroupLabel } from './src/InputGroupLabel';
|
|
4
|
+
export { default as NInputGroup, inputGroupProps } from './src/InputGroup';
|
|
5
|
+
export { default as NInputGroupLabel, inputGroupLabelProps } from './src/InputGroupLabel';
|
|
6
6
|
export type { InputGroupProps } from './src/InputGroup';
|
|
7
7
|
export type { InputGroupLabelProps } from './src/InputGroupLabel';
|
package/es/input/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { default as NInput } from './src/Input';
|
|
2
|
-
export { default as NInputGroup } from './src/InputGroup';
|
|
3
|
-
export { default as NInputGroupLabel } from './src/InputGroupLabel';
|
|
1
|
+
export { default as NInput, inputProps } from './src/Input';
|
|
2
|
+
export { default as NInputGroup, inputGroupProps } from './src/InputGroup';
|
|
3
|
+
export { default as NInputGroupLabel, inputGroupLabelProps } from './src/InputGroupLabel';
|
package/es/input/src/Input.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import type { FormValidationStatus } from '../../form/src/interface';
|
|
|
3
3
|
import { ExtractPublicPropTypes } from '../../_utils';
|
|
4
4
|
import type { MaybeArray } from '../../_utils';
|
|
5
5
|
import type { OnUpdateValue, Size } from './interface';
|
|
6
|
-
declare const inputProps: {
|
|
6
|
+
export declare const inputProps: {
|
|
7
7
|
bordered: {
|
|
8
8
|
type: PropType<boolean | undefined>;
|
|
9
9
|
default: undefined;
|
package/es/input/src/Input.js
CHANGED
|
@@ -4,7 +4,7 @@ import { getPadding } from 'seemly';
|
|
|
4
4
|
import { VResizeObserver } from 'vueuc';
|
|
5
5
|
import { off, on } from 'evtd';
|
|
6
6
|
import { EyeIcon, EyeOffIcon } from '../../_internal/icons';
|
|
7
|
-
import useRtl from '../../_mixins/use-rtl';
|
|
7
|
+
import { useRtl } from '../../_mixins/use-rtl';
|
|
8
8
|
import { NBaseClear, NBaseIcon, NBaseSuffix, NScrollbar } from '../../_internal';
|
|
9
9
|
import { useTheme, useLocale, useFormItem, useConfig, useThemeClass } from '../../_mixins';
|
|
10
10
|
import { call, createKey, resolveSlot, resolveWrappedSlot, warnOnce } from '../../_utils';
|
|
@@ -13,7 +13,7 @@ import { inputInjectionKey } from './interface';
|
|
|
13
13
|
import { isEmptyInputValue, useCursor } from './utils';
|
|
14
14
|
import WordCount from './WordCount';
|
|
15
15
|
import style from './styles/input.cssr';
|
|
16
|
-
const inputProps = Object.assign(Object.assign({}, useTheme.props), { bordered: {
|
|
16
|
+
export const inputProps = Object.assign(Object.assign({}, useTheme.props), { bordered: {
|
|
17
17
|
type: Boolean,
|
|
18
18
|
default: undefined
|
|
19
19
|
}, type: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { h, defineComponent } from 'vue';
|
|
2
2
|
import { useConfig, useStyle } from '../../_mixins';
|
|
3
3
|
import style from './styles/input-group.cssr';
|
|
4
|
-
const inputGroupProps = {};
|
|
4
|
+
export const inputGroupProps = {};
|
|
5
5
|
export default defineComponent({
|
|
6
6
|
name: 'InputGroup',
|
|
7
7
|
props: inputGroupProps,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
2
|
import type { ExtractPublicPropTypes } from '../../_utils';
|
|
3
3
|
import type { Size } from './interface';
|
|
4
|
-
declare const inputGroupLabelProps: {
|
|
4
|
+
export declare const inputGroupLabelProps: {
|
|
5
5
|
readonly size: {
|
|
6
6
|
readonly type: PropType<Size>;
|
|
7
7
|
readonly default: "medium";
|
|
@@ -3,7 +3,7 @@ import { useConfig, useTheme, useThemeClass } from '../../_mixins';
|
|
|
3
3
|
import { createKey } from '../../_utils';
|
|
4
4
|
import { inputLight } from '../styles';
|
|
5
5
|
import style from './styles/input-group-label.cssr';
|
|
6
|
-
const inputGroupLabelProps = Object.assign(Object.assign({}, useTheme.props), { size: {
|
|
6
|
+
export const inputGroupLabelProps = Object.assign(Object.assign({}, useTheme.props), { size: {
|
|
7
7
|
type: String,
|
|
8
8
|
default: 'medium'
|
|
9
9
|
}, bordered: {
|
|
@@ -62,6 +62,7 @@ cE('input, textarea', `
|
|
|
62
62
|
background-color: #0000;
|
|
63
63
|
text-align: inherit;
|
|
64
64
|
transition:
|
|
65
|
+
-webkit-text-fill-color .3s var(--n-bezier),
|
|
65
66
|
caret-color .3s var(--n-bezier),
|
|
66
67
|
color .3s var(--n-bezier),
|
|
67
68
|
text-decoration-color .3s var(--n-bezier);
|
|
@@ -161,6 +162,7 @@ cM('pair', [cE('input-el, placeholder', 'text-align: center;'), cE('separator',
|
|
|
161
162
|
align-items: center;
|
|
162
163
|
transition: color .3s var(--n-bezier);
|
|
163
164
|
color: var(--n-text-color);
|
|
165
|
+
white-space: nowrap;
|
|
164
166
|
`, [cB('icon', `
|
|
165
167
|
color: var(--n-icon-color);
|
|
166
168
|
`), cB('base-icon', `
|
|
@@ -172,6 +174,7 @@ cM('pair', [cE('input-el, placeholder', 'text-align: center;'), cE('separator',
|
|
|
172
174
|
cursor: not-allowed;
|
|
173
175
|
color: var(--n-text-color-disabled);
|
|
174
176
|
text-decoration-color: var(--n-text-color-disabled);
|
|
177
|
+
-webkit-text-fill-color: var(--n-text-color-disabled);
|
|
175
178
|
`), cE('placeholder', 'color: var(--n-placeholder-color-disabled);'), cE('separator', 'color: var(--n-text-color-disabled);', [cB('icon', `
|
|
176
179
|
color: var(--n-icon-color-disabled);
|
|
177
180
|
`), cB('base-icon', `
|
package/es/input-number/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default as NInputNumber } from './src/InputNumber';
|
|
1
|
+
export { default as NInputNumber, inputNumberProps } from './src/InputNumber';
|
|
@@ -2,7 +2,7 @@ import { PropType } from 'vue';
|
|
|
2
2
|
import type { FormValidationStatus } from '../../form/src/interface';
|
|
3
3
|
import { MaybeArray, ExtractPublicPropTypes } from '../../_utils';
|
|
4
4
|
import type { OnUpdateValue } from './interface';
|
|
5
|
-
declare const inputNumberProps: {
|
|
5
|
+
export declare const inputNumberProps: {
|
|
6
6
|
autofocus: BooleanConstructor;
|
|
7
7
|
loading: {
|
|
8
8
|
type: BooleanConstructor;
|
|
@@ -11,10 +11,10 @@ import { warnOnce, call, resolveSlot, resolveWrappedSlot } from '../../_utils';
|
|
|
11
11
|
import { inputNumberLight } from '../styles';
|
|
12
12
|
import { parse, validator, format, parseNumber, isWipValue } from './utils';
|
|
13
13
|
import style from './styles/input-number.cssr';
|
|
14
|
-
import useRtl from '../../_mixins/use-rtl';
|
|
14
|
+
import { useRtl } from '../../_mixins/use-rtl';
|
|
15
15
|
const HOLDING_CHANGE_THRESHOLD = 800;
|
|
16
16
|
const HOLDING_CHANGE_INTERVAL = 100;
|
|
17
|
-
const inputNumberProps = Object.assign(Object.assign({}, useTheme.props), { autofocus: Boolean, loading: {
|
|
17
|
+
export const inputNumberProps = Object.assign(Object.assign({}, useTheme.props), { autofocus: Boolean, loading: {
|
|
18
18
|
type: Boolean,
|
|
19
19
|
default: undefined
|
|
20
20
|
}, placeholder: String, defaultValue: {
|
package/es/layout/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export { default as NLayout } from './src/Layout';
|
|
1
|
+
export { default as NLayout, layoutProps, layoutProps as layoutContentProps } from './src/Layout';
|
|
2
2
|
export { default as NLayoutContent } from './src/LayoutContent';
|
|
3
|
-
export { default as NLayoutHeader } from './src/LayoutHeader';
|
|
4
|
-
export { default as NLayoutFooter } from './src/LayoutFooter';
|
|
5
|
-
export { default as NLayoutSider } from './src/LayoutSider';
|
|
3
|
+
export { default as NLayoutHeader, headerProps as layoutHeaderProps } from './src/LayoutHeader';
|
|
4
|
+
export { default as NLayoutFooter, layoutFooterProps } from './src/LayoutFooter';
|
|
5
|
+
export { default as NLayoutSider, layoutSiderProps } from './src/LayoutSider';
|
|
6
6
|
export type { LayoutProps, LayoutProps as LayoutContentProps } from './src/Layout';
|
|
7
7
|
export type { LayoutHeaderProps } from './src/LayoutHeader';
|
|
8
8
|
export type { LayoutFooterProps } from './src/LayoutFooter';
|
package/es/layout/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { default as NLayout } from './src/Layout';
|
|
1
|
+
export { default as NLayout, layoutProps, layoutProps as layoutContentProps } from './src/Layout';
|
|
2
2
|
export { default as NLayoutContent } from './src/LayoutContent';
|
|
3
|
-
export { default as NLayoutHeader } from './src/LayoutHeader';
|
|
4
|
-
export { default as NLayoutFooter } from './src/LayoutFooter';
|
|
5
|
-
export { default as NLayoutSider } from './src/LayoutSider';
|
|
3
|
+
export { default as NLayoutHeader, headerProps as layoutHeaderProps } from './src/LayoutHeader';
|
|
4
|
+
export { default as NLayoutFooter, layoutFooterProps } from './src/LayoutFooter';
|
|
5
|
+
export { default as NLayoutSider, layoutSiderProps } from './src/LayoutSider';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { PropType, CSSProperties, ExtractPropTypes } from 'vue';
|
|
2
2
|
import type { ScrollbarProps } from '../../_internal';
|
|
3
3
|
import type { ExtractPublicPropTypes } from '../../_utils';
|
|
4
|
-
declare const layoutProps: {
|
|
4
|
+
export declare const layoutProps: {
|
|
5
5
|
readonly embedded: BooleanConstructor;
|
|
6
6
|
readonly position: {
|
|
7
7
|
readonly type: PropType<"static" | "absolute">;
|
package/es/layout/src/Layout.js
CHANGED
|
@@ -5,7 +5,7 @@ import { createInjectionKey, useReactivated } from '../../_utils';
|
|
|
5
5
|
import { layoutLight } from '../styles';
|
|
6
6
|
import { positionProp } from './interface';
|
|
7
7
|
import style from './styles/layout.cssr';
|
|
8
|
-
const layoutProps = {
|
|
8
|
+
export const layoutProps = {
|
|
9
9
|
embedded: Boolean,
|
|
10
10
|
position: positionProp,
|
|
11
11
|
nativeScrollbar: {
|
|
@@ -3,7 +3,7 @@ import { useConfig, useTheme, useThemeClass } from '../../_mixins';
|
|
|
3
3
|
import { layoutLight } from '../styles';
|
|
4
4
|
import { positionProp } from './interface';
|
|
5
5
|
import style from './styles/layout-footer.cssr';
|
|
6
|
-
const layoutFooterProps = Object.assign(Object.assign({}, useTheme.props), { inverted: Boolean, position: positionProp, bordered: Boolean });
|
|
6
|
+
export const layoutFooterProps = Object.assign(Object.assign({}, useTheme.props), { inverted: Boolean, position: positionProp, bordered: Boolean });
|
|
7
7
|
export default defineComponent({
|
|
8
8
|
name: 'LayoutFooter',
|
|
9
9
|
props: layoutFooterProps,
|
|
@@ -3,7 +3,7 @@ import { useConfig, useTheme, useThemeClass } from '../../_mixins';
|
|
|
3
3
|
import { layoutLight } from '../styles';
|
|
4
4
|
import { positionProp } from './interface';
|
|
5
5
|
import style from './styles/layout-header.cssr';
|
|
6
|
-
const headerProps = {
|
|
6
|
+
export const headerProps = {
|
|
7
7
|
position: positionProp,
|
|
8
8
|
inverted: Boolean,
|
|
9
9
|
bordered: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { PropType, CSSProperties } from 'vue';
|
|
2
2
|
import type { MaybeArray, ExtractPublicPropTypes } from '../../_utils';
|
|
3
3
|
import type { ScrollbarProps } from '../../_internal';
|
|
4
|
-
declare const layoutSiderProps: {
|
|
4
|
+
export declare const layoutSiderProps: {
|
|
5
5
|
readonly position: {
|
|
6
6
|
readonly type: PropType<"static" | "absolute">;
|
|
7
7
|
readonly default: "static";
|
|
@@ -9,7 +9,7 @@ import ToggleButton from './ToggleButton';
|
|
|
9
9
|
import ToggleBar from './ToggleBar';
|
|
10
10
|
import { layoutSiderInjectionKey, positionProp } from './interface';
|
|
11
11
|
import { layoutInjectionKey } from './Layout';
|
|
12
|
-
const layoutSiderProps = {
|
|
12
|
+
export const layoutSiderProps = {
|
|
13
13
|
position: positionProp,
|
|
14
14
|
bordered: Boolean,
|
|
15
15
|
collapsedWidth: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { default as NRow } from './src/Row';
|
|
2
|
-
export { default as NCol } from './src/Col';
|
|
1
|
+
export { default as NRow, rowProps } from './src/Row';
|
|
2
|
+
export { default as NCol, colProps } from './src/Col';
|
|
3
3
|
export type { RowProps } from './src/Row';
|
|
4
4
|
export type { ColProps } from './src/Col';
|
package/es/legacy-grid/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { default as NRow } from './src/Row';
|
|
2
|
-
export { default as NCol } from './src/Col';
|
|
1
|
+
export { default as NRow, rowProps } from './src/Row';
|
|
2
|
+
export { default as NCol, colProps } from './src/Col';
|
package/es/list/index.d.ts
CHANGED
package/es/list/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { default as NList } from './src/List';
|
|
1
|
+
export { default as NList, listProps } from './src/List';
|
|
2
2
|
export { default as NListItem } from './src/ListItem';
|