@carbon/ibm-products 2.43.2-canary.157 → 2.43.2-canary.159
Sign up to get free protection for your applications and to get access to all the features.
- package/es/components/CreateFullPage/CreateFullPageStep.d.ts +2 -2
- package/es/components/CreateFullPage/index.d.ts +1 -0
- package/es/components/Tearsheet/TearsheetShell.js +7 -3
- package/lib/components/CreateFullPage/CreateFullPageStep.d.ts +2 -2
- package/lib/components/CreateFullPage/index.d.ts +1 -0
- package/lib/components/Tearsheet/TearsheetShell.js +6 -2
- package/package.json +3 -3
@@ -21,7 +21,7 @@ interface CreateFullPageStepBaseProps extends PropsWithChildren {
|
|
21
21
|
/**
|
22
22
|
* This optional prop will render your form content inside of a fieldset html element
|
23
23
|
*/
|
24
|
-
hasFieldset
|
24
|
+
hasFieldset?: boolean;
|
25
25
|
/**
|
26
26
|
* This prop is used to help track dynamic steps. If this value is `false` then the step is not included in the visible steps or the ProgressIndicator
|
27
27
|
* steps. If this value is `true` then the step will be included in the list of visible steps, as well as being included in the ProgressIndicator step list
|
@@ -66,6 +66,6 @@ type CreateFullPageStepFieldsetProps = {
|
|
66
66
|
hasFieldset?: true;
|
67
67
|
fieldsetLegendText: string;
|
68
68
|
};
|
69
|
-
type CreateFullPageStepProps = CreateFullPageStepBaseProps & CreateFullPageStepFieldsetProps;
|
69
|
+
export type CreateFullPageStepProps = CreateFullPageStepBaseProps & CreateFullPageStepFieldsetProps;
|
70
70
|
export declare let CreateFullPageStep: React.ForwardRefExoticComponent<CreateFullPageStepProps & React.RefAttributes<HTMLDivElement>>;
|
71
71
|
export {};
|
@@ -13,7 +13,7 @@ import cx from 'classnames';
|
|
13
13
|
import { pkg } from '../../settings.js';
|
14
14
|
import pconsole from '../../global/js/utils/pconsole.js';
|
15
15
|
import { getNodeTextContent } from '../../global/js/utils/getNodeTextContent.js';
|
16
|
-
import { Button, usePrefix, ComposedModal, ModalHeader, Layer } from '@carbon/react';
|
16
|
+
import { Button, usePrefix, unstable_FeatureFlags, ComposedModal, ModalHeader, Layer } from '@carbon/react';
|
17
17
|
import { ActionSet } from '../ActionSet/ActionSet.js';
|
18
18
|
import { Wrap } from '../../global/js/utils/Wrap.js';
|
19
19
|
import { usePortalTarget } from '../../global/js/hooks/usePortalTarget.js';
|
@@ -245,7 +245,11 @@ var TearsheetShell = /*#__PURE__*/React__default.forwardRef(function (_ref, ref)
|
|
245
245
|
}
|
246
246
|
return _defineProperty(_defineProperty({}, "--".concat(bc, "--stacking-scale-factor-single"), (width - 32) / width), "--".concat(bc, "--stacking-scale-factor-double"), (width - 64) / width);
|
247
247
|
};
|
248
|
-
return renderPortalUse( /*#__PURE__*/React__default.createElement(
|
248
|
+
return renderPortalUse( /*#__PURE__*/React__default.createElement(unstable_FeatureFlags, {
|
249
|
+
flags: {
|
250
|
+
'enable-experimental-focus-wrap-without-sentinels': true
|
251
|
+
}
|
252
|
+
}, /*#__PURE__*/React__default.createElement(ComposedModal, _extends({}, rest, {
|
249
253
|
"aria-label": ariaLabel || getNodeTextContent(title),
|
250
254
|
className: cx(bc, className, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, "".concat(bc, "--stacked-").concat(position, "-of-").concat(depth),
|
251
255
|
// Don't apply this on the initial open of a single tearsheet.
|
@@ -312,7 +316,7 @@ var TearsheetShell = /*#__PURE__*/React__default.forwardRef(function (_ref, ref)
|
|
312
316
|
})))), /*#__PURE__*/React__default.createElement("div", {
|
313
317
|
className: "".concat(bc, "__resize-detector"),
|
314
318
|
ref: resizer
|
315
|
-
})));
|
319
|
+
}))));
|
316
320
|
} else {
|
317
321
|
pconsole.warn('Tearsheet not rendered: maximum stacking depth exceeded.');
|
318
322
|
return null;
|
@@ -21,7 +21,7 @@ interface CreateFullPageStepBaseProps extends PropsWithChildren {
|
|
21
21
|
/**
|
22
22
|
* This optional prop will render your form content inside of a fieldset html element
|
23
23
|
*/
|
24
|
-
hasFieldset
|
24
|
+
hasFieldset?: boolean;
|
25
25
|
/**
|
26
26
|
* This prop is used to help track dynamic steps. If this value is `false` then the step is not included in the visible steps or the ProgressIndicator
|
27
27
|
* steps. If this value is `true` then the step will be included in the list of visible steps, as well as being included in the ProgressIndicator step list
|
@@ -66,6 +66,6 @@ type CreateFullPageStepFieldsetProps = {
|
|
66
66
|
hasFieldset?: true;
|
67
67
|
fieldsetLegendText: string;
|
68
68
|
};
|
69
|
-
type CreateFullPageStepProps = CreateFullPageStepBaseProps & CreateFullPageStepFieldsetProps;
|
69
|
+
export type CreateFullPageStepProps = CreateFullPageStepBaseProps & CreateFullPageStepFieldsetProps;
|
70
70
|
export declare let CreateFullPageStep: React.ForwardRefExoticComponent<CreateFullPageStepProps & React.RefAttributes<HTMLDivElement>>;
|
71
71
|
export {};
|
@@ -254,7 +254,11 @@ var TearsheetShell = /*#__PURE__*/React__default["default"].forwardRef(function
|
|
254
254
|
}
|
255
255
|
return _rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty({}, "--".concat(bc, "--stacking-scale-factor-single"), (width - 32) / width), "--".concat(bc, "--stacking-scale-factor-double"), (width - 64) / width);
|
256
256
|
};
|
257
|
-
return renderPortalUse( /*#__PURE__*/React__default["default"].createElement(react.
|
257
|
+
return renderPortalUse( /*#__PURE__*/React__default["default"].createElement(react.unstable_FeatureFlags, {
|
258
|
+
flags: {
|
259
|
+
'enable-experimental-focus-wrap-without-sentinels': true
|
260
|
+
}
|
261
|
+
}, /*#__PURE__*/React__default["default"].createElement(react.ComposedModal, _rollupPluginBabelHelpers["extends"]({}, rest, {
|
258
262
|
"aria-label": ariaLabel || getNodeTextContent.getNodeTextContent(title),
|
259
263
|
className: cx__default["default"](bc, className, _rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty({}, "".concat(bc, "--stacked-").concat(position, "-of-").concat(depth),
|
260
264
|
// Don't apply this on the initial open of a single tearsheet.
|
@@ -321,7 +325,7 @@ var TearsheetShell = /*#__PURE__*/React__default["default"].forwardRef(function
|
|
321
325
|
})))), /*#__PURE__*/React__default["default"].createElement("div", {
|
322
326
|
className: "".concat(bc, "__resize-detector"),
|
323
327
|
ref: resizer
|
324
|
-
})));
|
328
|
+
}))));
|
325
329
|
} else {
|
326
330
|
pconsole["default"].warn('Tearsheet not rendered: maximum stacking depth exceeded.');
|
327
331
|
return null;
|
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.
|
4
|
+
"version": "2.43.2-canary.159+54afdf6f3",
|
5
5
|
"license": "Apache-2.0",
|
6
6
|
"main": "lib/index.js",
|
7
7
|
"module": "es/index.js",
|
@@ -96,7 +96,7 @@
|
|
96
96
|
"dependencies": {
|
97
97
|
"@babel/runtime": "^7.23.9",
|
98
98
|
"@carbon/feature-flags": "^0.20.0",
|
99
|
-
"@carbon/ibm-products-styles": "^2.
|
99
|
+
"@carbon/ibm-products-styles": "^2.44.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": "
|
123
|
+
"gitHead": "54afdf6f31b60e87a21949a69e01ec94bbdc2b79"
|
124
124
|
}
|