naive-ui 2.22.0 → 2.24.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.md +1 -1
- package/README.zh-CN.md +1 -1
- package/es/_internal/clear/src/styles/index.cssr.js +10 -10
- package/es/_internal/close/src/styles/index.cssr.js +9 -10
- package/es/_internal/icons/Close.js +1 -1
- package/es/_internal/icons/Switcher.js +2 -3
- package/es/_internal/scrollbar/src/ScrollBar.d.ts +6 -17
- package/es/_internal/scrollbar/src/ScrollBar.js +14 -16
- package/es/_internal/scrollbar/src/styles/index.cssr.js +15 -15
- package/es/_internal/select-menu/src/SelectMenu.d.ts +21 -21
- package/es/_internal/select-menu/src/SelectMenu.js +21 -21
- package/es/_internal/select-menu/src/styles/index.cssr.js +35 -35
- package/es/_internal/select-menu/styles/_common.js +1 -1
- package/es/_internal/selection/src/Selection.d.ts +44 -44
- package/es/_internal/selection/src/Selection.js +44 -44
- package/es/_internal/selection/src/styles/index.cssr.js +79 -79
- package/es/_internal/selection/styles/_common.js +1 -1
- package/es/_mixins/common.d.ts +1 -0
- package/es/_mixins/common.js +1 -0
- package/es/_mixins/index.d.ts +1 -0
- package/es/_mixins/index.js +1 -0
- package/es/_mixins/use-css-vars-class.d.ts +2 -0
- package/es/_mixins/use-css-vars-class.js +22 -0
- package/es/_mixins/use-rtl.js +2 -0
- package/es/_mixins/use-style.js +3 -0
- package/es/_mixins/use-theme.js +3 -0
- package/es/_utils/composable/use-houdini.js +12 -9
- package/es/alert/src/Alert.d.ts +2 -2
- package/es/auto-complete/src/AutoComplete.d.ts +14 -14
- package/es/auto-complete/src/AutoComplete.js +15 -17
- package/es/auto-complete/src/styles/index.cssr.js +4 -4
- package/es/avatar/index.d.ts +2 -0
- package/es/avatar/index.js +1 -0
- package/es/avatar/src/Avatar.d.ts +72 -33
- package/es/avatar/src/Avatar.js +43 -15
- package/es/avatar/src/AvatarGroup.d.ts +52 -0
- package/es/avatar/src/AvatarGroup.js +61 -0
- package/es/avatar/src/interface.d.ts +2 -0
- package/es/avatar/src/interface.js +1 -0
- package/es/avatar/src/styles/avatar-group.cssr.d.ts +2 -0
- package/es/avatar/src/styles/avatar-group.cssr.js +14 -0
- package/es/avatar/src/styles/index.cssr.js +20 -15
- package/es/avatar/styles/light.d.ts +3 -0
- package/es/avatar/styles/light.js +6 -2
- package/es/back-top/src/BackTop.d.ts +16 -16
- package/es/back-top/src/BackTop.js +13 -13
- package/es/back-top/src/styles/index.cssr.js +29 -29
- package/es/badge/src/Badge.d.ts +6 -6
- package/es/badge/src/Badge.js +6 -6
- package/es/badge/src/styles/index.cssr.js +15 -15
- package/es/breadcrumb/src/Breadcrumb.d.ts +8 -8
- package/es/breadcrumb/src/Breadcrumb.js +8 -8
- package/es/breadcrumb/src/styles/index.cssr.js +23 -23
- package/es/button/src/Button.d.ts +10 -5
- package/es/button/src/Button.js +21 -14
- package/es/calendar/src/Calendar.d.ts +26 -22
- package/es/calendar/src/Calendar.js +37 -25
- package/es/calendar/src/interface.d.ts +4 -0
- package/es/calendar/src/styles/index.cssr.js +57 -57
- package/es/card/src/Card.d.ts +28 -23
- package/es/card/src/Card.js +24 -23
- package/es/card/src/styles/index.cssr.js +71 -69
- package/es/carousel/index.d.ts +1 -0
- package/es/carousel/index.js +1 -0
- package/es/carousel/src/Carousel.d.ts +239 -23
- package/es/carousel/src/Carousel.js +688 -234
- package/es/carousel/src/CarouselArrow.d.ts +9 -0
- package/es/carousel/src/CarouselArrow.js +43 -0
- package/es/carousel/src/CarouselDots.d.ts +66 -0
- package/es/carousel/src/CarouselDots.js +118 -0
- package/es/carousel/src/CarouselItem.d.ts +11 -0
- package/es/carousel/src/CarouselItem.js +72 -0
- package/es/carousel/src/interface.d.ts +28 -0
- package/es/carousel/src/interface.js +2 -0
- package/es/carousel/src/styles/index.cssr.js +150 -47
- package/es/carousel/src/utils.d.ts +12 -0
- package/es/carousel/src/utils.js +58 -0
- package/es/carousel/styles/light.d.ts +3 -0
- package/es/carousel/styles/light.js +5 -2
- package/es/cascader/src/Cascader.d.ts +31 -19
- package/es/cascader/src/Cascader.js +31 -20
- package/es/cascader/src/CascaderMenu.js +1 -1
- package/es/cascader/src/CascaderOption.d.ts +1 -0
- package/es/cascader/src/CascaderOption.js +7 -4
- package/es/cascader/src/interface.d.ts +2 -1
- package/es/cascader/src/styles/index.cssr.js +44 -44
- package/es/cascader/styles/light.js +1 -1
- package/es/checkbox/src/Checkbox.d.ts +23 -23
- package/es/checkbox/src/Checkbox.js +23 -23
- package/es/checkbox/src/styles/index.cssr.js +59 -59
- package/es/code/src/Code.d.ts +19 -14
- package/es/code/src/Code.js +32 -20
- package/es/code/src/styles/index.cssr.js +30 -30
- package/es/collapse/src/Collapse.d.ts +8 -8
- package/es/collapse/src/Collapse.js +8 -8
- package/es/collapse/src/styles/index.cssr.js +24 -24
- package/es/collapse-transition/src/CollapseTransition.d.ts +1 -1
- package/es/collapse-transition/src/CollapseTransition.js +1 -1
- package/es/color-picker/src/ColorInputUnit.js +2 -2
- package/es/color-picker/src/ColorPicker.d.ts +23 -15
- package/es/color-picker/src/ColorPicker.js +29 -20
- package/es/color-picker/src/ColorPickerTrigger.d.ts +1 -1
- package/es/color-picker/src/ColorPickerTrigger.js +23 -17
- package/es/color-picker/src/interface.d.ts +2 -0
- package/es/color-picker/src/styles/index.cssr.js +29 -28
- package/es/components.d.ts +2 -0
- package/es/components.js +2 -0
- package/es/config-provider/src/ConfigProvider.d.ts +27 -0
- package/es/countdown/index.d.ts +2 -0
- package/es/countdown/index.js +1 -0
- package/es/countdown/src/Countdown.d.ts +72 -0
- package/es/countdown/src/Countdown.js +126 -0
- package/es/countdown/src/utils.d.ts +0 -0
- package/es/countdown/src/utils.js +1 -0
- package/es/data-table/src/DataTable.d.ts +49 -94
- package/es/data-table/src/DataTable.js +65 -91
- package/es/data-table/src/TableParts/Body.js +7 -5
- package/es/data-table/src/TableParts/Cell.js +2 -3
- package/es/data-table/src/TableParts/Header.js +1 -1
- package/es/data-table/src/interface.d.ts +1 -1
- package/es/data-table/src/styles/index.cssr.js +133 -130
- package/es/data-table/src/utils.js +4 -1
- package/es/date-picker/src/DatePicker.d.ts +71 -67
- package/es/date-picker/src/DatePicker.js +144 -94
- package/es/date-picker/src/interface.d.ts +17 -2
- package/es/date-picker/src/panel/date.d.ts +4 -9
- package/es/date-picker/src/panel/daterange.d.ts +4 -9
- package/es/date-picker/src/panel/datetime.d.ts +4 -9
- package/es/date-picker/src/panel/datetimerange.d.ts +4 -9
- package/es/date-picker/src/panel/month.d.ts +4 -9
- package/es/date-picker/src/panel/use-calendar.d.ts +2 -5
- package/es/date-picker/src/panel/use-calendar.js +8 -7
- package/es/date-picker/src/panel/use-dual-calendar.d.ts +2 -5
- package/es/date-picker/src/panel/use-dual-calendar.js +12 -13
- package/es/date-picker/src/panel/use-panel-common.d.ts +2 -5
- package/es/date-picker/src/panel/use-panel-common.js +2 -6
- package/es/date-picker/src/styles/index.cssr.js +115 -115
- package/es/descriptions/src/Descriptions.d.ts +18 -18
- package/es/descriptions/src/Descriptions.js +19 -20
- package/es/descriptions/src/styles/index.cssr.js +61 -61
- package/es/dialog/src/Dialog.d.ts +24 -24
- package/es/dialog/src/Dialog.js +22 -22
- package/es/dialog/src/DialogEnvironment.d.ts +2 -2
- package/es/dialog/src/DialogProvider.d.ts +1 -1
- package/es/dialog/src/styles/index.cssr.js +45 -45
- package/es/divider/src/Divider.d.ts +4 -4
- package/es/divider/src/Divider.js +4 -4
- package/es/divider/src/styles/index.cssr.js +12 -12
- package/es/drawer/src/Drawer.d.ts +37 -77
- package/es/drawer/src/Drawer.js +51 -68
- package/es/drawer/src/DrawerBodyWrapper.js +21 -13
- package/es/drawer/src/DrawerContent.js +6 -6
- package/es/drawer/src/styles/index.cssr.js +41 -40
- package/es/dropdown/src/Dropdown.d.ts +5 -0
- package/es/dropdown/src/Dropdown.js +34 -32
- package/es/dropdown/src/styles/index.cssr.js +59 -59
- package/es/dynamic-tags/src/DynamicTags.d.ts +1 -1
- package/es/dynamic-tags/src/DynamicTags.js +1 -1
- package/es/dynamic-tags/src/styles/index.cssr.js +1 -1
- package/es/empty/src/Empty.d.ts +19 -15
- package/es/empty/src/Empty.js +12 -12
- package/es/empty/src/styles/index.cssr.js +20 -19
- package/es/form/src/Feedbacks.js +4 -1
- package/es/form/src/Form.d.ts +34 -34
- package/es/form/src/Form.js +17 -8
- package/es/form/src/FormItem.d.ts +54 -49
- package/es/form/src/FormItem.js +39 -27
- package/es/form/src/FormItemCol.d.ts +41 -31
- package/es/form/src/FormItemCol.js +1 -0
- package/es/form/src/FormItemGridItem.d.ts +41 -31
- package/es/form/src/FormItemGridItem.js +1 -0
- package/es/form/src/FormItemRow.d.ts +40 -30
- package/es/form/src/FormItemRow.js +1 -0
- package/es/form/src/interface.d.ts +6 -2
- package/es/form/src/styles/form-item.cssr.js +39 -37
- package/es/form/src/utils.d.ts +2 -2
- package/es/form/src/utils.js +29 -18
- package/es/form/styles/_common.d.ts +0 -3
- package/es/form/styles/_common.js +0 -3
- package/es/form/styles/light.d.ts +3 -3
- package/es/form/styles/light.js +2 -2
- package/es/gradient-text/src/GradientText.d.ts +5 -5
- package/es/gradient-text/src/GradientText.js +5 -5
- package/es/gradient-text/src/styles/index.cssr.js +9 -9
- package/es/icon/src/Icon.d.ts +6 -6
- package/es/icon/src/Icon.js +4 -4
- package/es/icon/src/styles/index.cssr.js +7 -7
- package/es/image/src/Image.d.ts +279 -10
- package/es/image/src/Image.js +4 -17
- package/es/image/src/ImageGroup.d.ts +272 -2
- package/es/image/src/ImageGroup.js +5 -8
- package/es/image/src/ImagePreview.d.ts +195 -7
- package/es/image/src/ImagePreview.js +62 -42
- package/es/image/src/interface.d.ts +94 -0
- package/es/image/src/interface.js +2 -1
- package/es/image/src/styles/index.cssr.js +11 -7
- package/es/image/styles/dark.js +8 -1
- package/es/image/styles/light.d.ts +32 -3
- package/es/image/styles/light.js +8 -1
- package/es/input/src/Input.d.ts +52 -47
- package/es/input/src/Input.js +54 -49
- package/es/input/src/InputGroupLabel.d.ts +8 -8
- package/es/input/src/InputGroupLabel.js +8 -8
- package/es/input/src/styles/input-group-label.cssr.js +18 -18
- package/es/input/src/styles/input.cssr.js +108 -109
- package/es/input-number/src/InputNumber.d.ts +11 -0
- package/es/input-number/src/InputNumber.js +5 -2
- package/es/input-number/src/utils.js +2 -1
- package/es/layout/src/Layout.d.ts +6 -6
- package/es/layout/src/Layout.js +3 -3
- package/es/layout/src/LayoutContent.d.ts +3 -3
- package/es/layout/src/LayoutFooter.js +7 -7
- package/es/layout/src/LayoutHeader.js +7 -7
- package/es/layout/src/LayoutSider.js +13 -13
- package/es/layout/src/styles/layout-footer.cssr.js +11 -11
- package/es/layout/src/styles/layout-header.cssr.js +11 -11
- package/es/layout/src/styles/layout-sider.cssr.js +32 -32
- package/es/layout/src/styles/layout.cssr.js +8 -8
- package/es/list/src/List.d.ts +10 -10
- package/es/list/src/List.js +10 -10
- package/es/list/src/styles/index.cssr.js +30 -30
- package/es/loading-bar/src/LoadingBar.d.ts +3 -3
- package/es/loading-bar/src/LoadingBar.js +3 -3
- package/es/loading-bar/src/styles/index.cssr.js +7 -7
- package/es/locales/common/deDE.js +10 -0
- package/es/locales/common/enUS.d.ts +9 -0
- package/es/locales/common/enUS.js +10 -0
- package/es/locales/common/frFR.js +17 -8
- package/es/locales/common/idID.js +10 -0
- package/es/locales/common/jaJP.js +10 -0
- package/es/locales/common/nbNO.js +10 -0
- package/es/locales/common/ruRU.js +10 -0
- package/es/locales/common/ukUA.js +10 -0
- package/es/locales/common/zhCN.js +9 -0
- package/es/locales/common/zhTW.js +10 -0
- package/es/log/src/Log.d.ts +6 -6
- package/es/log/src/Log.js +6 -6
- package/es/log/src/styles/index.cssr.js +16 -18
- package/es/mention/src/Mention.d.ts +1 -1
- package/es/mention/src/Mention.js +1 -1
- package/es/mention/src/styles/index.cssr.js +2 -2
- package/es/mention/src/utils.js +0 -1
- package/es/menu/src/Menu.js +43 -40
- package/es/menu/src/styles/index.cssr.js +71 -71
- package/es/message/index.d.ts +2 -1
- package/es/message/src/Message.d.ts +213 -41
- package/es/message/src/Message.js +35 -33
- package/es/message/src/MessageEnvironment.d.ts +3 -3
- package/es/message/src/MessageProvider.d.ts +5 -10
- package/es/message/src/MessageProvider.js +1 -1
- package/es/message/src/message-props.d.ts +5 -2
- package/es/message/src/styles/index.cssr.js +48 -48
- package/es/message/src/types.d.ts +15 -0
- package/es/message/src/types.js +1 -0
- package/es/modal/src/BodyWrapper.d.ts +11 -2
- package/es/modal/src/BodyWrapper.js +23 -17
- package/es/modal/src/Modal.d.ts +19 -8
- package/es/modal/src/Modal.js +15 -8
- package/es/modal/src/presetProps.d.ts +2 -1
- package/es/modal/src/styles/index.cssr.js +8 -8
- package/es/notification/src/Notification.d.ts +24 -24
- package/es/notification/src/Notification.js +24 -24
- package/es/notification/src/styles/index.cssr.js +65 -65
- package/es/number-animation/index.d.ts +3 -0
- package/es/number-animation/index.js +1 -0
- package/es/number-animation/src/NumberAnimation.d.ts +79 -0
- package/es/number-animation/src/NumberAnimation.js +81 -0
- package/es/number-animation/src/utils.d.ts +8 -0
- package/es/number-animation/src/utils.js +17 -0
- package/es/page-header/index.d.ts +1 -1
- package/es/page-header/src/PageHeader.d.ts +11 -11
- package/es/page-header/src/PageHeader.js +10 -10
- package/es/page-header/src/styles/index.cssr.js +23 -23
- package/es/pagination/index.d.ts +1 -1
- package/es/pagination/src/Pagination.d.ts +50 -45
- package/es/pagination/src/Pagination.js +118 -64
- package/es/pagination/src/interface.d.ts +10 -1
- package/es/pagination/src/styles/index.cssr.js +81 -81
- package/es/pagination/src/utils.d.ts +2 -2
- package/es/pagination/src/utils.js +2 -4
- package/es/popconfirm/src/Popconfirm.d.ts +7 -2
- package/es/popconfirm/src/PopconfirmPanel.d.ts +4 -4
- package/es/popconfirm/src/PopconfirmPanel.js +4 -4
- package/es/popconfirm/src/styles/index.cssr.js +8 -8
- package/es/popover/src/Popover.d.ts +7 -0
- package/es/popover/src/Popover.js +24 -1
- package/es/popover/src/PopoverBody.d.ts +5 -0
- package/es/popover/src/PopoverBody.js +43 -61
- package/es/popover/src/styles/index.cssr.js +63 -62
- package/es/popselect/src/Popselect.d.ts +62 -73
- package/es/popselect/src/Popselect.js +2 -2
- package/es/progress/src/Circle.d.ts +7 -0
- package/es/progress/src/Circle.js +8 -1
- package/es/progress/src/Line.d.ts +2 -2
- package/es/progress/src/Line.js +4 -1
- package/es/progress/src/Progress.d.ts +20 -16
- package/es/progress/src/Progress.js +16 -16
- package/es/progress/src/styles/index.cssr.js +68 -68
- package/es/radio/src/Radio.d.ts +15 -15
- package/es/radio/src/Radio.js +15 -15
- package/es/radio/src/RadioGroup.d.ts +14 -14
- package/es/radio/src/RadioGroup.js +14 -14
- package/es/radio/src/styles/radio-group.cssr.js +43 -43
- package/es/radio/src/styles/radio.cssr.js +40 -37
- package/es/rate/src/Rate.d.ts +4 -4
- package/es/rate/src/Rate.js +4 -4
- package/es/rate/src/styles/index.cssr.js +11 -11
- package/es/result/src/Result.d.ts +9 -9
- package/es/result/src/Result.js +18 -19
- package/es/result/src/styles/index.cssr.js +26 -26
- package/es/select/src/Select.d.ts +9 -28
- package/es/select/src/Select.js +17 -25
- package/es/select/src/styles/index.cssr.js +2 -2
- package/es/skeleton/src/Skeleton.d.ts +3 -3
- package/es/skeleton/src/Skeleton.js +3 -3
- package/es/skeleton/src/styles/index.cssr.js +12 -12
- package/es/slider/src/Slider.d.ts +31 -33
- package/es/slider/src/Slider.js +29 -29
- package/es/slider/src/styles/index.cssr.js +87 -87
- package/es/spin/src/Spin.d.ts +5 -5
- package/es/spin/src/Spin.js +5 -5
- package/es/spin/src/styles/index.cssr.js +15 -15
- package/es/statistic/src/Statistic.d.ts +25 -45
- package/es/statistic/src/Statistic.js +12 -19
- package/es/statistic/src/styles/index.cssr.js +19 -19
- package/es/steps/src/Step.d.ts +12 -12
- package/es/steps/src/Step.js +12 -12
- package/es/steps/src/styles/index.cssr.js +46 -46
- package/es/switch/src/Switch.d.ts +19 -19
- package/es/switch/src/Switch.js +26 -19
- package/es/switch/src/styles/index.cssr.js +59 -57
- package/es/table/src/Table.d.ts +21 -21
- package/es/table/src/Table.js +21 -21
- package/es/table/src/styles/index.cssr.js +55 -55
- package/es/tabs/index.d.ts +1 -0
- package/es/tabs/src/Tabs.d.ts +2 -2
- package/es/tabs/src/Tabs.js +25 -22
- package/es/tabs/src/interface.d.ts +3 -0
- package/es/tabs/src/styles/index.cssr.js +4 -1
- package/es/tabs/styles/light.js +1 -1
- package/es/tag/src/Tag.d.ts +27 -26
- package/es/tag/src/Tag.js +27 -26
- package/es/tag/src/styles/index.cssr.js +54 -54
- package/es/tag/src/styles/rtl.cssr.js +1 -1
- package/es/thing/src/Thing.js +5 -5
- package/es/thing/src/styles/index.cssr.js +11 -11
- package/es/time-picker/src/TimePicker.d.ts +41 -21
- package/es/time-picker/src/TimePicker.js +76 -46
- package/es/time-picker/src/interface.d.ts +4 -2
- package/es/time-picker/src/styles/index.cssr.js +47 -47
- package/es/timeline/src/TimelineItem.d.ts +12 -12
- package/es/timeline/src/TimelineItem.js +12 -12
- package/es/timeline/src/styles/index.cssr.js +44 -44
- package/es/tooltip/src/Tooltip.d.ts +5 -0
- package/es/transfer/src/Transfer.d.ts +21 -21
- package/es/transfer/src/Transfer.js +21 -21
- package/es/transfer/src/TransferList.js +5 -7
- package/es/transfer/src/styles/index.cssr.js +47 -42
- package/es/tree/src/Tree.d.ts +16 -12
- package/es/tree/src/Tree.js +15 -13
- package/es/tree/src/TreeNodeSwitcher.d.ts +1 -1
- package/es/tree/src/TreeNodeSwitcher.js +25 -14
- package/es/tree/src/dnd.js +2 -2
- package/es/tree/src/interface.d.ts +2 -0
- package/es/tree/src/styles/index.cssr.js +37 -35
- package/es/tree-select/src/TreeSelect.d.ts +8 -8
- package/es/tree-select/src/TreeSelect.js +8 -8
- package/es/tree-select/src/styles/index.cssr.js +18 -18
- package/es/typography/src/a.d.ts +2 -2
- package/es/typography/src/a.js +2 -2
- package/es/typography/src/blockquote.d.ts +5 -5
- package/es/typography/src/blockquote.js +5 -5
- package/es/typography/src/create-header.d.ts +8 -8
- package/es/typography/src/create-header.js +8 -8
- package/es/typography/src/headers.d.ts +48 -48
- package/es/typography/src/hr.d.ts +2 -1
- package/es/typography/src/hr.js +3 -1
- package/es/typography/src/ol.d.ts +7 -7
- package/es/typography/src/ol.js +7 -7
- package/es/typography/src/p.d.ts +5 -5
- package/es/typography/src/p.js +5 -5
- package/es/typography/src/styles/a.cssr.js +6 -6
- package/es/typography/src/styles/blockquote.cssr.js +11 -11
- package/es/typography/src/styles/header.cssr.js +19 -19
- package/es/typography/src/styles/hr.cssr.js +3 -3
- package/es/typography/src/styles/list.cssr.js +15 -15
- package/es/typography/src/styles/p.cssr.js +10 -10
- package/es/typography/src/styles/text.cssr.js +18 -18
- package/es/typography/src/text.d.ts +8 -7
- package/es/typography/src/text.js +9 -8
- package/es/typography/src/ul.d.ts +7 -7
- package/es/typography/src/ul.js +7 -7
- package/es/upload/src/Upload.d.ts +16 -7
- package/es/upload/src/Upload.js +34 -25
- package/es/upload/src/UploadFile.d.ts +5 -5
- package/es/upload/src/UploadFileList.js +2 -2
- package/es/upload/src/interface.d.ts +11 -4
- package/es/upload/src/styles/index.cssr.js +36 -36
- package/es/version.d.ts +1 -1
- package/es/version.js +1 -1
- package/lib/_internal/clear/src/styles/index.cssr.js +10 -10
- package/lib/_internal/close/src/styles/index.cssr.js +9 -10
- package/lib/_internal/icons/Close.js +1 -1
- package/lib/_internal/icons/Switcher.js +2 -3
- package/lib/_internal/scrollbar/src/ScrollBar.d.ts +6 -17
- package/lib/_internal/scrollbar/src/ScrollBar.js +14 -16
- package/lib/_internal/scrollbar/src/styles/index.cssr.js +15 -15
- package/lib/_internal/select-menu/src/SelectMenu.d.ts +21 -21
- package/lib/_internal/select-menu/src/SelectMenu.js +21 -21
- package/lib/_internal/select-menu/src/styles/index.cssr.js +35 -35
- package/lib/_internal/select-menu/styles/_common.js +1 -1
- package/lib/_internal/selection/src/Selection.d.ts +44 -44
- package/lib/_internal/selection/src/Selection.js +44 -44
- package/lib/_internal/selection/src/styles/index.cssr.js +79 -79
- package/lib/_internal/selection/styles/_common.js +1 -1
- package/lib/_mixins/common.d.ts +1 -0
- package/lib/_mixins/common.js +4 -0
- package/lib/_mixins/index.d.ts +1 -0
- package/lib/_mixins/index.js +3 -1
- package/lib/_mixins/use-css-vars-class.d.ts +2 -0
- package/lib/_mixins/use-css-vars-class.js +29 -0
- package/lib/_mixins/use-rtl.js +2 -0
- package/lib/_mixins/use-style.js +3 -0
- package/lib/_mixins/use-theme.js +3 -0
- package/lib/_utils/composable/use-houdini.js +12 -9
- package/lib/alert/src/Alert.d.ts +2 -2
- package/lib/auto-complete/src/AutoComplete.d.ts +14 -14
- package/lib/auto-complete/src/AutoComplete.js +16 -18
- package/lib/auto-complete/src/styles/index.cssr.js +4 -4
- package/lib/avatar/index.d.ts +2 -0
- package/lib/avatar/index.js +3 -1
- package/lib/avatar/src/Avatar.d.ts +72 -33
- package/lib/avatar/src/Avatar.js +45 -16
- package/lib/avatar/src/AvatarGroup.d.ts +52 -0
- package/lib/avatar/src/AvatarGroup.js +67 -0
- package/lib/avatar/src/interface.d.ts +2 -0
- package/lib/avatar/src/interface.js +2 -0
- package/lib/avatar/src/styles/avatar-group.cssr.d.ts +2 -0
- package/lib/avatar/src/styles/avatar-group.cssr.js +21 -0
- package/lib/avatar/src/styles/index.cssr.js +19 -14
- package/lib/avatar/styles/light.d.ts +3 -0
- package/lib/avatar/styles/light.js +6 -2
- package/lib/back-top/src/BackTop.d.ts +16 -16
- package/lib/back-top/src/BackTop.js +13 -13
- package/lib/back-top/src/styles/index.cssr.js +29 -29
- package/lib/badge/src/Badge.d.ts +6 -6
- package/lib/badge/src/Badge.js +6 -6
- package/lib/badge/src/styles/index.cssr.js +15 -15
- package/lib/breadcrumb/src/Breadcrumb.d.ts +8 -8
- package/lib/breadcrumb/src/Breadcrumb.js +8 -8
- package/lib/breadcrumb/src/styles/index.cssr.js +23 -23
- package/lib/button/src/Button.d.ts +10 -5
- package/lib/button/src/Button.js +20 -13
- package/lib/calendar/src/Calendar.d.ts +26 -22
- package/lib/calendar/src/Calendar.js +36 -24
- package/lib/calendar/src/interface.d.ts +4 -0
- package/lib/calendar/src/styles/index.cssr.js +57 -57
- package/lib/card/src/Card.d.ts +28 -23
- package/lib/card/src/Card.js +24 -23
- package/lib/card/src/styles/index.cssr.js +71 -69
- package/lib/carousel/index.d.ts +1 -0
- package/lib/carousel/index.js +3 -1
- package/lib/carousel/src/Carousel.d.ts +239 -23
- package/lib/carousel/src/Carousel.js +686 -232
- package/lib/carousel/src/CarouselArrow.d.ts +9 -0
- package/lib/carousel/src/CarouselArrow.js +45 -0
- package/lib/carousel/src/CarouselDots.d.ts +66 -0
- package/lib/carousel/src/CarouselDots.js +120 -0
- package/lib/carousel/src/CarouselItem.d.ts +11 -0
- package/lib/carousel/src/CarouselItem.js +74 -0
- package/lib/carousel/src/interface.d.ts +28 -0
- package/lib/carousel/src/interface.js +6 -0
- package/lib/carousel/src/styles/index.cssr.js +150 -47
- package/lib/carousel/src/utils.d.ts +12 -0
- package/lib/carousel/src/utils.js +69 -0
- package/lib/carousel/styles/light.d.ts +3 -0
- package/lib/carousel/styles/light.js +5 -2
- package/lib/cascader/src/Cascader.d.ts +31 -19
- package/lib/cascader/src/Cascader.js +31 -20
- package/lib/cascader/src/CascaderMenu.js +1 -1
- package/lib/cascader/src/CascaderOption.d.ts +1 -0
- package/lib/cascader/src/CascaderOption.js +7 -4
- package/lib/cascader/src/interface.d.ts +2 -1
- package/lib/cascader/src/styles/index.cssr.js +44 -44
- package/lib/cascader/styles/light.js +1 -1
- package/lib/checkbox/src/Checkbox.d.ts +23 -23
- package/lib/checkbox/src/Checkbox.js +23 -23
- package/lib/checkbox/src/styles/index.cssr.js +59 -59
- package/lib/code/src/Code.d.ts +19 -14
- package/lib/code/src/Code.js +32 -20
- package/lib/code/src/styles/index.cssr.js +29 -29
- package/lib/collapse/src/Collapse.d.ts +8 -8
- package/lib/collapse/src/Collapse.js +8 -8
- package/lib/collapse/src/styles/index.cssr.js +24 -24
- package/lib/collapse-transition/src/CollapseTransition.d.ts +1 -1
- package/lib/collapse-transition/src/CollapseTransition.js +1 -1
- package/lib/color-picker/src/ColorInputUnit.js +1 -1
- package/lib/color-picker/src/ColorPicker.d.ts +23 -15
- package/lib/color-picker/src/ColorPicker.js +29 -20
- package/lib/color-picker/src/ColorPickerTrigger.d.ts +1 -1
- package/lib/color-picker/src/ColorPickerTrigger.js +22 -16
- package/lib/color-picker/src/interface.d.ts +2 -0
- package/lib/color-picker/src/styles/index.cssr.js +29 -28
- package/lib/components.d.ts +2 -0
- package/lib/components.js +2 -0
- package/lib/config-provider/src/ConfigProvider.d.ts +27 -0
- package/lib/countdown/index.d.ts +2 -0
- package/lib/countdown/index.js +8 -0
- package/lib/countdown/src/Countdown.d.ts +72 -0
- package/lib/countdown/src/Countdown.js +128 -0
- package/lib/countdown/src/utils.d.ts +0 -0
- package/lib/countdown/src/utils.js +1 -0
- package/lib/data-table/src/DataTable.d.ts +49 -94
- package/lib/data-table/src/DataTable.js +63 -89
- package/lib/data-table/src/TableParts/Body.js +7 -5
- package/lib/data-table/src/TableParts/Cell.js +2 -3
- package/lib/data-table/src/TableParts/Header.js +1 -1
- package/lib/data-table/src/interface.d.ts +1 -1
- package/lib/data-table/src/styles/index.cssr.js +133 -130
- package/lib/data-table/src/utils.js +3 -0
- package/lib/date-picker/src/DatePicker.d.ts +71 -67
- package/lib/date-picker/src/DatePicker.js +143 -93
- package/lib/date-picker/src/interface.d.ts +17 -2
- package/lib/date-picker/src/panel/date.d.ts +4 -9
- package/lib/date-picker/src/panel/daterange.d.ts +4 -9
- package/lib/date-picker/src/panel/datetime.d.ts +4 -9
- package/lib/date-picker/src/panel/datetimerange.d.ts +4 -9
- package/lib/date-picker/src/panel/month.d.ts +4 -9
- package/lib/date-picker/src/panel/use-calendar.d.ts +2 -5
- package/lib/date-picker/src/panel/use-calendar.js +8 -7
- package/lib/date-picker/src/panel/use-dual-calendar.d.ts +2 -5
- package/lib/date-picker/src/panel/use-dual-calendar.js +12 -13
- package/lib/date-picker/src/panel/use-panel-common.d.ts +2 -5
- package/lib/date-picker/src/panel/use-panel-common.js +2 -6
- package/lib/date-picker/src/styles/index.cssr.js +115 -115
- package/lib/descriptions/src/Descriptions.d.ts +18 -18
- package/lib/descriptions/src/Descriptions.js +19 -20
- package/lib/descriptions/src/styles/index.cssr.js +61 -61
- package/lib/dialog/src/Dialog.d.ts +24 -24
- package/lib/dialog/src/Dialog.js +22 -22
- package/lib/dialog/src/DialogEnvironment.d.ts +2 -2
- package/lib/dialog/src/DialogProvider.d.ts +1 -1
- package/lib/dialog/src/styles/index.cssr.js +45 -45
- package/lib/divider/src/Divider.d.ts +4 -4
- package/lib/divider/src/Divider.js +4 -4
- package/lib/divider/src/styles/index.cssr.js +12 -12
- package/lib/drawer/src/Drawer.d.ts +37 -77
- package/lib/drawer/src/Drawer.js +49 -66
- package/lib/drawer/src/DrawerBodyWrapper.js +21 -13
- package/lib/drawer/src/DrawerContent.js +6 -6
- package/lib/drawer/src/styles/index.cssr.js +41 -40
- package/lib/dropdown/src/Dropdown.d.ts +5 -0
- package/lib/dropdown/src/Dropdown.js +34 -32
- package/lib/dropdown/src/styles/index.cssr.js +59 -59
- package/lib/dynamic-tags/src/DynamicTags.d.ts +1 -1
- package/lib/dynamic-tags/src/DynamicTags.js +1 -1
- package/lib/dynamic-tags/src/styles/index.cssr.js +1 -1
- package/lib/empty/src/Empty.d.ts +19 -15
- package/lib/empty/src/Empty.js +12 -12
- package/lib/empty/src/styles/index.cssr.js +19 -18
- package/lib/form/src/Feedbacks.js +4 -1
- package/lib/form/src/Form.d.ts +34 -34
- package/lib/form/src/Form.js +16 -7
- package/lib/form/src/FormItem.d.ts +54 -49
- package/lib/form/src/FormItem.js +38 -26
- package/lib/form/src/FormItemCol.d.ts +41 -31
- package/lib/form/src/FormItemCol.js +1 -0
- package/lib/form/src/FormItemGridItem.d.ts +41 -31
- package/lib/form/src/FormItemGridItem.js +1 -0
- package/lib/form/src/FormItemRow.d.ts +40 -30
- package/lib/form/src/FormItemRow.js +1 -0
- package/lib/form/src/interface.d.ts +6 -2
- package/lib/form/src/styles/form-item.cssr.js +39 -37
- package/lib/form/src/utils.d.ts +2 -2
- package/lib/form/src/utils.js +29 -18
- package/lib/form/styles/_common.d.ts +0 -3
- package/lib/form/styles/_common.js +0 -3
- package/lib/form/styles/light.d.ts +3 -3
- package/lib/form/styles/light.js +2 -2
- package/lib/gradient-text/src/GradientText.d.ts +5 -5
- package/lib/gradient-text/src/GradientText.js +5 -5
- package/lib/gradient-text/src/styles/index.cssr.js +9 -9
- package/lib/icon/src/Icon.d.ts +6 -6
- package/lib/icon/src/Icon.js +4 -4
- package/lib/icon/src/styles/index.cssr.js +7 -7
- package/lib/image/src/Image.d.ts +279 -10
- package/lib/image/src/Image.js +4 -17
- package/lib/image/src/ImageGroup.d.ts +272 -2
- package/lib/image/src/ImageGroup.js +4 -7
- package/lib/image/src/ImagePreview.d.ts +195 -7
- package/lib/image/src/ImagePreview.js +60 -40
- package/lib/image/src/interface.d.ts +94 -0
- package/lib/image/src/interface.js +3 -0
- package/lib/image/src/styles/index.cssr.js +11 -7
- package/lib/image/styles/dark.js +8 -1
- package/lib/image/styles/light.d.ts +32 -3
- package/lib/image/styles/light.js +8 -1
- package/lib/input/src/Input.d.ts +52 -47
- package/lib/input/src/Input.js +54 -49
- package/lib/input/src/InputGroupLabel.d.ts +8 -8
- package/lib/input/src/InputGroupLabel.js +8 -8
- package/lib/input/src/styles/input-group-label.cssr.js +18 -18
- package/lib/input/src/styles/input.cssr.js +108 -109
- package/lib/input-number/src/InputNumber.d.ts +11 -0
- package/lib/input-number/src/InputNumber.js +5 -2
- package/lib/input-number/src/utils.js +2 -1
- package/lib/layout/src/Layout.d.ts +6 -6
- package/lib/layout/src/Layout.js +3 -3
- package/lib/layout/src/LayoutContent.d.ts +3 -3
- package/lib/layout/src/LayoutFooter.js +7 -7
- package/lib/layout/src/LayoutHeader.js +7 -7
- package/lib/layout/src/LayoutSider.js +13 -13
- package/lib/layout/src/styles/layout-footer.cssr.js +11 -11
- package/lib/layout/src/styles/layout-header.cssr.js +11 -11
- package/lib/layout/src/styles/layout-sider.cssr.js +32 -32
- package/lib/layout/src/styles/layout.cssr.js +8 -8
- package/lib/list/src/List.d.ts +10 -10
- package/lib/list/src/List.js +10 -10
- package/lib/list/src/styles/index.cssr.js +30 -30
- package/lib/loading-bar/src/LoadingBar.d.ts +3 -3
- package/lib/loading-bar/src/LoadingBar.js +3 -3
- package/lib/loading-bar/src/styles/index.cssr.js +7 -7
- package/lib/locales/common/deDE.js +10 -0
- package/lib/locales/common/enUS.d.ts +9 -0
- package/lib/locales/common/enUS.js +10 -0
- package/lib/locales/common/frFR.js +17 -8
- package/lib/locales/common/idID.js +10 -0
- package/lib/locales/common/jaJP.js +10 -0
- package/lib/locales/common/nbNO.js +10 -0
- package/lib/locales/common/ruRU.js +10 -0
- package/lib/locales/common/ukUA.js +10 -0
- package/lib/locales/common/zhCN.js +9 -0
- package/lib/locales/common/zhTW.js +10 -0
- package/lib/log/src/Log.d.ts +6 -6
- package/lib/log/src/Log.js +6 -6
- package/lib/log/src/styles/index.cssr.js +16 -18
- package/lib/mention/src/Mention.d.ts +1 -1
- package/lib/mention/src/Mention.js +1 -1
- package/lib/mention/src/styles/index.cssr.js +2 -2
- package/lib/mention/src/utils.js +0 -1
- package/lib/menu/src/Menu.js +43 -40
- package/lib/menu/src/styles/index.cssr.js +71 -71
- package/lib/message/index.d.ts +2 -1
- package/lib/message/src/Message.d.ts +213 -41
- package/lib/message/src/Message.js +35 -33
- package/lib/message/src/MessageEnvironment.d.ts +3 -3
- package/lib/message/src/MessageProvider.d.ts +5 -10
- package/lib/message/src/MessageProvider.js +1 -1
- package/lib/message/src/message-props.d.ts +5 -2
- package/lib/message/src/styles/index.cssr.js +48 -48
- package/lib/message/src/types.d.ts +15 -0
- package/lib/message/src/types.js +2 -0
- package/lib/modal/src/BodyWrapper.d.ts +11 -2
- package/lib/modal/src/BodyWrapper.js +23 -17
- package/lib/modal/src/Modal.d.ts +19 -8
- package/lib/modal/src/Modal.js +15 -8
- package/lib/modal/src/presetProps.d.ts +2 -1
- package/lib/modal/src/styles/index.cssr.js +8 -8
- package/lib/notification/src/Notification.d.ts +24 -24
- package/lib/notification/src/Notification.js +24 -24
- package/lib/notification/src/styles/index.cssr.js +65 -65
- package/lib/number-animation/index.d.ts +3 -0
- package/lib/number-animation/index.js +8 -0
- package/lib/number-animation/src/NumberAnimation.d.ts +79 -0
- package/lib/number-animation/src/NumberAnimation.js +83 -0
- package/lib/number-animation/src/utils.d.ts +8 -0
- package/lib/number-animation/src/utils.js +21 -0
- package/lib/page-header/index.d.ts +1 -1
- package/lib/page-header/src/PageHeader.d.ts +11 -11
- package/lib/page-header/src/PageHeader.js +10 -10
- package/lib/page-header/src/styles/index.cssr.js +23 -23
- package/lib/pagination/index.d.ts +1 -1
- package/lib/pagination/src/Pagination.d.ts +50 -45
- package/lib/pagination/src/Pagination.js +117 -63
- package/lib/pagination/src/interface.d.ts +10 -1
- package/lib/pagination/src/styles/index.cssr.js +81 -81
- package/lib/pagination/src/utils.d.ts +2 -2
- package/lib/pagination/src/utils.js +2 -4
- package/lib/popconfirm/src/Popconfirm.d.ts +7 -2
- package/lib/popconfirm/src/PopconfirmPanel.d.ts +4 -4
- package/lib/popconfirm/src/PopconfirmPanel.js +4 -4
- package/lib/popconfirm/src/styles/index.cssr.js +8 -8
- package/lib/popover/src/Popover.d.ts +7 -0
- package/lib/popover/src/Popover.js +23 -0
- package/lib/popover/src/PopoverBody.d.ts +5 -0
- package/lib/popover/src/PopoverBody.js +42 -60
- package/lib/popover/src/styles/index.cssr.js +63 -62
- package/lib/popselect/src/Popselect.d.ts +62 -73
- package/lib/popselect/src/Popselect.js +2 -2
- package/lib/progress/src/Circle.d.ts +7 -0
- package/lib/progress/src/Circle.js +8 -1
- package/lib/progress/src/Line.d.ts +2 -2
- package/lib/progress/src/Line.js +4 -1
- package/lib/progress/src/Progress.d.ts +20 -16
- package/lib/progress/src/Progress.js +16 -16
- package/lib/progress/src/styles/index.cssr.js +68 -68
- package/lib/radio/src/Radio.d.ts +15 -15
- package/lib/radio/src/Radio.js +15 -15
- package/lib/radio/src/RadioGroup.d.ts +14 -14
- package/lib/radio/src/RadioGroup.js +14 -14
- package/lib/radio/src/styles/radio-group.cssr.js +43 -43
- package/lib/radio/src/styles/radio.cssr.js +40 -37
- package/lib/rate/src/Rate.d.ts +4 -4
- package/lib/rate/src/Rate.js +4 -4
- package/lib/rate/src/styles/index.cssr.js +11 -11
- package/lib/result/src/Result.d.ts +9 -9
- package/lib/result/src/Result.js +17 -18
- package/lib/result/src/styles/index.cssr.js +26 -26
- package/lib/select/src/Select.d.ts +9 -28
- package/lib/select/src/Select.js +15 -23
- package/lib/select/src/styles/index.cssr.js +2 -2
- package/lib/skeleton/src/Skeleton.d.ts +3 -3
- package/lib/skeleton/src/Skeleton.js +3 -3
- package/lib/skeleton/src/styles/index.cssr.js +12 -12
- package/lib/slider/src/Slider.d.ts +31 -33
- package/lib/slider/src/Slider.js +29 -29
- package/lib/slider/src/styles/index.cssr.js +87 -87
- package/lib/spin/src/Spin.d.ts +5 -5
- package/lib/spin/src/Spin.js +5 -5
- package/lib/spin/src/styles/index.cssr.js +15 -15
- package/lib/statistic/src/Statistic.d.ts +25 -45
- package/lib/statistic/src/Statistic.js +12 -19
- package/lib/statistic/src/styles/index.cssr.js +19 -19
- package/lib/steps/src/Step.d.ts +12 -12
- package/lib/steps/src/Step.js +12 -12
- package/lib/steps/src/styles/index.cssr.js +46 -46
- package/lib/switch/src/Switch.d.ts +19 -19
- package/lib/switch/src/Switch.js +26 -19
- package/lib/switch/src/styles/index.cssr.js +59 -57
- package/lib/table/src/Table.d.ts +21 -21
- package/lib/table/src/Table.js +21 -21
- package/lib/table/src/styles/index.cssr.js +55 -55
- package/lib/tabs/index.d.ts +1 -0
- package/lib/tabs/src/Tabs.d.ts +2 -2
- package/lib/tabs/src/Tabs.js +25 -22
- package/lib/tabs/src/interface.d.ts +3 -0
- package/lib/tabs/src/styles/index.cssr.js +4 -1
- package/lib/tabs/styles/light.js +1 -1
- package/lib/tag/src/Tag.d.ts +27 -26
- package/lib/tag/src/Tag.js +27 -26
- package/lib/tag/src/styles/index.cssr.js +54 -54
- package/lib/tag/src/styles/rtl.cssr.js +1 -1
- package/lib/thing/src/Thing.js +5 -5
- package/lib/thing/src/styles/index.cssr.js +11 -11
- package/lib/time-picker/src/TimePicker.d.ts +41 -21
- package/lib/time-picker/src/TimePicker.js +76 -46
- package/lib/time-picker/src/interface.d.ts +4 -2
- package/lib/time-picker/src/styles/index.cssr.js +47 -47
- package/lib/timeline/src/TimelineItem.d.ts +12 -12
- package/lib/timeline/src/TimelineItem.js +12 -12
- package/lib/timeline/src/styles/index.cssr.js +44 -44
- package/lib/tooltip/src/Tooltip.d.ts +5 -0
- package/lib/transfer/src/Transfer.d.ts +21 -21
- package/lib/transfer/src/Transfer.js +21 -21
- package/lib/transfer/src/TransferList.js +5 -7
- package/lib/transfer/src/styles/index.cssr.js +47 -42
- package/lib/tree/src/Tree.d.ts +16 -12
- package/lib/tree/src/Tree.js +15 -13
- package/lib/tree/src/TreeNodeSwitcher.d.ts +1 -1
- package/lib/tree/src/TreeNodeSwitcher.js +24 -13
- package/lib/tree/src/dnd.js +2 -2
- package/lib/tree/src/interface.d.ts +2 -0
- package/lib/tree/src/styles/index.cssr.js +37 -35
- package/lib/tree-select/src/TreeSelect.d.ts +8 -8
- package/lib/tree-select/src/TreeSelect.js +8 -8
- package/lib/tree-select/src/styles/index.cssr.js +18 -18
- package/lib/typography/src/a.d.ts +2 -2
- package/lib/typography/src/a.js +2 -2
- package/lib/typography/src/blockquote.d.ts +5 -5
- package/lib/typography/src/blockquote.js +5 -5
- package/lib/typography/src/create-header.d.ts +8 -8
- package/lib/typography/src/create-header.js +8 -8
- package/lib/typography/src/headers.d.ts +48 -48
- package/lib/typography/src/hr.d.ts +2 -1
- package/lib/typography/src/hr.js +3 -1
- package/lib/typography/src/ol.d.ts +7 -7
- package/lib/typography/src/ol.js +7 -7
- package/lib/typography/src/p.d.ts +5 -5
- package/lib/typography/src/p.js +5 -5
- package/lib/typography/src/styles/a.cssr.js +6 -6
- package/lib/typography/src/styles/blockquote.cssr.js +11 -11
- package/lib/typography/src/styles/header.cssr.js +19 -19
- package/lib/typography/src/styles/hr.cssr.js +3 -3
- package/lib/typography/src/styles/list.cssr.js +15 -15
- package/lib/typography/src/styles/p.cssr.js +10 -10
- package/lib/typography/src/styles/text.cssr.js +18 -18
- package/lib/typography/src/text.d.ts +8 -7
- package/lib/typography/src/text.js +9 -8
- package/lib/typography/src/ul.d.ts +7 -7
- package/lib/typography/src/ul.js +7 -7
- package/lib/upload/src/Upload.d.ts +16 -7
- package/lib/upload/src/Upload.js +34 -25
- package/lib/upload/src/UploadFile.d.ts +5 -5
- package/lib/upload/src/UploadFileList.js +2 -2
- package/lib/upload/src/interface.d.ts +11 -4
- package/lib/upload/src/styles/index.cssr.js +36 -36
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/package.json +52 -43
- package/web-types.json +648 -43
package/lib/drawer/src/Drawer.js
CHANGED
|
@@ -31,56 +31,33 @@ const drawerProps = Object.assign(Object.assign({}, _mixins_1.useTheme.props), {
|
|
|
31
31
|
}, nativeScrollbar: {
|
|
32
32
|
type: Boolean,
|
|
33
33
|
default: true
|
|
34
|
-
}, onMaskClick: Function, scrollbarProps: Object, contentStyle: [Object, String], 'onUpdate:show': [Function, Array], onUpdateShow: [Function, Array],
|
|
34
|
+
}, zIndex: Number, onMaskClick: Function, scrollbarProps: Object, contentStyle: [Object, String], 'onUpdate:show': [Function, Array], onUpdateShow: [Function, Array],
|
|
35
35
|
/** @deprecated */
|
|
36
|
-
drawerStyle:
|
|
37
|
-
type: [Object, String],
|
|
38
|
-
validator: process.env.NODE_ENV !== 'production'
|
|
39
|
-
? () => {
|
|
40
|
-
(0, _utils_1.warn)('drawer', '`drawer-style` is deprecated, please use `style` instead.');
|
|
41
|
-
return true;
|
|
42
|
-
}
|
|
43
|
-
: undefined,
|
|
44
|
-
default: undefined
|
|
45
|
-
},
|
|
46
|
-
/** @deprecated */
|
|
47
|
-
drawerClass: {
|
|
48
|
-
type: String,
|
|
49
|
-
validator: process.env.NODE_ENV !== 'production'
|
|
50
|
-
? () => {
|
|
51
|
-
(0, _utils_1.warn)('drawer', '`drawer-class` is deprecated, please use `class` instead.');
|
|
52
|
-
return true;
|
|
53
|
-
}
|
|
54
|
-
: undefined,
|
|
55
|
-
default: undefined
|
|
56
|
-
}, target: {
|
|
57
|
-
validator: process.env.NODE_ENV !== 'production'
|
|
58
|
-
? () => {
|
|
59
|
-
(0, _utils_1.warn)('drawer', '`target` is deprecated, please use `to` instead.');
|
|
60
|
-
return true;
|
|
61
|
-
}
|
|
62
|
-
: undefined,
|
|
63
|
-
default: undefined
|
|
64
|
-
}, onShow: {
|
|
65
|
-
type: [Function, Array],
|
|
66
|
-
validator: () => {
|
|
67
|
-
(0, _utils_1.warn)('drawer', '`on-show` is deprecated, please use `on-update:show` instead.');
|
|
68
|
-
return true;
|
|
69
|
-
},
|
|
70
|
-
default: undefined
|
|
71
|
-
}, onHide: {
|
|
72
|
-
type: [Function, Array],
|
|
73
|
-
validator: () => {
|
|
74
|
-
(0, _utils_1.warn)('drawer', '`on-hide` is deprecated, please use `on-update:show` instead.');
|
|
75
|
-
return true;
|
|
76
|
-
},
|
|
77
|
-
default: undefined
|
|
78
|
-
} });
|
|
36
|
+
drawerStyle: [String, Object], drawerClass: String, target: null, onShow: Function, onHide: Function });
|
|
79
37
|
exports.default = (0, vue_1.defineComponent)({
|
|
80
38
|
name: 'Drawer',
|
|
81
39
|
inheritAttrs: false,
|
|
82
40
|
props: drawerProps,
|
|
83
41
|
setup(props) {
|
|
42
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
43
|
+
(0, vue_1.watchEffect)(() => {
|
|
44
|
+
if (props.drawerStyle !== undefined) {
|
|
45
|
+
(0, _utils_1.warnOnce)('drawer', '`drawer-style` is deprecated, please use `style` instead.');
|
|
46
|
+
}
|
|
47
|
+
if (props.drawerClass !== undefined) {
|
|
48
|
+
(0, _utils_1.warnOnce)('drawer', '`drawer-class` is deprecated, please use `class` instead.');
|
|
49
|
+
}
|
|
50
|
+
if (props.target !== undefined) {
|
|
51
|
+
(0, _utils_1.warnOnce)('drawer', '`target` is deprecated, please use `to` instead.');
|
|
52
|
+
}
|
|
53
|
+
if (props.onShow !== undefined) {
|
|
54
|
+
(0, _utils_1.warnOnce)('drawer', '`on-show` is deprecated, please use `on-update:show` instead.');
|
|
55
|
+
}
|
|
56
|
+
if (props.onHide !== undefined) {
|
|
57
|
+
(0, _utils_1.warnOnce)('drawer', '`on-hide` is deprecated, please use `on-update:show` instead.');
|
|
58
|
+
}
|
|
59
|
+
});
|
|
60
|
+
}
|
|
84
61
|
const { mergedClsPrefixRef, namespaceRef } = (0, _mixins_1.useConfig)(props);
|
|
85
62
|
const isMountedRef = (0, vooks_1.useIsMounted)();
|
|
86
63
|
const themeRef = (0, _mixins_1.useTheme)('Drawer', 'Drawer', index_cssr_1.default, styles_1.drawerLight, props, mergedClsPrefixRef);
|
|
@@ -115,6 +92,11 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
115
92
|
if (onMaskClick)
|
|
116
93
|
onMaskClick(e);
|
|
117
94
|
}
|
|
95
|
+
function handleKeydown(e) {
|
|
96
|
+
if (e.code === 'Escape') {
|
|
97
|
+
doUpdateShow(false);
|
|
98
|
+
}
|
|
99
|
+
}
|
|
118
100
|
function doUpdateShow(show) {
|
|
119
101
|
const { onHide, onUpdateShow, 'onUpdate:show': _onUpdateShow } = props;
|
|
120
102
|
if (onUpdateShow)
|
|
@@ -136,29 +118,30 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
136
118
|
namespace: namespaceRef,
|
|
137
119
|
mergedBodyStyle: mergedBodyStyleRef,
|
|
138
120
|
handleMaskClick,
|
|
121
|
+
handleKeydown,
|
|
139
122
|
mergedTheme: themeRef,
|
|
140
123
|
cssVars: (0, vue_1.computed)(() => {
|
|
141
124
|
const { common: { cubicBezierEaseInOut, cubicBezierEaseIn, cubicBezierEaseOut }, self: { color, textColor, boxShadow, lineHeight, headerPadding, footerPadding, bodyPadding, titleFontSize, titleTextColor, titleFontWeight, headerBorderBottom, footerBorderTop, closeColor, closeColorHover, closeColorPressed, closeSize } } = themeRef.value;
|
|
142
125
|
return {
|
|
143
|
-
'--line-height': lineHeight,
|
|
144
|
-
'--color': color,
|
|
145
|
-
'--text-color': textColor,
|
|
146
|
-
'--box-shadow': boxShadow,
|
|
147
|
-
'--bezier': cubicBezierEaseInOut,
|
|
148
|
-
'--bezier-out': cubicBezierEaseOut,
|
|
149
|
-
'--bezier-in': cubicBezierEaseIn,
|
|
150
|
-
'--header-padding': headerPadding,
|
|
151
|
-
'--body-padding': bodyPadding,
|
|
152
|
-
'--footer-padding': footerPadding,
|
|
153
|
-
'--title-text-color': titleTextColor,
|
|
154
|
-
'--title-font-size': titleFontSize,
|
|
155
|
-
'--title-font-weight': titleFontWeight,
|
|
156
|
-
'--header-border-bottom': headerBorderBottom,
|
|
157
|
-
'--footer-border-top': footerBorderTop,
|
|
158
|
-
'--close-color': closeColor,
|
|
159
|
-
'--close-color-hover': closeColorHover,
|
|
160
|
-
'--close-color-pressed': closeColorPressed,
|
|
161
|
-
'--close-size': closeSize
|
|
126
|
+
'--n-line-height': lineHeight,
|
|
127
|
+
'--n-color': color,
|
|
128
|
+
'--n-text-color': textColor,
|
|
129
|
+
'--n-box-shadow': boxShadow,
|
|
130
|
+
'--n-bezier': cubicBezierEaseInOut,
|
|
131
|
+
'--n-bezier-out': cubicBezierEaseOut,
|
|
132
|
+
'--n-bezier-in': cubicBezierEaseIn,
|
|
133
|
+
'--n-header-padding': headerPadding,
|
|
134
|
+
'--n-body-padding': bodyPadding,
|
|
135
|
+
'--n-footer-padding': footerPadding,
|
|
136
|
+
'--n-title-text-color': titleTextColor,
|
|
137
|
+
'--n-title-font-size': titleFontSize,
|
|
138
|
+
'--n-title-font-weight': titleFontWeight,
|
|
139
|
+
'--n-header-border-bottom': headerBorderBottom,
|
|
140
|
+
'--n-footer-border-top': footerBorderTop,
|
|
141
|
+
'--n-close-color': closeColor,
|
|
142
|
+
'--n-close-color-hover': closeColorHover,
|
|
143
|
+
'--n-close-color-pressed': closeColorPressed,
|
|
144
|
+
'--n-close-size': closeSize
|
|
162
145
|
};
|
|
163
146
|
}),
|
|
164
147
|
isMounted: isMountedRef
|
|
@@ -168,11 +151,11 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
168
151
|
const { mergedClsPrefix } = this;
|
|
169
152
|
return ((0, vue_1.h)(vueuc_1.VLazyTeleport, { to: this.to, show: this.show }, {
|
|
170
153
|
default: () => {
|
|
171
|
-
return (0, vue_1.withDirectives)((0, vue_1.h)("div", { class: [`${mergedClsPrefix}-drawer-container`, this.namespace], style: this.cssVars },
|
|
154
|
+
return (0, vue_1.withDirectives)((0, vue_1.h)("div", { class: [`${mergedClsPrefix}-drawer-container`, this.namespace], style: this.cssVars, onKeydown: this.handleKeydown, role: "none" },
|
|
172
155
|
(0, vue_1.h)(vue_1.Transition, { name: "fade-in-transition", appear: this.isMounted }, {
|
|
173
|
-
default: () => this.show ? ((0, vue_1.h)("div", { class: `${mergedClsPrefix}-drawer-mask`, onClick: this.handleMaskClick })) : null
|
|
156
|
+
default: () => this.show ? ((0, vue_1.h)("div", { "aria-hidden": true, class: `${mergedClsPrefix}-drawer-mask`, onClick: this.handleMaskClick })) : null
|
|
174
157
|
}),
|
|
175
|
-
(0, vue_1.h)(DrawerBodyWrapper_1.default, Object.assign({}, this.$attrs, { class: [this.drawerClass, this.$attrs.class], style: [this.mergedBodyStyle, this.$attrs.style], contentStyle: this.contentStyle, placement: this.placement, scrollbarProps: this.scrollbarProps, show: this.show, displayDirective: this.displayDirective, nativeScrollbar: this.nativeScrollbar }), this.$slots)), [[vdirs_1.zindexable, { enabled: this.show }]]);
|
|
158
|
+
(0, vue_1.h)(DrawerBodyWrapper_1.default, Object.assign({}, this.$attrs, { class: [this.drawerClass, this.$attrs.class], style: [this.mergedBodyStyle, this.$attrs.style], contentStyle: this.contentStyle, placement: this.placement, scrollbarProps: this.scrollbarProps, show: this.show, displayDirective: this.displayDirective, nativeScrollbar: this.nativeScrollbar }), this.$slots)), [[vdirs_1.zindexable, { zIndex: this.zIndex, enabled: this.show }]]);
|
|
176
159
|
}
|
|
177
160
|
}));
|
|
178
161
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const vue_1 = require("vue");
|
|
4
|
+
const vueuc_1 = require("vueuc");
|
|
4
5
|
const _internal_1 = require("../../_internal");
|
|
5
6
|
const interface_1 = require("../../popover/src/interface");
|
|
6
7
|
const interface_2 = require("../../modal/src/interface");
|
|
@@ -63,19 +64,26 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
63
64
|
render() {
|
|
64
65
|
const { $slots, mergedClsPrefix } = this;
|
|
65
66
|
return this.displayDirective === 'show' || this.displayed || this.show
|
|
66
|
-
? (0, vue_1.withDirectives)(
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
67
|
+
? (0, vue_1.withDirectives)(
|
|
68
|
+
/* Keep the wrapper dom. Make sure the drawer has a host.
|
|
69
|
+
Nor the detached content will disappear without transition */
|
|
70
|
+
(0, vue_1.h)("div", { role: "none" },
|
|
71
|
+
(0, vue_1.h)(vueuc_1.VFocusTrap, { active: this.show, focusFirstDescendant: true }, {
|
|
72
|
+
default: () => ((0, vue_1.h)(vue_1.Transition, { name: this.transitionName, appear: this.isMounted, onAfterLeave: this.handleAfterLeave }, {
|
|
73
|
+
default: () => (0, vue_1.withDirectives)((0, vue_1.h)('div', (0, vue_1.mergeProps)(this.$attrs, {
|
|
74
|
+
role: 'dialog',
|
|
75
|
+
ref: 'bodyRef',
|
|
76
|
+
'aria-modal': 'true',
|
|
77
|
+
class: [
|
|
78
|
+
`${mergedClsPrefix}-drawer`,
|
|
79
|
+
`${mergedClsPrefix}-drawer--${this.placement}-placement`,
|
|
80
|
+
this.nativeScrollbar &&
|
|
81
|
+
`${mergedClsPrefix}-drawer--native-scrollbar`
|
|
82
|
+
]
|
|
83
|
+
}), [
|
|
84
|
+
this.nativeScrollbar ? ((0, vue_1.h)("div", { class: `${mergedClsPrefix}-drawer-content-wrapper`, style: this.contentStyle, role: "none" }, $slots)) : ((0, vue_1.h)(_internal_1.NScrollbar, Object.assign({}, this.scrollbarProps, { contentStyle: this.contentStyle, contentClass: `${mergedClsPrefix}-drawer-content-wrapper`, theme: this.mergedTheme.peers.Scrollbar, themeOverrides: this.mergedTheme.peerOverrides.Scrollbar }), $slots))
|
|
85
|
+
]), [[vue_1.vShow, this.show]])
|
|
86
|
+
}))
|
|
79
87
|
})), [
|
|
80
88
|
[
|
|
81
89
|
vue_1.vShow,
|
|
@@ -36,16 +36,16 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
36
36
|
},
|
|
37
37
|
render() {
|
|
38
38
|
const { title, mergedClsPrefix, nativeScrollbar, mergedTheme, bodyStyle, bodyContentStyle, headerStyle, footerStyle, scrollbarProps, closable, $slots } = this;
|
|
39
|
-
return ((0, vue_1.h)("div", { class: [
|
|
39
|
+
return ((0, vue_1.h)("div", { role: "none", class: [
|
|
40
40
|
`${mergedClsPrefix}-drawer-content`,
|
|
41
41
|
nativeScrollbar &&
|
|
42
42
|
`${mergedClsPrefix}-drawer-content--native-scrollbar`
|
|
43
43
|
] },
|
|
44
|
-
$slots.header || title || closable ? ((0, vue_1.h)("div", { class: `${mergedClsPrefix}-drawer-header`, style: headerStyle },
|
|
45
|
-
(0, vue_1.h)("div", { class: `${mergedClsPrefix}-drawer-header__main
|
|
44
|
+
$slots.header || title || closable ? ((0, vue_1.h)("div", { class: `${mergedClsPrefix}-drawer-header`, style: headerStyle, role: "none" },
|
|
45
|
+
(0, vue_1.h)("div", { class: `${mergedClsPrefix}-drawer-header__main`, role: "heading", "aria-level": "1" }, $slots.header !== undefined ? $slots.header() : title),
|
|
46
46
|
closable && ((0, vue_1.h)(_internal_1.NBaseClose, { onClick: this.handleCloseClick, clsPrefix: mergedClsPrefix, class: `${mergedClsPrefix}-drawer-header__close` })))) : null,
|
|
47
|
-
nativeScrollbar ? ((0, vue_1.h)("div", { class: `${mergedClsPrefix}-drawer-body`, style: bodyStyle },
|
|
48
|
-
(0, vue_1.h)("div", { class: `${mergedClsPrefix}-drawer-body-content-wrapper`, style: bodyContentStyle }, $slots))) : ((0, vue_1.h)(_internal_1.NScrollbar, Object.assign({ themeOverrides: mergedTheme.peerOverrides.Scrollbar, theme: mergedTheme.peers.Scrollbar }, scrollbarProps, { class: `${mergedClsPrefix}-drawer-body`, contentClass: `${mergedClsPrefix}-drawer-body-content-wrapper`, contentStyle: bodyContentStyle }), $slots)),
|
|
49
|
-
$slots.footer ? ((0, vue_1.h)("div", { class: `${mergedClsPrefix}-drawer-footer`, style: footerStyle }, $slots.footer())) : null));
|
|
47
|
+
nativeScrollbar ? ((0, vue_1.h)("div", { class: `${mergedClsPrefix}-drawer-body`, style: bodyStyle, role: "none" },
|
|
48
|
+
(0, vue_1.h)("div", { class: `${mergedClsPrefix}-drawer-body-content-wrapper`, style: bodyContentStyle, role: "none" }, $slots))) : ((0, vue_1.h)(_internal_1.NScrollbar, Object.assign({ themeOverrides: mergedTheme.peerOverrides.Scrollbar, theme: mergedTheme.peers.Scrollbar }, scrollbarProps, { class: `${mergedClsPrefix}-drawer-body`, contentClass: `${mergedClsPrefix}-drawer-body-content-wrapper`, contentStyle: bodyContentStyle }), $slots)),
|
|
49
|
+
$slots.footer ? ((0, vue_1.h)("div", { class: `${mergedClsPrefix}-drawer-footer`, style: footerStyle, role: "none" }, $slots.footer())) : null));
|
|
50
50
|
}
|
|
51
51
|
});
|
|
@@ -21,37 +21,37 @@ const slide_in_from_top_1 = __importDefault(require("../../../_styles/transition
|
|
|
21
21
|
const slide_in_from_bottom_1 = __importDefault(require("../../../_styles/transitions/slide-in-from-bottom"));
|
|
22
22
|
|
|
23
23
|
const fade_in_cssr_1 = __importDefault(require("../../../_styles/transitions/fade-in.cssr")); // vars:
|
|
24
|
-
// --line-height
|
|
25
|
-
// --color
|
|
26
|
-
// --text-color
|
|
27
|
-
// --box-shadow
|
|
28
|
-
// --bezier
|
|
29
|
-
// --bezier-out
|
|
30
|
-
// --bezier-in
|
|
31
|
-
// --body-padding
|
|
32
|
-
// --header-padding
|
|
33
|
-
// --footer-padding
|
|
34
|
-
// --title-font-size
|
|
35
|
-
// --title-text-color
|
|
36
|
-
// --title-font-weight
|
|
37
|
-
// --header-border-bottom
|
|
38
|
-
// --footer-border-top
|
|
39
|
-
// --close-color
|
|
40
|
-
// --close-color-hover
|
|
41
|
-
// --close-color-pressed
|
|
42
|
-
// --close-size
|
|
24
|
+
// --n-line-height
|
|
25
|
+
// --n-color
|
|
26
|
+
// --n-text-color
|
|
27
|
+
// --n-box-shadow
|
|
28
|
+
// --n-bezier
|
|
29
|
+
// --n-bezier-out
|
|
30
|
+
// --n-bezier-in
|
|
31
|
+
// --n-body-padding
|
|
32
|
+
// --n-header-padding
|
|
33
|
+
// --n-footer-padding
|
|
34
|
+
// --n-title-font-size
|
|
35
|
+
// --n-title-text-color
|
|
36
|
+
// --n-title-font-weight
|
|
37
|
+
// --n-header-border-bottom
|
|
38
|
+
// --n-footer-border-top
|
|
39
|
+
// --n-close-color
|
|
40
|
+
// --n-close-color-hover
|
|
41
|
+
// --n-close-color-pressed
|
|
42
|
+
// --n-close-size
|
|
43
43
|
|
|
44
44
|
|
|
45
45
|
exports.default = (0, cssr_1.c)([(0, cssr_1.cB)('drawer', `
|
|
46
|
-
line-height: var(--line-height);
|
|
46
|
+
line-height: var(--n-line-height);
|
|
47
47
|
position: absolute;
|
|
48
48
|
pointer-events: all;
|
|
49
|
-
box-shadow: var(--box-shadow);
|
|
49
|
+
box-shadow: var(--n-box-shadow);
|
|
50
50
|
transition:
|
|
51
|
-
background-color .3s var(--bezier),
|
|
52
|
-
color .3s var(--bezier);
|
|
53
|
-
background-color: var(--color);
|
|
54
|
-
color: var(--text-color);
|
|
51
|
+
background-color .3s var(--n-bezier),
|
|
52
|
+
color .3s var(--n-bezier);
|
|
53
|
+
background-color: var(--n-color);
|
|
54
|
+
color: var(--n-text-color);
|
|
55
55
|
box-sizing: border-box;
|
|
56
56
|
`, [(0, slide_in_from_right_1.default)(), (0, slide_in_from_left_1.default)(), (0, slide_in_from_top_1.default)(), (0, slide_in_from_bottom_1.default)(), (0, cssr_1.cM)('native-scrollbar', [(0, cssr_1.cB)('drawer-content-wrapper', `
|
|
57
57
|
overflow: auto;
|
|
@@ -67,30 +67,31 @@ exports.default = (0, cssr_1.c)([(0, cssr_1.cB)('drawer', `
|
|
|
67
67
|
overflow: auto;
|
|
68
68
|
`)]), (0, cssr_1.cB)('drawer-body', `
|
|
69
69
|
flex: 1 0 0;
|
|
70
|
+
overflow: hidden;
|
|
70
71
|
`), (0, cssr_1.cB)('drawer-body-content-wrapper', `
|
|
71
72
|
box-sizing: border-box;
|
|
72
|
-
padding: var(--body-padding);
|
|
73
|
+
padding: var(--n-body-padding);
|
|
73
74
|
`), (0, cssr_1.cB)('drawer-header', `
|
|
74
|
-
font-weight: var(--title-font-weight);
|
|
75
|
+
font-weight: var(--n-title-font-weight);
|
|
75
76
|
line-height: 1;
|
|
76
|
-
font-size: var(--title-font-size);
|
|
77
|
-
color: var(--title-text-color);
|
|
78
|
-
padding: var(--header-padding);
|
|
79
|
-
transition: border .3s var(--bezier);
|
|
80
|
-
border-bottom: 1px solid var(--divider-color);
|
|
81
|
-
border-bottom: var(--header-border-bottom);
|
|
77
|
+
font-size: var(--n-title-font-size);
|
|
78
|
+
color: var(--n-title-text-color);
|
|
79
|
+
padding: var(--n-header-padding);
|
|
80
|
+
transition: border .3s var(--n-bezier);
|
|
81
|
+
border-bottom: 1px solid var(--n-divider-color);
|
|
82
|
+
border-bottom: var(--n-header-border-bottom);
|
|
82
83
|
display: flex;
|
|
83
84
|
justify-content: space-between;
|
|
84
85
|
align-items: center;
|
|
85
86
|
`, [(0, cssr_1.cE)('close', `
|
|
86
|
-
transition: color .3s var(--bezier);
|
|
87
|
-
font-size: var(--close-size);
|
|
87
|
+
transition: color .3s var(--n-bezier);
|
|
88
|
+
font-size: var(--n-close-size);
|
|
88
89
|
`)]), (0, cssr_1.cB)('drawer-footer', `
|
|
89
90
|
display: flex;
|
|
90
91
|
justify-content: flex-end;
|
|
91
|
-
border-top: var(--footer-border-top);
|
|
92
|
-
transition: border .3s var(--bezier);
|
|
93
|
-
padding: var(--footer-padding);
|
|
92
|
+
border-top: var(--n-footer-border-top);
|
|
93
|
+
transition: border .3s var(--n-bezier);
|
|
94
|
+
padding: var(--n-footer-padding);
|
|
94
95
|
`)]), (0, cssr_1.cM)('right-placement', `
|
|
95
96
|
top: 0;
|
|
96
97
|
bottom: 0;
|
|
@@ -129,6 +130,6 @@ exports.default = (0, cssr_1.c)([(0, cssr_1.cB)('drawer', `
|
|
|
129
130
|
`, [(0, fade_in_cssr_1.default)({
|
|
130
131
|
enterDuration: '0.2s',
|
|
131
132
|
leaveDuration: '0.2s',
|
|
132
|
-
enterCubicBezier: 'var(--bezier-in)',
|
|
133
|
-
leaveCubicBezier: 'var(--bezier-out)'
|
|
133
|
+
enterCubicBezier: 'var(--n-bezier-in)',
|
|
134
|
+
leaveCubicBezier: 'var(--n-bezier-out)'
|
|
134
135
|
})])]);
|
|
@@ -321,6 +321,7 @@ declare const dropdownProps: {
|
|
|
321
321
|
type: PropType<import("../../popover/src/Popover").TriggerEventHandlers[]>;
|
|
322
322
|
default: () => never[];
|
|
323
323
|
};
|
|
324
|
+
readonly internalTrapFocus: BooleanConstructor;
|
|
324
325
|
readonly onShow: PropType<MaybeArray<(value: boolean) => void> | undefined>;
|
|
325
326
|
readonly onHide: PropType<MaybeArray<(value: boolean) => void> | undefined>;
|
|
326
327
|
readonly arrow: {
|
|
@@ -633,6 +634,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
633
634
|
type: PropType<import("../../popover/src/Popover").TriggerEventHandlers[]>;
|
|
634
635
|
default: () => never[];
|
|
635
636
|
};
|
|
637
|
+
readonly internalTrapFocus: BooleanConstructor;
|
|
636
638
|
readonly onShow: PropType<MaybeArray<(value: boolean) => void> | undefined>;
|
|
637
639
|
readonly onHide: PropType<MaybeArray<(value: boolean) => void> | undefined>;
|
|
638
640
|
readonly arrow: {
|
|
@@ -871,6 +873,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
871
873
|
readonly to?: unknown;
|
|
872
874
|
readonly internalSyncTargetWithParent?: unknown;
|
|
873
875
|
readonly internalInheritedEventHandlers?: unknown;
|
|
876
|
+
readonly internalTrapFocus?: unknown;
|
|
874
877
|
readonly onShow?: unknown;
|
|
875
878
|
readonly onHide?: unknown;
|
|
876
879
|
readonly arrow?: unknown;
|
|
@@ -889,6 +892,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
889
892
|
showArrow: boolean;
|
|
890
893
|
delay: number;
|
|
891
894
|
displayDirective: "show" | "if";
|
|
895
|
+
internalTrapFocus: boolean;
|
|
892
896
|
animated: boolean;
|
|
893
897
|
defaultShow: boolean;
|
|
894
898
|
internalExtraClass: string[];
|
|
@@ -1146,6 +1150,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1146
1150
|
showArrow: boolean;
|
|
1147
1151
|
delay: number;
|
|
1148
1152
|
displayDirective: "show" | "if";
|
|
1153
|
+
internalTrapFocus: boolean;
|
|
1149
1154
|
animated: boolean;
|
|
1150
1155
|
defaultShow: boolean;
|
|
1151
1156
|
internalExtraClass: string[];
|
|
@@ -241,46 +241,48 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
241
241
|
const { common: { cubicBezierEaseInOut }, self } = themeRef.value;
|
|
242
242
|
const { padding, dividerColor, borderRadius, optionOpacityDisabled, [(0, _utils_1.createKey)('optionIconSuffixWidth', size)]: optionIconSuffixWidth, [(0, _utils_1.createKey)('optionSuffixWidth', size)]: optionSuffixWidth, [(0, _utils_1.createKey)('optionIconPrefixWidth', size)]: optionIconPrefixWidth, [(0, _utils_1.createKey)('optionPrefixWidth', size)]: optionPrefixWidth, [(0, _utils_1.createKey)('fontSize', size)]: fontSize, [(0, _utils_1.createKey)('optionHeight', size)]: optionHeight, [(0, _utils_1.createKey)('optionIconSize', size)]: optionIconSize } = self;
|
|
243
243
|
const vars = {
|
|
244
|
-
'--bezier': cubicBezierEaseInOut,
|
|
245
|
-
'--font-size': fontSize,
|
|
246
|
-
'--padding': padding,
|
|
247
|
-
'--border-radius': borderRadius,
|
|
248
|
-
'--option-height': optionHeight,
|
|
249
|
-
'--option-prefix-width': optionPrefixWidth,
|
|
250
|
-
'--option-icon-prefix-width': optionIconPrefixWidth,
|
|
251
|
-
'--option-suffix-width': optionSuffixWidth,
|
|
252
|
-
'--option-icon-suffix-width': optionIconSuffixWidth,
|
|
253
|
-
'--option-icon-size': optionIconSize,
|
|
254
|
-
'--divider-color': dividerColor,
|
|
255
|
-
'--option-opacity-disabled': optionOpacityDisabled
|
|
244
|
+
'--n-bezier': cubicBezierEaseInOut,
|
|
245
|
+
'--n-font-size': fontSize,
|
|
246
|
+
'--n-padding': padding,
|
|
247
|
+
'--n-border-radius': borderRadius,
|
|
248
|
+
'--n-option-height': optionHeight,
|
|
249
|
+
'--n-option-prefix-width': optionPrefixWidth,
|
|
250
|
+
'--n-option-icon-prefix-width': optionIconPrefixWidth,
|
|
251
|
+
'--n-option-suffix-width': optionSuffixWidth,
|
|
252
|
+
'--n-option-icon-suffix-width': optionIconSuffixWidth,
|
|
253
|
+
'--n-option-icon-size': optionIconSize,
|
|
254
|
+
'--n-divider-color': dividerColor,
|
|
255
|
+
'--n-option-opacity-disabled': optionOpacityDisabled
|
|
256
256
|
};
|
|
257
257
|
// writing like this is the fastest method
|
|
258
258
|
if (inverted) {
|
|
259
|
-
vars['--color'] = self.colorInverted;
|
|
260
|
-
vars['--option-color-hover'] = self.optionColorHoverInverted;
|
|
261
|
-
vars['--option-color-active'] = self.optionColorActiveInverted;
|
|
262
|
-
vars['--option-text-color'] = self.optionTextColorInverted;
|
|
263
|
-
vars['--option-text-color-hover'] =
|
|
264
|
-
|
|
259
|
+
vars['--n-color'] = self.colorInverted;
|
|
260
|
+
vars['--n-option-color-hover'] = self.optionColorHoverInverted;
|
|
261
|
+
vars['--n-option-color-active'] = self.optionColorActiveInverted;
|
|
262
|
+
vars['--n-option-text-color'] = self.optionTextColorInverted;
|
|
263
|
+
vars['--n-option-text-color-hover'] =
|
|
264
|
+
self.optionTextColorHoverInverted;
|
|
265
|
+
vars['--n-option-text-color-active'] =
|
|
265
266
|
self.optionTextColorActiveInverted;
|
|
266
|
-
vars['--option-text-color-child-active'] =
|
|
267
|
+
vars['--n-option-text-color-child-active'] =
|
|
267
268
|
self.optionTextColorChildActiveInverted;
|
|
268
|
-
vars['--prefix-color'] = self.prefixColorInverted;
|
|
269
|
-
vars['--suffix-color'] = self.suffixColorInverted;
|
|
270
|
-
vars['--group-header-text-color'] =
|
|
269
|
+
vars['--n-prefix-color'] = self.prefixColorInverted;
|
|
270
|
+
vars['--n-suffix-color'] = self.suffixColorInverted;
|
|
271
|
+
vars['--n-group-header-text-color'] =
|
|
272
|
+
self.groupHeaderTextColorInverted;
|
|
271
273
|
}
|
|
272
274
|
else {
|
|
273
|
-
vars['--color'] = self.color;
|
|
274
|
-
vars['--option-color-hover'] = self.optionColorHover;
|
|
275
|
-
vars['--option-color-active'] = self.optionColorActive;
|
|
276
|
-
vars['--option-text-color'] = self.optionTextColor;
|
|
277
|
-
vars['--option-text-color-hover'] = self.optionTextColorHover;
|
|
278
|
-
vars['--option-text-color-active'] = self.optionTextColorActive;
|
|
279
|
-
vars['--option-text-color-child-active'] =
|
|
275
|
+
vars['--n-color'] = self.color;
|
|
276
|
+
vars['--n-option-color-hover'] = self.optionColorHover;
|
|
277
|
+
vars['--n-option-color-active'] = self.optionColorActive;
|
|
278
|
+
vars['--n-option-text-color'] = self.optionTextColor;
|
|
279
|
+
vars['--n-option-text-color-hover'] = self.optionTextColorHover;
|
|
280
|
+
vars['--n-option-text-color-active'] = self.optionTextColorActive;
|
|
281
|
+
vars['--n-option-text-color-child-active'] =
|
|
280
282
|
self.optionTextColorChildActive;
|
|
281
|
-
vars['--prefix-color'] = self.prefixColor;
|
|
282
|
-
vars['--suffix-color'] = self.suffixColor;
|
|
283
|
-
vars['--group-header-text-color'] = self.groupHeaderTextColor;
|
|
283
|
+
vars['--n-prefix-color'] = self.prefixColor;
|
|
284
|
+
vars['--n-suffix-color'] = self.suffixColor;
|
|
285
|
+
vars['--n-group-header-text-color'] = self.groupHeaderTextColor;
|
|
284
286
|
}
|
|
285
287
|
return vars;
|
|
286
288
|
})
|
|
@@ -13,40 +13,40 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
13
13
|
const cssr_1 = require("../../../_utils/cssr");
|
|
14
14
|
|
|
15
15
|
const fade_in_scale_up_cssr_1 = __importDefault(require("../../../_styles/transitions/fade-in-scale-up.cssr")); // vars:
|
|
16
|
-
// --bezier
|
|
17
|
-
// --font-size
|
|
18
|
-
// --padding
|
|
19
|
-
// --border-radius
|
|
20
|
-
// --option-height
|
|
21
|
-
// --option-prefix-width
|
|
22
|
-
// --option-icon-prefix-width
|
|
23
|
-
// --option-suffix-width
|
|
24
|
-
// --option-icon-suffix-width
|
|
25
|
-
// --color
|
|
26
|
-
// --option-color-hover
|
|
27
|
-
// --option-color-active
|
|
28
|
-
// --divider-color
|
|
29
|
-
// --option-text-color
|
|
30
|
-
// --option-text-color-hover
|
|
31
|
-
// --option-text-color-active
|
|
32
|
-
// --option-text-color-child-active
|
|
33
|
-
// --prefix-color
|
|
34
|
-
// --suffix-color
|
|
35
|
-
// --option-icon-size
|
|
36
|
-
// --option-opacity-disabled
|
|
16
|
+
// --n-bezier
|
|
17
|
+
// --n-font-size
|
|
18
|
+
// --n-padding
|
|
19
|
+
// --n-border-radius
|
|
20
|
+
// --n-option-height
|
|
21
|
+
// --n-option-prefix-width
|
|
22
|
+
// --n-option-icon-prefix-width
|
|
23
|
+
// --n-option-suffix-width
|
|
24
|
+
// --n-option-icon-suffix-width
|
|
25
|
+
// --n-color
|
|
26
|
+
// --n-option-color-hover
|
|
27
|
+
// --n-option-color-active
|
|
28
|
+
// --n-divider-color
|
|
29
|
+
// --n-option-text-color
|
|
30
|
+
// --n-option-text-color-hover
|
|
31
|
+
// --n-option-text-color-active
|
|
32
|
+
// --n-option-text-color-child-active
|
|
33
|
+
// --n-prefix-color
|
|
34
|
+
// --n-suffix-color
|
|
35
|
+
// --n-option-icon-size
|
|
36
|
+
// --n-option-opacity-disabled
|
|
37
37
|
// shared with popover
|
|
38
|
-
// --box-shadow
|
|
38
|
+
// --n-box-shadow
|
|
39
39
|
|
|
40
40
|
|
|
41
41
|
exports.default = (0, cssr_1.cB)('dropdown-menu', `
|
|
42
42
|
transform-origin: inherit;
|
|
43
|
-
padding: var(--padding);
|
|
44
|
-
background-color: var(--color);
|
|
45
|
-
border-radius: var(--border-radius);
|
|
46
|
-
box-shadow: var(--box-shadow);
|
|
43
|
+
padding: var(--n-padding);
|
|
44
|
+
background-color: var(--n-color);
|
|
45
|
+
border-radius: var(--n-border-radius);
|
|
46
|
+
box-shadow: var(--n-box-shadow);
|
|
47
47
|
transition:
|
|
48
|
-
background-color .3s var(--bezier),
|
|
49
|
-
box-shadow .3s var(--bezier);
|
|
48
|
+
background-color .3s var(--n-bezier),
|
|
49
|
+
box-shadow .3s var(--n-bezier);
|
|
50
50
|
`, [(0, fade_in_scale_up_cssr_1.default)(), (0, cssr_1.cB)('dropdown-option', `
|
|
51
51
|
position: relative;
|
|
52
52
|
`, [(0, cssr_1.c)('a', `
|
|
@@ -62,48 +62,48 @@ exports.default = (0, cssr_1.cB)('dropdown-menu', `
|
|
|
62
62
|
`)]), (0, cssr_1.cB)('dropdown-option-body', `
|
|
63
63
|
display: flex;
|
|
64
64
|
cursor: pointer;
|
|
65
|
-
height: var(--option-height);
|
|
66
|
-
line-height: var(--option-height);
|
|
67
|
-
font-size: var(--font-size);
|
|
68
|
-
color: var(--option-text-color);
|
|
65
|
+
height: var(--n-option-height);
|
|
66
|
+
line-height: var(--n-option-height);
|
|
67
|
+
font-size: var(--n-font-size);
|
|
68
|
+
color: var(--n-option-text-color);
|
|
69
69
|
transition:
|
|
70
|
-
background-color .3s var(--bezier),
|
|
71
|
-
color .3s var(--bezier);
|
|
70
|
+
background-color .3s var(--n-bezier),
|
|
71
|
+
color .3s var(--n-bezier);
|
|
72
72
|
`, [(0, cssr_1.cM)('pending', [(0, cssr_1.cNotM)('disabled', {
|
|
73
|
-
color: 'var(--option-text-color-hover)',
|
|
74
|
-
backgroundColor: 'var(--option-color-hover)'
|
|
73
|
+
color: 'var(--n-option-text-color-hover)',
|
|
74
|
+
backgroundColor: 'var(--n-option-color-hover)'
|
|
75
75
|
}), (0, cssr_1.cE)('prefix, suffix', {
|
|
76
|
-
color: 'var(--option-text-color-hover)'
|
|
76
|
+
color: 'var(--n-option-text-color-hover)'
|
|
77
77
|
})]), (0, cssr_1.cM)('active', [(0, cssr_1.cNotM)('disabled', {
|
|
78
|
-
color: 'var(--option-text-color-active)',
|
|
79
|
-
backgroundColor: 'var(--option-color-active)'
|
|
78
|
+
color: 'var(--n-option-text-color-active)',
|
|
79
|
+
backgroundColor: 'var(--n-option-color-active)'
|
|
80
80
|
}), (0, cssr_1.cE)('prefix, suffix', {
|
|
81
|
-
color: 'var(--option-text-color-active)'
|
|
81
|
+
color: 'var(--n-option-text-color-active)'
|
|
82
82
|
})]), (0, cssr_1.cM)('disabled', {
|
|
83
83
|
cursor: 'not-allowed',
|
|
84
|
-
opacity: 'var(--option-opacity-disabled)'
|
|
84
|
+
opacity: 'var(--n-option-opacity-disabled)'
|
|
85
85
|
}), (0, cssr_1.cM)('child-active', {
|
|
86
|
-
color: 'var(--option-text-color-child-active)'
|
|
86
|
+
color: 'var(--n-option-text-color-child-active)'
|
|
87
87
|
}, [(0, cssr_1.cE)('prefix, suffix', {
|
|
88
|
-
color: 'var(--option-text-color-child-active)'
|
|
88
|
+
color: 'var(--n-option-text-color-child-active)'
|
|
89
89
|
})]), (0, cssr_1.cM)('group', {
|
|
90
|
-
fontSize: 'calc(var(--font-size) - 1px)',
|
|
91
|
-
color: 'var(--group-header-text-color)'
|
|
90
|
+
fontSize: 'calc(var(--n-font-size) - 1px)',
|
|
91
|
+
color: 'var(--n-group-header-text-color)'
|
|
92
92
|
}, [(0, cssr_1.cE)('prefix', {
|
|
93
|
-
width: 'calc(var(--option-prefix-width) / 2)'
|
|
93
|
+
width: 'calc(var(--n-option-prefix-width) / 2)'
|
|
94
94
|
}, [(0, cssr_1.cM)('show-icon', {
|
|
95
|
-
width: 'calc(var(--option-icon-prefix-width) / 2)'
|
|
95
|
+
width: 'calc(var(--n-option-icon-prefix-width) / 2)'
|
|
96
96
|
})])]), (0, cssr_1.cE)('prefix', `
|
|
97
|
-
width: var(--option-prefix-width);
|
|
97
|
+
width: var(--n-option-prefix-width);
|
|
98
98
|
display: flex;
|
|
99
99
|
justify-content: center;
|
|
100
100
|
align-items: center;
|
|
101
|
-
color: var(--prefix-color);
|
|
102
|
-
transition: color .3s var(--bezier);
|
|
101
|
+
color: var(--n-prefix-color);
|
|
102
|
+
transition: color .3s var(--n-bezier);
|
|
103
103
|
`, [(0, cssr_1.cM)('show-icon', {
|
|
104
|
-
width: 'var(--option-icon-prefix-width)'
|
|
104
|
+
width: 'var(--n-option-icon-prefix-width)'
|
|
105
105
|
}), (0, cssr_1.cB)('icon', {
|
|
106
|
-
fontSize: 'var(--option-icon-size)'
|
|
106
|
+
fontSize: 'var(--n-option-icon-size)'
|
|
107
107
|
})]), (0, cssr_1.cE)('label', {
|
|
108
108
|
whiteSpace: 'nowrap',
|
|
109
109
|
flex: 1
|
|
@@ -114,14 +114,14 @@ exports.default = (0, cssr_1.cB)('dropdown-menu', `
|
|
|
114
114
|
display: flex;
|
|
115
115
|
justify-content: flex-end;
|
|
116
116
|
align-items: center;
|
|
117
|
-
min-width: var(--option-suffix-width);
|
|
117
|
+
min-width: var(--n-option-suffix-width);
|
|
118
118
|
padding: 0 8px;
|
|
119
|
-
transition: color .3s var(--bezier);
|
|
120
|
-
color: var(--suffix-color);
|
|
119
|
+
transition: color .3s var(--n-bezier);
|
|
120
|
+
color: var(--n-suffix-color);
|
|
121
121
|
`, [(0, cssr_1.cM)('has-submenu', {
|
|
122
|
-
width: 'var(--option-icon-suffix-width)'
|
|
122
|
+
width: 'var(--n-option-icon-suffix-width)'
|
|
123
123
|
}), (0, cssr_1.cB)('icon', {
|
|
124
|
-
fontSize: 'var(--option-icon-size)'
|
|
124
|
+
fontSize: 'var(--n-option-icon-size)'
|
|
125
125
|
})]), (0, cssr_1.cB)('dropdown-menu', {
|
|
126
126
|
pointerEvents: 'all'
|
|
127
127
|
})]), (0, cssr_1.cB)('dropdown-offset-container', `
|
|
@@ -132,8 +132,8 @@ exports.default = (0, cssr_1.cB)('dropdown-menu', `
|
|
|
132
132
|
top: -4px;
|
|
133
133
|
bottom: -4px;
|
|
134
134
|
`)]), (0, cssr_1.cB)('dropdown-divider', `
|
|
135
|
-
transition: background-color .3s var(--bezier);
|
|
136
|
-
background-color: var(--divider-color);
|
|
135
|
+
transition: background-color .3s var(--n-bezier);
|
|
136
|
+
background-color: var(--n-divider-color);
|
|
137
137
|
height: 1px;
|
|
138
138
|
margin: 4px 0;
|
|
139
139
|
`), (0, cssr_1.cB)('dropdown-menu-wrapper', `
|