Skip to content

Commit

Permalink
Merge branch 'dev'
Browse files Browse the repository at this point in the history
  • Loading branch information
gizeasy committed Oct 5, 2023
2 parents 94a0b0e + 6a85732 commit 6458b2f
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 21 deletions.
21 changes: 5 additions & 16 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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` добавили управление с клавиатуры
Expand Down Expand Up @@ -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)
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@consta/uikit",
"version": "4.31.0",
"version": "4.31.1",
"keywords": [
"ui-kit",
"design-system",
Expand Down
10 changes: 6 additions & 4 deletions src/hocs/withTooltip/withTooltip.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ export const appearTimeoutDefault = 400;
export const exitTimeoutDefault = 200;

type ComponentProps = {
onClick?: (() => void) | React.EventHandler<React.MouseEvent>;
onMouseEnter?: (() => void) | React.MouseEventHandler;
onMouseLeave?: (() => void) | React.MouseEventHandler;
onClick?: React.MouseEventHandler;
onMouseEnter?: React.MouseEventHandler;
onMouseLeave?: React.MouseEventHandler;
};

export type TooltipProps = Omit<TooltipComponentProps, 'children' | 'ref'> & {
Expand Down Expand Up @@ -183,6 +183,8 @@ export function withTooltip(hocProps?: TooltipProps) {
},
) as unknown as
| COMPONENT_TYPE
| React.ComponentType<WithTooltipProps<COMPONENT_PROPS>>;
| React.ComponentType<{
tooltipProps?: TooltipProps;
}>;
};
}

0 comments on commit 6458b2f

Please sign in to comment.