@skyscanner/backpack-web 29.0.0 → 29.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.
@@ -37,7 +37,7 @@ const BpkSelectableChip = ({
37
37
  }) => {
38
38
  const classNames = getClassName('bpk-chip', `bpk-chip--${type}`, disabled && 'bpk-chip--disabled', disabled && `bpk-chip--${type}-disabled`, !disabled && selected && `bpk-chip--${type}-selected`, className);
39
39
  return /*#__PURE__*/_jsxs("button", {
40
- "aria-checked": role === 'button' ? undefined : selected,
40
+ "aria-checked": role === 'button' || role === 'tab' ? undefined : selected,
41
41
  className: classNames,
42
42
  disabled: disabled,
43
43
  role: role,
@@ -22,7 +22,7 @@ import type { ComponentType } from 'react';
22
22
  declare const _default: (
23
23
  displayName: string,
24
24
  classNamesToAdd?: string[],
25
- ) => (ComposedComponent: ComponentType<any>) => {
25
+ ) => (ComposedComponent: ComponentType<any> | string) => {
26
26
  (props: {
27
27
  [rest: string]: any;
28
28
  className?: string | null | undefined;
@@ -19,7 +19,7 @@
19
19
  import type { ComponentType } from 'react';
20
20
 
21
21
  export default function withAlignment(
22
- Component: ComponentType,
22
+ Component: ComponentType | string,
23
23
  objectHeight: string,
24
24
  subjectHeight: string,
25
25
  ): {
@@ -19,6 +19,6 @@
19
19
  import type { ComponentType } from 'react';
20
20
 
21
21
  export default function withDescription(
22
- Component: ComponentType<any>,
22
+ Component: ComponentType<any> | string,
23
23
  description: string,
24
24
  ): ComponentType<any>;
@@ -18,7 +18,7 @@
18
18
 
19
19
  // eslint-disable-next-line no-underscore-dangle
20
20
  declare const _default: (
21
- ComposedComponent: import('react').ComponentType<any>,
21
+ ComposedComponent: string | import("react").ComponentType<any>,
22
22
  ) => {
23
23
  (props: {
24
24
  [rest: string]: any;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skyscanner/backpack-web",
3
- "version": "29.0.0",
3
+ "version": "29.0.1",
4
4
  "description": "Backpack Design System web library",
5
5
  "repository": {
6
6
  "type": "git",