naive-ui 2.41.1 → 2.43.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/dist/index.js +3349 -1068
- package/dist/index.mjs +3339 -1070
- package/dist/index.prod.js +1 -1
- package/dist/index.prod.mjs +1 -1
- package/es/_internal/icon/src/styles/index.cssr.mjs +0 -1
- package/es/_internal/icons/replaceable.mjs +1 -1
- package/es/_internal/scrollbar/src/Scrollbar.d.ts +3 -3
- package/es/_internal/select-menu/src/SelectMenu.d.ts +4 -4
- package/es/_internal/selection/src/Selection.d.ts +115 -13
- package/es/_internal/selection/styles/light.d.ts +14 -1
- package/es/_mixins/use-theme.mjs +1 -1
- package/es/_utils/index.d.ts +1 -0
- package/es/_utils/naive/prop.d.ts +19 -10
- package/es/_utils/naive/prop.mjs +21 -21
- package/es/_utils/ts/ts.d.ts +3 -0
- package/es/alert/src/Alert.d.ts +2 -2
- package/es/anchor/index.d.ts +1 -0
- package/es/anchor/src/AnchorAdapter.d.ts +1 -1
- package/es/anchor/src/BaseAnchor.mjs +29 -5
- package/es/anchor/src/Link.d.ts +3 -2
- package/es/anchor/src/Link.mjs +5 -2
- package/es/anchor/src/public-types.d.ts +5 -0
- package/es/anchor/src/public-types.mjs +1 -0
- package/es/auto-complete/src/AutoComplete.d.ts +155 -14
- package/es/auto-complete/styles/light.d.ts +14 -1
- package/es/avatar-group/index.d.ts +3 -2
- package/es/avatar-group/src/AvatarGroup.d.ts +1 -4
- package/es/avatar-group/src/generic-public-types.d.ts +18 -0
- package/es/avatar-group/src/generic-public-types.mjs +1 -0
- package/es/avatar-group/src/public-types.d.ts +10 -0
- package/es/avatar-group/src/public-types.mjs +1 -0
- package/es/back-top/src/BackTop.d.ts +1 -1
- package/es/badge/src/Badge.d.ts +1 -1
- package/es/button/src/Button.d.ts +1 -1
- package/es/card/src/Card.d.ts +7 -2
- package/es/card/src/Card.mjs +3 -1
- package/es/carousel/src/Carousel.d.ts +4 -4
- package/es/carousel/src/Carousel.mjs +2 -2
- package/es/carousel/src/CarouselDots.d.ts +2 -2
- package/es/carousel/src/CarouselItem.mjs +1 -1
- package/es/cascader/src/Cascader.d.ts +163 -20
- package/es/cascader/src/CascaderMenu.d.ts +56 -4
- package/es/cascader/src/CascaderOption.d.ts +56 -4
- package/es/cascader/src/CascaderSelectMenu.d.ts +57 -5
- package/es/cascader/src/CascaderSubmenu.d.ts +56 -4
- package/es/cascader/styles/light.d.ts +14 -1
- package/es/color-picker/src/ColorInputUnit.d.ts +26 -2
- package/es/color-picker/src/ColorPicker.d.ts +128 -11
- package/es/color-picker/src/ColorPickerTrigger.mjs +2 -1
- package/es/color-picker/src/utils.d.ts +2 -0
- package/es/color-picker/src/utils.mjs +23 -0
- package/es/color-picker/styles/light.d.ts +17 -4
- package/es/components.d.ts +1 -0
- package/es/components.mjs +1 -0
- package/es/config-provider/src/ConfigProvider.d.ts +1 -1
- package/es/config-provider/src/ConfigProvider.mjs +1 -1
- package/es/config-provider/src/internal-interface.d.ts +2 -0
- package/es/data-table/src/DataTable.d.ts +690 -68
- package/es/data-table/src/HeaderButton/FilterButton.d.ts +334 -26
- package/es/data-table/src/HeaderButton/FilterMenu.d.ts +332 -24
- package/es/data-table/src/TableParts/Body.d.ts +332 -24
- package/es/data-table/src/TableParts/Cell.mjs +1 -1
- package/es/data-table/src/TableParts/Header.d.ts +332 -24
- package/es/data-table/src/interface.d.ts +253 -18
- package/es/data-table/src/use-sorter.d.ts +2 -5
- package/es/data-table/src/use-table-data.d.ts +1 -4
- package/es/data-table/src/utils.mjs +4 -1
- package/es/data-table/styles/light.d.ts +84 -6
- package/es/date-picker/src/DatePicker.d.ts +229 -23
- package/es/date-picker/src/DatePicker.mjs +1 -1
- package/es/date-picker/src/panel/date.d.ts +110 -10
- package/es/date-picker/src/panel/daterange.d.ts +111 -11
- package/es/date-picker/src/panel/datetime.d.ts +111 -11
- package/es/date-picker/src/panel/datetime.mjs +1 -1
- package/es/date-picker/src/panel/datetimerange.d.ts +112 -12
- package/es/date-picker/src/panel/datetimerange.mjs +2 -2
- package/es/date-picker/src/panel/month.d.ts +110 -10
- package/es/date-picker/src/panel/monthrange.d.ts +111 -11
- package/es/date-picker/src/panel/panelHeader.d.ts +436 -36
- package/es/date-picker/src/panel/use-calendar.d.ts +109 -9
- package/es/date-picker/src/panel/use-dual-calendar.d.ts +110 -10
- package/es/date-picker/src/panel/use-dual-calendar.mjs +3 -3
- package/es/date-picker/src/panel/use-panel-common.d.ts +109 -9
- package/es/date-picker/src/panel/use-panel-common.mjs +1 -1
- package/es/date-picker/src/props.d.ts +85 -7
- package/es/date-picker/src/props.mjs +1 -1
- package/es/date-picker/src/utils.d.ts +2 -1
- package/es/date-picker/src/utils.mjs +4 -1
- package/es/date-picker/styles/light.d.ts +28 -2
- package/es/dialog/src/Dialog.d.ts +9 -6
- package/es/dialog/src/Dialog.mjs +1 -0
- package/es/dialog/src/DialogEnvironment.d.ts +11 -4
- package/es/dialog/src/DialogEnvironment.mjs +3 -0
- package/es/dialog/src/DialogProvider.d.ts +38 -34
- package/es/dialog/src/dialogProps.d.ts +2 -1
- package/es/dialog/src/dialogProps.mjs +2 -1
- package/es/drawer/src/Drawer.d.ts +4 -4
- package/es/drawer/src/DrawerBodyWrapper.d.ts +1 -1
- package/es/dropdown/src/Dropdown.d.ts +165 -24
- package/es/dropdown/src/DropdownMenu.d.ts +2 -2
- package/es/dropdown/src/DropdownOption.d.ts +2 -2
- package/es/dropdown/styles/light.d.ts +16 -3
- package/es/dynamic-input/src/DynamicInput.d.ts +153 -12
- package/es/dynamic-input/src/InputPreset.d.ts +52 -4
- package/es/dynamic-input/src/PairPreset.d.ts +52 -4
- package/es/dynamic-input/styles/light.d.ts +14 -1
- package/es/dynamic-tags/src/DynamicTags.d.ts +153 -12
- package/es/dynamic-tags/styles/light.d.ts +14 -1
- package/es/element/src/Element.mjs +1 -1
- package/es/ellipsis/src/Ellipsis.d.ts +154 -11
- package/es/ellipsis/src/PerformantEllipsis.d.ts +84 -6
- package/es/ellipsis/styles/light.d.ts +14 -1
- package/es/empty/src/Empty.d.ts +1 -1
- package/es/form/src/FormItem.d.ts +8 -2
- package/es/form/src/FormItem.mjs +6 -3
- package/es/form/src/FormItemCol.d.ts +7 -1
- package/es/form/src/FormItemGridItem.d.ts +7 -1
- package/es/form/src/FormItemRow.d.ts +7 -1
- package/es/form/src/utils.d.ts +1 -1
- package/es/form/src/utils.mjs +1 -1
- package/es/global-style/src/GlobalStyle.mjs +1 -1
- package/es/gradient-text/src/GradientText.d.ts +2 -2
- package/es/grid/src/GridItem.d.ts +1 -1
- package/es/heatmap/index.d.ts +6 -0
- package/es/heatmap/index.mjs +4 -0
- package/es/heatmap/src/ColorIndicator.d.ts +25 -0
- package/es/heatmap/src/ColorIndicator.mjs +41 -0
- package/es/heatmap/src/Heatmap.d.ts +385 -0
- package/es/heatmap/src/Heatmap.mjs +333 -0
- package/es/heatmap/src/Rect.d.ts +57 -0
- package/es/heatmap/src/Rect.mjs +67 -0
- package/es/heatmap/src/animationStyle.d.ts +6 -0
- package/es/heatmap/src/animationStyle.mjs +51 -0
- package/es/heatmap/src/interface.d.ts +7 -0
- package/es/heatmap/src/interface.mjs +1 -0
- package/es/heatmap/src/public-types.d.ts +16 -0
- package/es/heatmap/src/public-types.mjs +1 -0
- package/es/heatmap/src/styles/index.cssr.d.ts +2 -0
- package/es/heatmap/src/styles/index.cssr.mjs +102 -0
- package/es/heatmap/src/styles/rtl.cssr.d.ts +2 -0
- package/es/heatmap/src/styles/rtl.cssr.mjs +4 -0
- package/es/heatmap/src/theme.d.ts +8 -0
- package/es/heatmap/src/theme.mjs +7 -0
- package/es/heatmap/src/utils/index.d.ts +32 -0
- package/es/heatmap/src/utils/index.mjs +148 -0
- package/es/heatmap/styles/dark.d.ts +3 -0
- package/es/heatmap/styles/dark.mjs +16 -0
- package/es/heatmap/styles/index.d.ts +3 -0
- package/es/heatmap/styles/index.mjs +2 -0
- package/es/heatmap/styles/light.d.ts +31 -0
- package/es/heatmap/styles/light.mjs +45 -0
- package/es/heatmap/styles/rtl.d.ts +2 -0
- package/es/heatmap/styles/rtl.mjs +5 -0
- package/es/highlight/src/utils.mjs +10 -10
- package/es/icon/src/styles/index.cssr.mjs +0 -1
- package/es/image/index.d.ts +3 -1
- package/es/image/index.mjs +2 -1
- package/es/image/src/Image.d.ts +133 -23
- package/es/image/src/Image.mjs +48 -23
- package/es/image/src/ImageGroup.d.ts +200 -35
- package/es/image/src/ImageGroup.mjs +130 -26
- package/es/image/src/ImagePreview.d.ts +258 -23
- package/es/image/src/ImagePreview.mjs +84 -42
- package/es/image/src/interface.d.ts +42 -3
- package/es/image/src/public-types.d.ts +14 -0
- package/es/image/styles/light.d.ts +14 -1
- package/es/input/src/Input.d.ts +146 -12
- package/es/input/src/Input.mjs +6 -4
- package/es/input/src/InputGroupLabel.d.ts +129 -22
- package/es/input/src/InputGroupLabel.mjs +14 -8
- package/es/input/styles/dark.d.ts +139 -2
- package/es/input/styles/dark.mjs +114 -108
- package/es/input/styles/light.d.ts +76 -3
- package/es/input/styles/light.mjs +7 -2
- package/es/input-number/src/InputNumber.d.ts +152 -11
- package/es/input-number/styles/light.d.ts +14 -1
- package/es/input-otp/src/InputOtp.d.ts +158 -12
- package/es/input-otp/src/InputOtp.mjs +12 -4
- package/es/input-otp/src/public-types.d.ts +1 -0
- package/es/input-otp/src/styles/index.cssr.mjs +12 -3
- package/es/input-otp/styles/dark.mjs +1 -1
- package/es/input-otp/styles/light.d.ts +14 -1
- package/es/layout/src/LayoutSider.d.ts +1 -1
- package/es/legacy-transfer/src/Transfer.d.ts +154 -13
- package/es/legacy-transfer/src/TransferFilter.d.ts +52 -4
- package/es/legacy-transfer/src/TransferList.d.ts +52 -4
- package/es/legacy-transfer/src/TransferListItem.d.ts +52 -4
- package/es/legacy-transfer/styles/light.d.ts +14 -1
- package/es/locales/common/arDZ.mjs +6 -0
- package/es/locales/common/azAZ.mjs +6 -0
- package/es/locales/common/csCZ.mjs +6 -0
- package/es/locales/common/daDK.d.ts +3 -0
- package/es/locales/common/daDK.mjs +130 -0
- package/es/locales/common/deDE.mjs +6 -0
- package/es/locales/common/enGB.mjs +6 -0
- package/es/locales/common/enUS.d.ts +6 -0
- package/es/locales/common/enUS.mjs +6 -0
- package/es/locales/common/eo.mjs +6 -0
- package/es/locales/common/esAR.mjs +6 -0
- package/es/locales/common/etEE.mjs +6 -0
- package/es/locales/common/faIR.mjs +6 -0
- package/es/locales/common/frFR.mjs +6 -0
- package/es/locales/common/idID.mjs +6 -0
- package/es/locales/common/itIT.mjs +6 -0
- package/es/locales/common/jaJP.mjs +6 -0
- package/es/locales/common/kmKH.mjs +6 -0
- package/es/locales/common/koKR.mjs +6 -0
- package/es/locales/common/nbNO.mjs +6 -0
- package/es/locales/common/nlNL.mjs +6 -0
- package/es/locales/common/plPL.mjs +6 -0
- package/es/locales/common/ptBR.mjs +6 -0
- package/es/locales/common/ruRU.mjs +6 -0
- package/es/locales/common/skSK.mjs +6 -0
- package/es/locales/common/svSE.mjs +8 -2
- package/es/locales/common/thTH.mjs +6 -0
- package/es/locales/common/trTR.mjs +6 -0
- package/es/locales/common/ugCN.mjs +6 -0
- package/es/locales/common/ukUA.mjs +6 -0
- package/es/locales/common/uzUZ.mjs +6 -0
- package/es/locales/common/viVN.mjs +6 -0
- package/es/locales/common/zhCN.mjs +6 -0
- package/es/locales/common/zhTW.mjs +6 -0
- package/es/locales/date/daDK.d.ts +3 -0
- package/es/locales/date/daDK.mjs +6 -0
- package/es/locales/index.d.ts +2 -0
- package/es/locales/index.mjs +2 -0
- package/es/locales/utils/index.mjs +1 -1
- package/es/log/src/Log.d.ts +1 -1
- package/es/log/src/Log.mjs +1 -1
- package/es/marquee/src/Marquee.mjs +12 -10
- package/es/mention/src/Mention.d.ts +155 -14
- package/es/mention/styles/light.d.ts +14 -1
- package/es/menu/src/Menu.d.ts +314 -28
- package/es/menu/src/MenuOption.d.ts +113 -9
- package/es/menu/src/MenuOption.mjs +4 -3
- package/es/menu/src/MenuOptionContent.d.ts +1 -1
- package/es/menu/src/MenuOptionGroup.d.ts +1 -1
- package/es/menu/src/MenuOptionGroup.mjs +11 -4
- package/es/menu/src/Submenu.d.ts +114 -10
- package/es/menu/src/use-menu-child.d.ts +2 -0
- package/es/menu/src/use-menu-child.mjs +2 -1
- package/es/menu/styles/light.d.ts +33 -7
- package/es/message/src/Message.d.ts +1 -0
- package/es/message/src/Message.mjs +3 -1
- package/es/message/src/MessageProvider.d.ts +10 -1
- package/es/message/src/styles/index.cssr.mjs +1 -0
- package/es/message/styles/light.d.ts +1 -0
- package/es/message/styles/light.mjs +2 -1
- package/es/modal/src/BodyWrapper.d.ts +13 -7
- package/es/modal/src/BodyWrapper.mjs +4 -3
- package/es/modal/src/Modal.d.ts +32 -15
- package/es/modal/src/Modal.mjs +14 -6
- package/es/modal/src/ModalEnvironment.d.ts +22 -10
- package/es/modal/src/ModalEnvironment.mjs +1 -1
- package/es/modal/src/ModalProvider.d.ts +2 -1
- package/es/modal/src/ModalProvider.mjs +4 -2
- package/es/modal/src/presetProps.d.ts +3 -2
- package/es/modal/src/styles/index.cssr.mjs +4 -2
- package/es/notification/src/Notification.d.ts +2 -2
- package/es/notification/src/NotificationEnvironment.d.ts +1 -1
- package/es/notification/src/NotificationProvider.d.ts +5 -5
- package/es/number-animation/src/NumberAnimation.mjs +1 -1
- package/es/pagination/src/Pagination.d.ts +460 -33
- package/es/pagination/styles/light.d.ts +42 -3
- package/es/popconfirm/src/Popconfirm.d.ts +163 -22
- package/es/popconfirm/src/Popconfirm.mjs +3 -3
- package/es/popconfirm/src/PopconfirmPanel.d.ts +3 -3
- package/es/popconfirm/styles/light.d.ts +14 -1
- package/es/popover/src/Popover.d.ts +133 -16
- package/es/popover/src/PopoverBody.d.ts +129 -12
- package/es/popover/src/PopoverBody.mjs +8 -4
- package/es/popover/src/styles/index.cssr.mjs +1 -1
- package/es/popover/src/styles/rtl.cssr.d.ts +2 -0
- package/es/popover/src/styles/rtl.cssr.mjs +5 -0
- package/es/popover/styles/dark.mjs +4 -0
- package/es/popover/styles/index.d.ts +1 -0
- package/es/popover/styles/index.mjs +2 -1
- package/es/popover/styles/light.d.ts +27 -2
- package/es/popover/styles/light.mjs +7 -2
- package/es/popover/styles/rtl.d.ts +2 -0
- package/es/popover/styles/rtl.mjs +7 -0
- package/es/popselect/src/Popselect.d.ts +217 -76
- package/es/popselect/src/PopselectPanel.d.ts +55 -7
- package/es/popselect/styles/light.d.ts +14 -1
- package/es/progress/src/Circle.d.ts +1 -1
- package/es/progress/src/Circle.mjs +14 -3
- package/es/progress/src/Progress.d.ts +1 -1
- package/es/radio/src/Radio.mjs +5 -5
- package/es/radio/src/RadioButton.d.ts +2 -2
- package/es/radio/src/styles/radio.cssr.mjs +3 -7
- package/es/rate/src/Rate.d.ts +1 -1
- package/es/result/src/Result.d.ts +1 -1
- package/es/select/src/Select.d.ts +164 -21
- package/es/select/styles/light.d.ts +14 -1
- package/es/styles.d.ts +3 -3
- package/es/styles.mjs +3 -3
- package/es/tabs/src/Tab.d.ts +3 -3
- package/es/tabs/src/Tabs.d.ts +1 -1
- package/es/tabs/src/Tabs.mjs +1 -1
- package/es/tabs/src/styles/index.cssr.mjs +4 -4
- package/es/tag/src/Tag.d.ts +1 -1
- package/es/theme-editor/src/ThemeEditor.mjs +1 -1
- package/es/themes/dark.mjs +2 -0
- package/es/themes/light.mjs +2 -0
- package/es/time-picker/src/Panel.d.ts +59 -11
- package/es/time-picker/src/TimePicker.d.ts +156 -15
- package/es/time-picker/styles/light.d.ts +14 -1
- package/es/timeline/src/TimelineItem.d.ts +1 -1
- package/es/tooltip/src/Tooltip.d.ts +166 -25
- package/es/tooltip/styles/light.d.ts +16 -3
- package/es/transfer/src/Transfer.d.ts +154 -13
- package/es/transfer/src/TransferFilter.d.ts +52 -4
- package/es/transfer/src/TransferList.d.ts +52 -4
- package/es/transfer/src/TransferListItem.d.ts +52 -4
- package/es/transfer/styles/light.d.ts +14 -1
- package/es/tree/src/Tree.d.ts +42 -38
- package/es/tree/src/Tree.mjs +3 -1
- package/es/tree/src/TreeNode.d.ts +2 -2
- package/es/tree/src/TreeNodeContent.d.ts +3 -3
- package/es/tree/src/styles/index.cssr.mjs +7 -2
- package/es/tree/styles/light.d.ts +4 -4
- package/es/tree-select/src/TreeSelect.d.ts +172 -29
- package/es/tree-select/styles/index.d.ts +1 -0
- package/es/tree-select/styles/index.mjs +2 -1
- package/es/tree-select/styles/light.d.ts +22 -9
- package/es/tree-select/styles/rtl.d.ts +2 -0
- package/es/tree-select/styles/rtl.mjs +11 -0
- package/es/typography/src/create-header.d.ts +1 -1
- package/es/typography/src/headers.d.ts +6 -6
- package/es/upload/src/Upload.d.ts +1 -0
- package/es/upload/src/Upload.mjs +6 -3
- package/es/upload/src/UploadFile.d.ts +8 -6
- package/es/upload/src/UploadFile.mjs +1 -1
- package/es/upload/src/icons.d.ts +2 -2
- package/es/upload/src/icons.mjs +22 -18
- package/es/upload/src/styles/rtl.cssr.d.ts +2 -0
- package/es/upload/src/styles/rtl.cssr.mjs +5 -0
- package/es/upload/styles/index.d.ts +1 -0
- package/es/upload/styles/index.mjs +2 -1
- package/es/upload/styles/rtl.d.ts +2 -0
- package/es/upload/styles/rtl.mjs +5 -0
- package/es/version.d.ts +1 -1
- package/es/version.mjs +1 -1
- package/es/virtual-list/src/VirtualList.d.ts +1 -1
- package/generic/AvatarGroup.vue +26 -0
- package/generic/index.ts +1 -0
- package/lib/_internal/icon/src/styles/index.cssr.js +0 -1
- package/lib/_internal/scrollbar/src/Scrollbar.d.ts +3 -3
- package/lib/_internal/select-menu/src/SelectMenu.d.ts +4 -4
- package/lib/_internal/selection/src/Selection.d.ts +115 -13
- package/lib/_internal/selection/styles/light.d.ts +14 -1
- package/lib/_utils/index.d.ts +1 -0
- package/lib/_utils/naive/prop.d.ts +19 -10
- package/lib/_utils/naive/prop.js +21 -21
- package/lib/_utils/ts/ts.d.ts +3 -0
- package/lib/alert/src/Alert.d.ts +2 -2
- package/lib/anchor/index.d.ts +1 -0
- package/lib/anchor/src/AnchorAdapter.d.ts +1 -1
- package/lib/anchor/src/AnchorAdapter.js +17 -7
- package/lib/anchor/src/BaseAnchor.js +30 -5
- package/lib/anchor/src/Link.d.ts +3 -2
- package/lib/anchor/src/Link.js +4 -1
- package/lib/anchor/src/public-types.d.ts +5 -0
- package/lib/anchor/src/public-types.js +2 -0
- package/lib/auto-complete/src/AutoComplete.d.ts +155 -14
- package/lib/auto-complete/styles/light.d.ts +14 -1
- package/lib/avatar-group/index.d.ts +3 -2
- package/lib/avatar-group/src/AvatarGroup.d.ts +1 -4
- package/lib/avatar-group/src/generic-public-types.d.ts +18 -0
- package/lib/avatar-group/src/generic-public-types.js +2 -0
- package/lib/avatar-group/src/public-types.d.ts +10 -0
- package/lib/avatar-group/src/public-types.js +2 -0
- package/lib/back-top/src/BackTop.d.ts +1 -1
- package/lib/badge/src/Badge.d.ts +1 -1
- package/lib/button/src/Button.d.ts +1 -1
- package/lib/card/src/Card.d.ts +7 -2
- package/lib/card/src/Card.js +3 -2
- package/lib/carousel/src/Carousel.d.ts +4 -4
- package/lib/carousel/src/Carousel.js +19 -9
- package/lib/carousel/src/CarouselDots.d.ts +2 -2
- package/lib/cascader/src/Cascader.d.ts +163 -20
- package/lib/cascader/src/CascaderMenu.d.ts +56 -4
- package/lib/cascader/src/CascaderOption.d.ts +56 -4
- package/lib/cascader/src/CascaderSelectMenu.d.ts +57 -5
- package/lib/cascader/src/CascaderSubmenu.d.ts +56 -4
- package/lib/cascader/styles/light.d.ts +14 -1
- package/lib/color-picker/src/ColorInputUnit.d.ts +26 -2
- package/lib/color-picker/src/ColorPicker.d.ts +128 -11
- package/lib/color-picker/src/ColorPickerTrigger.js +2 -1
- package/lib/color-picker/src/utils.d.ts +2 -0
- package/lib/color-picker/src/utils.js +26 -0
- package/lib/color-picker/styles/light.d.ts +14 -1
- package/lib/components.d.ts +1 -0
- package/lib/components.js +1 -0
- package/lib/config-provider/src/ConfigProvider.d.ts +1 -1
- package/lib/config-provider/src/internal-interface.d.ts +2 -0
- package/lib/data-table/src/DataTable.d.ts +674 -52
- package/lib/data-table/src/HeaderButton/FilterButton.d.ts +333 -25
- package/lib/data-table/src/HeaderButton/FilterMenu.d.ts +332 -24
- package/lib/data-table/src/TableParts/Body.d.ts +332 -24
- package/lib/data-table/src/TableParts/Header.d.ts +332 -24
- package/lib/data-table/src/interface.d.ts +253 -18
- package/lib/data-table/src/use-sorter.d.ts +2 -5
- package/lib/data-table/src/use-table-data.d.ts +1 -4
- package/lib/data-table/src/utils.js +2 -1
- package/lib/data-table/styles/light.d.ts +84 -6
- package/lib/date-picker/src/DatePicker.d.ts +229 -23
- package/lib/date-picker/src/DatePicker.js +1 -1
- package/lib/date-picker/src/panel/date.d.ts +110 -10
- package/lib/date-picker/src/panel/daterange.d.ts +111 -11
- package/lib/date-picker/src/panel/datetime.d.ts +110 -10
- package/lib/date-picker/src/panel/datetime.js +1 -1
- package/lib/date-picker/src/panel/datetimerange.d.ts +111 -11
- package/lib/date-picker/src/panel/datetimerange.js +2 -2
- package/lib/date-picker/src/panel/month.d.ts +110 -10
- package/lib/date-picker/src/panel/monthrange.d.ts +111 -11
- package/lib/date-picker/src/panel/panelHeader.d.ts +436 -36
- package/lib/date-picker/src/panel/use-calendar.d.ts +109 -9
- package/lib/date-picker/src/panel/use-dual-calendar.d.ts +110 -10
- package/lib/date-picker/src/panel/use-dual-calendar.js +3 -3
- package/lib/date-picker/src/panel/use-panel-common.d.ts +109 -9
- package/lib/date-picker/src/panel/use-panel-common.js +1 -1
- package/lib/date-picker/src/props.d.ts +85 -7
- package/lib/date-picker/src/props.js +1 -1
- package/lib/date-picker/src/utils.d.ts +2 -1
- package/lib/date-picker/src/utils.js +5 -1
- package/lib/date-picker/styles/light.d.ts +28 -2
- package/lib/dialog/src/Dialog.d.ts +5 -2
- package/lib/dialog/src/Dialog.js +1 -1
- package/lib/dialog/src/DialogEnvironment.d.ts +11 -4
- package/lib/dialog/src/DialogEnvironment.js +3 -3
- package/lib/dialog/src/DialogProvider.d.ts +38 -34
- package/lib/dialog/src/dialogProps.d.ts +2 -1
- package/lib/dialog/src/dialogProps.js +2 -1
- package/lib/drawer/src/Drawer.d.ts +4 -4
- package/lib/drawer/src/DrawerBodyWrapper.d.ts +1 -1
- package/lib/dropdown/src/Dropdown.d.ts +162 -21
- package/lib/dropdown/src/DropdownMenu.d.ts +2 -2
- package/lib/dropdown/styles/light.d.ts +14 -1
- package/lib/dynamic-input/src/DynamicInput.d.ts +153 -12
- package/lib/dynamic-input/src/InputPreset.d.ts +52 -4
- package/lib/dynamic-input/src/PairPreset.d.ts +52 -4
- package/lib/dynamic-input/styles/light.d.ts +14 -1
- package/lib/dynamic-tags/src/DynamicTags.d.ts +153 -12
- package/lib/dynamic-tags/styles/light.d.ts +14 -1
- package/lib/ellipsis/src/Ellipsis.d.ts +154 -11
- package/lib/ellipsis/src/PerformantEllipsis.d.ts +84 -6
- package/lib/ellipsis/src/PerformantEllipsis.js +17 -7
- package/lib/ellipsis/styles/light.d.ts +14 -1
- package/lib/empty/src/Empty.d.ts +1 -1
- package/lib/form/src/FormItem.d.ts +8 -2
- package/lib/form/src/FormItem.js +3 -2
- package/lib/form/src/FormItemCol.d.ts +7 -1
- package/lib/form/src/FormItemCol.js +17 -7
- package/lib/form/src/FormItemGridItem.d.ts +7 -1
- package/lib/form/src/FormItemGridItem.js +17 -7
- package/lib/form/src/FormItemRow.d.ts +7 -1
- package/lib/form/src/FormItemRow.js +17 -7
- package/lib/form/src/utils.d.ts +1 -1
- package/lib/gradient-text/src/GradientText.d.ts +2 -2
- package/lib/grid/src/GridItem.d.ts +1 -1
- package/lib/heatmap/index.d.ts +6 -0
- package/lib/heatmap/index.js +27 -0
- package/lib/heatmap/src/ColorIndicator.d.ts +25 -0
- package/lib/heatmap/src/ColorIndicator.js +27 -0
- package/lib/heatmap/src/Heatmap.d.ts +385 -0
- package/lib/heatmap/src/Heatmap.js +248 -0
- package/lib/heatmap/src/Rect.d.ts +57 -0
- package/lib/heatmap/src/Rect.js +64 -0
- package/lib/heatmap/src/animationStyle.d.ts +6 -0
- package/lib/heatmap/src/animationStyle.js +52 -0
- package/lib/heatmap/src/interface.d.ts +7 -0
- package/lib/heatmap/src/interface.js +2 -0
- package/lib/heatmap/src/public-types.d.ts +16 -0
- package/lib/heatmap/src/public-types.js +2 -0
- package/lib/heatmap/src/styles/index.cssr.d.ts +2 -0
- package/lib/heatmap/src/styles/index.cssr.js +107 -0
- package/lib/heatmap/src/styles/rtl.cssr.d.ts +2 -0
- package/lib/heatmap/src/styles/rtl.cssr.js +9 -0
- package/lib/heatmap/src/theme.d.ts +8 -0
- package/lib/heatmap/src/theme.js +10 -0
- package/lib/heatmap/src/utils/index.d.ts +32 -0
- package/lib/heatmap/src/utils/index.js +135 -0
- package/lib/heatmap/styles/dark.d.ts +3 -0
- package/lib/heatmap/styles/dark.js +13 -0
- package/lib/heatmap/styles/index.d.ts +3 -0
- package/lib/heatmap/styles/index.js +10 -0
- package/lib/heatmap/styles/light.d.ts +31 -0
- package/lib/heatmap/styles/light.js +39 -0
- package/lib/heatmap/styles/rtl.d.ts +2 -0
- package/lib/heatmap/styles/rtl.js +11 -0
- package/lib/highlight/src/utils.js +10 -21
- package/lib/icon/src/styles/index.cssr.js +0 -1
- package/lib/image/index.d.ts +3 -1
- package/lib/image/index.js +4 -1
- package/lib/image/src/Image.d.ts +133 -23
- package/lib/image/src/Image.js +43 -23
- package/lib/image/src/ImageGroup.d.ts +200 -35
- package/lib/image/src/ImageGroup.js +111 -26
- package/lib/image/src/ImagePreview.d.ts +258 -23
- package/lib/image/src/ImagePreview.js +60 -33
- package/lib/image/src/interface.d.ts +42 -3
- package/lib/image/src/public-types.d.ts +14 -0
- package/lib/image/styles/light.d.ts +14 -1
- package/lib/input/src/Input.d.ts +146 -12
- package/lib/input/src/Input.js +24 -12
- package/lib/input/src/InputGroupLabel.d.ts +129 -22
- package/lib/input/src/InputGroupLabel.js +8 -6
- package/lib/input/styles/dark.d.ts +139 -2
- package/lib/input/styles/dark.js +35 -29
- package/lib/input/styles/light.d.ts +76 -3
- package/lib/input/styles/light.js +7 -2
- package/lib/input-number/src/InputNumber.d.ts +152 -11
- package/lib/input-number/styles/light.d.ts +14 -1
- package/lib/input-otp/src/InputOtp.d.ts +158 -12
- package/lib/input-otp/src/InputOtp.js +12 -16
- package/lib/input-otp/src/public-types.d.ts +1 -0
- package/lib/input-otp/src/styles/index.cssr.js +11 -2
- package/lib/input-otp/styles/dark.js +1 -1
- package/lib/input-otp/styles/light.d.ts +14 -1
- package/lib/layout/src/LayoutSider.d.ts +1 -1
- package/lib/legacy-transfer/src/Transfer.d.ts +154 -13
- package/lib/legacy-transfer/src/TransferFilter.d.ts +52 -4
- package/lib/legacy-transfer/src/TransferList.d.ts +52 -4
- package/lib/legacy-transfer/src/TransferListItem.d.ts +52 -4
- package/lib/legacy-transfer/styles/light.d.ts +14 -1
- package/lib/locales/common/arDZ.js +6 -0
- package/lib/locales/common/azAZ.js +6 -0
- package/lib/locales/common/csCZ.js +6 -0
- package/lib/locales/common/daDK.d.ts +3 -0
- package/lib/locales/common/daDK.js +132 -0
- package/lib/locales/common/deDE.js +6 -0
- package/lib/locales/common/enGB.js +6 -0
- package/lib/locales/common/enUS.d.ts +6 -0
- package/lib/locales/common/enUS.js +6 -0
- package/lib/locales/common/eo.js +6 -0
- package/lib/locales/common/esAR.js +6 -0
- package/lib/locales/common/etEE.js +6 -0
- package/lib/locales/common/faIR.js +6 -0
- package/lib/locales/common/frFR.js +6 -0
- package/lib/locales/common/idID.js +6 -0
- package/lib/locales/common/itIT.js +6 -0
- package/lib/locales/common/jaJP.js +6 -0
- package/lib/locales/common/kmKH.js +6 -0
- package/lib/locales/common/koKR.js +6 -0
- package/lib/locales/common/nbNO.js +6 -0
- package/lib/locales/common/nlNL.js +6 -0
- package/lib/locales/common/plPL.js +6 -0
- package/lib/locales/common/ptBR.js +6 -0
- package/lib/locales/common/ruRU.js +6 -0
- package/lib/locales/common/skSK.js +6 -0
- package/lib/locales/common/svSE.js +8 -2
- package/lib/locales/common/thTH.js +6 -0
- package/lib/locales/common/trTR.js +6 -0
- package/lib/locales/common/ugCN.js +6 -0
- package/lib/locales/common/ukUA.js +6 -0
- package/lib/locales/common/uzUZ.js +6 -0
- package/lib/locales/common/viVN.js +6 -0
- package/lib/locales/common/zhCN.js +6 -0
- package/lib/locales/common/zhTW.js +6 -0
- package/lib/locales/date/daDK.d.ts +3 -0
- package/lib/locales/date/daDK.js +8 -0
- package/lib/locales/index.d.ts +2 -0
- package/lib/locales/index.js +6 -2
- package/lib/log/src/Log.d.ts +1 -1
- package/lib/marquee/src/Marquee.js +4 -3
- package/lib/mention/src/Mention.d.ts +155 -14
- package/lib/mention/styles/light.d.ts +14 -1
- package/lib/menu/src/Menu.d.ts +314 -28
- package/lib/menu/src/MenuOption.d.ts +113 -9
- package/lib/menu/src/MenuOption.js +6 -4
- package/lib/menu/src/MenuOptionContent.d.ts +1 -1
- package/lib/menu/src/MenuOptionGroup.d.ts +1 -1
- package/lib/menu/src/MenuOptionGroup.js +8 -2
- package/lib/menu/src/Submenu.d.ts +114 -10
- package/lib/menu/src/use-menu-child.d.ts +2 -0
- package/lib/menu/src/use-menu-child.js +2 -1
- package/lib/menu/styles/light.d.ts +28 -2
- package/lib/message/src/Message.d.ts +1 -0
- package/lib/message/src/Message.js +3 -2
- package/lib/message/src/MessageProvider.d.ts +10 -1
- package/lib/message/src/styles/index.cssr.js +1 -0
- package/lib/message/styles/light.d.ts +1 -0
- package/lib/message/styles/light.js +1 -1
- package/lib/modal/src/BodyWrapper.d.ts +10 -4
- package/lib/modal/src/BodyWrapper.js +7 -3
- package/lib/modal/src/Modal.d.ts +28 -11
- package/lib/modal/src/Modal.js +10 -4
- package/lib/modal/src/ModalEnvironment.d.ts +22 -10
- package/lib/modal/src/ModalEnvironment.js +18 -8
- package/lib/modal/src/ModalProvider.d.ts +2 -1
- package/lib/modal/src/ModalProvider.js +4 -2
- package/lib/modal/src/presetProps.d.ts +2 -1
- package/lib/modal/src/styles/index.cssr.js +3 -1
- package/lib/notification/src/Notification.d.ts +2 -2
- package/lib/notification/src/NotificationEnvironment.d.ts +1 -1
- package/lib/notification/src/NotificationProvider.d.ts +5 -5
- package/lib/pagination/src/Pagination.d.ts +460 -33
- package/lib/pagination/styles/light.d.ts +42 -3
- package/lib/popconfirm/src/Popconfirm.d.ts +159 -18
- package/lib/popconfirm/src/Popconfirm.js +20 -15
- package/lib/popconfirm/src/PopconfirmPanel.d.ts +1 -1
- package/lib/popconfirm/styles/light.d.ts +14 -1
- package/lib/popover/src/Popover.d.ts +133 -16
- package/lib/popover/src/Popover.js +17 -7
- package/lib/popover/src/PopoverBody.d.ts +129 -12
- package/lib/popover/src/PopoverBody.js +5 -2
- package/lib/popover/src/styles/rtl.cssr.d.ts +2 -0
- package/lib/popover/src/styles/rtl.cssr.js +10 -0
- package/lib/popover/styles/dark.js +4 -0
- package/lib/popover/styles/index.d.ts +1 -0
- package/lib/popover/styles/index.js +3 -1
- package/lib/popover/styles/light.d.ts +27 -2
- package/lib/popover/styles/light.js +7 -2
- package/lib/popover/styles/rtl.d.ts +2 -0
- package/lib/popover/styles/rtl.js +13 -0
- package/lib/popselect/src/Popselect.d.ts +213 -72
- package/lib/popselect/src/Popselect.js +17 -7
- package/lib/popselect/src/PopselectPanel.d.ts +55 -7
- package/lib/popselect/styles/light.d.ts +14 -1
- package/lib/preset.js +17 -7
- package/lib/progress/src/Circle.d.ts +1 -1
- package/lib/progress/src/Circle.js +11 -2
- package/lib/progress/src/Progress.d.ts +1 -1
- package/lib/radio/src/Radio.js +2 -2
- package/lib/radio/src/RadioButton.d.ts +2 -2
- package/lib/radio/src/styles/radio.cssr.js +3 -7
- package/lib/rate/src/Rate.d.ts +1 -1
- package/lib/result/src/Result.d.ts +1 -1
- package/lib/select/src/Select.d.ts +164 -21
- package/lib/select/styles/light.d.ts +14 -1
- package/lib/styles.d.ts +3 -3
- package/lib/styles.js +5 -2
- package/lib/tabs/src/Tab.d.ts +3 -3
- package/lib/tabs/src/Tabs.d.ts +1 -1
- package/lib/tabs/src/styles/index.cssr.js +4 -4
- package/lib/tag/src/Tag.d.ts +1 -1
- package/lib/themes/dark.js +103 -101
- package/lib/themes/light.js +102 -100
- package/lib/time-picker/src/Panel.d.ts +59 -11
- package/lib/time-picker/src/TimePicker.d.ts +156 -15
- package/lib/time-picker/styles/light.d.ts +14 -1
- package/lib/timeline/src/TimelineItem.d.ts +1 -1
- package/lib/tooltip/src/Tooltip.d.ts +159 -18
- package/lib/tooltip/styles/light.d.ts +14 -1
- package/lib/transfer/src/Transfer.d.ts +154 -13
- package/lib/transfer/src/TransferFilter.d.ts +52 -4
- package/lib/transfer/src/TransferList.d.ts +52 -4
- package/lib/transfer/src/TransferListItem.d.ts +52 -4
- package/lib/transfer/styles/light.d.ts +14 -1
- package/lib/tree/src/Tree.d.ts +42 -38
- package/lib/tree/src/Tree.js +4 -3
- package/lib/tree/src/TreeNode.d.ts +2 -2
- package/lib/tree/src/TreeNodeContent.d.ts +3 -3
- package/lib/tree/src/styles/index.cssr.js +7 -2
- package/lib/tree-select/src/TreeSelect.d.ts +169 -26
- package/lib/tree-select/styles/index.d.ts +1 -0
- package/lib/tree-select/styles/index.js +3 -1
- package/lib/tree-select/styles/light.d.ts +14 -1
- package/lib/tree-select/styles/rtl.d.ts +2 -0
- package/lib/tree-select/styles/rtl.js +20 -0
- package/lib/typography/src/create-header.d.ts +1 -1
- package/lib/typography/src/headers.d.ts +6 -6
- package/lib/upload/src/Upload.d.ts +1 -0
- package/lib/upload/src/Upload.js +4 -3
- package/lib/upload/src/UploadFile.d.ts +4 -2
- package/lib/upload/src/UploadFile.js +1 -1
- package/lib/upload/src/icons.d.ts +2 -2
- package/lib/upload/src/icons.js +12 -7
- package/lib/upload/src/styles/rtl.cssr.d.ts +2 -0
- package/lib/upload/src/styles/rtl.cssr.js +10 -0
- package/lib/upload/styles/index.d.ts +1 -0
- package/lib/upload/styles/index.js +3 -1
- package/lib/upload/styles/rtl.d.ts +2 -0
- package/lib/upload/styles/rtl.js +11 -0
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/lib/virtual-list/src/VirtualList.d.ts +1 -1
- package/package.json +30 -19
- package/volar.d.ts +24 -22
- package/web-types.json +599 -61
- package/es/avatar-group/src/interface.d.ts +0 -8
- package/lib/avatar-group/src/interface.d.ts +0 -8
- /package/es/{avatar-group/src/interface.mjs → _utils/ts/ts.mjs} +0 -0
- /package/lib/{avatar-group/src/interface.js → _utils/ts/ts.js} +0 -0
|
@@ -93,7 +93,20 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
93
93
|
paddingMedium: string;
|
|
94
94
|
paddingLarge: string;
|
|
95
95
|
clearSize: string;
|
|
96
|
-
},
|
|
96
|
+
}, {
|
|
97
|
+
Scrollbar: import("../../_mixins").Theme<"Scrollbar", {
|
|
98
|
+
height: string;
|
|
99
|
+
width: string;
|
|
100
|
+
borderRadius: string;
|
|
101
|
+
color: string;
|
|
102
|
+
colorHover: string;
|
|
103
|
+
railInsetHorizontalBottom: string;
|
|
104
|
+
railInsetHorizontalTop: string;
|
|
105
|
+
railInsetVerticalRight: string;
|
|
106
|
+
railInsetVerticalLeft: string;
|
|
107
|
+
railColor: string;
|
|
108
|
+
}, any>;
|
|
109
|
+
}>;
|
|
97
110
|
Button: import("../../_mixins").Theme<"Button", {
|
|
98
111
|
heightTiny: string;
|
|
99
112
|
heightSmall: string;
|
|
@@ -302,7 +315,18 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
302
315
|
peerOverrides: {
|
|
303
316
|
Input?: {
|
|
304
317
|
peers?: {
|
|
305
|
-
|
|
318
|
+
Scrollbar?: import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Scrollbar", {
|
|
319
|
+
height: string;
|
|
320
|
+
width: string;
|
|
321
|
+
borderRadius: string;
|
|
322
|
+
color: string;
|
|
323
|
+
colorHover: string;
|
|
324
|
+
railInsetHorizontalBottom: string;
|
|
325
|
+
railInsetHorizontalTop: string;
|
|
326
|
+
railInsetVerticalRight: string;
|
|
327
|
+
railInsetVerticalLeft: string;
|
|
328
|
+
railColor: string;
|
|
329
|
+
}, any>> | undefined;
|
|
306
330
|
} | undefined;
|
|
307
331
|
} | undefined;
|
|
308
332
|
Button?: {
|
|
@@ -124,7 +124,20 @@ export declare const colorPickerProps: {
|
|
|
124
124
|
paddingMedium: string;
|
|
125
125
|
paddingLarge: string;
|
|
126
126
|
clearSize: string;
|
|
127
|
-
},
|
|
127
|
+
}, {
|
|
128
|
+
Scrollbar: import("../../_mixins").Theme<"Scrollbar", {
|
|
129
|
+
height: string;
|
|
130
|
+
width: string;
|
|
131
|
+
borderRadius: string;
|
|
132
|
+
color: string;
|
|
133
|
+
colorHover: string;
|
|
134
|
+
railInsetHorizontalBottom: string;
|
|
135
|
+
railInsetHorizontalTop: string;
|
|
136
|
+
railInsetVerticalRight: string;
|
|
137
|
+
railInsetVerticalLeft: string;
|
|
138
|
+
railColor: string;
|
|
139
|
+
}, any>;
|
|
140
|
+
}>;
|
|
128
141
|
Button: import("../../_mixins").Theme<"Button", {
|
|
129
142
|
heightTiny: string;
|
|
130
143
|
heightSmall: string;
|
|
@@ -406,7 +419,20 @@ export declare const colorPickerProps: {
|
|
|
406
419
|
paddingMedium: string;
|
|
407
420
|
paddingLarge: string;
|
|
408
421
|
clearSize: string;
|
|
409
|
-
},
|
|
422
|
+
}, {
|
|
423
|
+
Scrollbar: import("../../_mixins").Theme<"Scrollbar", {
|
|
424
|
+
height: string;
|
|
425
|
+
width: string;
|
|
426
|
+
borderRadius: string;
|
|
427
|
+
color: string;
|
|
428
|
+
colorHover: string;
|
|
429
|
+
railInsetHorizontalBottom: string;
|
|
430
|
+
railInsetHorizontalTop: string;
|
|
431
|
+
railInsetVerticalRight: string;
|
|
432
|
+
railInsetVerticalLeft: string;
|
|
433
|
+
railColor: string;
|
|
434
|
+
}, any>;
|
|
435
|
+
}>;
|
|
410
436
|
Button: import("../../_mixins").Theme<"Button", {
|
|
411
437
|
heightTiny: string;
|
|
412
438
|
heightSmall: string;
|
|
@@ -688,7 +714,20 @@ export declare const colorPickerProps: {
|
|
|
688
714
|
paddingMedium: string;
|
|
689
715
|
paddingLarge: string;
|
|
690
716
|
clearSize: string;
|
|
691
|
-
},
|
|
717
|
+
}, {
|
|
718
|
+
Scrollbar: import("../../_mixins").Theme<"Scrollbar", {
|
|
719
|
+
height: string;
|
|
720
|
+
width: string;
|
|
721
|
+
borderRadius: string;
|
|
722
|
+
color: string;
|
|
723
|
+
colorHover: string;
|
|
724
|
+
railInsetHorizontalBottom: string;
|
|
725
|
+
railInsetHorizontalTop: string;
|
|
726
|
+
railInsetVerticalRight: string;
|
|
727
|
+
railInsetVerticalLeft: string;
|
|
728
|
+
railColor: string;
|
|
729
|
+
}, any>;
|
|
730
|
+
}>;
|
|
692
731
|
Button: import("../../_mixins").Theme<"Button", {
|
|
693
732
|
heightTiny: string;
|
|
694
733
|
heightSmall: string;
|
|
@@ -1021,7 +1060,20 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
1021
1060
|
paddingMedium: string;
|
|
1022
1061
|
paddingLarge: string;
|
|
1023
1062
|
clearSize: string;
|
|
1024
|
-
},
|
|
1063
|
+
}, {
|
|
1064
|
+
Scrollbar: import("../../_mixins").Theme<"Scrollbar", {
|
|
1065
|
+
height: string;
|
|
1066
|
+
width: string;
|
|
1067
|
+
borderRadius: string;
|
|
1068
|
+
color: string;
|
|
1069
|
+
colorHover: string;
|
|
1070
|
+
railInsetHorizontalBottom: string;
|
|
1071
|
+
railInsetHorizontalTop: string;
|
|
1072
|
+
railInsetVerticalRight: string;
|
|
1073
|
+
railInsetVerticalLeft: string;
|
|
1074
|
+
railColor: string;
|
|
1075
|
+
}, any>;
|
|
1076
|
+
}>;
|
|
1025
1077
|
Button: import("../../_mixins").Theme<"Button", {
|
|
1026
1078
|
heightTiny: string;
|
|
1027
1079
|
heightSmall: string;
|
|
@@ -1303,7 +1355,20 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
1303
1355
|
paddingMedium: string;
|
|
1304
1356
|
paddingLarge: string;
|
|
1305
1357
|
clearSize: string;
|
|
1306
|
-
},
|
|
1358
|
+
}, {
|
|
1359
|
+
Scrollbar: import("../../_mixins").Theme<"Scrollbar", {
|
|
1360
|
+
height: string;
|
|
1361
|
+
width: string;
|
|
1362
|
+
borderRadius: string;
|
|
1363
|
+
color: string;
|
|
1364
|
+
colorHover: string;
|
|
1365
|
+
railInsetHorizontalBottom: string;
|
|
1366
|
+
railInsetHorizontalTop: string;
|
|
1367
|
+
railInsetVerticalRight: string;
|
|
1368
|
+
railInsetVerticalLeft: string;
|
|
1369
|
+
railColor: string;
|
|
1370
|
+
}, any>;
|
|
1371
|
+
}>;
|
|
1307
1372
|
Button: import("../../_mixins").Theme<"Button", {
|
|
1308
1373
|
heightTiny: string;
|
|
1309
1374
|
heightSmall: string;
|
|
@@ -1585,7 +1650,20 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
1585
1650
|
paddingMedium: string;
|
|
1586
1651
|
paddingLarge: string;
|
|
1587
1652
|
clearSize: string;
|
|
1588
|
-
},
|
|
1653
|
+
}, {
|
|
1654
|
+
Scrollbar: import("../../_mixins").Theme<"Scrollbar", {
|
|
1655
|
+
height: string;
|
|
1656
|
+
width: string;
|
|
1657
|
+
borderRadius: string;
|
|
1658
|
+
color: string;
|
|
1659
|
+
colorHover: string;
|
|
1660
|
+
railInsetHorizontalBottom: string;
|
|
1661
|
+
railInsetHorizontalTop: string;
|
|
1662
|
+
railInsetVerticalRight: string;
|
|
1663
|
+
railInsetVerticalLeft: string;
|
|
1664
|
+
railColor: string;
|
|
1665
|
+
}, any>;
|
|
1666
|
+
}>;
|
|
1589
1667
|
Button: import("../../_mixins").Theme<"Button", {
|
|
1590
1668
|
heightTiny: string;
|
|
1591
1669
|
heightSmall: string;
|
|
@@ -1939,7 +2017,20 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
1939
2017
|
paddingMedium: string;
|
|
1940
2018
|
paddingLarge: string;
|
|
1941
2019
|
clearSize: string;
|
|
1942
|
-
},
|
|
2020
|
+
}, {
|
|
2021
|
+
Scrollbar: import("../../_mixins").Theme<"Scrollbar", {
|
|
2022
|
+
height: string;
|
|
2023
|
+
width: string;
|
|
2024
|
+
borderRadius: string;
|
|
2025
|
+
color: string;
|
|
2026
|
+
colorHover: string;
|
|
2027
|
+
railInsetHorizontalBottom: string;
|
|
2028
|
+
railInsetHorizontalTop: string;
|
|
2029
|
+
railInsetVerticalRight: string;
|
|
2030
|
+
railInsetVerticalLeft: string;
|
|
2031
|
+
railColor: string;
|
|
2032
|
+
}, any>;
|
|
2033
|
+
}>;
|
|
1943
2034
|
Button: import("../../_mixins").Theme<"Button", {
|
|
1944
2035
|
heightTiny: string;
|
|
1945
2036
|
heightSmall: string;
|
|
@@ -2221,7 +2312,20 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
2221
2312
|
paddingMedium: string;
|
|
2222
2313
|
paddingLarge: string;
|
|
2223
2314
|
clearSize: string;
|
|
2224
|
-
},
|
|
2315
|
+
}, {
|
|
2316
|
+
Scrollbar: import("../../_mixins").Theme<"Scrollbar", {
|
|
2317
|
+
height: string;
|
|
2318
|
+
width: string;
|
|
2319
|
+
borderRadius: string;
|
|
2320
|
+
color: string;
|
|
2321
|
+
colorHover: string;
|
|
2322
|
+
railInsetHorizontalBottom: string;
|
|
2323
|
+
railInsetHorizontalTop: string;
|
|
2324
|
+
railInsetVerticalRight: string;
|
|
2325
|
+
railInsetVerticalLeft: string;
|
|
2326
|
+
railColor: string;
|
|
2327
|
+
}, any>;
|
|
2328
|
+
}>;
|
|
2225
2329
|
Button: import("../../_mixins").Theme<"Button", {
|
|
2226
2330
|
heightTiny: string;
|
|
2227
2331
|
heightSmall: string;
|
|
@@ -2503,7 +2607,20 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
2503
2607
|
paddingMedium: string;
|
|
2504
2608
|
paddingLarge: string;
|
|
2505
2609
|
clearSize: string;
|
|
2506
|
-
},
|
|
2610
|
+
}, {
|
|
2611
|
+
Scrollbar: import("../../_mixins").Theme<"Scrollbar", {
|
|
2612
|
+
height: string;
|
|
2613
|
+
width: string;
|
|
2614
|
+
borderRadius: string;
|
|
2615
|
+
color: string;
|
|
2616
|
+
colorHover: string;
|
|
2617
|
+
railInsetHorizontalBottom: string;
|
|
2618
|
+
railInsetHorizontalTop: string;
|
|
2619
|
+
railInsetVerticalRight: string;
|
|
2620
|
+
railInsetVerticalLeft: string;
|
|
2621
|
+
railColor: string;
|
|
2622
|
+
}, any>;
|
|
2623
|
+
}>;
|
|
2507
2624
|
Button: import("../../_mixins").Theme<"Button", {
|
|
2508
2625
|
heightTiny: string;
|
|
2509
2626
|
heightSmall: string;
|
|
@@ -2715,9 +2832,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
2715
2832
|
readonly show: boolean | undefined;
|
|
2716
2833
|
readonly placement: FollowerPlacement;
|
|
2717
2834
|
readonly defaultShow: boolean;
|
|
2718
|
-
readonly actions: ActionType[];
|
|
2719
|
-
readonly showAlpha: boolean;
|
|
2720
2835
|
readonly modes: ColorPickerMode[];
|
|
2836
|
+
readonly showAlpha: boolean;
|
|
2721
2837
|
readonly showPreview: boolean;
|
|
2838
|
+
readonly actions: ActionType[];
|
|
2722
2839
|
}, SlotsType<ColorPickerSlots>, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2723
2840
|
export default _default;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { toHslaString } from 'seemly';
|
|
2
2
|
import { defineComponent, h, inject } from 'vue';
|
|
3
3
|
import { colorPickerInjectionKey } from "./context.mjs";
|
|
4
|
+
import { getWCAGContrast } from "./utils.mjs";
|
|
4
5
|
export default defineComponent({
|
|
5
6
|
name: 'ColorPickerTrigger',
|
|
6
7
|
slots: Object,
|
|
@@ -53,7 +54,7 @@ export default defineComponent({
|
|
|
53
54
|
}), value && hsla ? h("div", {
|
|
54
55
|
class: `${clsPrefix}-color-picker-trigger__value`,
|
|
55
56
|
style: {
|
|
56
|
-
color: hsla
|
|
57
|
+
color: getWCAGContrast(hsla) ? 'white' : 'black'
|
|
57
58
|
}
|
|
58
59
|
}, renderLabel ? renderLabel(value) : value) : null));
|
|
59
60
|
};
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
+
import { type HSLA, type RGB } from 'seemly';
|
|
1
2
|
export type ColorPickerMode = 'rgb' | 'hsl' | 'hsv' | 'hex';
|
|
2
3
|
export type ActionType = 'confirm' | 'clear';
|
|
3
4
|
export declare function deriveDefaultValue(modes: ColorPickerMode[], showAlpha: boolean): string;
|
|
4
5
|
export declare function getModeFromValue(color: string | null): ColorPickerMode | null;
|
|
6
|
+
export declare function getWCAGContrast(hsla: HSLA, contrastColor?: RGB, level?: 'AA' | 'AAA'): boolean;
|
|
5
7
|
export declare function floor(color: number[]): number[];
|
|
6
8
|
export declare function normalizeHue(hue: number): number;
|
|
7
9
|
export declare function normalizeAlpha(alpha: number): number;
|
|
@@ -24,6 +24,29 @@ export function getModeFromValue(color) {
|
|
|
24
24
|
if (color.includes('hsv')) return 'hsv';
|
|
25
25
|
return null;
|
|
26
26
|
}
|
|
27
|
+
export function getWCAGContrast(hsla, contrastColor = [255, 255, 255], level = 'AA') {
|
|
28
|
+
const [r, g, b, a] = rgba(toHslaString(hsla));
|
|
29
|
+
if (a === 1) {
|
|
30
|
+
const luminance1 = rgb2luminance([r, g, b]);
|
|
31
|
+
const luminance2 = rgb2luminance(contrastColor);
|
|
32
|
+
const contrast = (Math.max(luminance1, luminance2) + 0.05) / (Math.min(luminance1, luminance2) + 0.05);
|
|
33
|
+
return contrast >= (level === 'AA' ? 4.5 : 7);
|
|
34
|
+
}
|
|
35
|
+
const blendedR = Math.round(r * a + contrastColor[0] * (1 - a));
|
|
36
|
+
const blendedG = Math.round(g * a + contrastColor[1] * (1 - a));
|
|
37
|
+
const blendedB = Math.round(b * a + contrastColor[2] * (1 - a));
|
|
38
|
+
const luminanceBlended = rgb2luminance([blendedR, blendedG, blendedB]);
|
|
39
|
+
const luminanceWhite = rgb2luminance(contrastColor);
|
|
40
|
+
const contrastBlended = (Math.max(luminanceBlended, luminanceWhite) + 0.05) / (Math.min(luminanceBlended, luminanceWhite) + 0.05);
|
|
41
|
+
return contrastBlended >= (level === 'AA' ? 4.5 : 7);
|
|
42
|
+
}
|
|
43
|
+
function rgb2luminance(rgb) {
|
|
44
|
+
const [cr, cg, cb] = rgb.map(c => {
|
|
45
|
+
c /= 255;
|
|
46
|
+
return c <= 0.03928 ? c / 12.92 : Math.pow((c + 0.055) / 1.055, 2.4);
|
|
47
|
+
});
|
|
48
|
+
return 0.2126 * cr + 0.7152 * cg + 0.0722 * cb;
|
|
49
|
+
}
|
|
27
50
|
export function floor(color) {
|
|
28
51
|
return color.map(channel => Math.floor(channel));
|
|
29
52
|
}
|
|
@@ -15,7 +15,7 @@ export declare function self(vars: ThemeCommonVars): {
|
|
|
15
15
|
dividerColor: string;
|
|
16
16
|
};
|
|
17
17
|
export type ColorPickerThemeVars = ReturnType<typeof self>;
|
|
18
|
-
declare const colorPickerLight: import("../../_mixins
|
|
18
|
+
declare const colorPickerLight: import("../../_mixins").Theme<"ColorPicker", {
|
|
19
19
|
panelFontSize: string;
|
|
20
20
|
boxShadow: string;
|
|
21
21
|
color: string;
|
|
@@ -30,7 +30,7 @@ declare const colorPickerLight: import("../../_mixins/use-theme").Theme<"ColorPi
|
|
|
30
30
|
fontSizeLarge: string;
|
|
31
31
|
dividerColor: string;
|
|
32
32
|
}, {
|
|
33
|
-
Input: import("../../_mixins
|
|
33
|
+
Input: import("../../_mixins").Theme<"Input", {
|
|
34
34
|
fontWeight: string;
|
|
35
35
|
countTextColorDisabled: string;
|
|
36
36
|
countTextColor: string;
|
|
@@ -91,8 +91,21 @@ declare const colorPickerLight: import("../../_mixins/use-theme").Theme<"ColorPi
|
|
|
91
91
|
paddingMedium: string;
|
|
92
92
|
paddingLarge: string;
|
|
93
93
|
clearSize: string;
|
|
94
|
-
},
|
|
95
|
-
|
|
94
|
+
}, {
|
|
95
|
+
Scrollbar: import("../../_mixins").Theme<"Scrollbar", {
|
|
96
|
+
height: string;
|
|
97
|
+
width: string;
|
|
98
|
+
borderRadius: string;
|
|
99
|
+
color: string;
|
|
100
|
+
colorHover: string;
|
|
101
|
+
railInsetHorizontalBottom: string;
|
|
102
|
+
railInsetHorizontalTop: string;
|
|
103
|
+
railInsetVerticalRight: string;
|
|
104
|
+
railInsetVerticalLeft: string;
|
|
105
|
+
railColor: string;
|
|
106
|
+
}, any>;
|
|
107
|
+
}>;
|
|
108
|
+
Button: import("../../_mixins").Theme<"Button", {
|
|
96
109
|
heightTiny: string;
|
|
97
110
|
heightSmall: string;
|
|
98
111
|
heightMedium: string;
|
package/es/components.d.ts
CHANGED
package/es/components.mjs
CHANGED
|
@@ -41,6 +41,7 @@ export * from "./form/index.mjs";
|
|
|
41
41
|
export * from "./global-style/index.mjs";
|
|
42
42
|
export * from "./gradient-text/index.mjs";
|
|
43
43
|
export * from "./grid/index.mjs";
|
|
44
|
+
export * from "./heatmap/index.mjs";
|
|
44
45
|
export * from "./highlight/index.mjs";
|
|
45
46
|
export * from "./icon/index.mjs";
|
|
46
47
|
export * from "./icon-wrapper/index.mjs";
|
|
@@ -116,7 +116,7 @@ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
|
|
|
116
116
|
readonly abstract: boolean;
|
|
117
117
|
readonly as: string | undefined;
|
|
118
118
|
readonly bordered: boolean | undefined;
|
|
119
|
-
readonly preflightStyleDisabled: boolean;
|
|
120
119
|
readonly inlineThemeDisabled: boolean;
|
|
120
|
+
readonly preflightStyleDisabled: boolean;
|
|
121
121
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
122
122
|
export default _default;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { hash } from 'css-render';
|
|
2
|
-
import { merge } from 'lodash
|
|
2
|
+
import { merge } from 'lodash';
|
|
3
3
|
import { useMemo } from 'vooks';
|
|
4
4
|
import { computed, defineComponent, h, inject, markRaw, provide } from 'vue';
|
|
5
5
|
import { defaultClsPrefix } from "../../_mixins/index.mjs";
|
|
@@ -45,6 +45,7 @@ import type { FloatButtonGroupTheme } from '../../float-button-group/styles';
|
|
|
45
45
|
import type { FloatButtonTheme } from '../../float-button/styles';
|
|
46
46
|
import type { FormTheme } from '../../form/styles';
|
|
47
47
|
import type { GradientTextTheme } from '../../gradient-text/styles';
|
|
48
|
+
import type { HeatmapTheme } from '../../heatmap/styles';
|
|
48
49
|
import type { IconWrapperTheme } from '../../icon-wrapper/styles';
|
|
49
50
|
import type { IconTheme } from '../../icon/styles';
|
|
50
51
|
import type { ImageTheme } from '../../image/styles';
|
|
@@ -189,6 +190,7 @@ export interface GlobalThemeWithoutCommon {
|
|
|
189
190
|
Split?: SplitTheme;
|
|
190
191
|
Row?: RowTheme;
|
|
191
192
|
Marquee?: MarqueeTheme;
|
|
193
|
+
Heatmap?: HeatmapTheme;
|
|
192
194
|
InternalSelectMenu?: InternalSelectMenuTheme;
|
|
193
195
|
InternalSelection?: InternalSelectionTheme;
|
|
194
196
|
InputOtp?: InputOtpTheme;
|