@hh.ru/magritte-ui-button 3.1.16 → 4.0.1

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": "3.1.16",
3
+ "version": "4.0.1",
4
4
  "main": "index.js",
5
5
  "types": "index.d.ts",
6
6
  "sideEffects": [
@@ -22,12 +22,12 @@
22
22
  "@hh.ru/magritte-common-use-disabled": "1.0.8",
23
23
  "@hh.ru/magritte-design-tokens": "18.1.2",
24
24
  "@hh.ru/magritte-types": "4.0.1",
25
- "@hh.ru/magritte-ui-badge": "2.1.10",
26
- "@hh.ru/magritte-ui-breakpoint": "4.0.1",
27
- "@hh.ru/magritte-ui-counter": "4.0.9",
28
- "@hh.ru/magritte-ui-loader": "1.2.37",
25
+ "@hh.ru/magritte-ui-badge": "2.1.11",
26
+ "@hh.ru/magritte-ui-breakpoint": "4.0.2",
27
+ "@hh.ru/magritte-ui-counter": "4.0.10",
28
+ "@hh.ru/magritte-ui-loader": "1.2.39",
29
29
  "@hh.ru/magritte-ui-mock-component": "1.0.10",
30
- "@hh.ru/magritte-ui-theme-provider": "1.1.22"
30
+ "@hh.ru/magritte-ui-theme-provider": "1.1.23"
31
31
  },
32
32
  "peerDependencies": {
33
33
  "classnames": ">=2.3.2",
@@ -36,5 +36,5 @@
36
36
  "publishConfig": {
37
37
  "access": "public"
38
38
  },
39
- "gitHead": "f983d20d02117bd1e412d635d854ab7c47492692"
39
+ "gitHead": "a72846c6f393720276c3a8abcbd754142906f5d1"
40
40
  }
package/types.d.ts CHANGED
@@ -6,7 +6,7 @@ export type ButtonStyle = 'neutral' | 'accent' | 'positive' | 'negative' | 'cont
6
6
  export type ButtonLabel = ReactNode;
7
7
  interface VariableButtonProps {
8
8
  /** Лейбл кнопки для скринридеров, когда основной лейбл скрыт */
9
- ariaLabel?: string;
9
+ 'aria-label'?: string;
10
10
  /** Содержимое лейбла кнопки */
11
11
  children?: ButtonLabel;
12
12
  /** Значение в счетчике */
@@ -45,14 +45,14 @@ interface ButtonElementProps {
45
45
  badge?: ReactElement;
46
46
  }
47
47
  export type DefaultButtonProps = Override<VariableButtonProps, {
48
- ariaLabel?: never;
48
+ 'aria-label'?: never;
49
49
  children: ButtonLabel;
50
50
  hideLabel?: never;
51
51
  icon?: never;
52
52
  subcaption?: never;
53
53
  }>;
54
54
  export type SubcaptionButton = Override<VariableButtonProps, {
55
- ariaLabel?: never;
55
+ 'aria-label'?: never;
56
56
  children: ReactNode;
57
57
  counter?: never;
58
58
  hideLabel?: never;
@@ -60,7 +60,7 @@ export type SubcaptionButton = Override<VariableButtonProps, {
60
60
  subcaption: ReactNode;
61
61
  }>;
62
62
  export type IconButton<IconType, HideLabel> = Override<VariableButtonProps, {
63
- ariaLabel: string;
63
+ 'aria-label': string;
64
64
  children?: ButtonLabel;
65
65
  hideLabel: HideLabel;
66
66
  icon: IconType;
@@ -68,7 +68,7 @@ export type IconButton<IconType, HideLabel> = Override<VariableButtonProps, {
68
68
  subcaption?: never;
69
69
  }>;
70
70
  export type LabeledIconButton<IconType, HideLabel> = Override<VariableButtonProps, {
71
- ariaLabel?: string;
71
+ 'aria-label'?: string;
72
72
  children: ButtonLabel;
73
73
  hideLabel?: HideLabel;
74
74
  icon: IconType;