@carbon/ibm-products 1.63.0 → 1.65.0
Sign up to get free protection for your applications and to get access to all the features.
- package/css/index-full-carbon.css +245 -0
- package/css/index-full-carbon.css.map +1 -1
- package/css/index-full-carbon.min.css +1 -1
- package/css/index-full-carbon.min.css.map +1 -1
- package/css/index-without-carbon.css +245 -0
- package/css/index-without-carbon.css.map +1 -1
- package/css/index-without-carbon.min.css +1 -1
- package/css/index-without-carbon.min.css.map +1 -1
- package/css/index.css +245 -0
- package/css/index.css.map +1 -1
- package/css/index.min.css +1 -1
- package/css/index.min.css.map +1 -1
- package/es/components/Carousel/Carousel.js +5 -3
- package/es/components/Datagrid/Datagrid/DatagridContent.js +2 -1
- package/es/components/Datagrid/Datagrid/DatagridToolbar.js +2 -2
- package/es/components/Datagrid/Datagrid/addons/Filtering/FilterPanel.js +6 -2
- package/es/components/Datagrid/Datagrid/addons/Filtering/hooks/useFilters.js +54 -30
- package/es/components/Datagrid/useFiltering.js +2 -1
- package/es/components/Guidebanner/Guidebanner.js +12 -3
- package/es/components/InlineTip/InlineTip.js +17 -6
- package/es/components/InterstitialScreen/InterstitialScreen.js +419 -0
- package/es/components/InterstitialScreen/assets/index.js +5 -0
- package/es/components/InterstitialScreen/index.js +8 -0
- package/es/components/InterstitialScreenView/InterstitialScreenView.js +75 -0
- package/es/components/InterstitialScreenView/index.js +8 -0
- package/es/components/InterstitialScreenViewModule/InterstitialScreenViewModule.js +83 -0
- package/es/components/InterstitialScreenViewModule/index.js +8 -0
- package/es/components/index.js +3 -0
- package/es/global/js/package-settings.js +4 -0
- package/lib/components/Carousel/Carousel.js +5 -3
- package/lib/components/Datagrid/Datagrid/DatagridContent.js +2 -1
- package/lib/components/Datagrid/Datagrid/DatagridToolbar.js +2 -2
- package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterPanel.js +6 -2
- package/lib/components/Datagrid/Datagrid/addons/Filtering/hooks/useFilters.js +54 -30
- package/lib/components/Datagrid/useFiltering.js +2 -1
- package/lib/components/Guidebanner/Guidebanner.js +12 -3
- package/lib/components/InlineTip/InlineTip.js +17 -6
- package/lib/components/InterstitialScreen/InterstitialScreen.js +420 -0
- package/lib/components/InterstitialScreen/assets/index.js +14 -0
- package/lib/components/InterstitialScreen/index.js +12 -0
- package/lib/components/InterstitialScreenView/InterstitialScreenView.js +72 -0
- package/lib/components/InterstitialScreenView/index.js +12 -0
- package/lib/components/InterstitialScreenViewModule/InterstitialScreenViewModule.js +80 -0
- package/lib/components/InterstitialScreenViewModule/index.js +12 -0
- package/lib/components/index.js +21 -0
- package/lib/global/js/package-settings.js +4 -0
- package/package.json +2 -2
- package/scss/components/Guidebanner/_guidebanner.scss +25 -0
- package/scss/components/InlineTip/_inline-tip.scss +12 -0
- package/scss/components/InterstitialScreen/_index.scss +8 -0
- package/scss/components/InterstitialScreen/_interstitial-screen.scss +266 -0
- package/scss/components/InterstitialScreen/_storybook-styles.scss +59 -0
- package/scss/components/InterstitialScreenView/_index.scss +8 -0
- package/scss/components/InterstitialScreenView/_interstitial-screen-view.scss +25 -0
- package/scss/components/InterstitialScreenView/_storybook-styles.scss +10 -0
- package/scss/components/InterstitialScreenViewModule/_index.scss +8 -0
- package/scss/components/InterstitialScreenViewModule/_interstitial-screen-view-module.scss +54 -0
- package/scss/components/InterstitialScreenViewModule/_storybook-styles.scss +10 -0
- package/scss/components/_index.scss +3 -0
@@ -144,8 +144,8 @@ var DatagridToolbar = function DatagridToolbar(datagridState) {
|
|
144
144
|
return batchActions && DatagridActions ? /*#__PURE__*/React.createElement("div", {
|
145
145
|
ref: ref,
|
146
146
|
className: cx([toolbarClass, "".concat(toolbarClass, "--").concat(getRowHeight)])
|
147
|
-
}, /*#__PURE__*/React.createElement(TableToolbar, null, DatagridActions && DatagridActions
|
147
|
+
}, /*#__PURE__*/React.createElement(TableToolbar, null, DatagridActions && /*#__PURE__*/React.createElement(DatagridActions, datagridState), DatagridBatchActionsToolbar && DatagridBatchActionsToolbar(datagridState, width, ref))) : DatagridActions ? /*#__PURE__*/React.createElement("div", {
|
148
148
|
className: toolbarClass
|
149
|
-
}, /*#__PURE__*/React.createElement(TableToolbar, null, DatagridActions && DatagridActions
|
149
|
+
}, /*#__PURE__*/React.createElement(TableToolbar, null, DatagridActions && /*#__PURE__*/React.createElement(DatagridActions, datagridState), DatagridBatchActions && DatagridBatchActions(datagridState))) : null;
|
150
150
|
};
|
151
151
|
export default DatagridToolbar;
|
@@ -55,7 +55,9 @@ var FilterPanel = function FilterPanel(_ref) {
|
|
55
55
|
_ref$searchPlaceholde = _ref.searchPlaceholder,
|
56
56
|
searchPlaceholder = _ref$searchPlaceholde === void 0 ? 'Find filters' : _ref$searchPlaceholde,
|
57
57
|
_ref$reactTableFilter = _ref.reactTableFiltersState,
|
58
|
-
reactTableFiltersState = _ref$reactTableFilter === void 0 ? [] : _ref$reactTableFilter
|
58
|
+
reactTableFiltersState = _ref$reactTableFilter === void 0 ? [] : _ref$reactTableFilter,
|
59
|
+
_ref$isFetching = _ref.isFetching,
|
60
|
+
isFetching = _ref$isFetching === void 0 ? false : _ref$isFetching;
|
59
61
|
/** State */
|
60
62
|
var _useState = useState(false),
|
61
63
|
_useState2 = _slicedToArray(_useState, 2),
|
@@ -73,7 +75,8 @@ var FilterPanel = function FilterPanel(_ref) {
|
|
73
75
|
variation: PANEL,
|
74
76
|
reactTableFiltersState: reactTableFiltersState,
|
75
77
|
onCancel: onCancel,
|
76
|
-
panelOpen: panelOpen
|
78
|
+
panelOpen: panelOpen,
|
79
|
+
isFetching: isFetching
|
77
80
|
}),
|
78
81
|
filtersState = _useFilters.filtersState,
|
79
82
|
prevFiltersObjectArrayRef = _useFilters.prevFiltersObjectArrayRef,
|
@@ -238,6 +241,7 @@ FilterPanel.propTypes = {
|
|
238
241
|
closeIconDescription: PropTypes.string,
|
239
242
|
filterPanelMinHeight: PropTypes.number,
|
240
243
|
filterSections: PropTypes.array,
|
244
|
+
isFetching: PropTypes.bool,
|
241
245
|
onApply: PropTypes.func,
|
242
246
|
onCancel: PropTypes.func,
|
243
247
|
onPanelClose: PropTypes.func,
|
@@ -25,16 +25,21 @@ var useFilters = function useFilters(_ref) {
|
|
25
25
|
reactTableFiltersState = _ref.reactTableFiltersState,
|
26
26
|
_ref$onCancel = _ref.onCancel,
|
27
27
|
onCancel = _ref$onCancel === void 0 ? function () {} : _ref$onCancel,
|
28
|
-
panelOpen = _ref.panelOpen
|
28
|
+
panelOpen = _ref.panelOpen,
|
29
|
+
isFetching = _ref.isFetching;
|
29
30
|
/** State */
|
30
31
|
var _useState = useState(getInitialStateFromFilters(filters, variation, reactTableFiltersState)),
|
31
32
|
_useState2 = _slicedToArray(_useState, 2),
|
32
33
|
filtersState = _useState2[0],
|
33
34
|
setFiltersState = _useState2[1];
|
34
|
-
var _useState3 = useState(
|
35
|
+
var _useState3 = useState(false),
|
35
36
|
_useState4 = _slicedToArray(_useState3, 2),
|
36
|
-
|
37
|
-
|
37
|
+
fetchingReset = _useState4[0],
|
38
|
+
setFetchingReset = _useState4[1];
|
39
|
+
var _useState5 = useState(reactTableFiltersState),
|
40
|
+
_useState6 = _slicedToArray(_useState5, 2),
|
41
|
+
filtersObjectArray = _useState6[0],
|
42
|
+
setFiltersObjectArray = _useState6[1];
|
38
43
|
var previousState = usePreviousValue({
|
39
44
|
panelOpen: panelOpen
|
40
45
|
});
|
@@ -77,6 +82,7 @@ var useFilters = function useFilters(_ref) {
|
|
77
82
|
// Update their respective refs so everything is in sync
|
78
83
|
prevFiltersRef.current = JSON.stringify(initialFiltersState);
|
79
84
|
prevFiltersObjectArrayRef.current = JSON.stringify(initialFiltersObjectArray);
|
85
|
+
lastAppliedFilters.current = JSON.stringify([]);
|
80
86
|
}, [filters, setAllFilters, variation]);
|
81
87
|
var applyFilters = function applyFilters(_ref2) {
|
82
88
|
var column = _ref2.column,
|
@@ -167,7 +173,6 @@ var useFilters = function useFilters(_ref) {
|
|
167
173
|
};
|
168
174
|
/** Render the individual filter component */
|
169
175
|
var renderFilter = function renderFilter(_ref3) {
|
170
|
-
var _filtersState$column, _filtersState$column2;
|
171
176
|
var type = _ref3.type,
|
172
177
|
column = _ref3.column,
|
173
178
|
components = _ref3.props;
|
@@ -254,31 +259,36 @@ var useFilters = function useFilters(_ref) {
|
|
254
259
|
}));
|
255
260
|
break;
|
256
261
|
case RADIO:
|
257
|
-
|
258
|
-
|
259
|
-
|
260
|
-
|
261
|
-
|
262
|
-
|
263
|
-
|
264
|
-
|
265
|
-
|
266
|
-
|
267
|
-
|
268
|
-
|
269
|
-
|
270
|
-
|
271
|
-
|
272
|
-
|
273
|
-
|
274
|
-
|
275
|
-
|
276
|
-
|
277
|
-
|
278
|
-
|
279
|
-
|
280
|
-
}, radio)
|
281
|
-
|
262
|
+
{
|
263
|
+
var _filtersState$column, _components$DefaultRa, _components$DefaultRa2, _filtersState$column2, _components$DefaultRa3, _components$DefaultRa4, _components$DefaultRa5, _components$DefaultRa6, _components$DefaultRa7, _components$DefaultRa8;
|
264
|
+
var _components$RadioButt = _objectSpread({}, components.RadioButtonGroup),
|
265
|
+
name = _components$RadioButt.name;
|
266
|
+
filter = /*#__PURE__*/React.createElement(FormGroup, components.FormGroup, /*#__PURE__*/React.createElement(RadioButtonGroup, _extends({}, components.RadioButtonGroup, {
|
267
|
+
valueSelected: ((_filtersState$column = filtersState[column]) === null || _filtersState$column === void 0 ? void 0 : _filtersState$column.value) === '' ? (_components$DefaultRa = (_components$DefaultRa2 = components.DefaultRadioButton) === null || _components$DefaultRa2 === void 0 ? void 0 : _components$DefaultRa2.value) !== null && _components$DefaultRa !== void 0 ? _components$DefaultRa : 'Any' : (_filtersState$column2 = filtersState[column]) === null || _filtersState$column2 === void 0 ? void 0 : _filtersState$column2.value,
|
268
|
+
onChange: function onChange(selected) {
|
269
|
+
var _components$RadioButt2, _components$RadioButt3;
|
270
|
+
setFiltersState(_objectSpread(_objectSpread({}, filtersState), {}, _defineProperty({}, column, {
|
271
|
+
value: selected,
|
272
|
+
type: type
|
273
|
+
})));
|
274
|
+
applyFilters({
|
275
|
+
column: column,
|
276
|
+
value: selected,
|
277
|
+
type: type
|
278
|
+
});
|
279
|
+
(_components$RadioButt2 = (_components$RadioButt3 = components.RadioButtonGroup).onChange) === null || _components$RadioButt2 === void 0 ? void 0 : _components$RadioButt2.call(_components$RadioButt3, selected);
|
280
|
+
}
|
281
|
+
}), /*#__PURE__*/React.createElement(RadioButton, _extends({
|
282
|
+
id: (_components$DefaultRa3 = components === null || components === void 0 ? void 0 : (_components$DefaultRa4 = components.DefaultRadioButton) === null || _components$DefaultRa4 === void 0 ? void 0 : _components$DefaultRa4.id) !== null && _components$DefaultRa3 !== void 0 ? _components$DefaultRa3 : "any__".concat(name),
|
283
|
+
labelText: (_components$DefaultRa5 = components === null || components === void 0 ? void 0 : (_components$DefaultRa6 = components.DefaultRadioButton) === null || _components$DefaultRa6 === void 0 ? void 0 : _components$DefaultRa6.labelText) !== null && _components$DefaultRa5 !== void 0 ? _components$DefaultRa5 : 'Any',
|
284
|
+
value: (_components$DefaultRa7 = components === null || components === void 0 ? void 0 : (_components$DefaultRa8 = components.DefaultRadioButton) === null || _components$DefaultRa8 === void 0 ? void 0 : _components$DefaultRa8.value) !== null && _components$DefaultRa7 !== void 0 ? _components$DefaultRa7 : 'Any'
|
285
|
+
}, components.DefaultRadioButton)), components.RadioButton.map(function (radio) {
|
286
|
+
var _ref4, _radio$id;
|
287
|
+
return /*#__PURE__*/React.createElement(RadioButton, _extends({
|
288
|
+
key: (_ref4 = (_radio$id = radio.id) !== null && _radio$id !== void 0 ? _radio$id : radio.labelText) !== null && _ref4 !== void 0 ? _ref4 : radio.value
|
289
|
+
}, radio));
|
290
|
+
})));
|
291
|
+
}
|
282
292
|
break;
|
283
293
|
case DROPDOWN:
|
284
294
|
filter = /*#__PURE__*/React.createElement(Dropdown, _extends({}, components.Dropdown, {
|
@@ -325,6 +335,20 @@ var useFilters = function useFilters(_ref) {
|
|
325
335
|
}
|
326
336
|
}
|
327
337
|
}, [panelOpen, previousState, previousState === null || previousState === void 0 ? void 0 : previousState.panelOpen, reset, setAllFilters, revertToPreviousFilters]);
|
338
|
+
|
339
|
+
// Re-applies filters if the Datagrid goes into a fetching state while panel is open
|
340
|
+
// and has had filters changed without applying
|
341
|
+
useEffect(function () {
|
342
|
+
if (isFetching && !fetchingReset) {
|
343
|
+
setFiltersState(JSON.parse(prevFiltersRef.current));
|
344
|
+
setFiltersObjectArray(JSON.parse(prevFiltersRef.current));
|
345
|
+
setAllFilters(JSON.parse(prevFiltersObjectArrayRef.current));
|
346
|
+
setFetchingReset(true);
|
347
|
+
}
|
348
|
+
if (!isFetching) {
|
349
|
+
setFetchingReset(false);
|
350
|
+
}
|
351
|
+
}, [isFetching, reactTableFiltersState, setAllFilters, fetchingReset]);
|
328
352
|
var cancel = function cancel() {
|
329
353
|
// Reverting to previous filters only applies when using batch actions
|
330
354
|
if (updateMethod === BATCH) {
|
@@ -28,7 +28,8 @@ var useFiltering = function useFiltering(hooks) {
|
|
28
28
|
var rowValue = row.values[id];
|
29
29
|
var startDateObj = _typeof(startDate) === 'object' ? startDate : new Date(startDate);
|
30
30
|
var endDateObj = _typeof(endDate) === 'object' ? endDate : new Date(endDate);
|
31
|
-
|
31
|
+
var rowValueDateObj = _typeof(rowValue) === 'object' ? rowValue : new Date(rowValue);
|
32
|
+
if (rowValueDateObj.getTime() <= endDateObj.getTime() && rowValueDateObj.getTime() >= startDateObj.getTime()) {
|
32
33
|
// In date range
|
33
34
|
return true;
|
34
35
|
} else {
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
2
2
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
3
3
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
4
|
-
var _excluded = ["children", "className", "collapsible", "onClose", "closeIconDescription", "collapseButtonLabel", "expandButtonLabel", "nextIconDescription", "previousIconDescription", "title"];
|
4
|
+
var _excluded = ["children", "className", "collapsible", "onClose", "withLeftGutter", "closeIconDescription", "collapseButtonLabel", "expandButtonLabel", "nextIconDescription", "previousIconDescription", "title"];
|
5
5
|
/**
|
6
6
|
* Copyright IBM Corp. 2023, 2023
|
7
7
|
*
|
@@ -30,6 +30,7 @@ var blockClass = "".concat(pkg.prefix, "--guidebanner");
|
|
30
30
|
var componentName = 'Guidebanner';
|
31
31
|
var defaults = {
|
32
32
|
collapsible: false,
|
33
|
+
withLeftGutter: false,
|
33
34
|
// Labels
|
34
35
|
closeIconDescription: 'Close',
|
35
36
|
collapseButtonLabel: 'Read less',
|
@@ -48,6 +49,8 @@ export var Guidebanner = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
48
49
|
_ref$collapsible = _ref.collapsible,
|
49
50
|
collapsible = _ref$collapsible === void 0 ? defaults.collapsible : _ref$collapsible,
|
50
51
|
onClose = _ref.onClose,
|
52
|
+
_ref$withLeftGutter = _ref.withLeftGutter,
|
53
|
+
withLeftGutter = _ref$withLeftGutter === void 0 ? defaults.withLeftGutter : _ref$withLeftGutter,
|
51
54
|
_ref$closeIconDescrip = _ref.closeIconDescription,
|
52
55
|
closeIconDescription = _ref$closeIconDescrip === void 0 ? defaults.closeIconDescription : _ref$closeIconDescrip,
|
53
56
|
_ref$collapseButtonLa = _ref.collapseButtonLabel,
|
@@ -83,7 +86,7 @@ export var Guidebanner = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
83
86
|
};
|
84
87
|
return /*#__PURE__*/React.createElement("div", _extends({}, rest, {
|
85
88
|
"aria-expanded": !isCollapsed,
|
86
|
-
className: cx(blockClass, className,
|
89
|
+
className: cx(blockClass, className, collapsible && "".concat(blockClass, "__collapsible"), isCollapsed && "".concat(blockClass, "__collapsible-collapsed"), withLeftGutter && "".concat(blockClass, "__with-left-gutter")),
|
87
90
|
ref: ref
|
88
91
|
}, getDevtoolsProps(componentName)), /*#__PURE__*/React.createElement(Idea20, {
|
89
92
|
className: "".concat(blockClass, "__icon-idea")
|
@@ -222,5 +225,11 @@ Guidebanner.propTypes = {
|
|
222
225
|
/**
|
223
226
|
* Title text.
|
224
227
|
*/
|
225
|
-
title: PropTypes.string.isRequired
|
228
|
+
title: PropTypes.string.isRequired,
|
229
|
+
/**
|
230
|
+
* If true, insert 1 rem of "space" on the left of the component.
|
231
|
+
* This will allow the component's content to line up with other
|
232
|
+
* content on the page under special circumstances.
|
233
|
+
*/
|
234
|
+
withLeftGutter: PropTypes.bool
|
226
235
|
};
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
2
2
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
3
3
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
4
|
-
var _excluded = ["children", "className", "closeIconDescription", "collapsible", "collapseButtonLabel", "expandButtonLabel", "narrow", "onClick", "onClose", "tertiaryButtonLabel", "
|
4
|
+
var _excluded = ["action", "children", "className", "closeIconDescription", "collapsible", "collapseButtonLabel", "expandButtonLabel", "media", "narrow", "onClick", "onClose", "tertiaryButtonLabel", "title", "withLeftGutter"];
|
5
5
|
/**
|
6
6
|
* Copyright IBM Corp. 2023, 2023
|
7
7
|
*
|
@@ -48,6 +48,7 @@ var defaults = {
|
|
48
48
|
collapseButtonLabel: 'Read less',
|
49
49
|
expandButtonLabel: 'Read more',
|
50
50
|
narrow: false,
|
51
|
+
withLeftGutter: false,
|
51
52
|
onClick: function onClick() {},
|
52
53
|
onClose: function onClose() {}
|
53
54
|
};
|
@@ -56,7 +57,8 @@ var defaults = {
|
|
56
57
|
* TODO: A description of the component.
|
57
58
|
*/
|
58
59
|
export var InlineTip = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
59
|
-
var
|
60
|
+
var action = _ref.action,
|
61
|
+
children = _ref.children,
|
60
62
|
className = _ref.className,
|
61
63
|
_ref$closeIconDescrip = _ref.closeIconDescription,
|
62
64
|
closeIconDescription = _ref$closeIconDescrip === void 0 ? defaults.closeIconDescription : _ref$closeIconDescrip,
|
@@ -66,15 +68,16 @@ export var InlineTip = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
66
68
|
collapseButtonLabel = _ref$collapseButtonLa === void 0 ? defaults.collapseButtonLabel : _ref$collapseButtonLa,
|
67
69
|
_ref$expandButtonLabe = _ref.expandButtonLabel,
|
68
70
|
expandButtonLabel = _ref$expandButtonLabe === void 0 ? defaults.expandButtonLabel : _ref$expandButtonLabe,
|
71
|
+
media = _ref.media,
|
69
72
|
_ref$narrow = _ref.narrow,
|
70
73
|
narrow = _ref$narrow === void 0 ? defaults.narrow : _ref$narrow,
|
71
74
|
onClick = _ref.onClick,
|
72
75
|
onClose = _ref.onClose,
|
73
76
|
tertiaryButtonLabel = _ref.tertiaryButtonLabel,
|
74
|
-
action = _ref.action,
|
75
77
|
_ref$title = _ref.title,
|
76
78
|
title = _ref$title === void 0 ? defaults.title : _ref$title,
|
77
|
-
|
79
|
+
_ref$withLeftGutter = _ref.withLeftGutter,
|
80
|
+
withLeftGutter = _ref$withLeftGutter === void 0 ? defaults.withLeftGutter : _ref$withLeftGutter,
|
78
81
|
rest = _objectWithoutProperties(_ref, _excluded);
|
79
82
|
var _useState = useState(collapsible),
|
80
83
|
_useState2 = _slicedToArray(_useState, 2),
|
@@ -101,7 +104,7 @@ export var InlineTip = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
101
104
|
// Apply the block class to the main HTML element
|
102
105
|
className,
|
103
106
|
// Apply any supplied class names to the main HTML element.
|
104
|
-
|
107
|
+
collapsible && "".concat(blockClass, "__collapsible"), isCollapsed && "".concat(blockClass, "__collapsible-collapsed"), media && "".concat(blockClass, "__has-media"), [narrow ? "".concat(blockClass, "__narrow") : "".concat(blockClass, "__wide")], withLeftGutter && !narrow && "".concat(blockClass, "__with-left-gutter")),
|
105
108
|
ref: ref,
|
106
109
|
role: "complementary"
|
107
110
|
}, getDevtoolsProps(componentName)), /*#__PURE__*/React.createElement(Button, {
|
@@ -228,5 +231,13 @@ InlineTip.propTypes = {
|
|
228
231
|
/**
|
229
232
|
* The title of the InlineTip.
|
230
233
|
*/
|
231
|
-
title: PropTypes.string.isRequired
|
234
|
+
title: PropTypes.string.isRequired,
|
235
|
+
/**
|
236
|
+
* If true, insert 1 rem of "space" on the left of the component.
|
237
|
+
* This will allow the component's content to line up with other
|
238
|
+
* content on the page under special circumstances.
|
239
|
+
*
|
240
|
+
* This will only be applied when `narrow` is false.
|
241
|
+
*/
|
242
|
+
withLeftGutter: PropTypes.bool
|
232
243
|
};
|