@carbon/ibm-products 2.42.1-canary.17 → 2.42.1-canary.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (129) hide show
  1. package/css/index-full-carbon.css +9 -302
  2. package/css/index-full-carbon.css.map +1 -1
  3. package/css/index-full-carbon.min.css +1 -1
  4. package/css/index-full-carbon.min.css.map +1 -1
  5. package/css/index-without-carbon.css +9 -302
  6. package/css/index-without-carbon.css.map +1 -1
  7. package/css/index-without-carbon.min.css +1 -1
  8. package/css/index-without-carbon.min.css.map +1 -1
  9. package/css/index.css +9 -302
  10. package/css/index.css.map +1 -1
  11. package/css/index.min.css +1 -1
  12. package/css/index.min.css.map +1 -1
  13. package/es/components/Carousel/Carousel.d.ts +1 -1
  14. package/es/components/Carousel/Carousel.js +1 -1
  15. package/es/components/Coachmark/CoachmarkDragbar.d.ts +1 -1
  16. package/es/components/Coachmark/CoachmarkDragbar.js +1 -1
  17. package/es/components/Coachmark/CoachmarkHeader.d.ts +1 -1
  18. package/es/components/Coachmark/CoachmarkHeader.js +1 -1
  19. package/es/components/Coachmark/CoachmarkOverlay.d.ts +1 -1
  20. package/es/components/Coachmark/CoachmarkOverlay.js +1 -1
  21. package/es/components/Coachmark/CoachmarkTagline.d.ts +1 -1
  22. package/es/components/Coachmark/CoachmarkTagline.js +1 -1
  23. package/es/components/CoachmarkStack/CoachmarkStackHome.d.ts +1 -1
  24. package/es/components/CoachmarkStack/CoachmarkStackHome.js +2 -2
  25. package/es/components/ConditionBuilder/ConditionBlock/ConditionBlock.d.ts +0 -6
  26. package/es/components/ConditionBuilder/ConditionBlock/ConditionBlock.js +33 -74
  27. package/es/components/ConditionBuilder/ConditionBuilderAdd/ConditionBuilderAdd.d.ts +1 -15
  28. package/es/components/ConditionBuilder/ConditionBuilderAdd/ConditionBuilderAdd.js +12 -95
  29. package/es/components/ConditionBuilder/ConditionBuilderButton/ConditionBuilderButton.d.ts +2 -11
  30. package/es/components/ConditionBuilder/ConditionBuilderButton/ConditionBuilderButton.js +9 -27
  31. package/es/components/ConditionBuilder/ConditionBuilderContent/ConditionBuilderContent.d.ts +0 -5
  32. package/es/components/ConditionBuilder/ConditionBuilderContent/ConditionBuilderContent.js +14 -95
  33. package/es/components/ConditionBuilder/ConditionBuilderContext/ConditionBuilderProvider.d.ts +0 -1
  34. package/es/components/ConditionBuilder/ConditionBuilderContext/ConditionBuilderProvider.js +0 -1
  35. package/es/components/ConditionBuilder/ConditionBuilderContext/translationObject.d.ts +0 -7
  36. package/es/components/ConditionBuilder/ConditionBuilderContext/translationObject.js +1 -8
  37. package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItem.js +1 -1
  38. package/es/components/ConditionBuilder/{ConditionBuilderConnector → ConditionConnector}/ConditionConnector.js +33 -38
  39. package/es/components/ConditionBuilder/ConditionGroupBuilder/ConditionGroupBuilder.js +67 -197
  40. package/es/components/ConditionBuilder/utils/util.d.ts +0 -1
  41. package/es/components/Datagrid/Datagrid/DatagridHeaderRow.js +1 -1
  42. package/es/components/Datagrid/Datagrid/addons/Filtering/hooks/useFilterContext.d.ts +1 -7
  43. package/es/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditCell/InlineEditCell.d.ts +0 -1
  44. package/es/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditCell/InlineEditCell.js +3 -13
  45. package/es/components/Datagrid/types/index.d.ts +0 -2
  46. package/es/components/Datagrid/useColumnOrder.d.ts +1 -7
  47. package/es/components/Datagrid/useNestedRows.js +0 -17
  48. package/es/components/Datagrid/useOnRowClick.d.ts +1 -8
  49. package/es/components/Datagrid/useOnRowClick.js +1 -2
  50. package/es/components/Datagrid/useRowIsMouseOver.d.ts +1 -2
  51. package/es/components/Datagrid/useRowIsMouseOver.js +1 -1
  52. package/es/components/Datagrid/useSortableColumns.d.ts +3 -10
  53. package/es/components/Datagrid/useSortableColumns.js +2 -3
  54. package/es/components/InterstitialScreenView/InterstitialScreenView.d.ts +1 -1
  55. package/es/components/InterstitialScreenView/InterstitialScreenView.js +1 -1
  56. package/es/components/SidePanel/SidePanel.d.ts +2 -2
  57. package/es/components/SidePanel/SidePanel.js +3 -5
  58. package/es/components/SteppedAnimatedMedia/SteppedAnimatedMedia.d.ts +1 -1
  59. package/es/components/SteppedAnimatedMedia/SteppedAnimatedMedia.js +1 -1
  60. package/es/global/js/package-settings.js +2 -2
  61. package/es/index.d.ts +0 -1
  62. package/es/index.js +0 -1
  63. package/lib/components/Carousel/Carousel.d.ts +1 -1
  64. package/lib/components/Carousel/Carousel.js +1 -1
  65. package/lib/components/Coachmark/CoachmarkDragbar.d.ts +1 -1
  66. package/lib/components/Coachmark/CoachmarkDragbar.js +1 -1
  67. package/lib/components/Coachmark/CoachmarkHeader.d.ts +1 -1
  68. package/lib/components/Coachmark/CoachmarkHeader.js +1 -1
  69. package/lib/components/Coachmark/CoachmarkOverlay.d.ts +1 -1
  70. package/lib/components/Coachmark/CoachmarkOverlay.js +1 -1
  71. package/lib/components/Coachmark/CoachmarkTagline.d.ts +1 -1
  72. package/lib/components/Coachmark/CoachmarkTagline.js +1 -1
  73. package/lib/components/CoachmarkStack/CoachmarkStackHome.d.ts +1 -1
  74. package/lib/components/CoachmarkStack/CoachmarkStackHome.js +2 -2
  75. package/lib/components/ConditionBuilder/ConditionBlock/ConditionBlock.d.ts +0 -6
  76. package/lib/components/ConditionBuilder/ConditionBlock/ConditionBlock.js +32 -73
  77. package/lib/components/ConditionBuilder/ConditionBuilderAdd/ConditionBuilderAdd.d.ts +1 -15
  78. package/lib/components/ConditionBuilder/ConditionBuilderAdd/ConditionBuilderAdd.js +9 -92
  79. package/lib/components/ConditionBuilder/ConditionBuilderButton/ConditionBuilderButton.d.ts +2 -11
  80. package/lib/components/ConditionBuilder/ConditionBuilderButton/ConditionBuilderButton.js +8 -26
  81. package/lib/components/ConditionBuilder/ConditionBuilderContent/ConditionBuilderContent.d.ts +0 -5
  82. package/lib/components/ConditionBuilder/ConditionBuilderContent/ConditionBuilderContent.js +11 -92
  83. package/lib/components/ConditionBuilder/ConditionBuilderContext/ConditionBuilderProvider.d.ts +0 -1
  84. package/lib/components/ConditionBuilder/ConditionBuilderContext/ConditionBuilderProvider.js +0 -1
  85. package/lib/components/ConditionBuilder/ConditionBuilderContext/translationObject.d.ts +0 -7
  86. package/lib/components/ConditionBuilder/ConditionBuilderContext/translationObject.js +1 -8
  87. package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItem.js +1 -1
  88. package/lib/components/ConditionBuilder/{ConditionBuilderConnector → ConditionConnector}/ConditionConnector.js +31 -36
  89. package/lib/components/ConditionBuilder/ConditionGroupBuilder/ConditionGroupBuilder.js +64 -195
  90. package/lib/components/ConditionBuilder/utils/util.d.ts +0 -1
  91. package/lib/components/Datagrid/Datagrid/DatagridHeaderRow.js +1 -1
  92. package/lib/components/Datagrid/Datagrid/addons/Filtering/hooks/useFilterContext.d.ts +1 -7
  93. package/lib/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditCell/InlineEditCell.d.ts +0 -1
  94. package/lib/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditCell/InlineEditCell.js +3 -13
  95. package/lib/components/Datagrid/types/index.d.ts +0 -2
  96. package/lib/components/Datagrid/useColumnOrder.d.ts +1 -7
  97. package/lib/components/Datagrid/useNestedRows.js +0 -17
  98. package/lib/components/Datagrid/useOnRowClick.d.ts +1 -8
  99. package/lib/components/Datagrid/useOnRowClick.js +1 -2
  100. package/lib/components/Datagrid/useRowIsMouseOver.d.ts +1 -2
  101. package/lib/components/Datagrid/useRowIsMouseOver.js +1 -1
  102. package/lib/components/Datagrid/useSortableColumns.d.ts +3 -10
  103. package/lib/components/Datagrid/useSortableColumns.js +2 -3
  104. package/lib/components/InterstitialScreenView/InterstitialScreenView.d.ts +1 -1
  105. package/lib/components/InterstitialScreenView/InterstitialScreenView.js +1 -1
  106. package/lib/components/SidePanel/SidePanel.d.ts +2 -2
  107. package/lib/components/SidePanel/SidePanel.js +3 -5
  108. package/lib/components/SteppedAnimatedMedia/SteppedAnimatedMedia.d.ts +1 -1
  109. package/lib/components/SteppedAnimatedMedia/SteppedAnimatedMedia.js +1 -1
  110. package/lib/global/js/package-settings.js +2 -2
  111. package/lib/index.d.ts +0 -1
  112. package/lib/index.js +0 -1
  113. package/package.json +3 -3
  114. package/scss/components/ConditionBuilder/_condition-builder.scss +1 -21
  115. package/scss/components/ConditionBuilder/styles/_conditionBuilderCondition.scss +3 -22
  116. package/scss/components/ConditionBuilder/styles/_conditionBuilderItem.scss +21 -58
  117. package/scss/components/NonLinearReading/_non-linear-reading.scss +1 -1
  118. package/es/components/ConditionBuilder/ConditionBuilderConnector/GroupConnector.d.ts +0 -2
  119. package/es/components/ConditionBuilder/ConditionBuilderConnector/GroupConnector.js +0 -44
  120. package/es/components/ConditionBuilder/ConditionPreview/ConditionPreview.d.ts +0 -10
  121. package/es/components/ConditionBuilder/ConditionPreview/ConditionPreview.js +0 -69
  122. package/es/feature-flags.js +0 -18
  123. package/lib/components/ConditionBuilder/ConditionBuilderConnector/GroupConnector.d.ts +0 -2
  124. package/lib/components/ConditionBuilder/ConditionBuilderConnector/GroupConnector.js +0 -52
  125. package/lib/components/ConditionBuilder/ConditionPreview/ConditionPreview.d.ts +0 -10
  126. package/lib/components/ConditionBuilder/ConditionPreview/ConditionPreview.js +0 -77
  127. package/lib/feature-flags.js +0 -40
  128. /package/es/components/ConditionBuilder/{ConditionBuilderConnector → ConditionConnector}/ConditionConnector.d.ts +0 -0
  129. /package/lib/components/ConditionBuilder/{ConditionBuilderConnector → ConditionConnector}/ConditionConnector.d.ts +0 -0
@@ -2,4 +2,3 @@ export function focusThisField(evt: any): void;
2
2
  export function focusThisItem(currentElement: any): void;
3
3
  export function traverseClockVise(eachElem: any, index: any, allElements: any, rotate: any, trapFocus: any): void;
4
4
  export function traverseReverse(eachElem: any, index: any, allElements: any, rotate: any, trapFocus: any): void;
5
- export function checkForHoldingKey(evt: any, key: any): any;
@@ -185,7 +185,7 @@ var HeaderRow = function HeaderRow(datagridState, headRef, headerGroup) {
185
185
  headerProps = _extends({}, (_objectDestructuringEmpty(_header$getHeaderProp), _header$getHeaderProp));
186
186
  var resizerProps = header === null || header === void 0 || (_header$getResizerPro = header.getResizerProps) === null || _header$getResizerPro === void 0 ? void 0 : _header$getResizerPro.call(header);
187
187
  return /*#__PURE__*/React__default.createElement(TableHeader, _extends({}, headerProps, {
188
- className: cx(header === null || header === void 0 ? void 0 : header.className, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, "".concat(blockClass, "__resizableColumn"), resizerProps), "".concat(blockClass, "__isResizing"), header === null || header === void 0 ? void 0 : header.isResizing), "".concat(blockClass, "__sortableColumn"), datagridState.isTableSortable && header.id !== 'spacer'), "".concat(blockClass, "__isSorted"), header === null || header === void 0 ? void 0 : header.isSorted), "".concat(blockClass, "__header-actions-column"), header === null || header === void 0 ? void 0 : header.isAction), "".concat(blockClass, "__with-slug"), header.slug && /*#__PURE__*/React__default.isValidElement(header === null || header === void 0 ? void 0 : header.slug)), headerProps.className),
188
+ className: cx(header === null || header === void 0 ? void 0 : header.className, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, "".concat(blockClass, "__resizableColumn"), resizerProps), "".concat(blockClass, "__isResizing"), header === null || header === void 0 ? void 0 : header.isResizing), "".concat(blockClass, "__sortableColumn"), datagridState.isTableSortable && header.id !== 'spacer'), "".concat(blockClass, "__isSorted"), header === null || header === void 0 ? void 0 : header.isSorted), "".concat(blockClass, "__header-actions-column"), header === null || header === void 0 ? void 0 : header.isAction), "".concat(blockClass, "__with-slug"), header.slug && /*#__PURE__*/React__default.isValidElement(header === null || header === void 0 ? void 0 : header.slug))),
189
189
  key: header.id,
190
190
  "aria-hidden": header.id === 'spacer' && 'true'
191
191
  }, getAccessibilityProps(header)), header.render('Header'), renderSlug(header.slug), resizerProps && !header.isAction && /*#__PURE__*/React__default.createElement(ResizeHeader, {
@@ -1,8 +1,2 @@
1
- /**
2
- * Copyright IBM Corp. 2023, 2024
3
- *
4
- * This source code is licensed under the Apache-2.0 license found in the
5
- * LICENSE file in the root directory of this source tree.
6
- */
7
- declare const useFilterContext: () => any;
8
1
  export default useFilterContext;
2
+ declare function useFilterContext(): any;
@@ -20,7 +20,6 @@ export namespace InlineEditCell {
20
20
  rows: PropTypes.Requireable<(object | null | undefined)[]>;
21
21
  rowSize: PropTypes.Requireable<string>;
22
22
  tableId: PropTypes.Requireable<string>;
23
- cellEditing: PropTypes.Requireable<object>;
24
23
  }>>;
25
24
  let nonEditCell: PropTypes.Requireable<boolean>;
26
25
  let placeholder: PropTypes.Requireable<string>;
@@ -36,8 +36,7 @@ var InlineEditCell = function InlineEditCell(_ref) {
36
36
  var columnIndex = instance.columns.findIndex(function (col) {
37
37
  return col.id === columnId;
38
38
  });
39
- var rowIndex = cell.row.index;
40
- var cellId = "column-".concat(columnIndex, "-row-").concat(rowIndex);
39
+ var cellId = "column-".concat(columnIndex, "-row-").concat(cell.row.index);
41
40
  var _useContext = useContext(InlineEditContext),
42
41
  state = _useContext.state,
43
42
  dispatch = _useContext.dispatch;
@@ -73,14 +72,6 @@ var InlineEditCell = function InlineEditCell(_ref) {
73
72
  var rowSize = instance.rowSize,
74
73
  onDataUpdate = instance.onDataUpdate;
75
74
  var saveCellData;
76
- if (inEditMode) {
77
- instance.cellEditing = {
78
- cellId: cellId,
79
- columnIndex: columnIndex,
80
- rowIndex: rowIndex,
81
- curCellValue: cellValue
82
- };
83
- }
84
75
  useEffect(function () {
85
76
  setInitialValue(value);
86
77
  var columnId = cell.column.id;
@@ -454,7 +445,7 @@ var InlineEditCell = function InlineEditCell(_ref) {
454
445
  "data-inline-type": type,
455
446
  onClick: !nonEditCell ? handleInlineCellClick : addActiveState,
456
447
  onKeyDown: !nonEditCell ? handleKeyDown : null,
457
- className: cx("".concat(blockClass, "__inline-edit--outer-cell-button"), _defineProperty(_defineProperty(_defineProperty(_defineProperty({}, "".concat(blockClass, "__inline-edit--outer-cell-button--").concat(rowSize), rowSize), "".concat(blockClass, "__inline-edit--outer-cell-button--lg"), !rowSize), "".concat(blockClass, "__inline-edit--outer-cell-button--invalid"), inEditMode && (config === null || config === void 0 || (_config$validator = config.validator) === null || _config$validator === void 0 ? void 0 : _config$validator.call(config, cellValue))), "".concat(blockClass, "__static--outer-cell"), !disabledCell))
448
+ className: cx("".concat(blockClass, "__inline-edit--outer-cell-button"), _defineProperty(_defineProperty(_defineProperty(_defineProperty({}, "".concat(blockClass, "__inline-edit--outer-cell-button--").concat(rowSize), rowSize), "".concat(blockClass, "__inline-edit--outer-cell-button--lg"), !rowSize), "".concat(blockClass, "__inline-edit--outer-cell-button--invalid"), config === null || config === void 0 || (_config$validator = config.validator) === null || _config$validator === void 0 ? void 0 : _config$validator.call(config, cellValue)), "".concat(blockClass, "__static--outer-cell"), !disabledCell))
458
449
  }, !nonEditCell && !disabledCell && renderRegularCell(), (!inEditMode || disabledCell) && /*#__PURE__*/React__default.createElement(InlineEditButton, {
459
450
  isActiveCell: cellId === activeCellId,
460
451
  renderIcon: setRenderIcon(),
@@ -478,8 +469,7 @@ InlineEditCell.propTypes = {
478
469
  onDataUpdate: PropTypes.func,
479
470
  rows: PropTypes.arrayOf(PropTypes.object),
480
471
  rowSize: PropTypes.string,
481
- tableId: PropTypes.string,
482
- cellEditing: PropTypes.object
472
+ tableId: PropTypes.string
483
473
  }),
484
474
  nonEditCell: PropTypes.bool,
485
475
  placeholder: PropTypes.string,
@@ -192,8 +192,6 @@ export interface DataGridState<T extends object = any> extends TableCommonProps,
192
192
  onVirtualScroll?: (evt?: boolean) => void;
193
193
  fetchMoreData?: () => void;
194
194
  loadMoreThreshold?: number;
195
- onRowClick?: (row: any, event: any) => void;
196
- onSort?: boolean;
197
195
  }
198
196
  export interface ResizeHeaderProps {
199
197
  resizerProps?: ResizerProps;
@@ -1,8 +1,2 @@
1
- /**
2
- * Copyright IBM Corp. 2022, 2022
3
- *
4
- * This source code is licensed under the Apache-2.0 license found in the
5
- * LICENSE file in the root directory of this source tree.
6
- */
7
- import { useColumnOrder } from 'react-table';
8
1
  export default useColumnOrder;
2
+ import { useColumnOrder } from 'react-table';
@@ -15,23 +15,6 @@ var blockClass = "".concat(pkg.prefix, "--datagrid");
15
15
  var useNestedRows = function useNestedRows(hooks) {
16
16
  useNestedRowExpander(hooks);
17
17
  var useInstance = function useInstance(instance) {
18
- useEffect(function () {
19
- var rows = instance.rows;
20
- var defaultExpandedRows = rows.filter(function (row) {
21
- var _row$original;
22
- return row === null || row === void 0 || (_row$original = row.original) === null || _row$original === void 0 ? void 0 : _row$original.defaultExpanded;
23
- });
24
- if (defaultExpandedRows !== null && defaultExpandedRows !== void 0 && defaultExpandedRows.length) {
25
- defaultExpandedRows.map(function (defaultExpandedRow) {
26
- if (!defaultExpandedRow.isExpanded && !defaultExpandedRow.hasExpanded) {
27
- var _defaultExpandedRow$t;
28
- defaultExpandedRow === null || defaultExpandedRow === void 0 || (_defaultExpandedRow$t = defaultExpandedRow.toggleRowExpanded) === null || _defaultExpandedRow$t === void 0 || _defaultExpandedRow$t.call(defaultExpandedRow);
29
- defaultExpandedRow.hasExpanded = true;
30
- return;
31
- }
32
- });
33
- }
34
- }, [instance, instance.rows]);
35
18
  // This useEffect will expand rows if they exist in the initialState obj
36
19
  useEffect(function () {
37
20
  var rows = instance.rows,
@@ -1,9 +1,2 @@
1
- /**
2
- * Copyright IBM Corp. 2020, 2023
3
- *
4
- * This source code is licensed under the Apache-2.0 license found in the
5
- * LICENSE file in the root directory of this source tree.
6
- */
7
- import { Hooks } from 'react-table';
8
- declare const useOnRowClick: (hooks: Hooks) => void;
9
1
  export default useOnRowClick;
2
+ declare function useOnRowClick(hooks: any): void;
@@ -9,8 +9,7 @@ import { pkg, carbon } from '../../settings.js';
9
9
 
10
10
  var useOnRowClick = function useOnRowClick(hooks) {
11
11
  var useInstance = function useInstance(rowInstance) {
12
- var _ref = rowInstance,
13
- onRowClick = _ref.onRowClick;
12
+ var onRowClick = rowInstance.onRowClick;
14
13
  var getRowProps = function getRowProps(props, datagridState) {
15
14
  var isFetching = datagridState.isFetching,
16
15
  row = datagridState.row,
@@ -1,3 +1,2 @@
1
- import { Hooks } from 'react-table';
2
- declare const useRowIsMouseOver: (hooks: Hooks) => void;
3
1
  export default useRowIsMouseOver;
2
+ declare function useRowIsMouseOver(hooks: any): void;
@@ -17,7 +17,7 @@ var useRowIsMouseOver = function useRowIsMouseOver(hooks) {
17
17
  setMouseOverRowIndex = _useState2[1];
18
18
  var onMouseChange = useDebounce(function (datagridState) {
19
19
  var row = datagridState.row;
20
- setMouseOverRowIndex(row === null || row === void 0 ? void 0 : row.index);
20
+ setMouseOverRowIndex(row.index);
21
21
  }, 100);
22
22
  var getRowProps = function getRowProps(props, datagridState) {
23
23
  var onMouseOver = function onMouseOver() {
@@ -1,13 +1,6 @@
1
- /**
2
- * Copyright IBM Corp. 2020, 2024
3
- *
4
- * This source code is licensed under the Apache-2.0 license found in the
5
- * LICENSE file in the root directory of this source tree.
6
- */
7
- import { Hooks } from 'react-table';
8
- export declare const getNewSortOrder: (sortOrder?: boolean | string) => {
9
- newSortDesc: boolean;
1
+ export function getNewSortOrder(sortOrder: any): {
2
+ newSortDesc: undefined;
10
3
  newOrder: string;
11
4
  };
12
- declare const useSortableColumns: (hooks: Hooks) => void;
13
5
  export default useSortableColumns;
6
+ declare function useSortableColumns(hooks: any): void;
@@ -22,7 +22,7 @@ var ordering = {
22
22
  };
23
23
  var getNewSortOrder = function getNewSortOrder(sortOrder) {
24
24
  var order = {
25
- newSortDesc: false,
25
+ newSortDesc: undefined,
26
26
  newOrder: ordering.NONE
27
27
  };
28
28
  if (sortOrder === false || sortOrder === ordering.DESC) {
@@ -137,8 +137,7 @@ var useSortableColumns = function useSortableColumns(hooks) {
137
137
  return (_instance$customizeCo = instance.customizeColumnsProps) !== null && _instance$customizeCo !== void 0 && _instance$customizeCo.isTearsheetOpen ? visibleColumns : _toConsumableArray(sortableColumns);
138
138
  };
139
139
  var sortInstanceProps = function sortInstanceProps(instance) {
140
- var _ref3 = instance,
141
- onSort = _ref3.onSort;
140
+ var onSort = instance.onSort;
142
141
  Object.assign(instance, {
143
142
  manualSortBy: !!onSort,
144
143
  isTableSortable: true
@@ -20,7 +20,7 @@ interface InterstitialScreenViewProps extends PropsWithChildren {
20
20
  stepTitle: string;
21
21
  }
22
22
  /**
23
- * An Onboarding component intended to be used as the child elements of the InterstitialScreen component.
23
+ * A Novice to Pro component intended to be used as the child elements of the InterstitialScreen component.
24
24
  */
25
25
  export declare let InterstitialScreenView: React.ForwardRefExoticComponent<InterstitialScreenViewProps & React.RefAttributes<HTMLDivElement>>;
26
26
  export {};
@@ -21,7 +21,7 @@ var _excluded = ["children", "className", "stepTitle"];
21
21
  var blockClass = "".concat(pkg.prefix, "--interstitial-screen-view");
22
22
  var componentName = 'InterstitialScreenView';
23
23
  /**
24
- * An Onboarding component intended to be used as the child elements of the InterstitialScreen component.
24
+ * A Novice to Pro component intended to be used as the child elements of the InterstitialScreen component.
25
25
  */
26
26
  var InterstitialScreenView = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
27
27
  var children = _ref.children,
@@ -11,7 +11,7 @@ type SidePanelBaseProps = {
11
11
  /**
12
12
  * Sets the action toolbar buttons
13
13
  */
14
- actionToolbarButtons?: ButtonProps<any>[];
14
+ actionToolbarButtons?: ButtonProps[];
15
15
  /**
16
16
  * The primary actions to be shown in the side panel. Each action is
17
17
  * specified as an object that will render expressive Buttons. Any Button
@@ -20,7 +20,7 @@ type SidePanelBaseProps = {
20
20
  *
21
21
  * See https://react.carbondesignsystem.com/?path=/docs/components-button--default#component-api
22
22
  */
23
- actions?: ButtonProps<any>[];
23
+ actions?: ButtonProps[];
24
24
  /**
25
25
  * Determines if the title will animate on scroll
26
26
  */
@@ -323,12 +323,12 @@ var SidePanel = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
323
323
  if (primeFocusEl) {
324
324
  primeFocusEl === null || primeFocusEl === void 0 || primeFocusEl.focus();
325
325
  }
326
- } else if (!slideIn) {
326
+ } else {
327
327
  firstElement === null || firstElement === void 0 || firstElement.focus();
328
328
  }
329
329
  }, 0);
330
330
  }
331
- }, [animationComplete, firstElement, open, selectorPrimaryFocus, slideIn]);
331
+ }, [animationComplete, firstElement, open, selectorPrimaryFocus]);
332
332
  var primaryActionContainerClassNames = cx(["".concat(blockClass, "__actions-container"), _defineProperty({}, "".concat(blockClass, "__actions-container--condensed"), condensedActions)]);
333
333
  var mainPanelClassNames = cx([blockClass, className, "".concat(blockClass), "".concat(blockClass, "--").concat(size), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, "".concat(blockClass, "--right-placement"), placement === 'right'), "".concat(blockClass, "--left-placement"), placement === 'left'), "".concat(blockClass, "--slide-in"), slideIn), "".concat(blockClass, "--has-slug"), slug), "".concat(blockClass, "--condensed-actions"), condensedActions), "".concat(blockClass, "--has-overlay"), includeOverlay)]);
334
334
  var renderTitle = function renderTitle() {
@@ -448,7 +448,7 @@ var SidePanel = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
448
448
  placement: placement,
449
449
  shouldReduceMotion: shouldReduceMotion
450
450
  },
451
- onKeyDown: slideIn ? undefined : keyDownListener
451
+ onKeyDown: keyDownListener
452
452
  }), /*#__PURE__*/React__default.createElement(React__default.Fragment, null, renderHeader(), renderMain()), /*#__PURE__*/React__default.createElement(MotionActionSet, {
453
453
  actions: actions !== null && actions !== void 0 ? actions : [],
454
454
  className: primaryActionContainerClassNames,
@@ -471,7 +471,6 @@ SidePanel.propTypes = {
471
471
  /**
472
472
  * Sets the action toolbar buttons
473
473
  */
474
- /**@ts-ignore */
475
474
  actionToolbarButtons: PropTypes.arrayOf(PropTypes.shape({
476
475
  label: PropTypes.string,
477
476
  leading: PropTypes.bool,
@@ -505,7 +504,6 @@ SidePanel.propTypes = {
505
504
  label: PropTypes.string,
506
505
  loading: PropTypes.bool,
507
506
  // we duplicate this Button prop to improve the DocGen here
508
- /**@ts-ignore */
509
507
  onClick: Button.propTypes.onClick
510
508
  })))]),
511
509
  /**
@@ -20,7 +20,7 @@ interface SteppedAnimatedMediaProps {
20
20
  playStep?: number;
21
21
  }
22
22
  /**
23
- * The SteppedAnimatedMedia is an Onboarding internal component and is not intended for general use.
23
+ * The SteppedAnimatedMedia is a Novice to Pro internal component and is not intended for general use.
24
24
  */
25
25
  export declare const SteppedAnimatedMedia: React.ForwardRefExoticComponent<SteppedAnimatedMediaProps & React.RefAttributes<HTMLDivElement>>;
26
26
  export {};
@@ -27,7 +27,7 @@ var defaults = {
27
27
  playStep: 0
28
28
  };
29
29
  /**
30
- * The SteppedAnimatedMedia is an Onboarding internal component and is not intended for general use.
30
+ * The SteppedAnimatedMedia is a Novice to Pro internal component and is not intended for general use.
31
31
  */
32
32
  var SteppedAnimatedMedia = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
33
33
  var className = _ref.className,
@@ -98,7 +98,7 @@ var defaults = {
98
98
  GetStartedCard: false,
99
99
  /* new component flags here - comment used by generate CLI */
100
100
 
101
- // Onboarding components not yet reviewed and released:
101
+ // Novice to pro components not yet reviewed and released:
102
102
  Coachmark: false,
103
103
  CoachmarkBeacon: false,
104
104
  CoachmarkButton: false,
@@ -118,7 +118,7 @@ var defaults = {
118
118
  UserAvatar: false,
119
119
  /* new component flags here - comment used by generate CLI */
120
120
 
121
- // Onboarding components not yet reviewed and released:
121
+ // Novice to pro components not yet reviewed and released:
122
122
  EmptyStateV2: false,
123
123
  Guidebanner: false,
124
124
  GuidebannerElement: false,
package/es/index.d.ts CHANGED
@@ -4,7 +4,6 @@
4
4
  * This source code is licensed under the Apache-2.0 license found in the
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  */
7
- import './feature-flags';
8
7
  export { pkg } from './settings';
9
8
  export { usePrefix } from './global/js/hooks';
10
9
  export * from './components';
package/es/index.js CHANGED
@@ -5,7 +5,6 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  */
7
7
 
8
- import './feature-flags.js';
9
8
  export { pkg } from './settings.js';
10
9
  export { useColumnOrder } from 'react-table';
11
10
  export { usePrefix } from './global/js/hooks/usePrefix.js';
@@ -47,7 +47,7 @@ export interface CarouselProps {
47
47
  [key: string]: any;
48
48
  }
49
49
  /**
50
- * The Carousel acts as a scaffold for other Onboarding content.
50
+ * The Carousel acts as a scaffold for other Novice to Pro content.
51
51
  *
52
52
  * This component is not intended for general use.
53
53
  *
@@ -35,7 +35,7 @@ var defaults = {
35
35
  };
36
36
 
37
37
  /**
38
- * The Carousel acts as a scaffold for other Onboarding content.
38
+ * The Carousel acts as a scaffold for other Novice to Pro content.
39
39
  *
40
40
  * This component is not intended for general use.
41
41
  *
@@ -38,7 +38,7 @@ interface CoachmarkDragbarProps {
38
38
  }
39
39
  /**
40
40
  * DO NOT USE. This component is for the exclusive use
41
- * of other Onboarding components.
41
+ * of other Novice to Pro components.
42
42
  */
43
43
  export declare let CoachmarkDragbar: React.ForwardRefExoticComponent<Omit<CoachmarkDragbarProps, "ref"> & React.RefAttributes<HTMLElement>>;
44
44
  export {};
@@ -42,7 +42,7 @@ var defaults = {
42
42
  };
43
43
  /**
44
44
  * DO NOT USE. This component is for the exclusive use
45
- * of other Onboarding components.
45
+ * of other Novice to Pro components.
46
46
  */
47
47
  exports.CoachmarkDragbar = /*#__PURE__*/React__default["default"].forwardRef(function (_ref, ref) {
48
48
  var a11yKeyboardHandler = _ref.a11yKeyboardHandler,
@@ -25,7 +25,7 @@ interface CoachmarkHeaderProps {
25
25
  }
26
26
  /**
27
27
  * DO NOT USE. This component is for the exclusive use
28
- * of other Onboarding components.
28
+ * of other Novice to Pro components.
29
29
  */
30
30
  export declare let CoachmarkHeader: React.ForwardRefExoticComponent<CoachmarkHeaderProps & React.RefAttributes<HTMLElement>>;
31
31
  export {};
@@ -37,7 +37,7 @@ var defaults = {
37
37
  };
38
38
  /**
39
39
  * DO NOT USE. This component is for the exclusive use
40
- * of other Onboarding components.
40
+ * of other Novice to Pro components.
41
41
  */
42
42
  exports.CoachmarkHeader = /*#__PURE__*/React__default["default"].forwardRef(function (_ref, ref) {
43
43
  var _ref$closeIconDescrip = _ref.closeIconDescription,
@@ -40,7 +40,7 @@ interface CoachmarkOverlayProps {
40
40
  }
41
41
  /**
42
42
  * DO NOT USE. This component is for the exclusive use
43
- * of other Onboarding components.
43
+ * of other Novice to Pro components.
44
44
  */
45
45
  export declare let CoachmarkOverlay: React.ForwardRefExoticComponent<Omit<CoachmarkOverlayProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
46
46
  export {};
@@ -41,7 +41,7 @@ var defaults = {
41
41
  };
42
42
  /**
43
43
  * DO NOT USE. This component is for the exclusive use
44
- * of other Onboarding components.
44
+ * of other Novice to Pro components.
45
45
  */
46
46
  exports.CoachmarkOverlay = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
47
47
  var children = _ref.children,
@@ -25,7 +25,7 @@ interface CoachmarkTaglineProps {
25
25
  }
26
26
  /**
27
27
  * DO NOT USE. This component is for the exclusive use
28
- * of other Onboarding components.
28
+ * of other Novice to Pro components.
29
29
  */
30
30
  export declare let CoachmarkTagline: React.ForwardRefExoticComponent<CoachmarkTaglineProps & React.RefAttributes<HTMLDivElement>>;
31
31
  export {};
@@ -37,7 +37,7 @@ var defaults = {
37
37
  };
38
38
  /**
39
39
  * DO NOT USE. This component is for the exclusive use
40
- * of other Onboarding components.
40
+ * of other Novice to Pro components.
41
41
  */
42
42
  exports.CoachmarkTagline = /*#__PURE__*/React__default["default"].forwardRef(function (_ref, ref) {
43
43
  var _ref$closeIconDescrip = _ref.closeIconDescription,
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * DO NOT USE. This component is for the exclusive use
3
- * of other Onboarding components.
3
+ * of other Novice to Pro components.
4
4
  */
5
5
  export let CoachmarkStackHome: React.ForwardRefExoticComponent<React.RefAttributes<any>>;
6
6
  import React from 'react';
@@ -39,7 +39,7 @@ var componentName = 'CoachmarkStackHome';
39
39
 
40
40
  /**
41
41
  * DO NOT USE. This component is for the exclusive use
42
- * of other Onboarding components.
42
+ * of other Novice to Pro components.
43
43
  */
44
44
  exports.CoachmarkStackHome = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
45
45
  var _document$querySelect;
@@ -67,7 +67,7 @@ exports.CoachmarkStackHome = /*#__PURE__*/React.forwardRef(function (_ref, ref)
67
67
  }, 100);
68
68
  }, [isOpen]);
69
69
  if (!navLinkLabels) {
70
- return pconsole["default"].warn("".concat(componentName, " is an Onboarding internal component and is not intended for general use."));
70
+ return pconsole["default"].warn("".concat(componentName, " is a Novice to Pro internal component and is not intended for general use."));
71
71
  }
72
72
  var portalNode = portalTarget ? (_document$querySelect = document.querySelector(portalTarget)) !== null && _document$querySelect !== void 0 ? _document$querySelect : document.querySelector('body') : document.querySelector('body');
73
73
  return /*#__PURE__*/reactDom.createPortal( /*#__PURE__*/React__default["default"].createElement("div", _rollupPluginBabelHelpers["extends"]({}, rest, {
@@ -6,23 +6,17 @@ declare function ConditionBlock(props: any): import("react/jsx-runtime").JSX.Ele
6
6
  declare namespace ConditionBlock {
7
7
  namespace propTypes {
8
8
  let addConditionHandler: PropTypes.Requireable<(...args: any[]) => any>;
9
- let addConditionSubGroupHandler: PropTypes.Requireable<(...args: any[]) => any>;
10
9
  let aria: PropTypes.Requireable<object>;
11
10
  let condition: PropTypes.Requireable<object>;
12
11
  let conditionIndex: PropTypes.Requireable<number>;
13
12
  let conjunction: PropTypes.Requireable<string>;
14
13
  let group: PropTypes.Requireable<object>;
15
- let hideConditionPreviewHandler: PropTypes.Requireable<(...args: any[]) => any>;
16
- let hideConditionSubGroupPreviewHandler: PropTypes.Requireable<(...args: any[]) => any>;
17
14
  let isLastCondition: PropTypes.Requireable<(...args: any[]) => any>;
18
15
  let isStatement: PropTypes.Requireable<boolean>;
19
16
  let onChange: PropTypes.Requireable<(...args: any[]) => any>;
20
17
  let onConnectorOperatorChange: PropTypes.Requireable<(...args: any[]) => any>;
21
18
  let onRemove: PropTypes.Requireable<(...args: any[]) => any>;
22
19
  let onStatementChange: PropTypes.Requireable<(...args: any[]) => any>;
23
- let showConditionPreviewHandler: PropTypes.Requireable<(...args: any[]) => any>;
24
- let showConditionSubGroupPreviewHandler: PropTypes.Requireable<(...args: any[]) => any>;
25
- let state: PropTypes.Requireable<object>;
26
20
  }
27
21
  }
28
22
  import PropTypes from 'prop-types';