@carbon/ibm-products 2.54.0-canary.1 → 2.54.0-canary.4

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,4 +1,4 @@
1
- import React, { ReactNode } from 'react';
1
+ import React from 'react';
2
2
  import { Filter, Item, Theme } from './types';
3
3
  export interface AddSelectProps {
4
4
  className?: string;
@@ -36,7 +36,7 @@ export interface AddSelectProps {
36
36
  /**
37
37
  * portal target for the all tags modal
38
38
  */
39
- portalTarget?: ReactNode;
39
+ portalTarget?: HTMLElement;
40
40
  searchResultsTitle?: string;
41
41
  sortByLabel?: string;
42
42
  title: string;
@@ -107,6 +107,7 @@ AddSelect.propTypes = {
107
107
  /**
108
108
  * portal target for the all tags modal
109
109
  */
110
+ /**@ts-ignore */
110
111
  portalTarget: PropTypes.node,
111
112
  searchResultsTitle: PropTypes.string,
112
113
  sortByLabel: PropTypes.string,
@@ -1,4 +1,4 @@
1
- import React, { ReactNode } from 'react';
1
+ import React from 'react';
2
2
  import { Item, Theme } from './types';
3
3
  export interface AddSelectBodyProps {
4
4
  className?: string;
@@ -35,7 +35,7 @@ export interface AddSelectBodyProps {
35
35
  onSubmit?: (selection: any) => void;
36
36
  onSubmitButtonText?: string;
37
37
  open?: boolean;
38
- portalTarget?: ReactNode;
38
+ portalTarget?: HTMLElement;
39
39
  searchResultsTitle?: string;
40
40
  sortByLabel?: string;
41
41
  title?: string;
@@ -361,6 +361,7 @@ AddSelectBody.propTypes = {
361
361
  onSubmit: PropTypes.func,
362
362
  onSubmitButtonText: PropTypes.string,
363
363
  open: PropTypes.bool,
364
+ /**@ts-ignore */
364
365
  portalTarget: PropTypes.node,
365
366
  searchResultsTitle: PropTypes.string,
366
367
  sortByLabel: PropTypes.string,
@@ -107,7 +107,7 @@ export interface TearsheetProps extends PropsWithChildren {
107
107
  /**
108
108
  * The DOM element that the tearsheet should be rendered within. Defaults to document.body.
109
109
  */
110
- portalTarget?: ReactNode;
110
+ portalTarget?: HTMLElement;
111
111
  /**
112
112
  * Specify a CSS selector that matches the DOM element that should be
113
113
  * focused when the Modal opens.
@@ -63,7 +63,7 @@ interface TearsheetNarrowBaseProps extends PropsWithChildren {
63
63
  /**
64
64
  * The DOM element that the tearsheet should be rendered within. Defaults to document.body.
65
65
  */
66
- portalTarget?: ReactNode;
66
+ portalTarget?: HTMLElement;
67
67
  /**
68
68
  * Specify a CSS selector that matches the DOM element that should be
69
69
  * focused when the Modal opens.
@@ -84,7 +84,7 @@ interface TearsheetShellProps extends PropsWithChildren {
84
84
  /**
85
85
  * The DOM element that the tearsheet should be rendered within. Defaults to document.body.
86
86
  */
87
- portalTarget?: ReactNode;
87
+ portalTarget?: HTMLElement;
88
88
  /**
89
89
  * Specify a CSS selector that matches the DOM element that should be
90
90
  * focused when the Modal opens.
@@ -1,4 +1,4 @@
1
- import React, { ReactNode } from 'react';
1
+ import React from 'react';
2
2
  import { Filter, Item, Theme } from './types';
3
3
  export interface AddSelectProps {
4
4
  className?: string;
@@ -36,7 +36,7 @@ export interface AddSelectProps {
36
36
  /**
37
37
  * portal target for the all tags modal
38
38
  */
39
- portalTarget?: ReactNode;
39
+ portalTarget?: HTMLElement;
40
40
  searchResultsTitle?: string;
41
41
  sortByLabel?: string;
42
42
  title: string;
@@ -109,6 +109,7 @@ AddSelect.propTypes = {
109
109
  /**
110
110
  * portal target for the all tags modal
111
111
  */
112
+ /**@ts-ignore */
112
113
  portalTarget: index.default.node,
113
114
  searchResultsTitle: index.default.string,
114
115
  sortByLabel: index.default.string,
@@ -1,4 +1,4 @@
1
- import React, { ReactNode } from 'react';
1
+ import React from 'react';
2
2
  import { Item, Theme } from './types';
3
3
  export interface AddSelectBodyProps {
4
4
  className?: string;
@@ -35,7 +35,7 @@ export interface AddSelectBodyProps {
35
35
  onSubmit?: (selection: any) => void;
36
36
  onSubmitButtonText?: string;
37
37
  open?: boolean;
38
- portalTarget?: ReactNode;
38
+ portalTarget?: HTMLElement;
39
39
  searchResultsTitle?: string;
40
40
  sortByLabel?: string;
41
41
  title?: string;
@@ -363,6 +363,7 @@ AddSelectBody.propTypes = {
363
363
  onSubmit: index.default.func,
364
364
  onSubmitButtonText: index.default.string,
365
365
  open: index.default.bool,
366
+ /**@ts-ignore */
366
367
  portalTarget: index.default.node,
367
368
  searchResultsTitle: index.default.string,
368
369
  sortByLabel: index.default.string,
@@ -107,7 +107,7 @@ export interface TearsheetProps extends PropsWithChildren {
107
107
  /**
108
108
  * The DOM element that the tearsheet should be rendered within. Defaults to document.body.
109
109
  */
110
- portalTarget?: ReactNode;
110
+ portalTarget?: HTMLElement;
111
111
  /**
112
112
  * Specify a CSS selector that matches the DOM element that should be
113
113
  * focused when the Modal opens.
@@ -63,7 +63,7 @@ interface TearsheetNarrowBaseProps extends PropsWithChildren {
63
63
  /**
64
64
  * The DOM element that the tearsheet should be rendered within. Defaults to document.body.
65
65
  */
66
- portalTarget?: ReactNode;
66
+ portalTarget?: HTMLElement;
67
67
  /**
68
68
  * Specify a CSS selector that matches the DOM element that should be
69
69
  * focused when the Modal opens.
@@ -84,7 +84,7 @@ interface TearsheetShellProps extends PropsWithChildren {
84
84
  /**
85
85
  * The DOM element that the tearsheet should be rendered within. Defaults to document.body.
86
86
  */
87
- portalTarget?: ReactNode;
87
+ portalTarget?: HTMLElement;
88
88
  /**
89
89
  * Specify a CSS selector that matches the DOM element that should be
90
90
  * focused when the Modal opens.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@carbon/ibm-products",
3
3
  "description": "Carbon for IBM Products",
4
- "version": "2.54.0-canary.1+4a70821b8",
4
+ "version": "2.54.0-canary.4+a11d0364a",
5
5
  "license": "Apache-2.0",
6
6
  "main": "lib/index.js",
7
7
  "module": "es/index.js",
@@ -120,5 +120,5 @@
120
120
  "react": "^16.8.6 || ^17.0.1 || ^18.2.0",
121
121
  "react-dom": "^16.8.6 || ^17.0.1 || ^18.2.0"
122
122
  },
123
- "gitHead": "4a70821b85688730a9d4484340da2517ee079db1"
123
+ "gitHead": "a11d0364a5beaa3d018db559656c3d7806e1b484"
124
124
  }