ingred-ui 9.9.2 → 10.0.0

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.
@@ -45,7 +45,7 @@ export declare class ToastProvider extends Component<ToastProviderProps, State>
45
45
  render(): JSX.Element;
46
46
  has: (id: string) => boolean;
47
47
  onDismiss: (id: Id, cb?: Callback) => () => void;
48
- add: (content: Node, options?: Options, cb?: Callback) => string | undefined;
48
+ add: (content: ReactNode, options?: Options, cb?: Callback) => string | undefined;
49
49
  remove: (id: Id, cb?: Callback) => void;
50
50
  removeAll: () => void;
51
51
  update: (id: Id, options?: Options, cb?: Callback) => void;
@@ -16,7 +16,7 @@ export declare type HoverFn = () => void;
16
16
  export declare type Placement = "bottom-left" | "bottom-center" | "bottom-right" | "top-left" | "top-center" | "top-right";
17
17
  export declare type ToastType = Options & {
18
18
  appearance: AppearanceTypes;
19
- content: Node;
19
+ content: ReactNode;
20
20
  id: Id;
21
21
  };
22
22
  export declare type ToastsType = Array<ToastType>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ingred-ui",
3
- "version": "9.9.2",
3
+ "version": "10.0.0",
4
4
  "description": "",
5
5
  "author": "voyagegroup",
6
6
  "license": "MIT",
@@ -33,8 +33,8 @@
33
33
  "react-transition-group": "^4.4.1"
34
34
  },
35
35
  "peerDependencies": {
36
- "react": ">= 16.8.0 || ^17.0.1",
37
- "react-dom": ">= 16.8.0 || ^17.0.1",
36
+ "react": "^17.0.0 || ^18.0.0",
37
+ "react-dom": "^17.0.0 || ^18.0.0",
38
38
  "styled-components": ">= 5.X"
39
39
  },
40
40
  "devDependencies": {
@@ -43,16 +43,15 @@
43
43
  "@rollup/plugin-typescript": "8.3.2",
44
44
  "@rollup/plugin-url": "7.0.0",
45
45
  "@storybook/addon-console": "1.2.3",
46
- "@storybook/addon-essentials": "6.5.8",
47
- "@storybook/addon-links": "6.5.8",
46
+ "@storybook/addon-essentials": "6.5.9",
47
+ "@storybook/addon-links": "6.5.9",
48
48
  "@storybook/addon-postcss": "2.0.0",
49
- "@storybook/addon-storysource": "6.5.8",
50
- "@storybook/react": "6.5.8",
49
+ "@storybook/addon-storysource": "6.5.9",
50
+ "@storybook/react": "6.5.9",
51
51
  "@svgr/rollup": "6.2.1",
52
52
  "@testing-library/jest-dom": "5.16.4",
53
53
  "@testing-library/react": "13.3.0",
54
54
  "@types/jest": "28.1.1",
55
- "@types/moment": "2.13.0",
56
55
  "@types/react": "18.0.12",
57
56
  "@types/react-dates": "21.8.3",
58
57
  "@types/react-dom": "18.0.5",