@carbon/ibm-products 2.54.0-canary.0 → 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.
@@ -15,4 +15,4 @@ export interface TooltipTriggerProps extends PropsWithChildren {
15
15
  * This is an tooltip trigger as Carbon Tooltip requires an active element to work but provides
16
16
  * no blanked button.
17
17
  */
18
- export declare let TooltipTrigger: React.ForwardRefExoticComponent<TooltipTriggerProps & React.RefAttributes<HTMLDivElement>>;
18
+ export declare let TooltipTrigger: React.ForwardRefExoticComponent<TooltipTriggerProps & React.RefAttributes<HTMLButtonElement>>;
@@ -23,12 +23,13 @@ var componentName = 'TooltipTrigger';
23
23
  * This is an tooltip trigger as Carbon Tooltip requires an active element to work but provides
24
24
  * no blanked button.
25
25
  */
26
- var TooltipTrigger = /*#__PURE__*/React__default.forwardRef(function (_ref) {
26
+ var TooltipTrigger = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
27
27
  var children = _ref.children,
28
28
  className = _ref.className,
29
29
  rest = _objectWithoutProperties(_ref, _excluded);
30
30
  return /*#__PURE__*/React__default.createElement("button", _extends({
31
- type: "button"
31
+ type: "button",
32
+ ref: ref
32
33
  }, rest, {
33
34
  className: cx(blockClass,
34
35
  // Apply the block class to the main HTML element
@@ -96,9 +96,7 @@ var UserAvatar = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
96
96
  // switched classes dependant on props or state
97
97
  // example: [`${blockClass}__here-if-small`]: size === 'sm',
98
98
  }),
99
- ref: ref,
100
- role: "img",
101
- "aria-hidden": "true"
99
+ ref: ref
102
100
  }, getDevtoolsProps(componentName)), getItem());
103
101
  };
104
102
  if (tooltipText) {
@@ -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.
@@ -15,4 +15,4 @@ export interface TooltipTriggerProps extends PropsWithChildren {
15
15
  * This is an tooltip trigger as Carbon Tooltip requires an active element to work but provides
16
16
  * no blanked button.
17
17
  */
18
- export declare let TooltipTrigger: React.ForwardRefExoticComponent<TooltipTriggerProps & React.RefAttributes<HTMLDivElement>>;
18
+ export declare let TooltipTrigger: React.ForwardRefExoticComponent<TooltipTriggerProps & React.RefAttributes<HTMLButtonElement>>;
@@ -25,12 +25,13 @@ var componentName = 'TooltipTrigger';
25
25
  * This is an tooltip trigger as Carbon Tooltip requires an active element to work but provides
26
26
  * no blanked button.
27
27
  */
28
- exports.TooltipTrigger = /*#__PURE__*/React.forwardRef(function (_ref) {
28
+ exports.TooltipTrigger = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
29
29
  var children = _ref.children,
30
30
  className = _ref.className,
31
31
  rest = _rollupPluginBabelHelpers.objectWithoutProperties(_ref, _excluded);
32
32
  return /*#__PURE__*/React.createElement("button", _rollupPluginBabelHelpers.extends({
33
- type: "button"
33
+ type: "button",
34
+ ref: ref
34
35
  }, rest, {
35
36
  className: cx(blockClass,
36
37
  // Apply the block class to the main HTML element
@@ -98,9 +98,7 @@ exports.UserAvatar = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
98
98
  // switched classes dependant on props or state
99
99
  // example: [`${blockClass}__here-if-small`]: size === 'sm',
100
100
  }),
101
- ref: ref,
102
- role: "img",
103
- "aria-hidden": "true"
101
+ ref: ref
104
102
  }, devtools.getDevtoolsProps(componentName)), getItem());
105
103
  };
106
104
  if (tooltipText) {
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.0+4a92770d9",
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": "4a92770d9179f6b59bfe18e53c998fdb51bd794a"
123
+ "gitHead": "a11d0364a5beaa3d018db559656c3d7806e1b484"
124
124
  }