@carbon/ibm-products 2.43.2-canary.156 → 2.43.2-canary.159

Sign up to get free protection for your applications and to get access to all the features.
@@ -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: boolean;
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 {};
@@ -7,3 +7,4 @@
7
7
  export { CreateFullPage } from './CreateFullPage';
8
8
  export { CreateFullPageStep } from './CreateFullPageStep';
9
9
  export type { CreateFullPageProps } from './CreateFullPage';
10
+ export type { CreateFullPageStepProps } from './CreateFullPageStep';
@@ -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(ComposedModal, _extends({}, rest, {
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: boolean;
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 {};
@@ -7,3 +7,4 @@
7
7
  export { CreateFullPage } from './CreateFullPage';
8
8
  export { CreateFullPageStep } from './CreateFullPageStep';
9
9
  export type { CreateFullPageProps } from './CreateFullPage';
10
+ export type { CreateFullPageStepProps } from './CreateFullPageStep';
@@ -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.ComposedModal, _rollupPluginBabelHelpers["extends"]({}, rest, {
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.156+a297e8a1d",
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",
@@ -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": "a297e8a1dc67e8017083452c79b5162eaf282c99"
123
+ "gitHead": "54afdf6f31b60e87a21949a69e01ec94bbdc2b79"
124
124
  }
@@ -204,7 +204,7 @@ $colors: (
204
204
  .#{$block-class}__group-preview[data-color-index='#{($i%list.length($colors))}']
205
205
  button {
206
206
  /* stylelint-disable-next-line carbon/theme-token-use */
207
- $next-group-color: list.nth($colors, ($i%list.length($colors)) +1);
207
+ $next-group-color: list.nth($colors, (($i%list.length($colors)) + 1));
208
208
  /* stylelint-disable-next-line carbon/theme-token-use */
209
209
  box-shadow: inset 0 #{$spacing-01} 0 0 list.nth($next-group-color, 1);
210
210
  }
@@ -213,7 +213,7 @@ $colors: (
213
213
  @for $el-index from 1 through 50 {
214
214
  $item-index: $el-index;
215
215
  /* stylelint-disable-next-line carbon/theme-token-use */
216
- $item-index: ((($item-index - 1) % $group-colors-length) +1);
216
+ $item-index: ((($item-index - 1) % $group-colors-length) + 1);
217
217
  #{$selector} {
218
218
  @if $item-index != 1 {
219
219
  /* stylelint-disable-next-line carbon/theme-token-use */