@rikstv/shared-components 3.0.24 → 3.0.25

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/CHANGELOG.md CHANGED
@@ -1,5 +1,8 @@
1
1
  # 📖 Changelog
2
2
 
3
+ ## 3.0.25
4
+ - change children of <Alert> to be ReactNode (prev string)
5
+
3
6
  ## 3.0.24
4
7
  - fix <Alert> variant inline text and icon position
5
8
 
@@ -1,4 +1,4 @@
1
- import { HTMLAttributes, ReactElement } from "react";
1
+ import { HTMLAttributes, ReactElement, ReactNode } from "react";
2
2
  /**
3
3
  * Alerts are styled by props "intent" (color), "variant" (background and padding) and take an optional heading.
4
4
  *
@@ -38,7 +38,7 @@ export interface Props extends HTMLAttributes<HTMLDivElement> {
38
38
  /**
39
39
  * Text contents
40
40
  */
41
- children: string;
41
+ children: ReactNode;
42
42
  /**
43
43
  * Callback for when fadeOut animation ends, passed a reset function to reset dismissed state
44
44
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rikstv/shared-components",
3
- "version": "3.0.24",
3
+ "version": "3.0.25",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },