@carbon/ibm-products 2.43.2-canary.4 → 2.43.2-canary.40
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/css/index-full-carbon.css +52 -3
- 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-released-only.css +12 -0
- package/css/index-without-carbon-released-only.css.map +1 -1
- package/css/index-without-carbon-released-only.min.css +1 -1
- package/css/index-without-carbon-released-only.min.css.map +1 -1
- package/css/index-without-carbon.css +52 -3
- 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 +52 -3
- 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/ConditionBuilder/ConditionBlock/ConditionBlock.js +23 -21
- package/es/components/ConditionBuilder/ConditionBuilder.js +67 -20
- package/es/components/ConditionBuilder/ConditionBuilderActions/ConditionBuilderActions.d.ts +15 -0
- package/es/components/ConditionBuilder/ConditionBuilderActions/ConditionBuilderActions.js +129 -0
- package/es/components/ConditionBuilder/ConditionBuilderAdd/ConditionBuilderAdd.js +6 -4
- package/es/components/ConditionBuilder/ConditionBuilderButton/ConditionBuilderButton.d.ts +5 -1
- package/es/components/ConditionBuilder/ConditionBuilderButton/ConditionBuilderButton.js +16 -4
- package/es/components/ConditionBuilder/ConditionBuilderConnector/ConditionConnector.js +2 -2
- package/es/components/ConditionBuilder/ConditionBuilderConnector/GroupConnector.js +2 -2
- package/es/components/ConditionBuilder/ConditionBuilderContent/ConditionBuilderContent.d.ts +9 -11
- package/es/components/ConditionBuilder/ConditionBuilderContent/ConditionBuilderContent.js +36 -32
- package/es/components/ConditionBuilder/ConditionBuilderContext/ConditionBuilderProvider.d.ts +0 -1
- package/es/components/ConditionBuilder/ConditionBuilderContext/ConditionBuilderProvider.js +7 -2
- package/es/components/ConditionBuilder/ConditionBuilderContext/DataConfigs.d.ts +6 -1
- package/es/components/ConditionBuilder/ConditionBuilderContext/DataConfigs.js +18 -10
- package/es/components/ConditionBuilder/ConditionBuilderContext/translationObject.d.ts +39 -36
- package/es/components/ConditionBuilder/ConditionBuilderContext/translationObject.js +12 -10
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItem.d.ts +1 -1
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItem.js +24 -16
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemNumber/ConditionBuilderItemNumber.js +19 -4
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ItemOption.d.ts +13 -0
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ItemOption.js +109 -0
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/{ConditionBuilderItemOption.d.ts → ItemOptionForValueField.d.ts} +2 -2
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/{ConditionBuilderItemOption.js → ItemOptionForValueField.js} +58 -33
- package/es/components/ConditionBuilder/ConditionGroupBuilder/ConditionGroupBuilder.js +4 -6
- package/es/components/ConditionBuilder/ConditionPreview/ConditionPreview.js +14 -5
- package/es/components/ConditionBuilder/utils/handleKeyboardEvents.js +1 -2
- package/es/components/ConditionBuilder/utils/util.d.ts +1 -0
- package/es/components/ConditionBuilder/utils/util.js +16 -1
- package/es/components/DataSpreadsheet/DataSpreadsheet.d.ts +12 -0
- package/es/components/DataSpreadsheet/DataSpreadsheet.js +51 -19
- package/es/components/DataSpreadsheet/DataSpreadsheetBody.d.ts +21 -1
- package/es/components/DataSpreadsheet/DataSpreadsheetBody.js +40 -8
- package/es/components/DataSpreadsheet/DataSpreadsheetHeader.d.ts +8 -0
- package/es/components/DataSpreadsheet/DataSpreadsheetHeader.js +20 -6
- package/es/components/DataSpreadsheet/hooks/useSpreadsheetMouseMove.js +4 -1
- package/es/components/DataSpreadsheet/hooks/useSpreadsheetMouseUp.d.ts +3 -1
- package/es/components/DataSpreadsheet/hooks/useSpreadsheetMouseUp.js +15 -3
- package/es/components/DataSpreadsheet/types/index.d.ts +1 -1
- package/es/components/DataSpreadsheet/utils/moveColumnIndicatorLine.js +34 -2
- package/es/components/Datagrid/Datagrid/Datagrid.js +2 -1
- package/es/components/Datagrid/Datagrid/DatagridContent.js +1 -1
- package/es/components/Datagrid/Datagrid/DatagridHeaderRow.js +11 -1
- package/es/components/Datagrid/Datagrid/DatagridRow.js +13 -2
- package/es/components/Datagrid/Datagrid/addons/Filtering/FilterFlyout.js +6 -1
- package/es/components/Datagrid/Datagrid/addons/Filtering/FilterPanel.js +6 -1
- package/es/components/Datagrid/Datagrid/addons/Filtering/FilterProvider.d.ts +3 -1
- package/es/components/Datagrid/Datagrid/addons/Filtering/FilterProvider.js +6 -3
- package/es/components/Datagrid/Datagrid/addons/Filtering/hooks/useFilters.d.ts +1 -1
- package/es/components/Datagrid/Datagrid/addons/Filtering/hooks/useFilters.js +21 -16
- package/es/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditButton/InlineEditButton.js +1 -1
- package/es/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditCell/InlineEditCell.js +74 -11
- package/es/components/Datagrid/Datagrid/addons/InlineEdit/handleGridKeyPress.js +10 -2
- package/es/components/Datagrid/types/index.d.ts +37 -4
- package/es/components/Datagrid/useActionsColumn.d.ts +8 -1
- package/es/components/Datagrid/useActionsColumn.js +7 -6
- package/es/components/Datagrid/useColumnRightAlign.d.ts +8 -1
- package/es/components/Datagrid/useColumnRightAlign.js +4 -3
- package/es/components/Datagrid/useCustomizeColumns.d.ts +8 -1
- package/es/components/Datagrid/useCustomizeColumns.js +4 -3
- package/es/components/Datagrid/useInlineEdit.js +12 -2
- package/es/components/Datagrid/useNestedRows.js +32 -13
- package/es/components/Decorator/Decorator.js +2 -1
- package/es/components/DecoratorBase/DecoratorBase.js +3 -5
- package/es/components/DecoratorDualButton/DecoratorDualButton.js +2 -1
- package/es/components/DecoratorLink/DecoratorLink.js +2 -1
- package/es/components/DecoratorSingleButton/DecoratorSingleButton.js +2 -1
- package/es/components/EditTearsheet/EditTearsheet.d.ts +5 -1
- package/es/components/EditTearsheet/EditTearsheet.js +0 -1
- package/es/components/EditTearsheet/EditTearsheetForm.d.ts +45 -2
- package/es/components/EditTearsheet/EditTearsheetForm.js +3 -0
- package/es/components/HTTPErrors/HTTPError403/HTTPError403.js +6 -0
- package/es/components/HTTPErrors/HTTPError404/HTTPError404.js +6 -0
- package/es/components/HTTPErrors/HTTPErrorOther/HTTPErrorOther.js +6 -0
- package/es/components/PageHeader/PageHeader.js +1 -0
- package/es/components/RemoveModal/RemoveModal.d.ts +4 -0
- package/es/components/RemoveModal/RemoveModal.js +7 -1
- package/es/components/StatusIndicator/StatusIndicatorStep.js +87 -0
- package/es/components/Tearsheet/Tearsheet.d.ts +8 -1
- package/es/components/Tearsheet/Tearsheet.js +9 -1
- package/es/components/Tearsheet/TearsheetNarrow.d.ts +11 -0
- package/es/components/Tearsheet/TearsheetNarrow.js +12 -0
- package/es/components/Tearsheet/TearsheetShell.d.ts +10 -0
- package/es/components/Tearsheet/TearsheetShell.js +17 -3
- package/es/components/Toolbar/ToolbarButton.js +1 -1
- package/es/components/index.d.ts +1 -1
- package/es/index.js +1 -0
- package/lib/components/ConditionBuilder/ConditionBlock/ConditionBlock.js +23 -21
- package/lib/components/ConditionBuilder/ConditionBuilder.js +67 -20
- package/lib/components/ConditionBuilder/ConditionBuilderActions/ConditionBuilderActions.d.ts +15 -0
- package/lib/components/ConditionBuilder/ConditionBuilderActions/ConditionBuilderActions.js +137 -0
- package/lib/components/ConditionBuilder/ConditionBuilderAdd/ConditionBuilderAdd.js +6 -3
- package/lib/components/ConditionBuilder/ConditionBuilderButton/ConditionBuilderButton.d.ts +5 -1
- package/lib/components/ConditionBuilder/ConditionBuilderButton/ConditionBuilderButton.js +16 -4
- package/lib/components/ConditionBuilder/ConditionBuilderConnector/ConditionConnector.js +2 -2
- package/lib/components/ConditionBuilder/ConditionBuilderConnector/GroupConnector.js +2 -2
- package/lib/components/ConditionBuilder/ConditionBuilderContent/ConditionBuilderContent.d.ts +9 -11
- package/lib/components/ConditionBuilder/ConditionBuilderContent/ConditionBuilderContent.js +36 -32
- package/lib/components/ConditionBuilder/ConditionBuilderContext/ConditionBuilderProvider.d.ts +0 -1
- package/lib/components/ConditionBuilder/ConditionBuilderContext/ConditionBuilderProvider.js +7 -2
- package/lib/components/ConditionBuilder/ConditionBuilderContext/DataConfigs.d.ts +6 -1
- package/lib/components/ConditionBuilder/ConditionBuilderContext/DataConfigs.js +18 -10
- package/lib/components/ConditionBuilder/ConditionBuilderContext/translationObject.d.ts +39 -36
- package/lib/components/ConditionBuilder/ConditionBuilderContext/translationObject.js +12 -10
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItem.d.ts +1 -1
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItem.js +23 -15
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemNumber/ConditionBuilderItemNumber.js +20 -5
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ItemOption.d.ts +13 -0
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ItemOption.js +117 -0
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/{ConditionBuilderItemOption.d.ts → ItemOptionForValueField.d.ts} +2 -2
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/{ConditionBuilderItemOption.js → ItemOptionForValueField.js} +56 -31
- package/lib/components/ConditionBuilder/ConditionGroupBuilder/ConditionGroupBuilder.js +4 -6
- package/lib/components/ConditionBuilder/ConditionPreview/ConditionPreview.js +14 -4
- package/lib/components/ConditionBuilder/utils/handleKeyboardEvents.js +1 -2
- package/lib/components/ConditionBuilder/utils/util.d.ts +1 -0
- package/lib/components/ConditionBuilder/utils/util.js +17 -0
- package/lib/components/DataSpreadsheet/DataSpreadsheet.d.ts +12 -0
- package/lib/components/DataSpreadsheet/DataSpreadsheet.js +51 -19
- package/lib/components/DataSpreadsheet/DataSpreadsheetBody.d.ts +21 -1
- package/lib/components/DataSpreadsheet/DataSpreadsheetBody.js +40 -8
- package/lib/components/DataSpreadsheet/DataSpreadsheetHeader.d.ts +8 -0
- package/lib/components/DataSpreadsheet/DataSpreadsheetHeader.js +20 -6
- package/lib/components/DataSpreadsheet/hooks/useSpreadsheetMouseMove.js +4 -1
- package/lib/components/DataSpreadsheet/hooks/useSpreadsheetMouseUp.d.ts +3 -1
- package/lib/components/DataSpreadsheet/hooks/useSpreadsheetMouseUp.js +15 -3
- package/lib/components/DataSpreadsheet/types/index.d.ts +1 -1
- package/lib/components/DataSpreadsheet/utils/moveColumnIndicatorLine.js +34 -2
- package/lib/components/Datagrid/Datagrid/Datagrid.js +2 -1
- package/lib/components/Datagrid/Datagrid/DatagridContent.js +1 -1
- package/lib/components/Datagrid/Datagrid/DatagridHeaderRow.js +11 -1
- package/lib/components/Datagrid/Datagrid/DatagridRow.js +13 -2
- package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterFlyout.js +6 -1
- package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterPanel.js +6 -1
- package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterProvider.d.ts +3 -1
- package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterProvider.js +6 -3
- package/lib/components/Datagrid/Datagrid/addons/Filtering/hooks/useFilters.d.ts +1 -1
- package/lib/components/Datagrid/Datagrid/addons/Filtering/hooks/useFilters.js +21 -16
- package/lib/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditButton/InlineEditButton.js +1 -1
- package/lib/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditCell/InlineEditCell.js +73 -10
- package/lib/components/Datagrid/Datagrid/addons/InlineEdit/handleGridKeyPress.js +10 -2
- package/lib/components/Datagrid/types/index.d.ts +37 -4
- package/lib/components/Datagrid/useActionsColumn.d.ts +8 -1
- package/lib/components/Datagrid/useActionsColumn.js +7 -6
- package/lib/components/Datagrid/useColumnRightAlign.d.ts +8 -1
- package/lib/components/Datagrid/useColumnRightAlign.js +4 -3
- package/lib/components/Datagrid/useCustomizeColumns.d.ts +8 -1
- package/lib/components/Datagrid/useCustomizeColumns.js +4 -3
- package/lib/components/Datagrid/useInlineEdit.js +12 -2
- package/lib/components/Datagrid/useNestedRows.js +32 -13
- package/lib/components/Decorator/Decorator.js +2 -1
- package/lib/components/DecoratorBase/DecoratorBase.js +3 -5
- package/lib/components/DecoratorDualButton/DecoratorDualButton.js +2 -1
- package/lib/components/DecoratorLink/DecoratorLink.js +2 -1
- package/lib/components/DecoratorSingleButton/DecoratorSingleButton.js +2 -1
- package/lib/components/EditTearsheet/EditTearsheet.d.ts +5 -1
- package/lib/components/EditTearsheet/EditTearsheet.js +0 -1
- package/lib/components/EditTearsheet/EditTearsheetForm.d.ts +45 -2
- package/lib/components/EditTearsheet/EditTearsheetForm.js +3 -0
- package/lib/components/HTTPErrors/HTTPError403/HTTPError403.js +6 -0
- package/lib/components/HTTPErrors/HTTPError404/HTTPError404.js +6 -0
- package/lib/components/HTTPErrors/HTTPErrorOther/HTTPErrorOther.js +6 -0
- package/lib/components/PageHeader/PageHeader.js +1 -0
- package/lib/components/RemoveModal/RemoveModal.d.ts +4 -0
- package/lib/components/RemoveModal/RemoveModal.js +7 -1
- package/lib/components/StatusIndicator/StatusIndicatorStep.js +94 -0
- package/lib/components/Tearsheet/Tearsheet.d.ts +8 -1
- package/lib/components/Tearsheet/Tearsheet.js +9 -1
- package/lib/components/Tearsheet/TearsheetNarrow.d.ts +11 -0
- package/lib/components/Tearsheet/TearsheetNarrow.js +12 -0
- package/lib/components/Tearsheet/TearsheetShell.d.ts +10 -0
- package/lib/components/Tearsheet/TearsheetShell.js +16 -2
- package/lib/components/Toolbar/ToolbarButton.js +1 -1
- package/lib/components/index.d.ts +1 -1
- package/lib/index.js +5 -0
- package/package.json +7 -6
- package/scss/components/ConditionBuilder/styles/_conditionBuilderCondition.scss +9 -1
- package/scss/components/ConditionBuilder/styles/_conditionBuilderItem.scss +26 -1
- package/scss/components/DataSpreadsheet/_data-spreadsheet.scss +8 -0
- package/scss/components/Datagrid/styles/_useInlineEdit.scss +13 -0
- package/scss/components/StatusIcon/_status-icon.scss +4 -4
- package/scss/components/StringFormatter/_string-formatter.scss +2 -2
- package/scss/components/UserProfileImage/_user-profile-image.scss +6 -2
- package/telemetry.yml +8 -3
- package/es/components/ConditionBuilder/utils/checkForHoldingKey.d.ts +0 -1
- package/es/components/ConditionBuilder/utils/checkForHoldingKey.js +0 -16
- package/lib/components/ConditionBuilder/utils/checkForHoldingKey.d.ts +0 -1
- package/lib/components/ConditionBuilder/utils/checkForHoldingKey.js +0 -20
@@ -1,2 +1,45 @@
|
|
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 React, { ReactNode } from 'react';
|
8
|
+
interface EditTearsheetFormBaseProps {
|
9
|
+
/**
|
10
|
+
* Content that shows in the tearsheet form
|
11
|
+
*/
|
12
|
+
children?: ReactNode;
|
13
|
+
/**
|
14
|
+
* Sets an optional className to be added to the tearsheet form
|
15
|
+
*/
|
16
|
+
className?: string;
|
17
|
+
/**
|
18
|
+
* Sets an optional description on the form component
|
19
|
+
*/
|
20
|
+
description?: string;
|
21
|
+
/**
|
22
|
+
* This optional prop will render your form content inside of a fieldset html element
|
23
|
+
* and is defaulted to true.
|
24
|
+
* You can set this prop to `false` if you have multiple fieldset elements or want to control the children of your Full Page's form content.
|
25
|
+
*/
|
26
|
+
hasFieldset?: boolean;
|
27
|
+
/**
|
28
|
+
* Sets an optional subtitle on the form component
|
29
|
+
*/
|
30
|
+
subtitle?: string;
|
31
|
+
/**
|
32
|
+
* Sets the title text for a tearsheet form
|
33
|
+
*/
|
34
|
+
title: ReactNode;
|
35
|
+
}
|
36
|
+
type EditTearsheetFormFieldsetTypes = {
|
37
|
+
hasFieldset?: false;
|
38
|
+
fieldsetLegendText: string;
|
39
|
+
} | {
|
40
|
+
hasFieldset: true;
|
41
|
+
fieldsetLegendText: string;
|
42
|
+
};
|
43
|
+
type EditTearsheetFormProps = EditTearsheetFormBaseProps & EditTearsheetFormFieldsetTypes;
|
44
|
+
export declare let EditTearsheetForm: React.ForwardRefExoticComponent<EditTearsheetFormProps & React.RefAttributes<HTMLDivElement>>;
|
45
|
+
export {};
|
@@ -91,6 +91,7 @@ exports.EditTearsheetForm.propTypes = {
|
|
91
91
|
* You can set the `hasFieldset` prop to false if you have multiple fieldset elements or want to control the children of your Full Page's form content.
|
92
92
|
* Otherwise, use CSS to hide/remove this label text.
|
93
93
|
*/
|
94
|
+
/**@ts-ignore */
|
94
95
|
fieldsetLegendText: index["default"].string.isRequired.if(function (_ref2) {
|
95
96
|
var hasFieldset = _ref2.hasFieldset;
|
96
97
|
return !!hasFieldset;
|
@@ -100,10 +101,12 @@ exports.EditTearsheetForm.propTypes = {
|
|
100
101
|
* and is defaulted to true.
|
101
102
|
* You can set this prop to `false` if you have multiple fieldset elements or want to control the children of your Full Page's form content.
|
102
103
|
*/
|
104
|
+
/**@ts-ignore*/
|
103
105
|
hasFieldset: index["default"].bool,
|
104
106
|
/**
|
105
107
|
* Sets an optional subtitle on the form component
|
106
108
|
*/
|
109
|
+
/**@ts-ignore*/
|
107
110
|
subtitle: index["default"].string,
|
108
111
|
/**
|
109
112
|
* Sets the title text for a tearsheet form
|
@@ -53,6 +53,12 @@ exports.HTTPError403 = /*#__PURE__*/React__default["default"].forwardRef(functio
|
|
53
53
|
}));
|
54
54
|
});
|
55
55
|
|
56
|
+
/**@ts-ignore*/
|
57
|
+
exports.HTTPError403.deprecated = {
|
58
|
+
level: 'warn',
|
59
|
+
details: "Please replace ".concat(componentName, " with FullPageError")
|
60
|
+
};
|
61
|
+
|
56
62
|
// Return a placeholder if not released and not enabled by feature flag
|
57
63
|
exports.HTTPError403 = settings.pkg.checkComponentEnabled(exports.HTTPError403, componentName);
|
58
64
|
|
@@ -53,6 +53,12 @@ exports.HTTPError404 = /*#__PURE__*/React__default["default"].forwardRef(functio
|
|
53
53
|
}));
|
54
54
|
});
|
55
55
|
|
56
|
+
/**@ts-ignore*/
|
57
|
+
exports.HTTPError404.deprecated = {
|
58
|
+
level: 'warn',
|
59
|
+
details: "Please replace ".concat(componentName, " with FullPageError")
|
60
|
+
};
|
61
|
+
|
56
62
|
// Return a placeholder if not released and not enabled by feature flag
|
57
63
|
exports.HTTPError404 = settings.pkg.checkComponentEnabled(exports.HTTPError404, componentName);
|
58
64
|
|
@@ -53,6 +53,12 @@ exports.HTTPErrorOther = /*#__PURE__*/React__default["default"].forwardRef(funct
|
|
53
53
|
}));
|
54
54
|
});
|
55
55
|
|
56
|
+
/**@ts-ignore*/
|
57
|
+
exports.HTTPErrorOther.deprecated = {
|
58
|
+
level: 'warn',
|
59
|
+
details: "Please replace ".concat(componentName, " with FullPageError")
|
60
|
+
};
|
61
|
+
|
56
62
|
// Return a placeholder if not released and not enabled by feature flag
|
57
63
|
exports.HTTPErrorOther = settings.pkg.checkComponentEnabled(exports.HTTPErrorOther, componentName);
|
58
64
|
|
@@ -36,6 +36,7 @@ var cx__default = /*#__PURE__*/_interopDefaultLegacy(cx);
|
|
36
36
|
|
37
37
|
var _excluded = ["actionBarItems", "actionBarMenuOptionsClass", "actionBarOverflowAriaLabel", "allTagsModalSearchLabel", "allTagsModalSearchPlaceholderText", "allTagsModalTitle", "hasBackgroundAlways", "breadcrumbOverflowAriaLabel", "breadcrumbs", "children", "className", "collapseHeader", "collapseHeaderIconDescription", "collapseTitle", "disableBreadcrumbScroll", "enableBreadcrumbScroll", "expandHeaderIconDescription", "fullWidthGrid", "hasCollapseHeaderToggle", "narrowGrid", "navigation", "pageActions", "pageActionsOverflowLabel", "pageActionsMenuOptionsClass", "showAllTagsLabel", "subtitle", "tags", "title", "withoutBackground", "breadcrumbOverflowTooltipAlign"];
|
38
38
|
var componentName = 'PageHeader';
|
39
|
+
settings.pkg._silenceWarnings(true);
|
39
40
|
settings.pkg.component.ActionBar = true;
|
40
41
|
|
41
42
|
// Default values for props
|
@@ -58,6 +58,10 @@ interface RemoveModalProps extends React.ComponentProps<typeof ComposedModal> {
|
|
58
58
|
* Specify the text for the primary button
|
59
59
|
*/
|
60
60
|
primaryButtonText?: string;
|
61
|
+
/**
|
62
|
+
* Specify the danger description on the primary button
|
63
|
+
*/
|
64
|
+
primaryDangerDescription?: string;
|
61
65
|
/**
|
62
66
|
* The name of the resource being acted upon
|
63
67
|
*/
|
@@ -25,7 +25,7 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
|
|
25
25
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
26
26
|
var cx__default = /*#__PURE__*/_interopDefaultLegacy(cx);
|
27
27
|
|
28
|
-
var _excluded = ["body", "className", "iconDescription", "inputInvalidText", "inputLabelText", "inputPlaceholderText", "label", "onClose", "onRequestSubmit", "open", "portalTarget", "preventCloseOnClickOutside", "primaryButtonDisabled", "primaryButtonText", "resourceName", "secondaryButtonText", "textConfirmation", "title"];
|
28
|
+
var _excluded = ["body", "className", "iconDescription", "inputInvalidText", "inputLabelText", "inputPlaceholderText", "label", "onClose", "onRequestSubmit", "open", "portalTarget", "preventCloseOnClickOutside", "primaryButtonDisabled", "primaryButtonText", "primaryDangerDescription", "resourceName", "secondaryButtonText", "textConfirmation", "title"];
|
29
29
|
var componentName = 'RemoveModal';
|
30
30
|
|
31
31
|
/**
|
@@ -49,6 +49,7 @@ exports.RemoveModal = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
49
49
|
preventCloseOnClickOutside = _ref.preventCloseOnClickOutside,
|
50
50
|
primaryButtonDisabled = _ref.primaryButtonDisabled,
|
51
51
|
primaryButtonText = _ref.primaryButtonText,
|
52
|
+
primaryDangerDescription = _ref.primaryDangerDescription,
|
52
53
|
resourceName = _ref.resourceName,
|
53
54
|
secondaryButtonText = _ref.secondaryButtonText,
|
54
55
|
textConfirmation = _ref.textConfirmation,
|
@@ -118,6 +119,7 @@ exports.RemoveModal = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
118
119
|
}, secondaryButtonText), /*#__PURE__*/React__default["default"].createElement(react.Button, {
|
119
120
|
type: "submit",
|
120
121
|
kind: "danger",
|
122
|
+
dangerDescription: primaryDangerDescription,
|
121
123
|
onClick: onRequestSubmit,
|
122
124
|
disabled: primaryButtonStatus
|
123
125
|
}, primaryButtonText))));
|
@@ -182,6 +184,10 @@ exports.RemoveModal.propTypes = {
|
|
182
184
|
* Specify the text for the primary button
|
183
185
|
*/
|
184
186
|
primaryButtonText: index["default"].string,
|
187
|
+
/**
|
188
|
+
* Specify the danger description on the primary button
|
189
|
+
*/
|
190
|
+
primaryDangerDescription: index["default"].string,
|
185
191
|
/**
|
186
192
|
* The name of the resource being acted upon
|
187
193
|
*/
|
@@ -0,0 +1,94 @@
|
|
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
|
+
|
8
|
+
'use strict';
|
9
|
+
|
10
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
11
|
+
|
12
|
+
var _rollupPluginBabelHelpers = require('../../_virtual/_rollupPluginBabelHelpers.js');
|
13
|
+
var React = require('react');
|
14
|
+
var index = require('../../node_modules/prop-types/index.js');
|
15
|
+
var cx = require('classnames');
|
16
|
+
var devtools = require('../../global/js/utils/devtools.js');
|
17
|
+
var settings = require('../../settings.js');
|
18
|
+
var react = require('@carbon/react');
|
19
|
+
var icons = require('@carbon/react/icons');
|
20
|
+
|
21
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
22
|
+
|
23
|
+
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
24
|
+
var cx__default = /*#__PURE__*/_interopDefaultLegacy(cx);
|
25
|
+
|
26
|
+
var _CircleStroke, _InlineLoading, _ErrorOutline, _CheckmarkOutline;
|
27
|
+
var _excluded = ["className", "description", "errorMessage", "status"];
|
28
|
+
|
29
|
+
// The block part of our conventional BEM class names (blockClass__E--M).
|
30
|
+
var blockClass = "".concat(settings.pkg.prefix, "--status-indicator-step");
|
31
|
+
var componentName = 'StatusIndicatorStep';
|
32
|
+
var defaults = {
|
33
|
+
status: 'inactive'
|
34
|
+
};
|
35
|
+
|
36
|
+
/**
|
37
|
+
* An icon/description pair that describes one step of the `StatusIndicator`.
|
38
|
+
*/
|
39
|
+
exports.StatusIndicatorStep = /*#__PURE__*/React__default["default"].forwardRef(function (_ref, ref) {
|
40
|
+
var className = _ref.className,
|
41
|
+
description = _ref.description,
|
42
|
+
errorMessage = _ref.errorMessage,
|
43
|
+
_ref$status = _ref.status,
|
44
|
+
status = _ref$status === void 0 ? defaults.status : _ref$status,
|
45
|
+
rest = _rollupPluginBabelHelpers.objectWithoutProperties(_ref, _excluded);
|
46
|
+
return /*#__PURE__*/React__default["default"].createElement("li", _rollupPluginBabelHelpers["extends"]({}, rest, {
|
47
|
+
className: cx__default["default"](blockClass, className, "".concat(blockClass, "--").concat(status)),
|
48
|
+
ref: ref
|
49
|
+
}, devtools.getDevtoolsProps(componentName)), /*#__PURE__*/React__default["default"].createElement("div", {
|
50
|
+
className: "".concat(blockClass, "__details")
|
51
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
52
|
+
className: "".concat(blockClass, "__icon")
|
53
|
+
}, status === 'inactive' && (_CircleStroke || (_CircleStroke = /*#__PURE__*/React__default["default"].createElement(icons.CircleStroke, {
|
54
|
+
size: 16,
|
55
|
+
viewBox: "1 1 14 14"
|
56
|
+
}))), status === 'active' && (_InlineLoading || (_InlineLoading = /*#__PURE__*/React__default["default"].createElement(react.InlineLoading, null))), status === 'error' && (_ErrorOutline || (_ErrorOutline = /*#__PURE__*/React__default["default"].createElement(icons.ErrorOutline, {
|
57
|
+
size: 16
|
58
|
+
}))), status === 'finished' && (_CheckmarkOutline || (_CheckmarkOutline = /*#__PURE__*/React__default["default"].createElement(icons.CheckmarkOutline, {
|
59
|
+
size: 16
|
60
|
+
})))), /*#__PURE__*/React__default["default"].createElement("div", {
|
61
|
+
className: "".concat(blockClass, "__text")
|
62
|
+
}, description)), status === 'error' && errorMessage && /*#__PURE__*/React__default["default"].createElement("div", {
|
63
|
+
className: "".concat(blockClass, "__error-message")
|
64
|
+
}, errorMessage));
|
65
|
+
});
|
66
|
+
|
67
|
+
// Return a placeholder if not released and not enabled by feature flag
|
68
|
+
exports.StatusIndicatorStep = settings.pkg.checkComponentEnabled(exports.StatusIndicatorStep, componentName);
|
69
|
+
|
70
|
+
// The display name of the component, used by React. Note that displayName
|
71
|
+
// is used in preference to relying on function.name.
|
72
|
+
exports.StatusIndicatorStep.displayName = componentName;
|
73
|
+
|
74
|
+
// The types and DocGen commentary for the component props,
|
75
|
+
// in alphabetical order (for consistency).
|
76
|
+
// See https://www.npmjs.com/package/prop-types#usage.
|
77
|
+
exports.StatusIndicatorStep.propTypes = {
|
78
|
+
/**
|
79
|
+
* Provide an optional class to be applied to the containing node.
|
80
|
+
*/
|
81
|
+
className: index["default"].string,
|
82
|
+
/**
|
83
|
+
* The text associated with the icon.
|
84
|
+
*/
|
85
|
+
description: index["default"].string.isRequired,
|
86
|
+
/**
|
87
|
+
* This message will appear below the description if the `status` is "error".
|
88
|
+
*/
|
89
|
+
errorMessage: index["default"].string,
|
90
|
+
/**
|
91
|
+
* Each `status` represents a different icon..
|
92
|
+
*/
|
93
|
+
status: index["default"].oneOf(['inactive', 'active', 'error', 'finished']).isRequired
|
94
|
+
};
|
@@ -99,9 +99,16 @@ interface TearsheetProps extends PropsWithChildren {
|
|
99
99
|
*/
|
100
100
|
portalTarget: ReactNode;
|
101
101
|
/**
|
102
|
-
* Specify a CSS selector that matches the DOM element that should be
|
102
|
+
* Specify a CSS selector that matches the DOM element that should be
|
103
|
+
* focused when the Modal opens.
|
103
104
|
*/
|
104
105
|
selectorPrimaryFocus?: string;
|
106
|
+
/**
|
107
|
+
* Specify the CSS selectors that match the floating menus.
|
108
|
+
*
|
109
|
+
* See https://react.carbondesignsystem.com/?path=/docs/components-composedmodal--overview#focus-management
|
110
|
+
*/
|
111
|
+
selectorsFloatingMenus?: string[];
|
105
112
|
/**
|
106
113
|
* The main title of the tearsheet, displayed in the header area.
|
107
114
|
*/
|
@@ -198,9 +198,17 @@ exports.Tearsheet.propTypes = _rollupPluginBabelHelpers.objectSpread2({
|
|
198
198
|
/**@ts-ignore */
|
199
199
|
portalTarget: TearsheetShell.portalType,
|
200
200
|
/**
|
201
|
-
* Specify a CSS selector that matches the DOM element that should be
|
201
|
+
* Specify a CSS selector that matches the DOM element that should be
|
202
|
+
* focused when the Modal opens.
|
202
203
|
*/
|
203
204
|
selectorPrimaryFocus: index["default"].string,
|
205
|
+
/**
|
206
|
+
* Specify the CSS selectors that match the floating menus.
|
207
|
+
*
|
208
|
+
* See https://react.carbondesignsystem.com/?path=/docs/components-composedmodal--overview#focus-management
|
209
|
+
*/
|
210
|
+
/**@ts-ignore*/
|
211
|
+
selectorsFloatingMenus: index["default"].arrayOf(index["default"].string),
|
204
212
|
/**
|
205
213
|
* The main title of the tearsheet, displayed in the header area.
|
206
214
|
*/
|
@@ -64,6 +64,17 @@ interface TearsheetNarrowBaseProps extends PropsWithChildren {
|
|
64
64
|
* The DOM element that the tearsheet should be rendered within. Defaults to document.body.
|
65
65
|
*/
|
66
66
|
portalTarget?: ReactNode;
|
67
|
+
/**
|
68
|
+
* Specify a CSS selector that matches the DOM element that should be
|
69
|
+
* focused when the Modal opens.
|
70
|
+
*/
|
71
|
+
selectorPrimaryFocus?: string;
|
72
|
+
/**
|
73
|
+
* Specify the CSS selectors that match the floating menus.
|
74
|
+
*
|
75
|
+
* See https://react.carbondesignsystem.com/?path=/docs/components-composedmodal--overview#focus-management
|
76
|
+
*/
|
77
|
+
selectorsFloatingMenus?: string[];
|
67
78
|
/**
|
68
79
|
* The main title of the tearsheet, displayed in the header area.
|
69
80
|
*/
|
@@ -156,6 +156,18 @@ exports.TearsheetNarrow.propTypes = _rollupPluginBabelHelpers.objectSpread2({
|
|
156
156
|
*/
|
157
157
|
/**@ts-ignore */
|
158
158
|
portalTarget: TearsheetShell.portalType,
|
159
|
+
/**
|
160
|
+
* Specify a CSS selector that matches the DOM element that should be
|
161
|
+
* focused when the Modal opens.
|
162
|
+
*/
|
163
|
+
selectorPrimaryFocus: index["default"].string,
|
164
|
+
/**
|
165
|
+
* Specify the CSS selectors that match the floating menus.
|
166
|
+
*
|
167
|
+
* See https://react.carbondesignsystem.com/?path=/docs/components-composedmodal--overview#focus-management
|
168
|
+
*/
|
169
|
+
/**@ts-ignore*/
|
170
|
+
selectorsFloatingMenus: index["default"].arrayOf(index["default"].string),
|
159
171
|
/**
|
160
172
|
* The main title of the tearsheet, displayed in the header area.
|
161
173
|
*/
|
@@ -81,7 +81,17 @@ interface TearsheetShellProps extends PropsWithChildren {
|
|
81
81
|
* The DOM element that the tearsheet should be rendered within. Defaults to document.body.
|
82
82
|
*/
|
83
83
|
portalTarget?: ReactNode;
|
84
|
+
/**
|
85
|
+
* Specify a CSS selector that matches the DOM element that should be
|
86
|
+
* focused when the Modal opens.
|
87
|
+
*/
|
84
88
|
selectorPrimaryFocus?: string;
|
89
|
+
/**
|
90
|
+
* Specify the CSS selectors that match the floating menus.
|
91
|
+
*
|
92
|
+
* See https://react.carbondesignsystem.com/?path=/docs/components-composedmodal--overview#focus-management
|
93
|
+
*/
|
94
|
+
selectorsFloatingMenus?: string[];
|
85
95
|
/**
|
86
96
|
* Specifies the width of the tearsheet, 'narrow' or 'wide'.
|
87
97
|
*/
|
@@ -29,7 +29,7 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
|
|
29
29
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
30
30
|
var cx__default = /*#__PURE__*/_interopDefaultLegacy(cx);
|
31
31
|
|
32
|
-
var _excluded = ["actions", "ariaLabel", "children", "className", "closeIconDescription", "description", "hasCloseIcon", "headerActions", "influencer", "influencerPosition", "influencerWidth", "label", "navigation", "onClose", "open", "portalTarget", "selectorPrimaryFocus", "size", "slug", "title", "verticalPosition", "launcherButtonRef"];
|
32
|
+
var _excluded = ["actions", "ariaLabel", "children", "className", "closeIconDescription", "description", "hasCloseIcon", "headerActions", "influencer", "influencerPosition", "influencerWidth", "label", "navigation", "onClose", "open", "portalTarget", "selectorPrimaryFocus", "selectorsFloatingMenus", "size", "slug", "title", "verticalPosition", "launcherButtonRef"];
|
33
33
|
|
34
34
|
// The block part of our conventional BEM class names (bc__E--M).
|
35
35
|
var bc = "".concat(settings.pkg.prefix, "--tearsheet");
|
@@ -88,6 +88,8 @@ var TearsheetShell = /*#__PURE__*/React__default["default"].forwardRef(function
|
|
88
88
|
open = _ref.open,
|
89
89
|
portalTargetIn = _ref.portalTarget,
|
90
90
|
selectorPrimaryFocus = _ref.selectorPrimaryFocus,
|
91
|
+
_ref$selectorsFloatin = _ref.selectorsFloatingMenus,
|
92
|
+
selectorsFloatingMenus = _ref$selectorsFloatin === void 0 ? [] : _ref$selectorsFloatin,
|
91
93
|
size = _ref.size,
|
92
94
|
slug = _ref.slug,
|
93
95
|
title = _ref.title,
|
@@ -258,7 +260,7 @@ var TearsheetShell = /*#__PURE__*/React__default["default"].forwardRef(function
|
|
258
260
|
onKeyDown: keyDownListener,
|
259
261
|
preventCloseOnClickOutside: !isPassive,
|
260
262
|
ref: modalRef,
|
261
|
-
selectorsFloatingMenus: [".".concat(carbonPrefix, "--overflow-menu-options"), ".".concat(carbonPrefix, "--tooltip"), '.flatpickr-calendar', ".".concat(bc, "__container")],
|
263
|
+
selectorsFloatingMenus: [".".concat(carbonPrefix, "--overflow-menu-options"), ".".concat(carbonPrefix, "--tooltip"), '.flatpickr-calendar', ".".concat(bc, "__container")].concat(_rollupPluginBabelHelpers.toConsumableArray(selectorsFloatingMenus)),
|
262
264
|
size: "sm"
|
263
265
|
}), includeHeader && /*#__PURE__*/React__default["default"].createElement(react.ModalHeader, {
|
264
266
|
className: cx__default["default"]("".concat(bc, "__header"), _rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty({}, "".concat(bc, "__header--with-close-icon"), effectiveHasCloseIcon), "".concat(bc, "__header--with-nav"), navigation)),
|
@@ -454,6 +456,18 @@ TearsheetShell.propTypes = _rollupPluginBabelHelpers.objectSpread2({
|
|
454
456
|
*/
|
455
457
|
/**@ts-ignore*/
|
456
458
|
portalTarget: portalType,
|
459
|
+
/**
|
460
|
+
* Specify a CSS selector that matches the DOM element that should be
|
461
|
+
* focused when the Modal opens.
|
462
|
+
*/
|
463
|
+
selectorPrimaryFocus: index["default"].string,
|
464
|
+
/**
|
465
|
+
* Specify the CSS selectors that match the floating menus.
|
466
|
+
*
|
467
|
+
* See https://react.carbondesignsystem.com/?path=/docs/components-composedmodal--overview#focus-management
|
468
|
+
*/
|
469
|
+
/**@ts-ignore*/
|
470
|
+
selectorsFloatingMenus: index["default"].arrayOf(index["default"].string),
|
457
471
|
/**
|
458
472
|
* Specifies the width of the tearsheet, 'narrow' or 'wide'.
|
459
473
|
*/
|
@@ -37,7 +37,7 @@ exports.ToolbarButton = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
37
37
|
rest = _rollupPluginBabelHelpers.objectWithoutProperties(_ref, _excluded);
|
38
38
|
var Icon = renderIcon;
|
39
39
|
return /*#__PURE__*/React__default["default"].createElement(react.IconButton, _rollupPluginBabelHelpers["extends"]({
|
40
|
-
align: (
|
40
|
+
align: (_useContext = React.useContext(Toolbar.ToolbarContext)) !== null && _useContext !== void 0 && _useContext.vertical ? 'right' : 'top'
|
41
41
|
}, rest, {
|
42
42
|
label: iconDescription,
|
43
43
|
ref: ref,
|
@@ -50,7 +50,6 @@ export { Nav } from "./Nav";
|
|
50
50
|
export { StringFormatter } from "./StringFormatter";
|
51
51
|
export { UserAvatar } from "./UserAvatar";
|
52
52
|
export { ScrollGradient } from "./ScrollGradient";
|
53
|
-
export { StatusIndicator } from "./StatusIndicator";
|
54
53
|
export { TagOverflow } from "./TagOverflow";
|
55
54
|
export { ActionBar } from "./ActionBar";
|
56
55
|
export { ConditionBuilder } from "./ConditionBuilder";
|
@@ -68,5 +67,6 @@ export { EditTearsheet, EditTearsheetForm } from "./EditTearsheet";
|
|
68
67
|
export { Guidebanner, GuidebannerElement, GuidebannerElementButton, GuidebannerElementLink } from "./Guidebanner";
|
69
68
|
export { InlineTip, InlineTipButton, InlineTipLink } from "./InlineTip";
|
70
69
|
export { DescriptionList, DescriptionListBody, DescriptionListCell, DescriptionListRow } from "./DescriptionList";
|
70
|
+
export { StatusIndicator, StatusIndicatorStep } from "./StatusIndicator";
|
71
71
|
export { FilterPanel, FilterPanelAccordion, FilterPanelAccordionItem, FilterPanelCheckbox, FilterPanelCheckboxWithOverflow, FilterPanelGroup, FilterPanelLabel, FilterPanelSearch } from "./FilterPanel";
|
72
72
|
export { FeatureFlags as unstable_FeatureFlags, useFeatureFlag as unstable_useFeatureFlag, useFeatureFlags as unstable_useFeatureFlags } from "./FeatureFlags";
|
package/lib/index.js
CHANGED
@@ -126,6 +126,7 @@ var StringFormatter = require('./components/StringFormatter/StringFormatter.js')
|
|
126
126
|
var UserAvatar = require('./components/UserAvatar/UserAvatar.js');
|
127
127
|
var ScrollGradient = require('./components/ScrollGradient/ScrollGradient.js');
|
128
128
|
var StatusIndicator = require('./components/StatusIndicator/StatusIndicator.js');
|
129
|
+
var StatusIndicatorStep = require('./components/StatusIndicator/StatusIndicatorStep.js');
|
129
130
|
var TagOverflow = require('./components/TagOverflow/TagOverflow.js');
|
130
131
|
var ActionBar = require('./components/ActionBar/ActionBar.js');
|
131
132
|
var FilterPanel = require('./components/FilterPanel/FilterPanel.js');
|
@@ -535,6 +536,10 @@ Object.defineProperty(exports, 'StatusIndicator', {
|
|
535
536
|
enumerable: true,
|
536
537
|
get: function () { return StatusIndicator.StatusIndicator; }
|
537
538
|
});
|
539
|
+
Object.defineProperty(exports, 'StatusIndicatorStep', {
|
540
|
+
enumerable: true,
|
541
|
+
get: function () { return StatusIndicatorStep.StatusIndicatorStep; }
|
542
|
+
});
|
538
543
|
Object.defineProperty(exports, 'TagOverflow', {
|
539
544
|
enumerable: true,
|
540
545
|
get: function () { return TagOverflow.TagOverflow; }
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "@carbon/ibm-products",
|
3
3
|
"description": "Carbon for IBM Products",
|
4
|
-
"version": "2.43.2-canary.
|
4
|
+
"version": "2.43.2-canary.40+01b4adde4",
|
5
5
|
"license": "Apache-2.0",
|
6
6
|
"main": "lib/index.js",
|
7
7
|
"module": "es/index.js",
|
@@ -26,7 +26,8 @@
|
|
26
26
|
"lib",
|
27
27
|
"scss",
|
28
28
|
"flags.js",
|
29
|
-
"telemetry.yml"
|
29
|
+
"telemetry.yml",
|
30
|
+
".playwright/INTERNAL_AVT_REPORT_DO_NOT_USE.json"
|
30
31
|
],
|
31
32
|
"keywords": [
|
32
33
|
"carbon",
|
@@ -80,7 +81,7 @@
|
|
80
81
|
"fs-extra": "^11.2.0",
|
81
82
|
"glob": "^10.3.10",
|
82
83
|
"jest": "^29.7.0",
|
83
|
-
"jest-config-ibm-cloud-cognitive": "^1.
|
84
|
+
"jest-config-ibm-cloud-cognitive": "^1.3.0-rc.0",
|
84
85
|
"jest-environment-jsdom": "^29.7.0",
|
85
86
|
"namor": "^1.1.2",
|
86
87
|
"npm-check-updates": "^16.14.12",
|
@@ -88,14 +89,14 @@
|
|
88
89
|
"rimraf": "^5.0.5",
|
89
90
|
"rollup": "^2.79.1",
|
90
91
|
"rollup-plugin-strip-banner": "^3.0.0",
|
91
|
-
"sass": "^1.
|
92
|
+
"sass": "^1.77.2",
|
92
93
|
"typescript-config-carbon": "^0.2.1",
|
93
94
|
"yargs": "^17.7.2"
|
94
95
|
},
|
95
96
|
"dependencies": {
|
96
97
|
"@babel/runtime": "^7.23.9",
|
97
98
|
"@carbon/feature-flags": "^0.20.0",
|
98
|
-
"@carbon/ibm-products-styles": "^2.
|
99
|
+
"@carbon/ibm-products-styles": "^2.40.0-rc.0",
|
99
100
|
"@carbon/telemetry": "^0.1.0",
|
100
101
|
"@dnd-kit/core": "^6.0.8",
|
101
102
|
"@dnd-kit/modifiers": "^7.0.0",
|
@@ -119,5 +120,5 @@
|
|
119
120
|
"react": "^16.8.6 || ^17.0.1 || ^18.2.0",
|
120
121
|
"react-dom": "^16.8.6 || ^17.0.1 || ^18.2.0"
|
121
122
|
},
|
122
|
-
"gitHead": "
|
123
|
+
"gitHead": "01b4adde4e5b2389da1bee6c9fe36361986d75a4"
|
123
124
|
}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
@use '@carbon/react/scss/theme' as *;
|
2
2
|
@use '@carbon/react/scss/spacing' as *;
|
3
|
-
@use '@carbon/react/scss/motion'
|
3
|
+
@use '@carbon/react/scss/motion' as *;
|
4
4
|
@use '@carbon/styles/scss/components/tag' as *;
|
5
5
|
@use '@carbon/styles/scss/utilities/focus-outline';
|
6
6
|
@use '../../../global/styles/project-settings' as c4p-settings;
|
@@ -52,8 +52,16 @@ $block-class: #{c4p-settings.$pkg-prefix}--condition-builder;
|
|
52
52
|
text-wrap: nowrap;
|
53
53
|
}
|
54
54
|
.#{$block-class}__group-preview {
|
55
|
+
height: 0;
|
56
|
+
opacity: 0;
|
57
|
+
pointer-events: none;
|
58
|
+
transition: all $duration-moderate-02 motion(exit, expressive);
|
59
|
+
}
|
60
|
+
.#{$block-class}__group-preview-animate {
|
61
|
+
height: auto;
|
55
62
|
opacity: 0.5;
|
56
63
|
pointer-events: none;
|
64
|
+
transition: all $duration-moderate-02 motion(exit, expressive);
|
57
65
|
}
|
58
66
|
.#{$block-class}__connector-disabled {
|
59
67
|
display: flex;
|
@@ -212,7 +212,12 @@ $colors: (
|
|
212
212
|
background-color: $layer;
|
213
213
|
}
|
214
214
|
.#{$block-class}__condition-wrapper > :nth-child(1) .#{$block-class}__button,
|
215
|
-
.#{$block-class}__condition-wrapper
|
215
|
+
.#{$block-class}__condition-wrapper
|
216
|
+
> :nth-child(2)
|
217
|
+
.#{$block-class}__button:not(
|
218
|
+
.#{$block-class}__add-button,
|
219
|
+
.#{$block-class}__add_condition_group
|
220
|
+
) {
|
216
221
|
/* stylelint-disable-next-line carbon/theme-token-use */
|
217
222
|
box-shadow: inset 0 #{$spacing-01} 0 0 var(--#{$block-class}__condition-wrapper-color);
|
218
223
|
}
|
@@ -229,3 +234,23 @@ $colors: (
|
|
229
234
|
align-self: center;
|
230
235
|
margin-left: auto;
|
231
236
|
}
|
237
|
+
.#{$block-class}__add_condition_group-wrapper {
|
238
|
+
z-index: -1;
|
239
|
+
margin-left: -50%;
|
240
|
+
opacity: 0;
|
241
|
+
pointer-events: none;
|
242
|
+
// stylelint-disable-next-line carbon/motion-duration-use, carbon/motion-easing-use
|
243
|
+
transition: all linear $duration-fast-02;
|
244
|
+
}
|
245
|
+
.#{$block-class}__add_condition_group-wrapper--show {
|
246
|
+
z-index: 0;
|
247
|
+
margin-left: 0;
|
248
|
+
opacity: 1;
|
249
|
+
pointer-events: all;
|
250
|
+
// stylelint-disable-next-line carbon/motion-duration-use, carbon/motion-easing-use
|
251
|
+
transition: all linear $duration-fast-02;
|
252
|
+
}
|
253
|
+
.#{$block-class}__invalid-input {
|
254
|
+
display: flex;
|
255
|
+
color: $support-warning;
|
256
|
+
}
|
@@ -98,6 +98,7 @@ $header-cell-background: $layer-accent-01;
|
|
98
98
|
position: sticky;
|
99
99
|
z-index: 4;
|
100
100
|
left: 0;
|
101
|
+
background-color: $background;
|
101
102
|
}
|
102
103
|
.#{$block-class}__td-th.#{$block-class}__td {
|
103
104
|
@include font-family.font-weight('semibold');
|
@@ -200,6 +201,13 @@ $header-cell-background: $layer-accent-01;
|
|
200
201
|
outline: 0;
|
201
202
|
}
|
202
203
|
}
|
204
|
+
|
205
|
+
.#{$block-class}__td-th.#{$block-class}__td_custom {
|
206
|
+
align-items: center;
|
207
|
+
justify-content: center;
|
208
|
+
gap: $spacing-03;
|
209
|
+
}
|
210
|
+
|
203
211
|
.#{$block-class}__selection-area--element {
|
204
212
|
position: absolute;
|
205
213
|
z-index: 2;
|
@@ -80,6 +80,19 @@ $row-heights: (
|
|
80
80
|
align-items: center;
|
81
81
|
}
|
82
82
|
|
83
|
+
.#{variables.$block-class}__inline-edit--outer-cell-checkbox-focus
|
84
|
+
.cds--checkbox-label::before {
|
85
|
+
outline: $spacing-01 solid $focus;
|
86
|
+
outline-offset: 1px;
|
87
|
+
}
|
88
|
+
|
89
|
+
.#{variables.$block-class}__inline-edit--outer-cell-checkbox {
|
90
|
+
display: flex;
|
91
|
+
height: -webkit-fill-available;
|
92
|
+
justify-content: center;
|
93
|
+
padding-inline: $spacing-05;
|
94
|
+
}
|
95
|
+
|
83
96
|
.#{variables.$block-class}__static--outer-cell {
|
84
97
|
display: flex;
|
85
98
|
height: -webkit-fill-available;
|
@@ -73,7 +73,7 @@ $themes: ('light', 'dark');
|
|
73
73
|
|
74
74
|
$block-class: #{$pkg-prefix}--status-icon;
|
75
75
|
|
76
|
-
@function
|
76
|
+
@function carbon-clr($name, $theme: light) {
|
77
77
|
// stylelint-disable-next-line carbon/theme-token-use
|
78
78
|
$color: map-get(map-get($colors, $name), $theme);
|
79
79
|
@return $color;
|
@@ -125,13 +125,13 @@ $block-class: #{$pkg-prefix}--status-icon;
|
|
125
125
|
// stylelint-disable-next-line carbon/motion-duration-use, carbon/motion-easing-use
|
126
126
|
animation: rotating 8000ms infinite linear;
|
127
127
|
// stylelint-disable-next-line carbon/theme-token-use
|
128
|
-
fill:
|
128
|
+
fill: carbon-clr($icon, $theme);
|
129
129
|
} @else if $icon == running {
|
130
130
|
// stylelint-disable-next-line carbon/theme-token-use
|
131
|
-
fill:
|
131
|
+
fill: carbon-clr($icon, $theme);
|
132
132
|
} @else {
|
133
133
|
// stylelint-disable-next-line carbon/theme-token-use
|
134
|
-
fill:
|
134
|
+
fill: carbon-clr($icon, $theme);
|
135
135
|
@media (prefers-reduced-motion) {
|
136
136
|
.#{$block-class}--#{$theme}.#{$block-class}--#{$theme-key}-in-progress {
|
137
137
|
animation: none;
|