@hh.ru/magritte-ui-button 5.2.4 → 5.2.5

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hh.ru/magritte-ui-button",
3
- "version": "5.2.4",
3
+ "version": "5.2.5",
4
4
  "main": "index.js",
5
5
  "types": "index.d.ts",
6
6
  "sideEffects": [
@@ -22,10 +22,10 @@
22
22
  "dependencies": {
23
23
  "@hh.ru/magritte-common-use-disabled": "1.0.9",
24
24
  "@hh.ru/magritte-design-tokens": "19.1.2",
25
- "@hh.ru/magritte-types": "4.0.3",
25
+ "@hh.ru/magritte-types": "5.0.0",
26
26
  "@hh.ru/magritte-ui-badge": "2.2.10",
27
27
  "@hh.ru/magritte-ui-breakpoint": "4.0.4",
28
- "@hh.ru/magritte-ui-loader": "1.3.7",
28
+ "@hh.ru/magritte-ui-loader": "1.3.8",
29
29
  "@hh.ru/magritte-ui-mock-component": "1.0.11",
30
30
  "@hh.ru/magritte-ui-theme-provider": "1.1.31"
31
31
  },
@@ -36,5 +36,5 @@
36
36
  "publishConfig": {
37
37
  "access": "public"
38
38
  },
39
- "gitHead": "1ac30fb3b6ed8df5e0683e4551925b6ab8bf08d9"
39
+ "gitHead": "34aa8b63db1d1af2d969ef765d060ac8f59cd9ff"
40
40
  }
package/types.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { ReactElement, ReactNode } from 'react';
2
- import { Override, PropsWithElement, PropsWithCustomElement } from '@hh.ru/magritte-types';
2
+ import type { Override } from '@hh.ru/magritte-types';
3
3
  export type ButtonSize = 'small' | 'medium' | 'large';
4
4
  export type ButtonMode = 'primary' | 'secondary' | 'tertiary';
5
5
  export type ButtonStyle = 'neutral' | 'accent' | 'positive' | 'negative' | 'contrast';
@@ -33,8 +33,6 @@ interface ButtonElementProps {
33
33
  loading?: boolean;
34
34
  /** onClick callback */
35
35
  onClick?: (event: React.MouseEvent<HTMLElement, MouseEvent>) => void;
36
- /** Функция для получения DOM элемента кнопки */
37
- ref?: React.Ref<HTMLElement>;
38
36
  /** Определяет физический вертикальный размер компонента. */
39
37
  size?: ButtonSize;
40
38
  /** Тип кнопки по назначению */
@@ -77,8 +75,4 @@ export type LabeledIconButton<IconType, HideLabel> = Override<VariableButtonProp
77
75
  export type AcceptableButtonPropsSets = SubcaptionButton | IconButton<ReactElement, true> | LabeledIconButton<ReactElement, false> | DefaultButtonProps;
78
76
  export type ButtonPropsHelper<IconType, HideLabel> = SubcaptionButton | (IconType extends ReactElement ? HideLabel extends true ? IconButton<IconType, HideLabel> : LabeledIconButton<IconType, HideLabel> : DefaultButtonProps);
79
77
  export type ButtonProps = ButtonElementProps & AcceptableButtonPropsSets;
80
- export interface ButtonWithCustomElement<ComponentProps extends PropsWithElement, DefaultElement extends ComponentProps['Element'] | React.ComponentType<any>> {
81
- <IconType, HideLabel, ElementType extends any = DefaultElement>(props: ButtonPropsHelper<IconType, HideLabel> & PropsWithCustomElement<ComponentProps, ElementType>): ReturnType<React.FC>;
82
- displayName?: string;
83
- }
84
78
  export {};