@carbon/ibm-products 2.43.2-canary.132 → 2.43.2-canary.139

Sign up to get free protection for your applications and to get access to all the features.
Files changed (43) hide show
  1. package/es/components/ComboButton/ComboButton.js +1 -1
  2. package/es/components/CreateFullPage/CreateFullPage.js +1 -1
  3. package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/DraggableItemsList.js +4 -4
  4. package/es/components/Datagrid/Datagrid/addons/Filtering/FilterFlyout.d.ts +3 -1
  5. package/es/components/Datagrid/Datagrid/addons/Filtering/FilterFlyout.js +9 -2
  6. package/es/components/Datagrid/useFiltering.js +1 -1
  7. package/es/components/EditInPlace/EditInPlace.d.ts +4 -0
  8. package/es/components/EditInPlace/EditInPlace.js +8 -2
  9. package/es/components/Nav/NavItem.js +4 -1
  10. package/es/components/Nav/NavList.js +3 -0
  11. package/es/components/OptionsTile/OptionsTile.d.ts +1 -1
  12. package/es/components/OptionsTile/OptionsTile.js +0 -1
  13. package/es/components/PageHeader/PageHeader.js +3 -3
  14. package/es/components/Saving/Saving.js +1 -1
  15. package/es/components/SearchBar/SearchBar.js +1 -1
  16. package/es/components/SidePanel/SidePanel.js +1 -1
  17. package/es/components/TagSet/TagSet.js +1 -1
  18. package/es/components/Tearsheet/Tearsheet.js +2 -2
  19. package/es/components/Tearsheet/TearsheetNarrow.js +3 -3
  20. package/es/components/WebTerminal/WebTerminal.js +2 -2
  21. package/es/components/index.d.ts +73 -72
  22. package/es/global/js/package-settings.d.ts +2 -0
  23. package/es/global/js/package-settings.js +2 -0
  24. package/es/index.js +46 -44
  25. package/es/settings.d.ts +2 -0
  26. package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/DraggableItemsList.js +4 -4
  27. package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterFlyout.d.ts +3 -1
  28. package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterFlyout.js +9 -2
  29. package/lib/components/EditInPlace/EditInPlace.d.ts +4 -0
  30. package/lib/components/EditInPlace/EditInPlace.js +7 -1
  31. package/lib/components/Guidebanner/Guidebanner.js +14 -14
  32. package/lib/components/Nav/NavItem.js +9 -7
  33. package/lib/components/Nav/NavList.js +8 -6
  34. package/lib/components/OptionsTile/OptionsTile.d.ts +1 -1
  35. package/lib/components/OptionsTile/OptionsTile.js +0 -1
  36. package/lib/components/WebTerminal/WebTerminal.js +14 -14
  37. package/lib/components/WebTerminal/WebTerminalContentWrapper.js +4 -4
  38. package/lib/components/index.d.ts +73 -72
  39. package/lib/global/js/package-settings.d.ts +2 -0
  40. package/lib/global/js/package-settings.js +2 -0
  41. package/lib/index.js +169 -159
  42. package/lib/settings.d.ts +2 -0
  43. package/package.json +2 -2
package/es/index.js CHANGED
@@ -7,8 +7,6 @@
7
7
 
8
8
  import './feature-flags.js';
9
9
  export { pkg } from './settings.js';
10
- export { useColumnOrder } from 'react-table';
11
- export { usePrefix } from './global/js/hooks/usePrefix.js';
12
10
  export { AboutModal } from './components/AboutModal/AboutModal.js';
13
11
  export { APIKeyModal } from './components/APIKeyModal/APIKeyModal.js';
14
12
  export { Cascade } from './components/Cascade/Cascade.js';
@@ -22,19 +20,8 @@ export { CreateTearsheet } from './components/CreateTearsheet/CreateTearsheet.js
22
20
  export { CreateTearsheetStep } from './components/CreateTearsheet/CreateTearsheetStep.js';
23
21
  export { CreateTearsheetDivider } from './components/CreateTearsheet/CreateTearsheetDivider.js';
24
22
  export { CreateTearsheetNarrow } from './components/CreateTearsheetNarrow/CreateTearsheetNarrow.js';
25
- export { EmptyState } from './components/EmptyStates/EmptyState.js';
26
- export { EmptyStateV2 } from './components/EmptyStates/EmptyStateV2.js';
27
- export { ErrorEmptyState } from './components/EmptyStates/ErrorEmptyState/ErrorEmptyState.js';
28
- export { NoDataEmptyState } from './components/EmptyStates/NoDataEmptyState/NoDataEmptyState.js';
29
- export { NoTagsEmptyState } from './components/EmptyStates/NoTagsEmptyState/NoTagsEmptyState.js';
30
- export { NotFoundEmptyState } from './components/EmptyStates/NotFoundEmptyState/NotFoundEmptyState.js';
31
- export { NotificationsEmptyState } from './components/EmptyStates/NotificationsEmptyState/NotificationsEmptyState.js';
32
- export { UnauthorizedEmptyState } from './components/EmptyStates/UnauthorizedEmptyState/UnauthorizedEmptyState.js';
33
23
  export { ExportModal } from './components/ExportModal/ExportModal.js';
34
24
  export { ExpressiveCard } from './components/ExpressiveCard/ExpressiveCard.js';
35
- export { HTTPError403 } from './components/HTTPErrors/HTTPError403/HTTPError403.js';
36
- export { HTTPError404 } from './components/HTTPErrors/HTTPError404/HTTPError404.js';
37
- export { HTTPErrorOther } from './components/HTTPErrors/HTTPErrorOther/HTTPErrorOther.js';
38
25
  export { ImportModal } from './components/ImportModal/ImportModal.js';
39
26
  export { MultiAddSelect } from './components/MultiAddSelect/MultiAddSelect.js';
40
27
  export { NotificationsPanel } from './components/NotificationsPanel/NotificationsPanel.js';
@@ -59,29 +46,6 @@ export { EditSidePanel } from './components/EditSidePanel/EditSidePanel.js';
59
46
  export { OptionsTile } from './components/OptionsTile/OptionsTile.js';
60
47
  export { EditInPlace } from './components/EditInPlace/EditInPlace.js';
61
48
  export { DataSpreadsheet } from './components/DataSpreadsheet/DataSpreadsheet.js';
62
- export { Datagrid } from './components/Datagrid/Datagrid/Datagrid.js';
63
- export { default as useDatagrid } from './components/Datagrid/useDatagrid.js';
64
- export { default as useInfiniteScroll } from './components/Datagrid/useInfiniteScroll.js';
65
- export { default as useNestedRows } from './components/Datagrid/useNestedRows.js';
66
- export { default as useSelectRows } from './components/Datagrid/useSelectRows.js';
67
- export { default as useExpandedRow } from './components/Datagrid/useExpandedRow.js';
68
- export { default as useOnRowClick } from './components/Datagrid/useOnRowClick.js';
69
- export { default as useSortableColumns } from './components/Datagrid/useSortableColumns.js';
70
- export { default as useRowIsMouseOver } from './components/Datagrid/useRowIsMouseOver.js';
71
- export { default as useColumnCenterAlign } from './components/Datagrid/useColumnCenterAlign.js';
72
- export { default as useColumnRightAlign } from './components/Datagrid/useColumnRightAlign.js';
73
- export { default as useDisableSelectRows } from './components/Datagrid/useDisableSelectRows.js';
74
- export { default as useStickyColumn } from './components/Datagrid/useStickyColumn.js';
75
- export { default as useActionsColumn } from './components/Datagrid/useActionsColumn.js';
76
- export { default as useCustomizeColumns } from './components/Datagrid/useCustomizeColumns.js';
77
- export { default as useSelectAllWithToggle } from './components/Datagrid/useSelectAllToggle.js';
78
- export { default as useInlineEdit } from './components/Datagrid/useInlineEdit.js';
79
- export { default as useFiltering } from './components/Datagrid/useFiltering.js';
80
- export { getAutoSizedColumnWidth } from './components/Datagrid/utils/getAutoSizedColumnWidth.js';
81
- export { default as useFilterContext } from './components/Datagrid/Datagrid/addons/Filtering/hooks/useFilterContext.js';
82
- export { default as useEditableCell } from './components/Datagrid/useEditableCell.js';
83
- export { EditTearsheet } from './components/EditTearsheet/EditTearsheet.js';
84
- export { EditTearsheetForm } from './components/EditTearsheet/EditTearsheetForm.js';
85
49
  export { EditTearsheetNarrow } from './components/EditTearsheetNarrow/EditTearsheetNarrow.js';
86
50
  export { EditFullPage } from './components/EditFullPage/EditFullPage.js';
87
51
  export { EditUpdateCards } from './components/EditUpdateCards/EditUpdateCards.js';
@@ -92,7 +56,6 @@ export { CoachmarkButton } from './components/CoachmarkButton/CoachmarkButton.js
92
56
  export { CoachmarkFixed } from './components/CoachmarkFixed/CoachmarkFixed.js';
93
57
  export { CoachmarkOverlayElement } from './components/CoachmarkOverlayElement/CoachmarkOverlayElement.js';
94
58
  export { CoachmarkOverlayElements } from './components/CoachmarkOverlayElements/CoachmarkOverlayElements.js';
95
- export { CoachmarkStack } from './components/CoachmarkStack/CoachmarkStack.js';
96
59
  export { Guidebanner } from './components/Guidebanner/Guidebanner.js';
97
60
  export { GuidebannerElement } from './components/Guidebanner/GuidebannerElement.js';
98
61
  export { GuidebannerElementButton } from './components/Guidebanner/GuidebannerElementButton.js';
@@ -101,12 +64,55 @@ export { InlineTip } from './components/InlineTip/InlineTip.js';
101
64
  export { InlineTipButton } from './components/InlineTip/InlineTipButton.js';
102
65
  export { InlineTipLink } from './components/InlineTip/InlineTipLink.js';
103
66
  export { NonLinearReading } from './components/NonLinearReading/NonLinearReading.js';
104
- export { BigNumbers } from './components/BigNumbers/BigNumbers.js';
105
67
  export { TruncatedList } from './components/TruncatedList/TruncatedList.js';
106
68
  export { InterstitialScreen } from './components/InterstitialScreen/InterstitialScreen.js';
107
69
  export { InterstitialScreenView } from './components/InterstitialScreenView/InterstitialScreenView.js';
108
70
  export { InterstitialScreenViewModule } from './components/InterstitialScreenViewModule/InterstitialScreenViewModule.js';
109
71
  export { DelimitedList } from './components/DelimitedList/DelimitedList.js';
72
+ export { FullPageError } from './components/FullPageError/FullPageError.js';
73
+ export { SearchBar } from './components/SearchBar/SearchBar.js';
74
+ export { TagOverflow } from './components/TagOverflow/TagOverflow.js';
75
+ export { GetStartedCard } from './components/GetStartedCard/GetStartedCard.js';
76
+ export { FeatureFlags as unstable_FeatureFlags, useFeatureFlag as unstable_useFeatureFlag, useFeatureFlags as unstable_useFeatureFlags } from './components/FeatureFlags/index.js';
77
+ export { useColumnOrder } from 'react-table';
78
+ export { usePrefix } from './global/js/hooks/usePrefix.js';
79
+ export { ActionBar } from './components/ActionBar/ActionBar.js';
80
+ export { EmptyState } from './components/EmptyStates/EmptyState.js';
81
+ export { EmptyStateV2 } from './components/EmptyStates/EmptyStateV2.js';
82
+ export { ErrorEmptyState } from './components/EmptyStates/ErrorEmptyState/ErrorEmptyState.js';
83
+ export { NoDataEmptyState } from './components/EmptyStates/NoDataEmptyState/NoDataEmptyState.js';
84
+ export { NoTagsEmptyState } from './components/EmptyStates/NoTagsEmptyState/NoTagsEmptyState.js';
85
+ export { NotFoundEmptyState } from './components/EmptyStates/NotFoundEmptyState/NotFoundEmptyState.js';
86
+ export { NotificationsEmptyState } from './components/EmptyStates/NotificationsEmptyState/NotificationsEmptyState.js';
87
+ export { UnauthorizedEmptyState } from './components/EmptyStates/UnauthorizedEmptyState/UnauthorizedEmptyState.js';
88
+ export { HTTPError403 } from './components/HTTPErrors/HTTPError403/HTTPError403.js';
89
+ export { HTTPError404 } from './components/HTTPErrors/HTTPError404/HTTPError404.js';
90
+ export { HTTPErrorOther } from './components/HTTPErrors/HTTPErrorOther/HTTPErrorOther.js';
91
+ export { Datagrid } from './components/Datagrid/Datagrid/Datagrid.js';
92
+ export { default as useDatagrid } from './components/Datagrid/useDatagrid.js';
93
+ export { default as useInfiniteScroll } from './components/Datagrid/useInfiniteScroll.js';
94
+ export { default as useNestedRows } from './components/Datagrid/useNestedRows.js';
95
+ export { default as useSelectRows } from './components/Datagrid/useSelectRows.js';
96
+ export { default as useExpandedRow } from './components/Datagrid/useExpandedRow.js';
97
+ export { default as useOnRowClick } from './components/Datagrid/useOnRowClick.js';
98
+ export { default as useSortableColumns } from './components/Datagrid/useSortableColumns.js';
99
+ export { default as useRowIsMouseOver } from './components/Datagrid/useRowIsMouseOver.js';
100
+ export { default as useColumnRightAlign } from './components/Datagrid/useColumnRightAlign.js';
101
+ export { default as useDisableSelectRows } from './components/Datagrid/useDisableSelectRows.js';
102
+ export { default as useStickyColumn } from './components/Datagrid/useStickyColumn.js';
103
+ export { default as useActionsColumn } from './components/Datagrid/useActionsColumn.js';
104
+ export { default as useCustomizeColumns } from './components/Datagrid/useCustomizeColumns.js';
105
+ export { default as useSelectAllWithToggle } from './components/Datagrid/useSelectAllToggle.js';
106
+ export { default as useColumnCenterAlign } from './components/Datagrid/useColumnCenterAlign.js';
107
+ export { default as useInlineEdit } from './components/Datagrid/useInlineEdit.js';
108
+ export { default as useEditableCell } from './components/Datagrid/useEditableCell.js';
109
+ export { default as useFiltering } from './components/Datagrid/useFiltering.js';
110
+ export { getAutoSizedColumnWidth } from './components/Datagrid/utils/getAutoSizedColumnWidth.js';
111
+ export { default as useFilterContext } from './components/Datagrid/Datagrid/addons/Filtering/hooks/useFilterContext.js';
112
+ export { EditTearsheet } from './components/EditTearsheet/EditTearsheet.js';
113
+ export { EditTearsheetForm } from './components/EditTearsheet/EditTearsheetForm.js';
114
+ export { CoachmarkStack } from './components/CoachmarkStack/CoachmarkStack.js';
115
+ export { BigNumbers } from './components/BigNumbers/BigNumbers.js';
110
116
  export { Decorator } from './components/Decorator/Decorator.js';
111
117
  export { DecoratorLink } from './components/DecoratorLink/DecoratorLink.js';
112
118
  export { DecoratorSingleButton } from './components/DecoratorSingleButton/DecoratorSingleButton.js';
@@ -115,16 +121,14 @@ export { DescriptionList } from './components/DescriptionList/DescriptionList.js
115
121
  export { DescriptionListBody } from './components/DescriptionList/DescriptionListBody.js';
116
122
  export { DescriptionListCell } from './components/DescriptionList/DescriptionListCell.js';
117
123
  export { DescriptionListRow } from './components/DescriptionList/DescriptionListRow.js';
118
- export { FullPageError } from './components/FullPageError/FullPageError.js';
119
- export { SearchBar } from './components/SearchBar/SearchBar.js';
120
124
  export { Nav } from './components/Nav/Nav.js';
125
+ export { NavList } from './components/Nav/NavList.js';
126
+ export { NavItem } from './components/Nav/NavItem.js';
121
127
  export { StringFormatter } from './components/StringFormatter/StringFormatter.js';
122
128
  export { UserAvatar } from './components/UserAvatar/UserAvatar.js';
123
129
  export { ScrollGradient } from './components/ScrollGradient/ScrollGradient.js';
124
130
  export { StatusIndicator } from './components/StatusIndicator/StatusIndicator.js';
125
131
  export { StatusIndicatorStep } from './components/StatusIndicator/StatusIndicatorStep.js';
126
- export { TagOverflow } from './components/TagOverflow/TagOverflow.js';
127
- export { ActionBar } from './components/ActionBar/ActionBar.js';
128
132
  export { FilterPanel } from './components/FilterPanel/FilterPanel.js';
129
133
  export { FilterPanelAccordion } from './components/FilterPanel/FilterPanelAccordion/FilterPanelAccordion.js';
130
134
  export { FilterPanelAccordionItem } from './components/FilterPanel/FilterPanelAccordionItem/FilterPanelAccordionItem.js';
@@ -134,5 +138,3 @@ export { FilterPanelGroup } from './components/FilterPanel/FilterPanelGroup/Filt
134
138
  export { FilterPanelLabel } from './components/FilterPanel/FilterPanelLabel/FilterPanelLabel.js';
135
139
  export { FilterPanelSearch } from './components/FilterPanel/FilterPanelSearch/FilterPanelSearch.js';
136
140
  export { ConditionBuilder } from './components/ConditionBuilder/ConditionBuilder.js';
137
- export { GetStartedCard } from './components/GetStartedCard/GetStartedCard.js';
138
- export { FeatureFlags as unstable_FeatureFlags, useFeatureFlag as unstable_useFeatureFlag, useFeatureFlags as unstable_useFeatureFlags } from './components/FeatureFlags/index.js';
package/es/settings.d.ts CHANGED
@@ -64,6 +64,8 @@ export const pkg: {
64
64
  EditFullPage: boolean;
65
65
  EditUpdateCards: boolean;
66
66
  Nav: boolean;
67
+ NavItem: boolean;
68
+ NavList: boolean;
67
69
  BigNumbers: boolean;
68
70
  TruncatedList: boolean;
69
71
  DelimitedList: boolean;
@@ -169,10 +169,10 @@ var DraggableItemsList = function DraggableItemsList(_ref) {
169
169
  strategy: sortable.verticalListSortingStrategy
170
170
  }, visibleCols.map(function (colDef) {
171
171
  var colHeaderTitle = getNodeTextContent.getNodeTextContent(colDef.Header);
172
- var searchString = new RegExp('(' + filterString + ')');
173
- var res = filterString.length ? colHeaderTitle.toLowerCase().split(searchString) : null;
174
- var firstWord = res !== null ? res[0] === '' ? res[1].charAt(0).toUpperCase() + res[1].substring(1) : res[0].charAt(0).toUpperCase() + res[0].substring(1) : null;
175
- var highlightedText = res !== null ? res[0] === '' ? "<strong>".concat(firstWord, "</strong>") + res[2] : firstWord + "<strong>".concat(res[1], "</strong>") + res[2] : colHeaderTitle;
172
+ var parts = colHeaderTitle.split(new RegExp("(".concat(filterString, ")"), 'gi'));
173
+ var highlightedText = parts.map(function (part) {
174
+ return part.toLowerCase() === filterString.toLowerCase() ? "<strong>".concat(part, "</strong>") : part;
175
+ }).join('');
176
176
  var isFrozenColumn = !!colDef.sticky;
177
177
  var isDisabled = colDef.disabled;
178
178
  var listContents = /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement(react.Checkbox, {
@@ -1,7 +1,8 @@
1
1
  export default FilterFlyout;
2
- declare function FilterFlyout({ updateMethod, flyoutIconDescription, filters, title, primaryActionLabel, onFlyoutOpen, onFlyoutClose, onApply, onCancel, secondaryActionLabel, setAllFilters, data, reactTableFiltersState, }: {
2
+ declare function FilterFlyout({ updateMethod, flyoutIconDescription, align, filters, title, primaryActionLabel, onFlyoutOpen, onFlyoutClose, onApply, onCancel, secondaryActionLabel, setAllFilters, data, reactTableFiltersState, }: {
3
3
  updateMethod: any;
4
4
  flyoutIconDescription?: string | undefined;
5
+ align?: string | undefined;
5
6
  filters?: any[] | undefined;
6
7
  title?: string | undefined;
7
8
  primaryActionLabel?: string | undefined;
@@ -16,6 +17,7 @@ declare function FilterFlyout({ updateMethod, flyoutIconDescription, filters, ti
16
17
  }): import("react/jsx-runtime").JSX.Element;
17
18
  declare namespace FilterFlyout {
18
19
  namespace propTypes {
20
+ let align: PropTypes.Requireable<string>;
19
21
  let data: PropTypes.Validator<any[]>;
20
22
  let filters: PropTypes.Validator<(PropTypes.InferProps<{
21
23
  type: PropTypes.Validator<string>;
@@ -37,12 +37,15 @@ var defaults = {
37
37
  flyoutIconDescription: 'Open filters',
38
38
  title: 'Filter',
39
39
  primaryActionLabel: 'Apply',
40
- secondaryActionLabel: 'Cancel'
40
+ secondaryActionLabel: 'Cancel',
41
+ align: 'bottom'
41
42
  };
42
43
  var FilterFlyout = function FilterFlyout(_ref) {
43
44
  var updateMethod = _ref.updateMethod,
44
45
  _ref$flyoutIconDescri = _ref.flyoutIconDescription,
45
46
  flyoutIconDescription = _ref$flyoutIconDescri === void 0 ? defaults.flyoutIconDescription : _ref$flyoutIconDescri,
47
+ _ref$align = _ref.align,
48
+ align = _ref$align === void 0 ? defaults.align : _ref$align,
46
49
  _ref$filters = _ref.filters,
47
50
  filters = _ref$filters === void 0 ? [] : _ref$filters,
48
51
  _ref$title = _ref.title,
@@ -233,7 +236,7 @@ var FilterFlyout = function FilterFlyout(_ref) {
233
236
  }, /*#__PURE__*/React__default["default"].createElement(react.IconButton, {
234
237
  label: flyoutIconDescription,
235
238
  kind: "ghost",
236
- align: "bottom",
239
+ align: align,
237
240
  onClick: open ? closeFlyout : openFlyout,
238
241
  className: cx__default["default"]("".concat(componentClass, "__trigger"), _rollupPluginBabelHelpers.defineProperty({}, "".concat(componentClass, "__trigger--open"), open)),
239
242
  disabled: data.length === 0
@@ -250,6 +253,10 @@ var FilterFlyout = function FilterFlyout(_ref) {
250
253
  }, renderFilters())), renderActionSet()));
251
254
  };
252
255
  FilterFlyout.propTypes = {
256
+ /**
257
+ * Tooltip alignment for the filter button
258
+ */
259
+ align: index["default"].string,
253
260
  /**
254
261
  * All data rows in the table
255
262
  */
@@ -90,6 +90,10 @@ export interface EditInplaceProps extends PropsWithChildren {
90
90
  * current value of the input
91
91
  */
92
92
  value: string;
93
+ /**
94
+ * placeholder for the input
95
+ */
96
+ placeholder?: string;
93
97
  }
94
98
  export declare let EditInPlace: React.ForwardRefExoticComponent<EditInplaceProps & React.RefAttributes<HTMLDivElement>>;
95
99
  export declare const deprecatedProps: {
@@ -24,7 +24,7 @@ var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
24
24
  var cx__default = /*#__PURE__*/_interopDefaultLegacy(cx);
25
25
 
26
26
  var _Close, _Checkmark, _Edit;
27
- var _excluded = ["cancelLabel", "editAlwaysVisible", "editLabel", "id", "inheritTypography", "invalid", "invalidLabel", "invalidText", "labelText", "onCancel", "onChange", "onSave", "onBlur", "saveLabel", "size", "tooltipAlignment", "value"];
27
+ var _excluded = ["cancelLabel", "editAlwaysVisible", "editLabel", "id", "inheritTypography", "invalid", "invalidLabel", "invalidText", "labelText", "onCancel", "onChange", "onSave", "onBlur", "saveLabel", "size", "tooltipAlignment", "value", "placeholder"];
28
28
  var componentName = 'EditInPlace';
29
29
  var blockClass = "".concat(settings.pkg.prefix, "--edit-in-place");
30
30
  var defaults = {
@@ -51,6 +51,7 @@ exports.EditInPlace = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
51
51
  size = _ref$size === void 0 ? 'sm' : _ref$size,
52
52
  tooltipAlignment = _ref.tooltipAlignment,
53
53
  value = _ref.value,
54
+ placeholder = _ref.placeholder,
54
55
  rest = _rollupPluginBabelHelpers.objectWithoutProperties(_ref, _excluded);
55
56
  var _useState = React.useState(false),
56
57
  _useState2 = _rollupPluginBabelHelpers.slicedToArray(_useState, 2),
@@ -165,6 +166,7 @@ exports.EditInPlace = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
165
166
  id: id,
166
167
  className: cx__default["default"]("".concat(blockClass, "__text-input"), "".concat(settings.carbon.prefix, "--text-input"), "".concat(settings.carbon.prefix, "--text-input--").concat(size)),
167
168
  type: "text",
169
+ placeholder: placeholder,
168
170
  value: value,
169
171
  onChange: onChangeHandler,
170
172
  ref: inputRef
@@ -283,6 +285,10 @@ exports.EditInPlace.propTypes = _rollupPluginBabelHelpers.objectSpread2({
283
285
  * handler that is called when the save button is pressed or when the user removes focus from the input if it has a new value
284
286
  */
285
287
  onSave: index["default"].func.isRequired,
288
+ /**
289
+ * Placeholder for text input
290
+ */
291
+ placeholder: index["default"].string,
286
292
  /**
287
293
  * determines if the input is in readOnly mode
288
294
  */
@@ -13,10 +13,10 @@ var _rollupPluginBabelHelpers = require('../../_virtual/_rollupPluginBabelHelper
13
13
  var react = require('@carbon/react');
14
14
  var icons = require('@carbon/react/icons');
15
15
  var React = require('react');
16
- var index = require('../../node_modules/@carbon/colors/es/index.js');
16
+ var index$1 = require('../../node_modules/@carbon/colors/es/index.js');
17
17
  var Carousel = require('../Carousel/Carousel.js');
18
18
  require('../Carousel/CarouselItem.js');
19
- var index$1 = require('../../node_modules/prop-types/index.js');
19
+ var index = require('../../node_modules/prop-types/index.js');
20
20
  var cx = require('classnames');
21
21
  var devtools = require('../../global/js/utils/devtools.js');
22
22
  var settings = require('../../settings.js');
@@ -104,8 +104,8 @@ exports.Guidebanner = /*#__PURE__*/React__default["default"].forwardRef(function
104
104
  // against the Guidebanner's gradient background.
105
105
  ,
106
106
  fadedEdgeColor: {
107
- left: index.blue90,
108
- right: index.purple70
107
+ left: index$1.blue90,
108
+ right: index$1.purple70
109
109
  },
110
110
  ref: scrollRef,
111
111
  onChangeIsScrollable: function onChangeIsScrollable(value) {
@@ -199,47 +199,47 @@ exports.Guidebanner.propTypes = {
199
199
  /**
200
200
  * Provide an optional class to be applied to the containing node.
201
201
  */
202
- className: index$1["default"].string,
202
+ className: index["default"].string,
203
203
  /**
204
204
  * Tooltip text and aria label for the Close button icon.
205
205
  */
206
- closeIconDescription: index$1["default"].string,
206
+ closeIconDescription: index["default"].string,
207
207
  /**
208
208
  * Text label for the Collapse button.
209
209
  */
210
- collapseButtonLabel: index$1["default"].string,
210
+ collapseButtonLabel: index["default"].string,
211
211
  /**
212
212
  * When true, the Guidebanner will initialize in a collapsed state,
213
213
  * showing the title and the Expand button.
214
214
  *
215
215
  * When expanded, it will show the GuidebannerElement child components and the Collapse button.
216
216
  */
217
- collapsible: index$1["default"].bool,
217
+ collapsible: index["default"].bool,
218
218
  /**
219
219
  * Text label for the Expand button.
220
220
  */
221
- expandButtonLabel: index$1["default"].string,
221
+ expandButtonLabel: index["default"].string,
222
222
  /**
223
223
  * Tooltip text and aria label for the Next button icon.
224
224
  */
225
- nextIconDescription: index$1["default"].string,
225
+ nextIconDescription: index["default"].string,
226
226
  /**
227
227
  * If defined, a Close button will render in the top-right corner and a
228
228
  * callback function will be triggered when button is clicked.
229
229
  */
230
- onClose: index$1["default"].func,
230
+ onClose: index["default"].func,
231
231
  /**
232
232
  * Tooltip text and aria label for the Back button icon.
233
233
  */
234
- previousIconDescription: index$1["default"].string,
234
+ previousIconDescription: index["default"].string,
235
235
  /**
236
236
  * Title text.
237
237
  */
238
- title: index$1["default"].string.isRequired,
238
+ title: index["default"].string.isRequired,
239
239
  /**
240
240
  * If true, insert 1 rem of "space" on the left of the component.
241
241
  * This will allow the component's content to line up with other
242
242
  * content on the page under special circumstances.
243
243
  */
244
- withLeftGutter: index$1["default"].bool
244
+ withLeftGutter: index["default"].bool
245
245
  };
@@ -41,7 +41,7 @@ var defaults = {
41
41
  /**
42
42
  * Navigation item component.
43
43
  */
44
- var NavItem = function NavItem(_ref) {
44
+ exports.NavItem = function NavItem(_ref) {
45
45
  var _ref$activeHref = _ref.activeHref,
46
46
  activeHref = _ref$activeHref === void 0 ? defaults.activeHref : _ref$activeHref,
47
47
  _ref$children = _ref.children,
@@ -65,7 +65,7 @@ var NavItem = function NavItem(_ref) {
65
65
  hrefHasDifferentHost = _useState2[0],
66
66
  setHrefHasDifferentHost = _useState2[1];
67
67
  React.useEffect(function () {
68
- if (href.indexOf(window.location.host) === -1) {
68
+ if ((href === null || href === void 0 ? void 0 : href.indexOf(window.location.host)) === -1) {
69
69
  setHrefHasDifferentHost(true);
70
70
  }
71
71
  }, [href]);
@@ -107,12 +107,12 @@ var NavItem = function NavItem(_ref) {
107
107
 
108
108
  // The display name of the component, used by React. Note that displayName
109
109
  // is used in preference to relying on function.name.
110
- NavItem.displayName = componentName;
110
+ exports.NavItem.displayName = componentName;
111
111
 
112
112
  // The types and DocGen commentary for the component props,
113
113
  // in alphabetical order (for consistency).
114
114
  // See https://www.npmjs.com/package/prop-types#usage.
115
- NavItem.propTypes = {
115
+ exports.NavItem.propTypes = {
116
116
  /**
117
117
  * Hypertext reference for active page.
118
118
  */
@@ -162,8 +162,10 @@ NavItem.propTypes = {
162
162
  */
163
163
  tabIndex: index["default"].number
164
164
  };
165
- var NavItem$1 = NavItem;
166
165
 
167
- exports.NavItem = NavItem;
166
+ // Return a placeholder if not released and not enabled by feature flag
167
+ exports.NavItem = settings.pkg.checkComponentEnabled(exports.NavItem, componentName);
168
+ var NavItem = exports.NavItem;
169
+
168
170
  exports.blockClass = blockClass;
169
- exports["default"] = NavItem$1;
171
+ exports["default"] = NavItem;
@@ -39,7 +39,7 @@ var defaults = {
39
39
  icon: '',
40
40
  navigationItemTitle: ''
41
41
  };
42
- var NavList = /*#__PURE__*/React__default["default"].forwardRef(function (_ref, ref) {
42
+ exports.NavList = /*#__PURE__*/React__default["default"].forwardRef(function (_ref, ref) {
43
43
  var _ref$activeHref = _ref.activeHref,
44
44
  activeHref = _ref$activeHref === void 0 ? defaults.activeHref : _ref$activeHref,
45
45
  _ref$children = _ref.children,
@@ -147,7 +147,7 @@ var NavList = /*#__PURE__*/React__default["default"].forwardRef(function (_ref,
147
147
  role: "menu"
148
148
  }, newChildren));
149
149
  });
150
- NavList.propTypes = {
150
+ exports.NavList.propTypes = {
151
151
  /** @type {string} Hypertext reference for active page. */
152
152
  activeHref: index.propTypesExports.string,
153
153
  /** @type {Node} Child elements. */
@@ -171,9 +171,11 @@ NavList.propTypes = {
171
171
  /** @type {string} Label of the list. */
172
172
  title: index.propTypesExports.string
173
173
  };
174
- NavList.displayName = componentName;
175
- var NavList$1 = NavList;
174
+ exports.NavList.displayName = componentName;
175
+
176
+ // Return a placeholder if not released and not enabled by feature flag
177
+ exports.NavList = settings.pkg.checkComponentEnabled(exports.NavList, componentName);
178
+ var NavList = exports.NavList;
176
179
 
177
- exports.NavList = NavList;
178
180
  exports.blockClass = blockClass;
179
- exports["default"] = NavList$1;
181
+ exports["default"] = NavList;
@@ -53,7 +53,7 @@ export interface OptionsTileProps {
53
53
  /**
54
54
  * Define the size of the OptionsTile.
55
55
  */
56
- size: 'lg' | 'xl';
56
+ size?: 'lg' | 'xl';
57
57
  /**
58
58
  * Optionally provide a text summarizing the current state of the content.
59
59
  */
@@ -332,7 +332,6 @@ exports.OptionsTile.propTypes = {
332
332
  /**
333
333
  * Define the size of the OptionsTile.
334
334
  */
335
- /**@ts-ignore*/
336
335
  size: index["default"].oneOf(['lg', 'xl']),
337
336
  /**
338
337
  * Optionally provide a text summarizing the current state of the content.
@@ -13,13 +13,13 @@ var _rollupPluginBabelHelpers = require('../../_virtual/_rollupPluginBabelHelper
13
13
  var react = require('@carbon/react');
14
14
  var icons = require('@carbon/react/icons');
15
15
  var React = require('react');
16
- var index$1 = require('../../node_modules/prop-types/index.js');
16
+ var index = require('../../node_modules/prop-types/index.js');
17
17
  var cx = require('classnames');
18
18
  var devtools = require('../../global/js/utils/devtools.js');
19
19
  var carbonMotion = require('@carbon/motion');
20
20
  var settings = require('../../settings.js');
21
21
  var usePrefersReducedMotion = require('../../global/js/hooks/usePrefersReducedMotion.js');
22
- var index = require('./hooks/index.js');
22
+ var index$1 = require('./hooks/index.js');
23
23
 
24
24
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
25
25
 
@@ -58,7 +58,7 @@ exports.WebTerminal = /*#__PURE__*/React__default["default"].forwardRef(function
58
58
  _ref$webTerminalAriaL = _ref.webTerminalAriaLabel,
59
59
  webTerminalAriaLabel = _ref$webTerminalAriaL === void 0 ? defaults.webTerminalAriaLabel : _ref$webTerminalAriaL,
60
60
  rest = _rollupPluginBabelHelpers.objectWithoutProperties(_ref, _excluded);
61
- var _useWebTerminal = index.useWebTerminal(),
61
+ var _useWebTerminal = index$1.useWebTerminal(),
62
62
  open = _useWebTerminal.open,
63
63
  closeWebTerminal = _useWebTerminal.closeWebTerminal,
64
64
  openWebTerminal = _useWebTerminal.openWebTerminal;
@@ -179,37 +179,37 @@ exports.WebTerminal.propTypes = {
179
179
  * An array of actions to be displayed in the web terminal header bar
180
180
  */
181
181
  /**@ts-ignore */
182
- actions: index$1["default"].arrayOf(index$1["default"].shape({
183
- renderIcon: index$1["default"].func.isRequired,
184
- onClick: index$1["default"].func.isRequired,
185
- iconDescription: index$1["default"].string.isRequired
182
+ actions: index["default"].arrayOf(index["default"].shape({
183
+ renderIcon: index["default"].func.isRequired,
184
+ onClick: index["default"].func.isRequired,
185
+ iconDescription: index["default"].string.isRequired
186
186
  })),
187
187
  /**
188
188
  * Provide your own terminal component as children to show up in the web terminal
189
189
  */
190
- children: index$1["default"].oneOfType([index$1["default"].arrayOf(index$1["default"].node), index$1["default"].node]).isRequired,
190
+ children: index["default"].oneOfType([index["default"].arrayOf(index["default"].node), index["default"].node]).isRequired,
191
191
  /**
192
192
  * Custom classname for additional styling of the web terminal
193
193
  */
194
- className: index$1["default"].string,
194
+ className: index["default"].string,
195
195
  /**
196
196
  * Icon description for the close button
197
197
  */
198
- closeIconDescription: index$1["default"].string.isRequired,
198
+ closeIconDescription: index["default"].string.isRequired,
199
199
  /**
200
200
  * Array of objects for each documentation link. Each documentation link uses the prop types of OverflowMenuItems. See more: https://react.carbondesignsystem.com/?path=/docs/components-overflowmenu--default
201
201
  */
202
- documentationLinks: index$1["default"].arrayOf(index$1["default"].shape(_rollupPluginBabelHelpers.objectSpread2({}, react.OverflowMenuItem.propTypes))),
202
+ documentationLinks: index["default"].arrayOf(index["default"].shape(_rollupPluginBabelHelpers.objectSpread2({}, react.OverflowMenuItem.propTypes))),
203
203
  /**
204
204
  * Description for the documentation link overflow menu tooltip
205
205
  */
206
- documentationLinksIconDescription: index$1["default"].string,
206
+ documentationLinksIconDescription: index["default"].string,
207
207
  /**
208
208
  * Optionally pass if the web terminal should be open by default
209
209
  */
210
- isInitiallyOpen: index$1["default"].bool,
210
+ isInitiallyOpen: index["default"].bool,
211
211
  /**
212
212
  * Specifies aria label for Web terminal
213
213
  */
214
- webTerminalAriaLabel: index$1["default"].string
214
+ webTerminalAriaLabel: index["default"].string
215
215
  };
@@ -11,10 +11,10 @@ Object.defineProperty(exports, '__esModule', { value: true });
11
11
 
12
12
  var _rollupPluginBabelHelpers = require('../../_virtual/_rollupPluginBabelHelpers.js');
13
13
  var React = require('react');
14
- var index$1 = require('../../node_modules/prop-types/index.js');
14
+ var index = require('../../node_modules/prop-types/index.js');
15
15
  var cx = require('classnames');
16
16
  var settings = require('../../settings.js');
17
- var index = require('./hooks/index.js');
17
+ var index$1 = require('./hooks/index.js');
18
18
 
19
19
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
20
20
 
@@ -29,7 +29,7 @@ var blockClass = "".concat(settings.pkg.prefix, "--web-terminal-content-wrapper"
29
29
  exports.WebTerminalContentWrapper = /*#__PURE__*/React__default["default"].forwardRef(function (_ref, ref) {
30
30
  var children = _ref.children,
31
31
  rest = _rollupPluginBabelHelpers.objectWithoutProperties(_ref, _excluded);
32
- var _useWebTerminal = index.useWebTerminal(),
32
+ var _useWebTerminal = index$1.useWebTerminal(),
33
33
  open = _useWebTerminal.open;
34
34
  return /*#__PURE__*/React__default["default"].createElement("div", _rollupPluginBabelHelpers["extends"]({
35
35
  ref: ref,
@@ -51,5 +51,5 @@ exports.WebTerminalContentWrapper.propTypes = {
51
51
  /**
52
52
  * Pass in content as children.
53
53
  */
54
- children: index$1["default"].oneOfType([index$1["default"].arrayOf(index$1["default"].node), index$1["default"].node]).isRequired
54
+ children: index["default"].oneOfType([index["default"].arrayOf(index["default"].node), index["default"].node]).isRequired
55
55
  };