@proximus/lavender-pokecard-native 2.1.1-alpha.21 → 2.1.1-alpha.22

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,5 +1,6 @@
1
1
  import React from 'react';
2
- export interface PxCardHeaderProps {
2
+ import { AccessibilityProps } from 'react-native';
3
+ export interface PxCardHeaderProps extends AccessibilityProps {
3
4
  title: string;
4
5
  subtitle?: string;
5
6
  inverted?: boolean;
@@ -8,7 +9,7 @@ export interface PxCardHeaderProps {
8
9
  }
9
10
  /** @deprecated Use PxCardHeaderProps instead. */
10
11
  export type CardHeadingProps = PxCardHeaderProps;
11
- export declare function PxCardHeading({ title, subtitle, inverted, testID, size, }: PxCardHeaderProps): React.JSX.Element;
12
+ export declare function PxCardHeading({ title, subtitle, inverted, testID, size, accessibilityLabel, accessibilityHint, accessibilityRole, accessible, }: PxCardHeaderProps): React.JSX.Element;
12
13
  /** @deprecated Use PxCardHeader instead. */
13
14
  export declare const CardHeading: typeof PxCardHeading;
14
15
  //# sourceMappingURL=PxCardHeading.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"PxCardHeading.d.ts","sourceRoot":"","sources":["../src/PxCardHeading.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,MAAM,WAAW,iBAAiB;IAChC,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,SAAS,GAAG,OAAO,CAAC;CAC5B;AAED,iDAAiD;AACjD,MAAM,MAAM,gBAAgB,GAAG,iBAAiB,CAAC;AAEjD,wBAAgB,aAAa,CAAC,EAC5B,KAAK,EACL,QAAQ,EACR,QAAQ,EACR,MAAM,EACN,IAAgB,GACjB,EAAE,iBAAiB,qBA2CnB;AAED,4CAA4C;AAC5C,eAAO,MAAM,WAAW,sBAAgB,CAAC"}
1
+ {"version":3,"file":"PxCardHeading.d.ts","sourceRoot":"","sources":["../src/PxCardHeading.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,kBAAkB,EAAQ,MAAM,cAAc,CAAC;AAKxD,MAAM,WAAW,iBAAkB,SAAQ,kBAAkB;IAC3D,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,SAAS,GAAG,OAAO,CAAC;CAC5B;AAED,iDAAiD;AACjD,MAAM,MAAM,gBAAgB,GAAG,iBAAiB,CAAC;AAEjD,wBAAgB,aAAa,CAAC,EAC5B,KAAK,EACL,QAAQ,EACR,QAAQ,EACR,MAAM,EACN,IAAgB,EAChB,kBAAkB,EAClB,iBAAiB,EACjB,iBAAiB,EACjB,UAAU,GACX,EAAE,iBAAiB,qBAiDnB;AAED,4CAA4C;AAC5C,eAAO,MAAM,WAAW,sBAAgB,CAAC"}
@@ -1,9 +1,9 @@
1
1
  import React from 'react';
2
2
  import { View } from 'react-native';
3
3
  import { Header, Body } from '@proximus/lavender-texts-native';
4
- import { e2eID } from '@proximus/lavender-common-native';
4
+ import { a11y, e2eID } from '@proximus/lavender-common-native';
5
5
  import { useTheme } from '@proximus/lavender-styling-native';
6
- export function PxCardHeading({ title, subtitle, inverted, testID, size = 'default', }) {
6
+ export function PxCardHeading({ title, subtitle, inverted, testID, size = 'default', accessibilityLabel, accessibilityHint, accessibilityRole, accessible, }) {
7
7
  const { theme } = useTheme();
8
8
  const isLarge = size === 'large';
9
9
  const titleFontSize = isLarge
@@ -16,7 +16,12 @@ export function PxCardHeading({ title, subtitle, inverted, testID, size = 'defau
16
16
  gap,
17
17
  alignItems: 'flex-start',
18
18
  flex: 1,
19
- } },
19
+ }, ...a11y({
20
+ accessibilityRole,
21
+ accessibilityLabel,
22
+ accessibilityHint,
23
+ accessible,
24
+ }) },
20
25
  React.createElement(Header, { inverted: inverted, style: {
21
26
  fontSize: titleFontSize,
22
27
  lineHeight: titleFontSize * lineHeightRatio,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@proximus/lavender-pokecard-native",
3
- "version": "2.1.1-alpha.21",
3
+ "version": "2.1.1-alpha.22",
4
4
  "description": "Pokecard component",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",