naive-ui 2.40.4 → 2.41.1
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/dist/index.js +3516 -1947
- package/dist/index.mjs +3510 -1949
- package/dist/index.prod.js +1 -1
- package/dist/index.prod.mjs +1 -1
- package/es/_internal/selection/src/Selection.d.ts +1 -1
- package/es/_mixins/use-form-item.d.ts +1 -1
- package/es/_utils/dom/download.d.ts +1 -0
- package/es/_utils/dom/download.mjs +3 -0
- package/es/_utils/index.d.ts +2 -2
- package/es/_utils/index.mjs +2 -2
- package/es/_utils/naive/index.d.ts +1 -0
- package/es/_utils/naive/index.mjs +1 -0
- package/es/_utils/naive/value.d.ts +1 -0
- package/es/_utils/naive/value.mjs +13 -0
- package/es/_utils/vue/get-first-slot-vnode.d.ts +1 -0
- package/es/_utils/vue/get-first-slot-vnode.mjs +13 -0
- package/es/_utils/vue/index.d.ts +2 -2
- package/es/_utils/vue/index.mjs +2 -2
- package/es/_utils/vue/resolve-slot.d.ts +1 -1
- package/es/_utils/vue/resolve-slot.mjs +1 -1
- package/es/alert/index.d.ts +1 -1
- package/es/alert/src/Alert.d.ts +7 -2
- package/es/alert/src/Alert.mjs +1 -0
- package/es/auto-complete/index.d.ts +2 -2
- package/es/auto-complete/src/AutoComplete.d.ts +10 -4
- package/es/auto-complete/src/AutoComplete.mjs +3 -2
- package/es/auto-complete/src/interface.d.ts +6 -0
- package/es/avatar/index.d.ts +1 -1
- package/es/avatar/src/Avatar.d.ts +7 -2
- package/es/avatar/src/Avatar.mjs +1 -0
- package/es/avatar-group/index.d.ts +2 -1
- package/es/avatar-group/src/AvatarGroup.d.ts +8 -2
- package/es/avatar-group/src/AvatarGroup.mjs +1 -0
- package/es/avatar-group/src/interface.d.ts +8 -0
- package/es/avatar-group/src/interface.mjs +1 -0
- package/es/breadcrumb/index.d.ts +1 -1
- package/es/breadcrumb/src/BreadcrumbItem.d.ts +6 -2
- package/es/breadcrumb/src/BreadcrumbItem.mjs +1 -0
- package/es/button/index.d.ts +1 -1
- package/es/button/src/Button.d.ts +6 -2
- package/es/button/src/Button.mjs +1 -0
- package/es/calendar/src/Calendar.d.ts +7 -3
- package/es/calendar/src/Calendar.mjs +3 -2
- package/es/calendar/src/interface.d.ts +9 -0
- package/es/card/index.d.ts +1 -1
- package/es/card/src/Card.d.ts +10 -2
- package/es/card/src/Card.mjs +1 -0
- package/es/carousel/index.d.ts +2 -2
- package/es/carousel/src/Carousel.d.ts +8 -3
- package/es/carousel/src/Carousel.mjs +4 -3
- package/es/carousel/src/interface.d.ts +12 -0
- package/es/cascader/index.d.ts +1 -1
- package/es/cascader/src/Cascader.d.ts +9 -3
- package/es/cascader/src/Cascader.mjs +1 -0
- package/es/collapse/index.d.ts +3 -2
- package/es/collapse/src/Collapse.d.ts +10 -4
- package/es/collapse/src/Collapse.mjs +1 -0
- package/es/collapse/src/CollapseItem.d.ts +9 -4
- package/es/collapse/src/CollapseItem.mjs +8 -11
- package/es/collapse/src/interface.d.ts +12 -0
- package/es/color-picker/index.d.ts +1 -1
- package/es/color-picker/src/ColorPicker.d.ts +7 -2
- package/es/color-picker/src/ColorPicker.mjs +1 -3
- package/es/color-picker/src/ColorPickerTrigger.d.ts +2 -2
- package/es/color-picker/src/ColorPickerTrigger.mjs +1 -0
- package/es/color-picker/src/context.d.ts +3 -2
- package/es/components.d.ts +1 -0
- package/es/components.mjs +1 -0
- package/es/config-provider/src/internal-interface.d.ts +2 -0
- package/es/data-table/index.d.ts +1 -1
- package/es/data-table/src/DataTable.d.ts +9 -8
- package/es/data-table/src/DataTable.mjs +7 -6
- package/es/data-table/src/TableParts/Body.d.ts +1 -3
- package/es/data-table/src/interface.d.ts +7 -2
- package/es/data-table/src/styles/index.cssr.mjs +1 -0
- package/es/data-table/src/use-group-header.mjs +4 -3
- package/es/date-picker/index.d.ts +1 -0
- package/es/date-picker/src/DatePicker.d.ts +27 -5
- package/es/date-picker/src/DatePicker.mjs +1 -0
- package/es/date-picker/src/interface.d.ts +3 -2
- package/es/date-picker/src/panel/date.d.ts +1 -3
- package/es/date-picker/src/panel/date.mjs +8 -8
- package/es/date-picker/src/panel/daterange.d.ts +1 -3
- package/es/date-picker/src/panel/daterange.mjs +12 -12
- package/es/date-picker/src/panel/datetime.d.ts +1 -3
- package/es/date-picker/src/panel/datetime.mjs +10 -10
- package/es/date-picker/src/panel/datetimerange.d.ts +1 -3
- package/es/date-picker/src/panel/datetimerange.mjs +12 -12
- package/es/date-picker/src/panel/month.d.ts +1 -3
- package/es/date-picker/src/panel/month.mjs +9 -9
- package/es/date-picker/src/panel/monthrange.d.ts +1 -3
- package/es/date-picker/src/panel/monthrange.mjs +9 -7
- package/es/date-picker/src/panel/panelHeader.d.ts +4 -12
- package/es/date-picker/src/panel/use-calendar.d.ts +1 -3
- package/es/date-picker/src/panel/use-dual-calendar.d.ts +1 -3
- package/es/date-picker/src/props.d.ts +1 -1
- package/es/descriptions/index.d.ts +2 -2
- package/es/descriptions/src/Descriptions.d.ts +7 -3
- package/es/descriptions/src/Descriptions.mjs +1 -0
- package/es/descriptions/src/DescriptionsItem.d.ts +6 -2
- package/es/descriptions/src/DescriptionsItem.mjs +1 -0
- package/es/dialog/index.d.ts +1 -0
- package/es/dialog/src/Dialog.d.ts +9 -2
- package/es/dialog/src/Dialog.mjs +1 -0
- package/es/dialog/src/DialogEnvironment.d.ts +5 -1
- package/es/dialog/src/DialogEnvironment.mjs +8 -3
- package/es/dialog/src/DialogProvider.d.ts +8 -2
- package/es/drawer/index.d.ts +1 -1
- package/es/drawer/src/Drawer.d.ts +2 -2
- package/es/drawer/src/DrawerBodyWrapper.d.ts +1 -1
- package/es/drawer/src/DrawerContent.d.ts +7 -2
- package/es/drawer/src/DrawerContent.mjs +1 -0
- package/es/dynamic-input/index.d.ts +2 -1
- package/es/dynamic-input/src/DynamicInput.d.ts +8 -2
- package/es/dynamic-input/src/DynamicInput.mjs +3 -3
- package/es/dynamic-input/src/interface.d.ts +11 -0
- package/es/dynamic-tags/index.d.ts +2 -2
- package/es/dynamic-tags/src/DynamicTags.d.ts +8 -3
- package/es/dynamic-tags/src/DynamicTags.mjs +1 -0
- package/es/dynamic-tags/src/interface.d.ts +8 -0
- package/es/ellipsis/index.d.ts +1 -1
- package/es/ellipsis/src/Ellipsis.d.ts +6 -2
- package/es/ellipsis/src/Ellipsis.mjs +1 -0
- package/es/empty/index.d.ts +1 -1
- package/es/empty/src/Empty.d.ts +7 -2
- package/es/empty/src/Empty.mjs +1 -0
- package/es/float-button/index.d.ts +1 -1
- package/es/float-button/src/FloatButton.d.ts +7 -2
- package/es/float-button/src/FloatButton.mjs +1 -0
- package/es/form/index.d.ts +1 -0
- package/es/form/src/FormItem.d.ts +1 -1
- package/es/form/src/FormItemCol.d.ts +1 -1
- package/es/form/src/FormItemGridItem.d.ts +1 -1
- package/es/form/src/interface.d.ts +0 -1
- package/es/form/src/public-types.d.ts +1 -0
- package/es/form/src/public-types.mjs +1 -0
- package/es/image/index.d.ts +1 -1
- package/es/image/src/Image.d.ts +6 -2
- package/es/image/src/Image.mjs +2 -5
- package/es/input/index.d.ts +1 -1
- package/es/input/src/Input.d.ts +14 -3
- package/es/input/src/Input.mjs +8 -8
- package/es/input/src/WordCount.mjs +2 -2
- package/es/input-number/index.d.ts +1 -1
- package/es/input-number/src/InputNumber.d.ts +9 -3
- package/es/input-number/src/InputNumber.mjs +1 -0
- package/es/input-otp/index.d.ts +3 -0
- package/es/input-otp/index.mjs +1 -0
- package/es/input-otp/src/InputOtp.d.ts +871 -0
- package/es/input-otp/src/InputOtp.mjs +317 -0
- package/es/input-otp/src/public-types.d.ts +24 -0
- package/es/input-otp/src/public-types.mjs +1 -0
- package/es/input-otp/src/styles/index.cssr.d.ts +2 -0
- package/es/input-otp/src/styles/index.cssr.mjs +11 -0
- package/es/input-otp/src/styles/input-otp-rtl.cssr.d.ts +2 -0
- package/es/input-otp/src/styles/input-otp-rtl.cssr.mjs +5 -0
- package/es/input-otp/styles/dark.d.ts +3 -0
- package/es/input-otp/styles/dark.mjs +12 -0
- package/es/input-otp/styles/index.d.ts +4 -0
- package/es/input-otp/styles/index.mjs +3 -0
- package/es/input-otp/styles/light.d.ts +81 -0
- package/es/input-otp/styles/light.mjs +22 -0
- package/es/input-otp/styles/rtl.d.ts +2 -0
- package/es/input-otp/styles/rtl.mjs +5 -0
- package/es/list/index.d.ts +2 -1
- package/es/list/src/List.d.ts +7 -2
- package/es/list/src/List.mjs +1 -0
- package/es/list/src/ListItem.d.ts +7 -1
- package/es/list/src/ListItem.mjs +1 -0
- package/es/locales/common/kmKH.d.ts +3 -0
- package/es/locales/common/kmKH.mjs +124 -0
- package/es/locales/common/ugCN.d.ts +3 -0
- package/es/locales/common/ugCN.mjs +124 -0
- package/es/locales/date/kmKH.d.ts +3 -0
- package/es/locales/date/kmKH.mjs +6 -0
- package/es/locales/date/ugCN.d.ts +3 -0
- package/es/locales/date/ugCN.mjs +6 -0
- package/es/locales/index.d.ts +3 -0
- package/es/locales/index.mjs +3 -0
- package/es/mention/index.d.ts +1 -1
- package/es/mention/src/Mention.d.ts +7 -3
- package/es/mention/src/Mention.mjs +1 -0
- package/es/modal/index.d.ts +1 -1
- package/es/modal/src/BodyWrapper.d.ts +20 -5
- package/es/modal/src/BodyWrapper.mjs +55 -13
- package/es/modal/src/Modal.d.ts +19 -8
- package/es/modal/src/Modal.mjs +3 -0
- package/es/modal/src/ModalEnvironment.d.ts +4 -2
- package/es/modal/src/ModalProvider.mjs +0 -6
- package/es/modal/src/composables.d.ts +13 -1
- package/es/modal/src/composables.mjs +105 -1
- package/es/modal/src/interface.d.ts +6 -0
- package/es/modal/src/styles/index.cssr.mjs +5 -1
- package/es/page-header/index.d.ts +1 -1
- package/es/page-header/src/PageHeader.d.ts +12 -2
- package/es/page-header/src/PageHeader.mjs +1 -0
- package/es/pagination/index.d.ts +1 -1
- package/es/pagination/src/Pagination.d.ts +12 -3
- package/es/pagination/src/Pagination.mjs +3 -2
- package/es/pagination/src/interface.d.ts +1 -0
- package/es/popconfirm/index.d.ts +1 -1
- package/es/popconfirm/src/Popconfirm.d.ts +8 -2
- package/es/popconfirm/src/Popconfirm.mjs +2 -1
- package/es/popover/index.d.ts +1 -1
- package/es/popover/src/Popover.d.ts +8 -2
- package/es/popover/src/Popover.mjs +2 -5
- package/es/popselect/index.d.ts +1 -1
- package/es/popselect/src/Popselect.d.ts +8 -2
- package/es/popselect/src/Popselect.mjs +1 -0
- package/es/progress/src/Circle.d.ts +1 -1
- package/es/progress/src/MultipleCircle.d.ts +1 -1
- package/es/progress/src/Progress.d.ts +2 -2
- package/es/result/index.d.ts +1 -1
- package/es/result/src/Result.d.ts +7 -2
- package/es/result/src/Result.mjs +1 -0
- package/es/select/index.d.ts +1 -1
- package/es/select/src/Select.d.ts +10 -3
- package/es/select/src/Select.mjs +1 -0
- package/es/slider/index.d.ts +1 -1
- package/es/slider/src/Slider.d.ts +6 -2
- package/es/slider/src/Slider.mjs +1 -0
- package/es/spin/index.d.ts +1 -1
- package/es/spin/src/Spin.d.ts +7 -2
- package/es/spin/src/Spin.mjs +1 -0
- package/es/split/index.d.ts +1 -1
- package/es/split/src/Split.d.ts +8 -2
- package/es/split/src/Split.mjs +1 -0
- package/es/statistic/index.d.ts +1 -1
- package/es/statistic/src/Statistic.d.ts +8 -1
- package/es/statistic/src/Statistic.mjs +1 -0
- package/es/steps/index.d.ts +2 -2
- package/es/steps/src/Step.d.ts +8 -5
- package/es/steps/src/Step.mjs +1 -0
- package/es/steps/src/Steps.d.ts +8 -3
- package/es/steps/src/Steps.mjs +1 -0
- package/es/styles.d.ts +1 -0
- package/es/styles.mjs +1 -0
- package/es/switch/index.d.ts +1 -1
- package/es/switch/src/Switch.d.ts +10 -2
- package/es/switch/src/Switch.mjs +1 -0
- package/es/tabs/index.d.ts +2 -2
- package/es/tabs/src/TabPane.d.ts +8 -2
- package/es/tabs/src/TabPane.mjs +1 -0
- package/es/tabs/src/Tabs.d.ts +7 -2
- package/es/tabs/src/Tabs.mjs +1 -0
- package/es/tag/index.d.ts +1 -1
- package/es/tag/src/Tag.d.ts +7 -2
- package/es/tag/src/Tag.mjs +1 -0
- package/es/themes/dark.mjs +2 -1
- package/es/themes/light.mjs +2 -0
- package/es/thing/index.d.ts +1 -1
- package/es/thing/src/Thing.d.ts +11 -2
- package/es/thing/src/Thing.mjs +1 -0
- package/es/time-picker/index.d.ts +1 -1
- package/es/time-picker/src/TimePicker.d.ts +6 -2
- package/es/timeline/index.d.ts +1 -1
- package/es/timeline/src/TimelineItem.d.ts +8 -2
- package/es/timeline/src/TimelineItem.mjs +1 -0
- package/es/tooltip/index.d.ts +1 -1
- package/es/tooltip/src/Tooltip.d.ts +5 -2
- package/es/tooltip/src/Tooltip.mjs +1 -0
- package/es/transfer/src/Transfer.d.ts +1 -1
- package/es/tree/index.d.ts +1 -1
- package/es/tree/src/Tree.d.ts +27 -19
- package/es/tree/src/Tree.mjs +5 -4
- package/es/tree-select/index.d.ts +1 -1
- package/es/tree-select/src/TreeSelect.d.ts +22 -3
- package/es/tree-select/src/TreeSelect.mjs +2 -0
- package/es/typography/src/text.d.ts +1 -1
- package/es/upload/index.d.ts +2 -0
- package/es/upload/index.mjs +1 -0
- package/es/upload/src/Upload.d.ts +11 -8
- package/es/upload/src/Upload.mjs +2 -0
- package/es/upload/src/UploadFile.mjs +8 -1
- package/es/upload/src/UploadTrigger.d.ts +7 -2
- package/es/upload/src/UploadTrigger.mjs +1 -0
- package/es/upload/src/interface.d.ts +8 -0
- package/es/version.d.ts +1 -1
- package/es/version.mjs +1 -1
- package/es/watermark/src/Watermark.d.ts +1 -1
- package/lib/_internal/selection/src/Selection.d.ts +1 -1
- package/lib/_mixins/use-form-item.d.ts +1 -1
- package/lib/_utils/dom/download.d.ts +1 -0
- package/lib/_utils/dom/download.js +4 -0
- package/lib/_utils/index.d.ts +2 -2
- package/lib/_utils/index.js +4 -2
- package/lib/_utils/naive/index.d.ts +1 -0
- package/lib/_utils/naive/index.js +3 -1
- package/lib/_utils/naive/value.d.ts +1 -0
- package/lib/_utils/naive/value.js +18 -0
- package/lib/_utils/vue/get-first-slot-vnode.d.ts +1 -0
- package/lib/_utils/vue/get-first-slot-vnode.js +15 -0
- package/lib/_utils/vue/index.d.ts +2 -2
- package/lib/_utils/vue/index.js +3 -2
- package/lib/_utils/vue/resolve-slot.d.ts +1 -1
- package/lib/_utils/vue/resolve-slot.js +2 -2
- package/lib/alert/index.d.ts +1 -1
- package/lib/alert/src/Alert.d.ts +7 -2
- package/lib/alert/src/Alert.js +1 -0
- package/lib/auto-complete/index.d.ts +2 -2
- package/lib/auto-complete/src/AutoComplete.d.ts +10 -4
- package/lib/auto-complete/src/AutoComplete.js +2 -1
- package/lib/auto-complete/src/interface.d.ts +6 -0
- package/lib/avatar/index.d.ts +1 -1
- package/lib/avatar/src/Avatar.d.ts +7 -2
- package/lib/avatar/src/Avatar.js +1 -0
- package/lib/avatar-group/index.d.ts +2 -1
- package/lib/avatar-group/src/AvatarGroup.d.ts +8 -2
- package/lib/avatar-group/src/AvatarGroup.js +1 -0
- package/lib/avatar-group/src/interface.d.ts +8 -0
- package/lib/avatar-group/src/interface.js +2 -0
- package/lib/breadcrumb/index.d.ts +1 -1
- package/lib/breadcrumb/src/BreadcrumbItem.d.ts +6 -2
- package/lib/breadcrumb/src/BreadcrumbItem.js +1 -0
- package/lib/button/index.d.ts +1 -1
- package/lib/button/src/Button.d.ts +6 -2
- package/lib/button/src/Button.js +1 -0
- package/lib/calendar/src/Calendar.d.ts +7 -3
- package/lib/calendar/src/Calendar.js +2 -1
- package/lib/calendar/src/interface.d.ts +9 -0
- package/lib/card/index.d.ts +1 -1
- package/lib/card/src/Card.d.ts +10 -2
- package/lib/card/src/Card.js +1 -0
- package/lib/carousel/index.d.ts +2 -2
- package/lib/carousel/src/Carousel.d.ts +8 -3
- package/lib/carousel/src/Carousel.js +3 -2
- package/lib/carousel/src/interface.d.ts +12 -0
- package/lib/cascader/index.d.ts +1 -1
- package/lib/cascader/src/Cascader.d.ts +9 -3
- package/lib/cascader/src/Cascader.js +1 -0
- package/lib/collapse/index.d.ts +3 -2
- package/lib/collapse/src/Collapse.d.ts +10 -4
- package/lib/collapse/src/Collapse.js +1 -0
- package/lib/collapse/src/CollapseItem.d.ts +9 -4
- package/lib/collapse/src/CollapseItem.js +6 -9
- package/lib/collapse/src/interface.d.ts +12 -0
- package/lib/color-picker/index.d.ts +1 -1
- package/lib/color-picker/src/ColorPicker.d.ts +7 -2
- package/lib/color-picker/src/ColorPicker.js +3 -4
- package/lib/color-picker/src/ColorPickerTrigger.d.ts +2 -2
- package/lib/color-picker/src/ColorPickerTrigger.js +1 -0
- package/lib/color-picker/src/context.d.ts +3 -2
- package/lib/components.d.ts +1 -0
- package/lib/components.js +1 -0
- package/lib/config-provider/src/internal-interface.d.ts +2 -0
- package/lib/data-table/index.d.ts +1 -1
- package/lib/data-table/src/DataTable.d.ts +9 -8
- package/lib/data-table/src/DataTable.js +7 -6
- package/lib/data-table/src/TableParts/Body.d.ts +1 -3
- package/lib/data-table/src/interface.d.ts +7 -2
- package/lib/data-table/src/styles/index.cssr.js +1 -0
- package/lib/data-table/src/use-group-header.js +4 -3
- package/lib/date-picker/index.d.ts +1 -0
- package/lib/date-picker/src/DatePicker.d.ts +27 -5
- package/lib/date-picker/src/DatePicker.js +1 -0
- package/lib/date-picker/src/interface.d.ts +3 -2
- package/lib/date-picker/src/panel/date.d.ts +1 -3
- package/lib/date-picker/src/panel/date.js +15 -7
- package/lib/date-picker/src/panel/daterange.d.ts +1 -3
- package/lib/date-picker/src/panel/daterange.js +27 -11
- package/lib/date-picker/src/panel/datetime.d.ts +1 -3
- package/lib/date-picker/src/panel/datetime.js +16 -8
- package/lib/date-picker/src/panel/datetimerange.d.ts +1 -3
- package/lib/date-picker/src/panel/datetimerange.js +27 -11
- package/lib/date-picker/src/panel/month.d.ts +1 -3
- package/lib/date-picker/src/panel/month.js +6 -6
- package/lib/date-picker/src/panel/monthrange.d.ts +1 -3
- package/lib/date-picker/src/panel/monthrange.js +5 -3
- package/lib/date-picker/src/panel/panelHeader.d.ts +4 -12
- package/lib/date-picker/src/panel/use-calendar.d.ts +1 -3
- package/lib/date-picker/src/panel/use-dual-calendar.d.ts +1 -3
- package/lib/date-picker/src/props.d.ts +1 -1
- package/lib/descriptions/index.d.ts +2 -2
- package/lib/descriptions/src/Descriptions.d.ts +7 -3
- package/lib/descriptions/src/Descriptions.js +1 -0
- package/lib/descriptions/src/DescriptionsItem.d.ts +6 -2
- package/lib/descriptions/src/DescriptionsItem.js +1 -0
- package/lib/dialog/index.d.ts +1 -0
- package/lib/dialog/src/Dialog.d.ts +9 -2
- package/lib/dialog/src/Dialog.js +1 -0
- package/lib/dialog/src/DialogEnvironment.d.ts +5 -1
- package/lib/dialog/src/DialogEnvironment.js +3 -3
- package/lib/dialog/src/DialogProvider.d.ts +8 -2
- package/lib/drawer/index.d.ts +1 -1
- package/lib/drawer/src/Drawer.d.ts +2 -2
- package/lib/drawer/src/DrawerBodyWrapper.d.ts +1 -1
- package/lib/drawer/src/DrawerContent.d.ts +7 -2
- package/lib/drawer/src/DrawerContent.js +1 -0
- package/lib/dynamic-input/index.d.ts +2 -1
- package/lib/dynamic-input/src/DynamicInput.d.ts +8 -2
- package/lib/dynamic-input/src/DynamicInput.js +2 -2
- package/lib/dynamic-input/src/interface.d.ts +11 -0
- package/lib/dynamic-tags/index.d.ts +2 -2
- package/lib/dynamic-tags/src/DynamicTags.d.ts +8 -3
- package/lib/dynamic-tags/src/DynamicTags.js +1 -0
- package/lib/dynamic-tags/src/interface.d.ts +8 -0
- package/lib/ellipsis/index.d.ts +1 -1
- package/lib/ellipsis/src/Ellipsis.d.ts +6 -2
- package/lib/ellipsis/src/Ellipsis.js +1 -0
- package/lib/empty/index.d.ts +1 -1
- package/lib/empty/src/Empty.d.ts +7 -2
- package/lib/empty/src/Empty.js +1 -0
- package/lib/float-button/index.d.ts +1 -1
- package/lib/float-button/src/FloatButton.d.ts +7 -2
- package/lib/float-button/src/FloatButton.js +1 -0
- package/lib/form/index.d.ts +1 -0
- package/lib/form/src/FormItem.d.ts +1 -1
- package/lib/form/src/FormItemCol.d.ts +1 -1
- package/lib/form/src/FormItemGridItem.d.ts +1 -1
- package/lib/form/src/interface.d.ts +0 -1
- package/lib/form/src/public-types.d.ts +1 -0
- package/lib/form/src/public-types.js +2 -0
- package/lib/image/index.d.ts +1 -1
- package/lib/image/src/Image.d.ts +6 -2
- package/lib/image/src/Image.js +2 -2
- package/lib/input/index.d.ts +1 -1
- package/lib/input/src/Input.d.ts +14 -3
- package/lib/input/src/Input.js +9 -8
- package/lib/input/src/WordCount.js +1 -1
- package/lib/input-number/index.d.ts +1 -1
- package/lib/input-number/src/InputNumber.d.ts +9 -3
- package/lib/input-number/src/InputNumber.js +1 -0
- package/lib/input-otp/index.d.ts +3 -0
- package/lib/input-otp/index.js +9 -0
- package/lib/input-otp/src/InputOtp.d.ts +871 -0
- package/lib/input-otp/src/InputOtp.js +242 -0
- package/lib/input-otp/src/public-types.d.ts +24 -0
- package/lib/input-otp/src/public-types.js +2 -0
- package/lib/input-otp/src/styles/index.cssr.d.ts +2 -0
- package/lib/input-otp/src/styles/index.cssr.js +16 -0
- package/lib/input-otp/src/styles/input-otp-rtl.cssr.d.ts +2 -0
- package/lib/input-otp/src/styles/input-otp-rtl.cssr.js +10 -0
- package/lib/input-otp/styles/dark.d.ts +3 -0
- package/lib/input-otp/styles/dark.js +14 -0
- package/lib/input-otp/styles/index.d.ts +4 -0
- package/lib/input-otp/styles/index.js +12 -0
- package/lib/input-otp/styles/light.d.ts +81 -0
- package/lib/input-otp/styles/light.js +25 -0
- package/lib/input-otp/styles/rtl.d.ts +2 -0
- package/lib/input-otp/styles/rtl.js +11 -0
- package/lib/list/index.d.ts +2 -1
- package/lib/list/src/List.d.ts +7 -2
- package/lib/list/src/List.js +1 -0
- package/lib/list/src/ListItem.d.ts +7 -1
- package/lib/list/src/ListItem.js +1 -0
- package/lib/locales/common/kmKH.d.ts +3 -0
- package/lib/locales/common/kmKH.js +126 -0
- package/lib/locales/common/ugCN.d.ts +3 -0
- package/lib/locales/common/ugCN.js +126 -0
- package/lib/locales/date/kmKH.d.ts +3 -0
- package/lib/locales/date/kmKH.js +8 -0
- package/lib/locales/date/ugCN.d.ts +3 -0
- package/lib/locales/date/ugCN.js +8 -0
- package/lib/locales/index.d.ts +3 -0
- package/lib/locales/index.js +8 -2
- package/lib/mention/index.d.ts +1 -1
- package/lib/mention/src/Mention.d.ts +7 -3
- package/lib/mention/src/Mention.js +1 -0
- package/lib/modal/index.d.ts +1 -1
- package/lib/modal/src/BodyWrapper.d.ts +20 -5
- package/lib/modal/src/BodyWrapper.js +47 -14
- package/lib/modal/src/Modal.d.ts +19 -8
- package/lib/modal/src/Modal.js +3 -2
- package/lib/modal/src/ModalEnvironment.d.ts +4 -2
- package/lib/modal/src/ModalProvider.js +0 -6
- package/lib/modal/src/composables.d.ts +13 -1
- package/lib/modal/src/composables.js +100 -0
- package/lib/modal/src/interface.d.ts +6 -0
- package/lib/modal/src/styles/index.cssr.js +5 -1
- package/lib/page-header/index.d.ts +1 -1
- package/lib/page-header/src/PageHeader.d.ts +12 -2
- package/lib/page-header/src/PageHeader.js +1 -0
- package/lib/pagination/index.d.ts +1 -1
- package/lib/pagination/src/Pagination.d.ts +12 -3
- package/lib/pagination/src/Pagination.js +3 -2
- package/lib/pagination/src/interface.d.ts +1 -0
- package/lib/popconfirm/index.d.ts +1 -1
- package/lib/popconfirm/src/Popconfirm.d.ts +8 -2
- package/lib/popconfirm/src/Popconfirm.js +2 -1
- package/lib/popover/index.d.ts +1 -1
- package/lib/popover/src/Popover.d.ts +8 -2
- package/lib/popover/src/Popover.js +2 -6
- package/lib/popselect/index.d.ts +1 -1
- package/lib/popselect/src/Popselect.d.ts +8 -2
- package/lib/popselect/src/Popselect.js +1 -0
- package/lib/progress/src/Circle.d.ts +1 -1
- package/lib/progress/src/MultipleCircle.d.ts +1 -1
- package/lib/progress/src/Progress.d.ts +2 -2
- package/lib/result/index.d.ts +1 -1
- package/lib/result/src/Result.d.ts +7 -2
- package/lib/result/src/Result.js +1 -0
- package/lib/select/index.d.ts +1 -1
- package/lib/select/src/Select.d.ts +10 -3
- package/lib/select/src/Select.js +1 -0
- package/lib/slider/index.d.ts +1 -1
- package/lib/slider/src/Slider.d.ts +6 -2
- package/lib/slider/src/Slider.js +1 -0
- package/lib/spin/index.d.ts +1 -1
- package/lib/spin/src/Spin.d.ts +7 -2
- package/lib/spin/src/Spin.js +1 -0
- package/lib/split/index.d.ts +1 -1
- package/lib/split/src/Split.d.ts +8 -2
- package/lib/split/src/Split.js +1 -0
- package/lib/statistic/index.d.ts +1 -1
- package/lib/statistic/src/Statistic.d.ts +8 -1
- package/lib/statistic/src/Statistic.js +1 -0
- package/lib/steps/index.d.ts +2 -2
- package/lib/steps/src/Step.d.ts +8 -5
- package/lib/steps/src/Step.js +1 -0
- package/lib/steps/src/Steps.d.ts +8 -3
- package/lib/steps/src/Steps.js +1 -0
- package/lib/styles.d.ts +1 -0
- package/lib/styles.js +99 -96
- package/lib/switch/index.d.ts +1 -1
- package/lib/switch/src/Switch.d.ts +10 -2
- package/lib/switch/src/Switch.js +1 -0
- package/lib/tabs/index.d.ts +2 -2
- package/lib/tabs/src/TabPane.d.ts +8 -2
- package/lib/tabs/src/TabPane.js +1 -0
- package/lib/tabs/src/Tabs.d.ts +7 -2
- package/lib/tabs/src/Tabs.js +1 -0
- package/lib/tag/index.d.ts +1 -1
- package/lib/tag/src/Tag.d.ts +7 -2
- package/lib/tag/src/Tag.js +1 -0
- package/lib/themes/dark.js +1 -0
- package/lib/themes/light.js +92 -90
- package/lib/thing/index.d.ts +1 -1
- package/lib/thing/src/Thing.d.ts +11 -2
- package/lib/thing/src/Thing.js +1 -0
- package/lib/time-picker/index.d.ts +1 -1
- package/lib/time-picker/src/TimePicker.d.ts +6 -2
- package/lib/timeline/index.d.ts +1 -1
- package/lib/timeline/src/TimelineItem.d.ts +8 -2
- package/lib/timeline/src/TimelineItem.js +1 -0
- package/lib/tooltip/index.d.ts +1 -1
- package/lib/tooltip/src/Tooltip.d.ts +5 -2
- package/lib/tooltip/src/Tooltip.js +1 -0
- package/lib/transfer/src/Transfer.d.ts +1 -1
- package/lib/tree/index.d.ts +1 -1
- package/lib/tree/src/Tree.d.ts +27 -19
- package/lib/tree/src/Tree.js +6 -4
- package/lib/tree-select/index.d.ts +1 -1
- package/lib/tree-select/src/TreeSelect.d.ts +22 -3
- package/lib/tree-select/src/TreeSelect.js +2 -1
- package/lib/typography/src/text.d.ts +1 -1
- package/lib/upload/index.d.ts +2 -0
- package/lib/upload/index.js +3 -1
- package/lib/upload/src/Upload.d.ts +11 -8
- package/lib/upload/src/Upload.js +2 -1
- package/lib/upload/src/UploadFile.js +7 -2
- package/lib/upload/src/UploadTrigger.d.ts +7 -2
- package/lib/upload/src/UploadTrigger.js +1 -0
- package/lib/upload/src/interface.d.ts +8 -0
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/lib/watermark/src/Watermark.d.ts +1 -1
- package/package.json +1 -1
- package/volar.d.ts +3 -2
- package/web-types.json +142 -14
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ExtractPublicPropTypes, MaybeArray } from '../../_utils';
|
|
2
2
|
import type { OnUpdateValue } from './interface';
|
|
3
|
-
import { type CSSProperties, type PropType } from 'vue';
|
|
3
|
+
import { type CSSProperties, type PropType, type SlotsType, type VNode } from 'vue';
|
|
4
4
|
export declare const switchProps: {
|
|
5
5
|
readonly size: {
|
|
6
6
|
readonly type: PropType<"small" | "medium" | "large">;
|
|
@@ -141,6 +141,14 @@ export declare const switchProps: {
|
|
|
141
141
|
}, any>>>;
|
|
142
142
|
};
|
|
143
143
|
export type SwitchProps = ExtractPublicPropTypes<typeof switchProps>;
|
|
144
|
+
export interface SwitchSlots {
|
|
145
|
+
default?: () => VNode[];
|
|
146
|
+
checked?: () => VNode[];
|
|
147
|
+
'checked-icon'?: () => VNode[];
|
|
148
|
+
icon?: () => VNode[];
|
|
149
|
+
unchecked?: () => VNode[];
|
|
150
|
+
'unchecked-icon'?: () => VNode[];
|
|
151
|
+
}
|
|
144
152
|
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
145
153
|
readonly size: {
|
|
146
154
|
readonly type: PropType<"small" | "medium" | "large">;
|
|
@@ -463,5 +471,5 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
463
471
|
readonly checkedValue: string | number | boolean;
|
|
464
472
|
readonly uncheckedValue: string | number | boolean;
|
|
465
473
|
readonly rubberBand: boolean;
|
|
466
|
-
},
|
|
474
|
+
}, SlotsType<SwitchSlots>, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
467
475
|
export default _default;
|
package/lib/switch/src/Switch.js
CHANGED
package/lib/tabs/index.d.ts
CHANGED
|
@@ -2,6 +2,6 @@ export type { TabsInst } from './src/interface';
|
|
|
2
2
|
export { default as NTab, tabProps } from './src/Tab';
|
|
3
3
|
export type { TabProps } from './src/Tab';
|
|
4
4
|
export { default as NTabPane, tabPaneProps } from './src/TabPane';
|
|
5
|
-
export type { TabPaneProps } from './src/TabPane';
|
|
5
|
+
export type { TabPaneProps, TabPaneSlots } from './src/TabPane';
|
|
6
6
|
export { default as NTabs, tabsProps } from './src/Tabs';
|
|
7
|
-
export type { TabsProps } from './src/Tabs';
|
|
7
|
+
export type { TabsProps, TabsSlots } from './src/Tabs';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ExtractPublicPropTypes } from '../../_utils';
|
|
2
|
-
import { type HTMLAttributes, type PropType, type VNode, type VNodeChild } from 'vue';
|
|
2
|
+
import { type HTMLAttributes, type PropType, type SlotsType, type VNode, type VNodeChild } from 'vue';
|
|
3
3
|
export declare const tabPaneProps: {
|
|
4
4
|
readonly tab: PropType<string | number | VNode | (() => VNodeChild)>;
|
|
5
5
|
readonly name: {
|
|
@@ -20,6 +20,12 @@ export declare const tabPaneProps: {
|
|
|
20
20
|
readonly label: PropType<string | number | VNode | (() => VNodeChild)>;
|
|
21
21
|
};
|
|
22
22
|
export type TabPaneProps = ExtractPublicPropTypes<typeof tabPaneProps>;
|
|
23
|
+
export interface TabPaneSlots {
|
|
24
|
+
default?: () => VNode[];
|
|
25
|
+
tab?: () => VNode[];
|
|
26
|
+
prefix?: () => VNode[];
|
|
27
|
+
suffix?: () => VNode[];
|
|
28
|
+
}
|
|
23
29
|
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
24
30
|
readonly tab: PropType<string | number | VNode | (() => VNodeChild)>;
|
|
25
31
|
readonly name: {
|
|
@@ -64,5 +70,5 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
64
70
|
readonly disabled: boolean;
|
|
65
71
|
readonly closable: boolean | undefined;
|
|
66
72
|
readonly displayDirective: "show" | "if" | "show:lazy";
|
|
67
|
-
},
|
|
73
|
+
}, SlotsType<TabPaneSlots>, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
68
74
|
export default _default;
|
package/lib/tabs/src/TabPane.js
CHANGED
package/lib/tabs/src/Tabs.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ExtractPublicPropTypes, MaybeArray } from '../../_utils';
|
|
2
2
|
import type { Addable, OnBeforeLeave, OnClose, OnUpdateValue, TabsType } from './interface';
|
|
3
|
-
import { type ComponentPublicInstance, type CSSProperties, type ExtractPropTypes, nextTick, type PropType } from 'vue';
|
|
3
|
+
import { type ComponentPublicInstance, type CSSProperties, type ExtractPropTypes, nextTick, type PropType, type SlotsType, type VNode } from 'vue';
|
|
4
4
|
import { type VXScrollInst } from 'vueuc';
|
|
5
5
|
export declare const tabsProps: {
|
|
6
6
|
readonly value: PropType<string | number>;
|
|
@@ -321,6 +321,11 @@ export declare const tabsProps: {
|
|
|
321
321
|
}, any>>>;
|
|
322
322
|
};
|
|
323
323
|
export type TabsProps = ExtractPublicPropTypes<typeof tabsProps>;
|
|
324
|
+
export interface TabsSlots {
|
|
325
|
+
default?: () => VNode[];
|
|
326
|
+
prefix?: () => VNode[];
|
|
327
|
+
suffix?: () => VNode[];
|
|
328
|
+
}
|
|
324
329
|
declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
|
|
325
330
|
readonly value: PropType<string | number>;
|
|
326
331
|
readonly defaultValue: PropType<string | number>;
|
|
@@ -1105,5 +1110,5 @@ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
|
|
|
1105
1110
|
readonly closable: boolean;
|
|
1106
1111
|
readonly animated: boolean;
|
|
1107
1112
|
readonly tabsPadding: number;
|
|
1108
|
-
},
|
|
1113
|
+
}, SlotsType<TabsSlots>, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
1109
1114
|
export default _default;
|
package/lib/tabs/src/Tabs.js
CHANGED
|
@@ -36,6 +36,7 @@ exports.tabsProps = Object.assign(Object.assign({}, _mixins_1.useTheme.props), {
|
|
|
36
36
|
exports.default = (0, vue_1.defineComponent)({
|
|
37
37
|
name: 'Tabs',
|
|
38
38
|
props: exports.tabsProps,
|
|
39
|
+
slots: Object,
|
|
39
40
|
setup(props, { slots }) {
|
|
40
41
|
var _a, _b, _c, _d;
|
|
41
42
|
if (process.env.NODE_ENV !== 'production') {
|
package/lib/tag/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { default as NTag, tagProps } from './src/Tag';
|
|
2
|
-
export type { TagProps } from './src/Tag';
|
|
2
|
+
export type { TagProps, TagSlots } from './src/Tag';
|
package/lib/tag/src/Tag.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ExtractPublicPropTypes, MaybeArray } from '../../_utils';
|
|
2
|
-
import { type PropType, type Ref } from 'vue';
|
|
2
|
+
import { type PropType, type Ref, type SlotsType, type VNode } from 'vue';
|
|
3
3
|
export interface TagPublicMethods {
|
|
4
4
|
setTextContent: (textContent: string) => void;
|
|
5
5
|
}
|
|
@@ -314,6 +314,11 @@ interface TagInjection {
|
|
|
314
314
|
}
|
|
315
315
|
export declare const tagInjectionKey: import("vue").InjectionKey<TagInjection>;
|
|
316
316
|
export type TagProps = ExtractPublicPropTypes<typeof tagProps>;
|
|
317
|
+
export interface TagSlots {
|
|
318
|
+
default?: () => VNode[];
|
|
319
|
+
avatar?: () => VNode[];
|
|
320
|
+
icon?: () => VNode[];
|
|
321
|
+
}
|
|
317
322
|
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
318
323
|
bordered: {
|
|
319
324
|
type: PropType<boolean | undefined>;
|
|
@@ -977,5 +982,5 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
977
982
|
triggerClickOnClose: boolean;
|
|
978
983
|
internalCloseFocusable: boolean;
|
|
979
984
|
internalCloseIsButtonTag: boolean;
|
|
980
|
-
},
|
|
985
|
+
}, SlotsType<TagSlots>, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
981
986
|
export default _default;
|
package/lib/tag/src/Tag.js
CHANGED
|
@@ -31,6 +31,7 @@ exports.tagInjectionKey = (0, _utils_1.createInjectionKey)('n-tag');
|
|
|
31
31
|
exports.default = (0, vue_1.defineComponent)({
|
|
32
32
|
name: 'Tag',
|
|
33
33
|
props: exports.tagProps,
|
|
34
|
+
slots: Object,
|
|
34
35
|
setup(props) {
|
|
35
36
|
if (process.env.NODE_ENV !== 'production') {
|
|
36
37
|
(0, vue_1.watchEffect)(() => {
|
package/lib/themes/dark.js
CHANGED
|
@@ -132,6 +132,7 @@ exports.darkTheme = {
|
|
|
132
132
|
Image: styles_40.imageDark,
|
|
133
133
|
Input: styles_42.inputDark,
|
|
134
134
|
InputNumber: styles_41.inputNumberDark,
|
|
135
|
+
InputOtp: styles_73.inputOtpDark,
|
|
135
136
|
LegacyTransfer: styles_45.legacyTransferDark,
|
|
136
137
|
Layout: styles_43.layoutDark,
|
|
137
138
|
List: styles_46.listDark,
|
package/lib/themes/light.js
CHANGED
|
@@ -46,51 +46,52 @@ const styles_39 = require("../icon-wrapper/styles");
|
|
|
46
46
|
const styles_40 = require("../icon/styles");
|
|
47
47
|
const styles_41 = require("../image/styles");
|
|
48
48
|
const styles_42 = require("../input-number/styles");
|
|
49
|
-
const styles_43 = require("../input/styles");
|
|
50
|
-
const styles_44 = require("../
|
|
51
|
-
const styles_45 = require("../
|
|
52
|
-
const styles_46 = require("../legacy-
|
|
53
|
-
const styles_47 = require("../
|
|
54
|
-
const styles_48 = require("../
|
|
55
|
-
const styles_49 = require("../
|
|
56
|
-
const styles_50 = require("../
|
|
57
|
-
const styles_51 = require("../
|
|
58
|
-
const styles_52 = require("../
|
|
59
|
-
const styles_53 = require("../
|
|
60
|
-
const styles_54 = require("../
|
|
61
|
-
const styles_55 = require("../
|
|
62
|
-
const styles_56 = require("../
|
|
63
|
-
const styles_57 = require("../
|
|
64
|
-
const styles_58 = require("../
|
|
65
|
-
const styles_59 = require("../
|
|
66
|
-
const styles_60 = require("../
|
|
67
|
-
const styles_61 = require("../
|
|
68
|
-
const styles_62 = require("../
|
|
69
|
-
const styles_63 = require("../
|
|
70
|
-
const styles_64 = require("../
|
|
71
|
-
const styles_65 = require("../
|
|
72
|
-
const styles_66 = require("../
|
|
73
|
-
const styles_67 = require("../
|
|
74
|
-
const styles_68 = require("../
|
|
75
|
-
const styles_69 = require("../
|
|
76
|
-
const styles_70 = require("../
|
|
77
|
-
const styles_71 = require("../
|
|
78
|
-
const styles_72 = require("../
|
|
79
|
-
const styles_73 = require("../
|
|
80
|
-
const styles_74 = require("../
|
|
81
|
-
const styles_75 = require("../
|
|
82
|
-
const styles_76 = require("../
|
|
83
|
-
const styles_77 = require("../
|
|
84
|
-
const styles_78 = require("../
|
|
85
|
-
const styles_79 = require("../
|
|
86
|
-
const styles_80 = require("../
|
|
87
|
-
const styles_81 = require("../
|
|
88
|
-
const styles_82 = require("../
|
|
89
|
-
const styles_83 = require("../
|
|
90
|
-
const styles_84 = require("../tree/styles");
|
|
91
|
-
const styles_85 = require("../
|
|
92
|
-
const styles_86 = require("../
|
|
93
|
-
const styles_87 = require("../
|
|
49
|
+
const styles_43 = require("../input-otp/styles");
|
|
50
|
+
const styles_44 = require("../input/styles");
|
|
51
|
+
const styles_45 = require("../layout/styles");
|
|
52
|
+
const styles_46 = require("../legacy-grid/styles");
|
|
53
|
+
const styles_47 = require("../legacy-transfer/styles");
|
|
54
|
+
const styles_48 = require("../list/styles");
|
|
55
|
+
const styles_49 = require("../loading-bar/styles");
|
|
56
|
+
const styles_50 = require("../log/styles");
|
|
57
|
+
const styles_51 = require("../marquee/styles");
|
|
58
|
+
const styles_52 = require("../mention/styles");
|
|
59
|
+
const styles_53 = require("../menu/styles");
|
|
60
|
+
const styles_54 = require("../message/styles");
|
|
61
|
+
const styles_55 = require("../modal/styles");
|
|
62
|
+
const styles_56 = require("../notification/styles");
|
|
63
|
+
const styles_57 = require("../page-header/styles");
|
|
64
|
+
const styles_58 = require("../pagination/styles");
|
|
65
|
+
const styles_59 = require("../popconfirm/styles");
|
|
66
|
+
const styles_60 = require("../popover/styles");
|
|
67
|
+
const styles_61 = require("../popselect/styles");
|
|
68
|
+
const styles_62 = require("../progress/styles");
|
|
69
|
+
const styles_63 = require("../qr-code/styles");
|
|
70
|
+
const styles_64 = require("../radio/styles");
|
|
71
|
+
const styles_65 = require("../rate/styles");
|
|
72
|
+
const styles_66 = require("../result/styles");
|
|
73
|
+
const styles_67 = require("../select/styles");
|
|
74
|
+
const styles_68 = require("../skeleton/styles");
|
|
75
|
+
const styles_69 = require("../slider/styles");
|
|
76
|
+
const styles_70 = require("../space/styles");
|
|
77
|
+
const styles_71 = require("../spin/styles");
|
|
78
|
+
const styles_72 = require("../split/styles");
|
|
79
|
+
const styles_73 = require("../statistic/styles");
|
|
80
|
+
const styles_74 = require("../steps/styles");
|
|
81
|
+
const styles_75 = require("../switch/styles");
|
|
82
|
+
const styles_76 = require("../table/styles");
|
|
83
|
+
const styles_77 = require("../tabs/styles");
|
|
84
|
+
const styles_78 = require("../tag/styles");
|
|
85
|
+
const styles_79 = require("../thing/styles");
|
|
86
|
+
const styles_80 = require("../time-picker/styles");
|
|
87
|
+
const styles_81 = require("../timeline/styles");
|
|
88
|
+
const styles_82 = require("../tooltip/styles");
|
|
89
|
+
const styles_83 = require("../transfer/styles");
|
|
90
|
+
const styles_84 = require("../tree-select/styles");
|
|
91
|
+
const styles_85 = require("../tree/styles");
|
|
92
|
+
const styles_86 = require("../typography/styles");
|
|
93
|
+
const styles_87 = require("../upload/styles");
|
|
94
|
+
const styles_88 = require("../watermark/styles");
|
|
94
95
|
exports.lightTheme = {
|
|
95
96
|
name: 'light',
|
|
96
97
|
common: common_1.commonLight,
|
|
@@ -132,53 +133,54 @@ exports.lightTheme = {
|
|
|
132
133
|
Icon: styles_40.iconLight,
|
|
133
134
|
IconWrapper: styles_39.iconWrapperLight,
|
|
134
135
|
Image: styles_41.imageLight,
|
|
135
|
-
Input:
|
|
136
|
+
Input: styles_44.inputLight,
|
|
136
137
|
InputNumber: styles_42.inputNumberLight,
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
138
|
+
InputOtp: styles_43.inputOtpLight,
|
|
139
|
+
Layout: styles_45.layoutLight,
|
|
140
|
+
LegacyTransfer: styles_47.legacyTransferLight,
|
|
141
|
+
List: styles_48.listLight,
|
|
142
|
+
LoadingBar: styles_49.loadingBarLight,
|
|
143
|
+
Log: styles_50.logLight,
|
|
144
|
+
Menu: styles_53.menuLight,
|
|
145
|
+
Mention: styles_52.mentionLight,
|
|
146
|
+
Message: styles_54.messageLight,
|
|
147
|
+
Modal: styles_55.modalLight,
|
|
148
|
+
Notification: styles_56.notificationLight,
|
|
149
|
+
PageHeader: styles_57.pageHeaderLight,
|
|
150
|
+
Pagination: styles_58.paginationLight,
|
|
151
|
+
Popconfirm: styles_59.popconfirmLight,
|
|
152
|
+
Popover: styles_60.popoverLight,
|
|
153
|
+
Popselect: styles_61.popselectLight,
|
|
154
|
+
Progress: styles_62.progressLight,
|
|
155
|
+
QrCode: styles_63.qrcodeLight,
|
|
156
|
+
Radio: styles_64.radioLight,
|
|
157
|
+
Rate: styles_65.rateLight,
|
|
158
|
+
Row: styles_46.rowLight,
|
|
159
|
+
Result: styles_66.resultLight,
|
|
158
160
|
Scrollbar: styles_1.scrollbarLight,
|
|
159
|
-
Skeleton:
|
|
160
|
-
Select:
|
|
161
|
-
Slider:
|
|
162
|
-
Space:
|
|
163
|
-
Spin:
|
|
164
|
-
Statistic:
|
|
165
|
-
Steps:
|
|
166
|
-
Switch:
|
|
167
|
-
Table:
|
|
168
|
-
Tabs:
|
|
169
|
-
Tag:
|
|
170
|
-
Thing:
|
|
171
|
-
TimePicker:
|
|
172
|
-
Timeline:
|
|
173
|
-
Tooltip:
|
|
174
|
-
Transfer:
|
|
175
|
-
Tree:
|
|
176
|
-
TreeSelect:
|
|
177
|
-
Typography:
|
|
178
|
-
Upload:
|
|
179
|
-
Watermark:
|
|
180
|
-
Split:
|
|
161
|
+
Skeleton: styles_68.skeletonLight,
|
|
162
|
+
Select: styles_67.selectLight,
|
|
163
|
+
Slider: styles_69.sliderLight,
|
|
164
|
+
Space: styles_70.spaceLight,
|
|
165
|
+
Spin: styles_71.spinLight,
|
|
166
|
+
Statistic: styles_73.statisticLight,
|
|
167
|
+
Steps: styles_74.stepsLight,
|
|
168
|
+
Switch: styles_75.switchLight,
|
|
169
|
+
Table: styles_76.tableLight,
|
|
170
|
+
Tabs: styles_77.tabsLight,
|
|
171
|
+
Tag: styles_78.tagLight,
|
|
172
|
+
Thing: styles_79.thingLight,
|
|
173
|
+
TimePicker: styles_80.timePickerLight,
|
|
174
|
+
Timeline: styles_81.timelineLight,
|
|
175
|
+
Tooltip: styles_82.tooltipLight,
|
|
176
|
+
Transfer: styles_83.transferLight,
|
|
177
|
+
Tree: styles_85.treeLight,
|
|
178
|
+
TreeSelect: styles_84.treeSelectLight,
|
|
179
|
+
Typography: styles_86.typographyLight,
|
|
180
|
+
Upload: styles_87.uploadLight,
|
|
181
|
+
Watermark: styles_88.watermarkLight,
|
|
182
|
+
Split: styles_72.splitLight,
|
|
181
183
|
FloatButton: styles_36.floatButtonLight,
|
|
182
184
|
FloatButtonGroup: styles_35.floatButtonGroupLight,
|
|
183
|
-
Marquee:
|
|
185
|
+
Marquee: styles_51.marqueeLight
|
|
184
186
|
};
|
package/lib/thing/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { default as NThing, thingProps } from './src/Thing';
|
|
2
|
-
export type { ThingProps } from './src/Thing';
|
|
2
|
+
export type { ThingProps, ThingSlots } from './src/Thing';
|
package/lib/thing/src/Thing.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ExtractPublicPropTypes } from '../../_utils';
|
|
2
|
-
import { type CSSProperties, type PropType } from 'vue';
|
|
2
|
+
import { type CSSProperties, type PropType, type SlotsType, type VNode } from 'vue';
|
|
3
3
|
export declare const thingProps: {
|
|
4
4
|
title: StringConstructor;
|
|
5
5
|
titleExtra: StringConstructor;
|
|
@@ -30,6 +30,15 @@ export declare const thingProps: {
|
|
|
30
30
|
}, any>>>;
|
|
31
31
|
};
|
|
32
32
|
export type ThingProps = ExtractPublicPropTypes<typeof thingProps>;
|
|
33
|
+
export interface ThingSlots {
|
|
34
|
+
action?: () => VNode[];
|
|
35
|
+
avatar?: () => VNode[];
|
|
36
|
+
default?: () => VNode[];
|
|
37
|
+
description?: () => VNode[];
|
|
38
|
+
footer?: () => VNode[];
|
|
39
|
+
'header-extra'?: () => VNode[];
|
|
40
|
+
header?: () => VNode[];
|
|
41
|
+
}
|
|
33
42
|
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
34
43
|
title: StringConstructor;
|
|
35
44
|
titleExtra: StringConstructor;
|
|
@@ -88,5 +97,5 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
88
97
|
}, any>>>;
|
|
89
98
|
}>> & Readonly<{}>, {
|
|
90
99
|
contentIndented: boolean;
|
|
91
|
-
},
|
|
100
|
+
}, SlotsType<ThingSlots>, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
92
101
|
export default _default;
|
package/lib/thing/src/Thing.js
CHANGED
|
@@ -12,6 +12,7 @@ exports.thingProps = Object.assign(Object.assign({}, _mixins_1.useTheme.props),
|
|
|
12
12
|
exports.default = (0, vue_1.defineComponent)({
|
|
13
13
|
name: 'Thing',
|
|
14
14
|
props: exports.thingProps,
|
|
15
|
+
slots: Object,
|
|
15
16
|
setup(props, { slots }) {
|
|
16
17
|
const { mergedClsPrefixRef, inlineThemeDisabled, mergedRtlRef } = (0, _mixins_1.useConfig)(props);
|
|
17
18
|
const themeRef = (0, _mixins_1.useTheme)('Thing', '-thing', index_cssr_1.default, styles_1.thingLight, props, mergedClsPrefixRef);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { ExtractPublicPropTypes, MaybeArray } from '../../_utils';
|
|
2
|
-
import type { FormValidationStatus } from '../../form/src/
|
|
2
|
+
import type { FormValidationStatus } from '../../form/src/public-types';
|
|
3
3
|
import type { IsHourDisabled, IsMinuteDisabled, IsSecondDisabled, ItemValue, OnUpdateFormattedValue, OnUpdateValue, PanelRef, Size } from './interface';
|
|
4
|
-
import { type PropType } from 'vue';
|
|
4
|
+
import { type PropType, type VNode } from 'vue';
|
|
5
5
|
import { type FollowerPlacement } from 'vueuc';
|
|
6
6
|
export declare const timePickerProps: {
|
|
7
7
|
to: {
|
|
@@ -968,6 +968,10 @@ export declare const timePickerProps: {
|
|
|
968
968
|
}>>>;
|
|
969
969
|
};
|
|
970
970
|
export type TimePickerProps = ExtractPublicPropTypes<typeof timePickerProps>;
|
|
971
|
+
export interface TimePickerSlots {
|
|
972
|
+
default?: () => VNode[];
|
|
973
|
+
icon?: () => VNode[];
|
|
974
|
+
}
|
|
971
975
|
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
972
976
|
to: {
|
|
973
977
|
type: PropType<HTMLElement | string | boolean>;
|
package/lib/timeline/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { default as NTimeline, timelineProps } from './src/Timeline';
|
|
2
2
|
export type { TimelineProps } from './src/Timeline';
|
|
3
3
|
export { default as NTimelineItem, timelineItemProps } from './src/TimelineItem';
|
|
4
|
-
export type { TimelineItemProps } from './src/TimelineItem';
|
|
4
|
+
export type { TimelineItemProps, TimelineItemSlots } from './src/TimelineItem';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ExtractPublicPropTypes } from '../../_utils';
|
|
2
|
-
import { type PropType } from 'vue';
|
|
2
|
+
import { type PropType, type SlotsType, type VNode } from 'vue';
|
|
3
3
|
export declare const timelineItemProps: {
|
|
4
4
|
time: PropType<string | number>;
|
|
5
5
|
title: StringConstructor;
|
|
@@ -15,6 +15,12 @@ export declare const timelineItemProps: {
|
|
|
15
15
|
};
|
|
16
16
|
};
|
|
17
17
|
export type TimelineItemProps = ExtractPublicPropTypes<typeof timelineItemProps>;
|
|
18
|
+
export interface TimelineItemSlots {
|
|
19
|
+
default?: () => VNode[];
|
|
20
|
+
icon?: () => VNode[];
|
|
21
|
+
footer?: () => VNode[];
|
|
22
|
+
header?: () => VNode[];
|
|
23
|
+
}
|
|
18
24
|
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
19
25
|
time: PropType<string | number>;
|
|
20
26
|
title: StringConstructor;
|
|
@@ -62,5 +68,5 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
62
68
|
}>> & Readonly<{}>, {
|
|
63
69
|
type: "error" | "default" | "info" | "success" | "warning";
|
|
64
70
|
lineType: "default" | "dashed";
|
|
65
|
-
},
|
|
71
|
+
}, SlotsType<TimelineItemSlots>, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
66
72
|
export default _default;
|
|
@@ -22,6 +22,7 @@ exports.timelineItemProps = {
|
|
|
22
22
|
exports.default = (0, vue_1.defineComponent)({
|
|
23
23
|
name: 'TimelineItem',
|
|
24
24
|
props: exports.timelineItemProps,
|
|
25
|
+
slots: Object,
|
|
25
26
|
setup(props) {
|
|
26
27
|
const NTimeline = (0, vue_1.inject)(Timeline_1.timelineInjectionKey);
|
|
27
28
|
if (!NTimeline) {
|
package/lib/tooltip/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { default as NTooltip, tooltipProps } from './src/Tooltip';
|
|
2
|
-
export type { TooltipInst, TooltipProps } from './src/Tooltip';
|
|
2
|
+
export type { TooltipInst, TooltipProps, TooltipSlots } from './src/Tooltip';
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { ExtractPublicPropTypes } from '../../_utils';
|
|
2
|
-
import type { PopoverInst } from '../../popover';
|
|
2
|
+
import type { PopoverInst, PopoverSlots } from '../../popover';
|
|
3
|
+
import { type SlotsType } from 'vue';
|
|
3
4
|
export type TooltipInst = PopoverInst;
|
|
4
5
|
export declare const tooltipProps: {
|
|
5
6
|
theme: import("vue").PropType<import("../../_mixins").Theme<"Tooltip", {
|
|
@@ -160,6 +161,8 @@ export declare const tooltipProps: {
|
|
|
160
161
|
maxWidth: NumberConstructor;
|
|
161
162
|
};
|
|
162
163
|
export type TooltipProps = ExtractPublicPropTypes<typeof tooltipProps>;
|
|
164
|
+
export interface TooltipSlots extends PopoverSlots {
|
|
165
|
+
}
|
|
163
166
|
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
164
167
|
theme: import("vue").PropType<import("../../_mixins").Theme<"Tooltip", {
|
|
165
168
|
borderRadius: string;
|
|
@@ -549,5 +552,5 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
549
552
|
internalInheritedEventHandlers: import("../../popover/src/Popover").TriggerEventHandlers[];
|
|
550
553
|
internalExtraClass: string[];
|
|
551
554
|
arrow: boolean | undefined;
|
|
552
|
-
},
|
|
555
|
+
}, SlotsType<TooltipSlots>, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
553
556
|
export default _default;
|
|
@@ -11,6 +11,7 @@ exports.tooltipProps = Object.assign(Object.assign({}, Popover_1.popoverBaseProp
|
|
|
11
11
|
exports.default = (0, vue_1.defineComponent)({
|
|
12
12
|
name: 'Tooltip',
|
|
13
13
|
props: exports.tooltipProps,
|
|
14
|
+
slots: Object,
|
|
14
15
|
__popover__: true,
|
|
15
16
|
setup(props) {
|
|
16
17
|
const { mergedClsPrefixRef } = (0, _mixins_1.useConfig)(props);
|
|
@@ -3825,8 +3825,8 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
3825
3825
|
readonly virtualScroll: boolean;
|
|
3826
3826
|
readonly filterable: boolean;
|
|
3827
3827
|
readonly defaultValue: OptionValue[] | null;
|
|
3828
|
-
readonly showSelected: boolean;
|
|
3829
3828
|
readonly sourceFilterable: boolean;
|
|
3830
3829
|
readonly targetFilterable: boolean;
|
|
3830
|
+
readonly showSelected: boolean;
|
|
3831
3831
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
3832
3832
|
export default _default;
|
package/lib/tree/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export type { TreeDragInfo, TreeDropInfo, TreeInst, TreeOption, TreeOverrideNodeClickBehavior, TreeOverrideNodeClickBehaviorReturn } from './src/interface';
|
|
2
2
|
export { default as NTree, treeProps } from './src/Tree';
|
|
3
|
-
export type { TreeProps } from './src/Tree';
|
|
3
|
+
export type { TreeProps, TreeSlots } from './src/Tree';
|
|
4
4
|
export { treeGetClickTarget } from './src/utils';
|