From 40bb234829e346ca2e57801696a78675237b221c Mon Sep 17 00:00:00 2001 From: gizeasy Date: Thu, 5 Oct 2023 16:04:18 +0300 Subject: [PATCH 1/3] fix(withTooltip): fixed types (#3335) --- src/hocs/withTooltip/withTooltip.tsx | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/hocs/withTooltip/withTooltip.tsx b/src/hocs/withTooltip/withTooltip.tsx index 11dbf468d..c8f50a11d 100644 --- a/src/hocs/withTooltip/withTooltip.tsx +++ b/src/hocs/withTooltip/withTooltip.tsx @@ -19,9 +19,9 @@ export const appearTimeoutDefault = 400; export const exitTimeoutDefault = 200; type ComponentProps = { - onClick?: (() => void) | React.EventHandler; - onMouseEnter?: (() => void) | React.MouseEventHandler; - onMouseLeave?: (() => void) | React.MouseEventHandler; + onClick?: React.MouseEventHandler; + onMouseEnter?: React.MouseEventHandler; + onMouseLeave?: React.MouseEventHandler; }; export type TooltipProps = Omit & { @@ -183,6 +183,8 @@ export function withTooltip(hocProps?: TooltipProps) { }, ) as unknown as | COMPONENT_TYPE - | React.ComponentType>; + | React.ComponentType<{ + tooltipProps?: TooltipProps; + }>; }; } From 13cda2aac3e8f615fb43f0874ce89db08e136fb3 Mon Sep 17 00:00:00 2001 From: gizeasy Date: Thu, 5 Oct 2023 16:05:53 +0300 Subject: [PATCH 2/3] release: 4.31.1 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 599106a81..76f8ba9dd 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@consta/uikit", - "version": "4.31.0", + "version": "4.31.1", "keywords": [ "ui-kit", "design-system", From 6a85732a1634ad08b7e2b8b80f7c907a93607f4a Mon Sep 17 00:00:00 2001 From: gizeasy Date: Thu, 5 Oct 2023 16:10:23 +0300 Subject: [PATCH 3/3] changelog: 4.31.1 --- CHANGELOG.md | 21 +++++---------------- 1 file changed, 5 insertions(+), 16 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0bda5eb86..251d642e1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## v4.31.1 (05/10/2023) +- [fix(withTooltip): fixed types (#3335)](https://github.com/consta-design-system/uikit/commit/40bb234829e346ca2e57801696a78675237b221c) - [@gizeasy](https://github.com/gizeasy) + +-------------------- + ## v4.31.0 (04/10/2023) Самое важное: - в `ContextMenu` добавили управление с клавиатуры @@ -403,19 +408,3 @@ - [feat(Avatar): add monochrome (#2885)](https://github.com/consta-design-system/uikit/commit/ee47022e27daf152411f75a84a1f632bafa3cd28) - [@gizeasy](https://github.com/gizeasy) - [feat(Switch): add new size (#2884)](https://github.com/consta-design-system/uikit/commit/0b9112dc2a0f0fa9343e83552b661c4ae994f202) - [@N1MBER](https://github.com/N1MBER) - [feat(MixFocus): add vars (#2889)](https://github.com/consta-design-system/uikit/commit/e94e6464c815dd933a48d6b39f71082b043881fe) - [@gizeasy](https://github.com/gizeasy) - --------------------- - -## v4.9.0 (02/02/2023) -Самое важное: - -- Теперь `AvatarGroup` может подстраивать количество аватарок под ширину родителя. -- В `Attachment` добавили свойство `size`. - ---- - -- [feat(AvatarGroup): add visibleCount='auto' (#2881)](https://github.com/consta-design-system/uikit/commit/7e985b0d6c6a4d6f17815f214c980d0bac817ca7) - [@gizeasy](https://github.com/gizeasy) -- [feat(Attachment): add prop size (#2882)](https://github.com/consta-design-system/uikit/commit/2e05b41020520fb1d9244d16f55bad6ca1a8a831) - [@N1MBER](https://github.com/N1MBER) -- [fix(Table): fix bug with excluding in calculations previous state (#2877)](https://github.com/consta-design-system/uikit/commit/685024043045074fe01af43a4835801a390b1f98) - [@N1MBER](https://github.com/N1MBER) -- [docs(sandbox): add links to sandbox for a few components and hooks (#2876)](https://github.com/consta-design-system/uikit/commit/d3f9450afb472c6a24963b07000cab6619305ab3) - [@N1MBER](https://github.com/N1MBER) -- [chore(deps): update @consta/stand](https://github.com/consta-design-system/uikit/commit/9cd4a1569a6975eb83c502705647fc246ca53499) - [@gizeasy](https://github.com/gizeasy)