@transferwise/components 0.0.0-experimental-a0bebbb → 0.0.0-experimental-ae161ad

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.
@@ -1,7 +1,10 @@
1
1
  import type { MouseEvent } from 'react';
2
2
  import type { CommonProps } from '../common';
3
3
  export type SwitchProps = CommonProps & {
4
- /** Used to describe the purpose of the switch. To be used if there is no external label (i.e. aria-labelledby is null) */
4
+ /**
5
+ * Used to describe the purpose of the switch. To be used if there is no external label (i.e. aria-labelledby is null)
6
+ * @deprecated Use `Field` wrapper or the `aria-labelledby` attribute instead.
7
+ */
5
8
  'aria-label'?: string;
6
9
  /** A reference to a label that describes the purpose of the switch. Ignored if aria-label is provided */
7
10
  'aria-labelledby'?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"Switch.d.ts","sourceRoot":"","sources":["../../../src/switch/Switch.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAwB,UAAU,EAAE,MAAM,OAAO,CAAC;AAE9D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAG7C,MAAM,MAAM,WAAW,GAAG,WAAW,GAAG;IACtC,0HAA0H;IAC1H,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,yGAAyG;IACzG,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,2CAA2C;IAC3C,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,0CAA0C;IAC1C,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,iDAAiD;IACjD,OAAO,EAAE,CAAC,KAAK,CAAC,EAAE,UAAU,CAAC,eAAe,CAAC,KAAK,IAAI,CAAC;CACxD,CAAC;AAEF,QAAA,MAAM,MAAM,UAAW,WAAW,gCAsEjC,CAAC;AAEF,eAAe,MAAM,CAAC"}
1
+ {"version":3,"file":"Switch.d.ts","sourceRoot":"","sources":["../../../src/switch/Switch.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAwB,UAAU,EAAE,MAAM,OAAO,CAAC;AAE9D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAG7C,MAAM,MAAM,WAAW,GAAG,WAAW,GAAG;IACtC;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,yGAAyG;IACzG,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,2CAA2C;IAC3C,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,0CAA0C;IAC1C,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,iDAAiD;IACjD,OAAO,EAAE,CAAC,KAAK,CAAC,EAAE,UAAU,CAAC,eAAe,CAAC,KAAK,IAAI,CAAC;CACxD,CAAC;AAEF,QAAA,MAAM,MAAM,UAAW,WAAW,gCAsEjC,CAAC;AAEF,eAAe,MAAM,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@transferwise/components",
3
- "version": "0.0.0-experimental-a0bebbb",
3
+ "version": "0.0.0-experimental-ae161ad",
4
4
  "description": "Neptune React components",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -7,7 +7,10 @@ import type { CommonProps } from '../common';
7
7
  import { useInputAttributes } from '../inputs/contexts';
8
8
 
9
9
  export type SwitchProps = CommonProps & {
10
- /** Used to describe the purpose of the switch. To be used if there is no external label (i.e. aria-labelledby is null) */
10
+ /**
11
+ * Used to describe the purpose of the switch. To be used if there is no external label (i.e. aria-labelledby is null)
12
+ * @deprecated Use `Field` wrapper or the `aria-labelledby` attribute instead.
13
+ */
11
14
  'aria-label'?: string;
12
15
  /** A reference to a label that describes the purpose of the switch. Ignored if aria-label is provided */
13
16
  'aria-labelledby'?: string;