@carbon/ibm-products 2.43.2-canary.317 → 2.43.2-canary.319

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,12 +1,14 @@
1
1
  export default RowSizeDropdown;
2
- declare function RowSizeDropdown({ align, legendText, ...props }: {
2
+ declare function RowSizeDropdown({ align, legendText, autoAlign, ...props }: {
3
3
  [x: string]: any;
4
4
  align?: string | undefined;
5
5
  legendText?: string | undefined;
6
+ autoAlign: any;
6
7
  }): React.JSX.Element;
7
8
  declare namespace RowSizeDropdown {
8
9
  namespace propTypes {
9
10
  let align: any;
11
+ let autoAlign: PropTypes.Requireable<boolean>;
10
12
  let datagridName: PropTypes.Requireable<string>;
11
13
  let legendText: PropTypes.Requireable<string>;
12
14
  let light: PropTypes.Requireable<boolean>;
@@ -15,13 +15,14 @@ import RowSizeRadioGroup from './RowSizeRadioGroup.js';
15
15
  import { pkg, carbon } from '../../../../../settings.js';
16
16
 
17
17
  var _Settings;
18
- var _excluded = ["align", "legendText"];
18
+ var _excluded = ["align", "legendText", "autoAlign"];
19
19
  var blockClass = "".concat(pkg.prefix, "--datagrid__row-size");
20
20
  var RowSizeDropdown = function RowSizeDropdown(_ref) {
21
21
  var _ref$align = _ref.align,
22
22
  align = _ref$align === void 0 ? 'bottom-right' : _ref$align,
23
23
  _ref$legendText = _ref.legendText,
24
24
  legendText = _ref$legendText === void 0 ? 'Row settings' : _ref$legendText,
25
+ autoAlign = _ref.autoAlign,
25
26
  props = _objectWithoutProperties(_ref, _excluded);
26
27
  var radioGroupRef = useRef(undefined);
27
28
  var _React$useState = React__default.useState(false),
@@ -61,7 +62,8 @@ var RowSizeDropdown = function RowSizeDropdown(_ref) {
61
62
  onRequestClose: onCloseHandler,
62
63
  className: "".concat(blockClass, "-options-container"),
63
64
  onKeyDown: onKeyHandler,
64
- onBlur: onBlurHandler
65
+ onBlur: onBlurHandler,
66
+ autoAlign: autoAlign
65
67
  }, /*#__PURE__*/React__default.createElement(IconButton, {
66
68
  align: align,
67
69
  kind: "ghost",
@@ -78,6 +80,7 @@ var RowSizeDropdown = function RowSizeDropdown(_ref) {
78
80
  };
79
81
  RowSizeDropdown.propTypes = {
80
82
  align: IconButton.propTypes.align,
83
+ autoAlign: PropTypes.bool,
81
84
  datagridName: PropTypes.string,
82
85
  legendText: PropTypes.string,
83
86
  light: PropTypes.bool,
@@ -127,8 +127,8 @@ var InterstitialScreen = /*#__PURE__*/React__default.forwardRef(function (_ref,
127
127
  onClose();
128
128
  }, [onClose]);
129
129
  var scrollBodyToTop = function scrollBodyToTop() {
130
- var _bodyScrollRef$curren;
131
- (_bodyScrollRef$curren = bodyScrollRef.current) === null || _bodyScrollRef$curren === void 0 || _bodyScrollRef$curren.scroll({
130
+ var _bodyScrollRef$curren, _bodyScrollRef$curren2;
131
+ (_bodyScrollRef$curren = bodyScrollRef.current) === null || _bodyScrollRef$curren === void 0 || (_bodyScrollRef$curren2 = _bodyScrollRef$curren.scroll) === null || _bodyScrollRef$curren2 === void 0 || _bodyScrollRef$curren2.call(_bodyScrollRef$curren, {
132
132
  top: 0,
133
133
  behavior: 'smooth'
134
134
  });
@@ -1,12 +1,14 @@
1
1
  export default RowSizeDropdown;
2
- declare function RowSizeDropdown({ align, legendText, ...props }: {
2
+ declare function RowSizeDropdown({ align, legendText, autoAlign, ...props }: {
3
3
  [x: string]: any;
4
4
  align?: string | undefined;
5
5
  legendText?: string | undefined;
6
+ autoAlign: any;
6
7
  }): React.JSX.Element;
7
8
  declare namespace RowSizeDropdown {
8
9
  namespace propTypes {
9
10
  let align: any;
11
+ let autoAlign: PropTypes.Requireable<boolean>;
10
12
  let datagridName: PropTypes.Requireable<string>;
11
13
  let legendText: PropTypes.Requireable<string>;
12
14
  let light: PropTypes.Requireable<boolean>;
@@ -19,13 +19,14 @@ var RowSizeRadioGroup = require('./RowSizeRadioGroup.js');
19
19
  var settings = require('../../../../../settings.js');
20
20
 
21
21
  var _Settings;
22
- var _excluded = ["align", "legendText"];
22
+ var _excluded = ["align", "legendText", "autoAlign"];
23
23
  var blockClass = "".concat(settings.pkg.prefix, "--datagrid__row-size");
24
24
  var RowSizeDropdown = function RowSizeDropdown(_ref) {
25
25
  var _ref$align = _ref.align,
26
26
  align = _ref$align === void 0 ? 'bottom-right' : _ref$align,
27
27
  _ref$legendText = _ref.legendText,
28
28
  legendText = _ref$legendText === void 0 ? 'Row settings' : _ref$legendText,
29
+ autoAlign = _ref.autoAlign,
29
30
  props = _rollupPluginBabelHelpers.objectWithoutProperties(_ref, _excluded);
30
31
  var radioGroupRef = React.useRef(undefined);
31
32
  var _React$useState = React.useState(false),
@@ -65,7 +66,8 @@ var RowSizeDropdown = function RowSizeDropdown(_ref) {
65
66
  onRequestClose: onCloseHandler,
66
67
  className: "".concat(blockClass, "-options-container"),
67
68
  onKeyDown: onKeyHandler,
68
- onBlur: onBlurHandler
69
+ onBlur: onBlurHandler,
70
+ autoAlign: autoAlign
69
71
  }, /*#__PURE__*/React.createElement(react.IconButton, {
70
72
  align: align,
71
73
  kind: "ghost",
@@ -82,6 +84,7 @@ var RowSizeDropdown = function RowSizeDropdown(_ref) {
82
84
  };
83
85
  RowSizeDropdown.propTypes = {
84
86
  align: react.IconButton.propTypes.align,
87
+ autoAlign: index.default.bool,
85
88
  datagridName: index.default.string,
86
89
  legendText: index.default.string,
87
90
  light: index.default.bool,
@@ -129,8 +129,8 @@ exports.InterstitialScreen = /*#__PURE__*/React.forwardRef(function (_ref, ref)
129
129
  onClose();
130
130
  }, [onClose]);
131
131
  var scrollBodyToTop = function scrollBodyToTop() {
132
- var _bodyScrollRef$curren;
133
- (_bodyScrollRef$curren = bodyScrollRef.current) === null || _bodyScrollRef$curren === void 0 || _bodyScrollRef$curren.scroll({
132
+ var _bodyScrollRef$curren, _bodyScrollRef$curren2;
133
+ (_bodyScrollRef$curren = bodyScrollRef.current) === null || _bodyScrollRef$curren === void 0 || (_bodyScrollRef$curren2 = _bodyScrollRef$curren.scroll) === null || _bodyScrollRef$curren2 === void 0 || _bodyScrollRef$curren2.call(_bodyScrollRef$curren, {
134
134
  top: 0,
135
135
  behavior: 'smooth'
136
136
  });
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.317+eafbba33b",
4
+ "version": "2.43.2-canary.319+bc3fa6688",
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.23.1",
99
- "@carbon/ibm-products-styles": "^2.39.1-canary.327+eafbba33b",
99
+ "@carbon/ibm-products-styles": "^2.49.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": "eafbba33b6c9630457eeb0c6d86d030ee699940f"
123
+ "gitHead": "bc3fa6688aba9d9822c8a5e85e924e94aab7b847"
124
124
  }