@transferwise/components 0.0.0-experimental-32cf8db → 0.0.0-experimental-c099750

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.
@@ -6,5 +6,8 @@ export interface PolymorphicWithOverridesProps {
6
6
  };
7
7
  [key: string]: unknown;
8
8
  }
9
+ /**
10
+ * For overcoming the limitations of third-party components with an `as` prop.
11
+ */
9
12
  export declare const PolymorphicWithOverrides: import("react").ForwardRefExoticComponent<Omit<PolymorphicWithOverridesProps, "ref"> & import("react").RefAttributes<Element>>;
10
13
  //# sourceMappingURL=PolymorphicWithOverrides.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"PolymorphicWithOverrides.d.ts","sourceRoot":"","sources":["../../../../src/common/polymorphicWithOverrides/PolymorphicWithOverrides.tsx"],"names":[],"mappings":";AAEA,MAAM,WAAW,6BAA6B;IAC5C,WAAW,EAAE;QACX,EAAE,EAAE,KAAK,CAAC,WAAW,CAAC;QACtB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;KACxB,CAAC;IACF,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB;AAED,eAAO,MAAM,wBAAwB,gIAKnC,CAAC"}
1
+ {"version":3,"file":"PolymorphicWithOverrides.d.ts","sourceRoot":"","sources":["../../../../src/common/polymorphicWithOverrides/PolymorphicWithOverrides.tsx"],"names":[],"mappings":";AAEA,MAAM,WAAW,6BAA6B;IAC5C,WAAW,EAAE;QACX,EAAE,EAAE,KAAK,CAAC,WAAW,CAAC;QACtB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;KACxB,CAAC;IACF,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB;AAED;;GAEG;AACH,eAAO,MAAM,wBAAwB,gIAKnC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@transferwise/components",
3
- "version": "0.0.0-experimental-32cf8db",
3
+ "version": "0.0.0-experimental-c099750",
4
4
  "description": "Neptune React components",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -79,11 +79,11 @@
79
79
  "storybook": "^7.4.5",
80
80
  "@transferwise/less-config": "3.0.6",
81
81
  "@wise/components-theming": "0.8.4",
82
- "@transferwise/neptune-css": "0.0.0-experimental-32cf8db"
82
+ "@transferwise/neptune-css": "0.0.0-experimental-c099750"
83
83
  },
84
84
  "peerDependencies": {
85
85
  "@transferwise/icons": "^3.7.0",
86
- "@transferwise/neptune-css": "0.0.0-experimental-32cf8db",
86
+ "@transferwise/neptune-css": "0.0.0-experimental-c099750",
87
87
  "@wise/art": "^2.7.0",
88
88
  "@wise/components-theming": "^0.8.4",
89
89
  "currency-flags": "^4.0.2",
@@ -8,6 +8,9 @@ export interface PolymorphicWithOverridesProps {
8
8
  [key: string]: unknown;
9
9
  }
10
10
 
11
+ /**
12
+ * For overcoming the limitations of third-party components with an `as` prop.
13
+ */
11
14
  export const PolymorphicWithOverrides = forwardRef(function PolymorphicWithOverrides(
12
15
  { __overrides: { as: Element, ...restOverrides }, ...restProps }: PolymorphicWithOverridesProps,
13
16
  ref: React.ForwardedRef<Element>,