@carbon/ibm-products 2.43.2-canary.261 → 2.43.2-canary.264

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,6 +1,6 @@
1
1
  /// <reference path="../../../src/custom-typings/index.d.ts" />
2
2
  import { ComposedModal } from '@carbon/react';
3
- import React, { ReactNode } from 'react';
3
+ import React, { ReactNode, RefObject } from 'react';
4
4
  type InputType = 'text' | 'password';
5
5
  type PreformattedExtensions = {
6
6
  extension?: string;
@@ -99,6 +99,10 @@ export interface ExportModalProps extends React.ComponentProps<typeof ComposedMo
99
99
  * The text displayed at the top of the modal
100
100
  */
101
101
  title: string;
102
+ /**
103
+ * Reference to trigger button
104
+ */
105
+ triggerButtonRef?: RefObject<any>;
102
106
  /**
103
107
  * array of valid extensions the file can have
104
108
  */
@@ -17,7 +17,7 @@ import { usePortalTarget } from '../../global/js/hooks/usePortalTarget.js';
17
17
  import uuidv4 from '../../global/js/utils/uuidv4.js';
18
18
 
19
19
  var _Loading;
20
- var _excluded = ["body", "className", "error", "errorMessage", "filename", "hidePasswordLabel", "inputLabel", "inputType", "invalidInputText", "loading", "loadingMessage", "onClose", "onRequestSubmit", "open", "portalTarget", "preformattedExtensions", "preformattedExtensionsLabel", "primaryButtonText", "secondaryButtonText", "showPasswordLabel", "successMessage", "successful", "title", "validExtensions"];
20
+ var _excluded = ["body", "className", "error", "errorMessage", "filename", "hidePasswordLabel", "inputLabel", "inputType", "invalidInputText", "loading", "loadingMessage", "onClose", "onRequestSubmit", "open", "portalTarget", "preformattedExtensions", "preformattedExtensionsLabel", "primaryButtonText", "secondaryButtonText", "showPasswordLabel", "successMessage", "successful", "title", "triggerButtonRef", "validExtensions"];
21
21
  var componentName = 'ExportModal';
22
22
 
23
23
  // Default values for props
@@ -55,6 +55,7 @@ var ExportModal = /*#__PURE__*/forwardRef(function (_ref, ref) {
55
55
  successMessage = _ref.successMessage,
56
56
  successful = _ref.successful,
57
57
  title = _ref.title,
58
+ triggerButtonRef = _ref.triggerButtonRef,
58
59
  _ref$validExtensions = _ref.validExtensions,
59
60
  validExtensions = _ref$validExtensions === void 0 ? defaults.validExtensions : _ref$validExtensions,
60
61
  rest = _objectWithoutProperties(_ref, _excluded);
@@ -133,7 +134,8 @@ var ExportModal = /*#__PURE__*/forwardRef(function (_ref, ref) {
133
134
  className: cx(blockClass, className),
134
135
  "aria-label": title,
135
136
  size: "sm",
136
- preventCloseOnClickOutside: true
137
+ preventCloseOnClickOutside: true,
138
+ launcherButtonRef: triggerButtonRef
137
139
  }, _objectSpread2({
138
140
  open: open,
139
141
  ref: ref,
@@ -296,6 +298,10 @@ ExportModal.propTypes = {
296
298
  * The text displayed at the top of the modal
297
299
  */
298
300
  title: PropTypes.string.isRequired,
301
+ /**
302
+ * Sets the trigger button ref
303
+ */
304
+ triggerButtonRef: PropTypes.any,
299
305
  /**
300
306
  * array of valid extensions the file can have
301
307
  */
@@ -1,6 +1,6 @@
1
1
  /// <reference path="../../../src/custom-typings/index.d.ts" />
2
2
  import { ComposedModal } from '@carbon/react';
3
- import React, { ReactNode } from 'react';
3
+ import React, { ReactNode, RefObject } from 'react';
4
4
  type InputType = 'text' | 'password';
5
5
  type PreformattedExtensions = {
6
6
  extension?: string;
@@ -99,6 +99,10 @@ export interface ExportModalProps extends React.ComponentProps<typeof ComposedMo
99
99
  * The text displayed at the top of the modal
100
100
  */
101
101
  title: string;
102
+ /**
103
+ * Reference to trigger button
104
+ */
105
+ triggerButtonRef?: RefObject<any>;
102
106
  /**
103
107
  * array of valid extensions the file can have
104
108
  */
@@ -19,7 +19,7 @@ var usePortalTarget = require('../../global/js/hooks/usePortalTarget.js');
19
19
  var uuidv4 = require('../../global/js/utils/uuidv4.js');
20
20
 
21
21
  var _Loading;
22
- var _excluded = ["body", "className", "error", "errorMessage", "filename", "hidePasswordLabel", "inputLabel", "inputType", "invalidInputText", "loading", "loadingMessage", "onClose", "onRequestSubmit", "open", "portalTarget", "preformattedExtensions", "preformattedExtensionsLabel", "primaryButtonText", "secondaryButtonText", "showPasswordLabel", "successMessage", "successful", "title", "validExtensions"];
22
+ var _excluded = ["body", "className", "error", "errorMessage", "filename", "hidePasswordLabel", "inputLabel", "inputType", "invalidInputText", "loading", "loadingMessage", "onClose", "onRequestSubmit", "open", "portalTarget", "preformattedExtensions", "preformattedExtensionsLabel", "primaryButtonText", "secondaryButtonText", "showPasswordLabel", "successMessage", "successful", "title", "triggerButtonRef", "validExtensions"];
23
23
  var componentName = 'ExportModal';
24
24
 
25
25
  // Default values for props
@@ -57,6 +57,7 @@ exports.ExportModal = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
57
57
  successMessage = _ref.successMessage,
58
58
  successful = _ref.successful,
59
59
  title = _ref.title,
60
+ triggerButtonRef = _ref.triggerButtonRef,
60
61
  _ref$validExtensions = _ref.validExtensions,
61
62
  validExtensions = _ref$validExtensions === void 0 ? defaults.validExtensions : _ref$validExtensions,
62
63
  rest = _rollupPluginBabelHelpers.objectWithoutProperties(_ref, _excluded);
@@ -135,7 +136,8 @@ exports.ExportModal = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
135
136
  className: cx(blockClass, className),
136
137
  "aria-label": title,
137
138
  size: "sm",
138
- preventCloseOnClickOutside: true
139
+ preventCloseOnClickOutside: true,
140
+ launcherButtonRef: triggerButtonRef
139
141
  }, _rollupPluginBabelHelpers.objectSpread2({
140
142
  open: open,
141
143
  ref: ref,
@@ -298,6 +300,10 @@ exports.ExportModal.propTypes = {
298
300
  * The text displayed at the top of the modal
299
301
  */
300
302
  title: index.default.string.isRequired,
303
+ /**
304
+ * Sets the trigger button ref
305
+ */
306
+ triggerButtonRef: index.default.any,
301
307
  /**
302
308
  * array of valid extensions the file can have
303
309
  */
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.43.2-canary.261+2466c5bb0",
4
+ "version": "2.43.2-canary.264+bbc770e8f",
5
5
  "license": "Apache-2.0",
6
6
  "main": "lib/index.js",
7
7
  "module": "es/index.js",
@@ -81,7 +81,7 @@
81
81
  "fs-extra": "^11.2.0",
82
82
  "glob": "^10.3.10",
83
83
  "jest": "^29.7.0",
84
- "jest-config-ibm-cloud-cognitive": "^1.9.0",
84
+ "jest-config-ibm-cloud-cognitive": "^1.10.0-rc.0",
85
85
  "jest-environment-jsdom": "^29.7.0",
86
86
  "namor": "^1.1.2",
87
87
  "npm-check-updates": "^16.14.12",
@@ -96,7 +96,7 @@
96
96
  "dependencies": {
97
97
  "@babel/runtime": "^7.23.9",
98
98
  "@carbon/feature-flags": "^0.22.0",
99
- "@carbon/ibm-products-styles": "^2.39.1-canary.271+2466c5bb0",
99
+ "@carbon/ibm-products-styles": "^2.47.0-rc.0",
100
100
  "@carbon/telemetry": "^0.1.0",
101
101
  "@dnd-kit/core": "^6.0.8",
102
102
  "@dnd-kit/modifiers": "^7.0.0",
@@ -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": "2466c5bb001f18ad065eb669f380cd32db0d0bfc"
123
+ "gitHead": "bbc770e8fc2415c9dd898ead57bdc332e4fdf339"
124
124
  }
package/telemetry.yml CHANGED
@@ -38,6 +38,7 @@ collect:
38
38
  - batchActionMenuButtonLabel
39
39
  - batchActions
40
40
  - body
41
+ - breadcrumbOverflowTooltipAlign
41
42
  - breadcrumbs
42
43
  - button
43
44
  - cancelButtonText
@@ -253,6 +254,7 @@ collect:
253
254
  - overflowAutoAlign
254
255
  - overflowClassName
255
256
  - overflowTags
257
+ - overflowTooltipAlign
256
258
  - overflowType
257
259
  - parentId
258
260
  - path
@@ -475,8 +477,6 @@ collect:
475
477
  - tooltipDescription
476
478
  - total
477
479
  - trending
478
- # BreadcrumbWithOverflow
479
- - overflowTooltipAlign
480
480
  # ButtonMenu
481
481
  - menuAriaLabel
482
482
  # ButtonSetWithOverflow
@@ -768,6 +768,7 @@ collect:
768
768
  - secondsAgoText
769
769
  - settingsIconDescription
770
770
  - todayLabel
771
+ - triggerButtonRef
771
772
  - yearAgoText
772
773
  - yearsAgoText
773
774
  - yesterdayAtText
@@ -790,7 +791,6 @@ collect:
790
791
  - actionBarMenuOptionsClass
791
792
  - actionBarOverflowAriaLabel
792
793
  - breadcrumbOverflowAriaLabel
793
- - breadcrumbOverflowTooltipAlign
794
794
  - collapseHeader
795
795
  - collapseHeaderIconDescription
796
796
  - collapseTitle