@carbon/ibm-products 2.48.0 → 2.49.0-rc.0
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 +29 -14
- 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 +11 -2
- 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 +29 -14
- 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 +29 -14
- 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/APIKeyModal/APIKeyModal.types.d.ts +1 -1
- package/es/components/Card/Card.js +4 -2
- package/es/components/ConditionBuilder/ConditionBlock/ConditionBlock.d.ts +100 -24
- package/es/components/ConditionBuilder/ConditionBlock/ConditionBlock.js +30 -27
- package/es/components/ConditionBuilder/ConditionBuilder.d.ts +9 -2
- package/es/components/ConditionBuilder/ConditionBuilder.js +13 -9
- package/es/components/ConditionBuilder/ConditionBuilder.types.d.ts +151 -0
- package/es/components/ConditionBuilder/ConditionBuilderActions/ConditionBuilderActions.d.ts +26 -12
- package/es/components/ConditionBuilder/ConditionBuilderActions/ConditionBuilderActions.js +7 -7
- package/es/components/ConditionBuilder/ConditionBuilderAdd/ConditionBuilderAdd.d.ts +62 -27
- package/es/components/ConditionBuilder/ConditionBuilderAdd/ConditionBuilderAdd.js +2 -3
- package/es/components/ConditionBuilder/ConditionBuilderButton/ConditionBuilderButton.d.ts +86 -37
- package/es/components/ConditionBuilder/ConditionBuilderButton/ConditionBuilderButton.js +2 -2
- package/es/components/ConditionBuilder/ConditionBuilderConnector/ConditionConnector.d.ts +29 -14
- package/es/components/ConditionBuilder/ConditionBuilderConnector/ConditionConnector.js +10 -9
- package/es/components/ConditionBuilder/ConditionBuilderConnector/GroupConnector.js +4 -1
- package/es/components/ConditionBuilder/ConditionBuilderContent/ConditionBuilderContent.d.ts +40 -20
- package/es/components/ConditionBuilder/ConditionBuilderContent/ConditionBuilderContent.js +40 -37
- package/es/components/ConditionBuilder/ConditionBuilderContext/ConditionBuilderProvider.d.ts +10 -49
- package/es/components/ConditionBuilder/ConditionBuilderContext/ConditionBuilderProvider.js +22 -31
- package/es/components/ConditionBuilder/ConditionBuilderContext/translationObject.d.ts +6 -0
- package/es/components/ConditionBuilder/ConditionBuilderContext/translationObject.js +7 -1
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItem.d.ts +81 -31
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItem.js +14 -8
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemDate/ConditionBuilderItemDate.d.ts +27 -12
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemDate/ConditionBuilderItemDate.js +2 -3
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemNumber/ConditionBuilderItemNumber.d.ts +30 -12
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemNumber/ConditionBuilderItemNumber.js +12 -7
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ItemOption.d.ts +35 -12
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ItemOption.js +16 -9
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ItemOptionForValueField.d.ts +32 -12
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ItemOptionForValueField.js +4 -4
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemText/ConditionBuilderItemText.d.ts +35 -14
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemText/ConditionBuilderItemText.js +5 -6
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemTime/ConditionBuilderItemTime.d.ts +25 -10
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemTime/ConditionBuilderItemTime.js +1 -1
- package/es/components/ConditionBuilder/ConditionGroupBuilder/ConditionGroupBuilder.d.ts +44 -17
- package/es/components/ConditionBuilder/ConditionGroupBuilder/ConditionGroupBuilder.js +50 -40
- package/es/components/ConditionBuilder/ConditionPreview/ConditionPreview.d.ts +30 -13
- package/es/components/ConditionBuilder/ConditionPreview/ConditionPreview.js +2 -3
- package/es/components/ConditionBuilder/utils/handleKeyboardEvents.js +9 -10
- package/es/components/ConditionBuilder/utils/useDataConfigs.d.ts +18 -0
- package/es/components/ConditionBuilder/utils/useDataConfigs.js +120 -0
- package/es/components/ConditionBuilder/utils/useTranslations.d.ts +1 -1
- package/es/components/ConditionBuilder/utils/useTranslations.js +4 -1
- package/es/components/ConditionBuilder/utils/util.d.ts +12 -0
- package/es/components/ConditionBuilder/utils/util.js +48 -2
- package/es/components/CreateFullPage/CreateFullPageStep.d.ts +2 -2
- package/es/components/CreateFullPage/index.d.ts +1 -0
- package/es/components/CreateTearsheet/CreateTearsheet.js +3 -4
- package/es/components/DataSpreadsheet/DataSpreadsheet.js +8 -1
- package/es/components/Datagrid/Datagrid/DatagridToolbar.js +8 -3
- package/es/components/Datagrid/Datagrid/DatagridVirtualBody.js +20 -11
- package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/CustomizeColumnsTearsheet.js +7 -2
- package/es/components/Datagrid/Datagrid/addons/Filtering/FilterPanel.js +12 -7
- package/es/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditCell/InlineEditCell.js +18 -16
- package/es/components/Datagrid/types/index.d.ts +1 -0
- package/es/components/Datagrid/useActionsColumn.js +1 -4
- package/es/components/Datagrid/useFiltering.d.ts +1 -0
- package/es/components/Datagrid/useFiltering.js +14 -3
- package/es/components/EditInPlace/EditInPlace.js +7 -5
- package/es/components/NotificationsPanel/NotificationsPanel.d.ts +2 -0
- package/es/components/NotificationsPanel/NotificationsPanel.js +75 -5
- package/es/components/TagOverflow/TagOverflow.d.ts +1 -0
- package/es/components/TagOverflow/TagOverflow.js +8 -2
- package/es/components/TagOverflow/TagOverflowPopover.d.ts +1 -0
- package/es/components/TagOverflow/TagOverflowPopover.js +7 -1
- package/es/components/TagSet/TagSetOverflow.js +1 -1
- package/es/components/Tearsheet/Tearsheet.d.ts +2 -2
- package/es/components/Tearsheet/TearsheetShell.js +7 -3
- package/es/components/Toolbar/ToolbarButton.d.ts +12 -1
- package/es/components/Toolbar/ToolbarButton.js +16 -8
- package/es/global/js/hooks/useFocus.d.ts +1 -1
- package/es/global/js/hooks/useFocus.js +40 -24
- package/es/global/js/utils/keyboardNavigation.d.ts +27 -0
- package/es/global/js/utils/keyboardNavigation.js +37 -0
- package/es/global/js/utils/wrapFocus.d.ts +25 -0
- package/es/global/js/utils/wrapFocus.js +68 -0
- package/lib/components/APIKeyModal/APIKeyModal.types.d.ts +1 -1
- package/lib/components/Card/Card.js +3 -1
- package/lib/components/ConditionBuilder/ConditionBlock/ConditionBlock.d.ts +100 -24
- package/lib/components/ConditionBuilder/ConditionBlock/ConditionBlock.js +36 -33
- package/lib/components/ConditionBuilder/ConditionBuilder.d.ts +9 -2
- package/lib/components/ConditionBuilder/ConditionBuilder.js +15 -11
- package/lib/components/ConditionBuilder/ConditionBuilder.types.d.ts +151 -0
- package/lib/components/ConditionBuilder/ConditionBuilderActions/ConditionBuilderActions.d.ts +26 -12
- package/lib/components/ConditionBuilder/ConditionBuilderActions/ConditionBuilderActions.js +15 -15
- package/lib/components/ConditionBuilder/ConditionBuilderAdd/ConditionBuilderAdd.d.ts +62 -27
- package/lib/components/ConditionBuilder/ConditionBuilderAdd/ConditionBuilderAdd.js +7 -8
- package/lib/components/ConditionBuilder/ConditionBuilderButton/ConditionBuilderButton.d.ts +86 -37
- package/lib/components/ConditionBuilder/ConditionBuilderButton/ConditionBuilderButton.js +4 -4
- package/lib/components/ConditionBuilder/ConditionBuilderConnector/ConditionConnector.d.ts +29 -14
- package/lib/components/ConditionBuilder/ConditionBuilderConnector/ConditionConnector.js +11 -10
- package/lib/components/ConditionBuilder/ConditionBuilderConnector/GroupConnector.js +8 -5
- package/lib/components/ConditionBuilder/ConditionBuilderContent/ConditionBuilderContent.d.ts +40 -20
- package/lib/components/ConditionBuilder/ConditionBuilderContent/ConditionBuilderContent.js +47 -44
- package/lib/components/ConditionBuilder/ConditionBuilderContext/ConditionBuilderProvider.d.ts +10 -49
- package/lib/components/ConditionBuilder/ConditionBuilderContext/ConditionBuilderProvider.js +22 -31
- package/lib/components/ConditionBuilder/ConditionBuilderContext/translationObject.d.ts +6 -0
- package/lib/components/ConditionBuilder/ConditionBuilderContext/translationObject.js +7 -1
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItem.d.ts +81 -31
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItem.js +18 -12
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemDate/ConditionBuilderItemDate.d.ts +27 -12
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemDate/ConditionBuilderItemDate.js +3 -4
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemNumber/ConditionBuilderItemNumber.d.ts +30 -12
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemNumber/ConditionBuilderItemNumber.js +13 -8
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ItemOption.d.ts +35 -12
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ItemOption.js +22 -15
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ItemOptionForValueField.d.ts +32 -12
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ItemOptionForValueField.js +15 -15
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemText/ConditionBuilderItemText.d.ts +35 -14
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemText/ConditionBuilderItemText.js +5 -6
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemTime/ConditionBuilderItemTime.d.ts +25 -10
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemTime/ConditionBuilderItemTime.js +2 -2
- package/lib/components/ConditionBuilder/ConditionGroupBuilder/ConditionGroupBuilder.d.ts +44 -17
- package/lib/components/ConditionBuilder/ConditionGroupBuilder/ConditionGroupBuilder.js +60 -50
- package/lib/components/ConditionBuilder/ConditionPreview/ConditionPreview.d.ts +30 -13
- package/lib/components/ConditionBuilder/ConditionPreview/ConditionPreview.js +18 -19
- package/lib/components/ConditionBuilder/utils/handleKeyboardEvents.js +12 -13
- package/lib/components/ConditionBuilder/utils/useDataConfigs.d.ts +18 -0
- package/lib/components/ConditionBuilder/utils/useDataConfigs.js +124 -0
- package/lib/components/ConditionBuilder/utils/useTranslations.d.ts +1 -1
- package/lib/components/ConditionBuilder/utils/useTranslations.js +4 -1
- package/lib/components/ConditionBuilder/utils/util.d.ts +12 -0
- package/lib/components/ConditionBuilder/utils/util.js +53 -3
- package/lib/components/CreateFullPage/CreateFullPageStep.d.ts +2 -2
- package/lib/components/CreateFullPage/index.d.ts +1 -0
- package/lib/components/CreateTearsheet/CreateTearsheet.js +3 -4
- package/lib/components/DataSpreadsheet/DataSpreadsheet.js +8 -1
- package/lib/components/Datagrid/Datagrid/DatagridToolbar.js +8 -3
- package/lib/components/Datagrid/Datagrid/DatagridVirtualBody.js +19 -10
- package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/CustomizeColumnsTearsheet.js +6 -1
- package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterPanel.js +11 -6
- package/lib/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditCell/InlineEditCell.js +18 -16
- package/lib/components/Datagrid/types/index.d.ts +1 -0
- package/lib/components/Datagrid/useActionsColumn.js +1 -4
- package/lib/components/Datagrid/useFiltering.d.ts +1 -0
- package/lib/components/Datagrid/useFiltering.js +13 -1
- package/lib/components/EditInPlace/EditInPlace.js +7 -5
- package/lib/components/NotificationsPanel/NotificationsPanel.d.ts +2 -0
- package/lib/components/NotificationsPanel/NotificationsPanel.js +74 -4
- package/lib/components/TagOverflow/TagOverflow.d.ts +1 -0
- package/lib/components/TagOverflow/TagOverflow.js +8 -2
- package/lib/components/TagOverflow/TagOverflowPopover.d.ts +1 -0
- package/lib/components/TagOverflow/TagOverflowPopover.js +7 -1
- package/lib/components/TagSet/TagSetOverflow.js +1 -1
- package/lib/components/Tearsheet/Tearsheet.d.ts +2 -2
- package/lib/components/Tearsheet/TearsheetShell.js +6 -2
- package/lib/components/Toolbar/ToolbarButton.d.ts +12 -1
- package/lib/components/Toolbar/ToolbarButton.js +15 -6
- package/lib/global/js/hooks/useFocus.d.ts +1 -1
- package/lib/global/js/hooks/useFocus.js +40 -24
- package/lib/global/js/utils/keyboardNavigation.d.ts +27 -0
- package/lib/global/js/utils/keyboardNavigation.js +43 -0
- package/lib/global/js/utils/wrapFocus.d.ts +25 -0
- package/lib/global/js/utils/wrapFocus.js +73 -0
- package/package.json +4 -4
- package/scss/components/ConditionBuilder/_condition-builder.scss +1 -1
- package/scss/components/ConditionBuilder/styles/_conditionBuilderItem.scss +33 -22
- package/scss/components/Datagrid/styles/_datagrid.scss +7 -0
- package/scss/components/Datagrid/styles/_useActionsColumn.scss +4 -0
- package/scss/components/EditInPlace/_edit-in-place.scss +2 -2
- package/telemetry.yml +15 -6
- package/es/components/ConditionBuilder/ConditionBuilderContext/DataConfigs.d.ts +0 -28
- package/es/components/ConditionBuilder/ConditionBuilderContext/DataConfigs.js +0 -123
- package/lib/components/ConditionBuilder/ConditionBuilderContext/DataConfigs.d.ts +0 -28
- package/lib/components/ConditionBuilder/ConditionBuilderContext/DataConfigs.js +0 -131
@@ -254,7 +254,11 @@ var TearsheetShell = /*#__PURE__*/React__default["default"].forwardRef(function
|
|
254
254
|
}
|
255
255
|
return _rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty({}, "--".concat(bc, "--stacking-scale-factor-single"), (width - 32) / width), "--".concat(bc, "--stacking-scale-factor-double"), (width - 64) / width);
|
256
256
|
};
|
257
|
-
return renderPortalUse( /*#__PURE__*/React__default["default"].createElement(react.
|
257
|
+
return renderPortalUse( /*#__PURE__*/React__default["default"].createElement(react.unstable_FeatureFlags, {
|
258
|
+
flags: {
|
259
|
+
'enable-experimental-focus-wrap-without-sentinels': true
|
260
|
+
}
|
261
|
+
}, /*#__PURE__*/React__default["default"].createElement(react.ComposedModal, _rollupPluginBabelHelpers["extends"]({}, rest, {
|
258
262
|
"aria-label": ariaLabel || getNodeTextContent.getNodeTextContent(title),
|
259
263
|
className: cx__default["default"](bc, className, _rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty({}, "".concat(bc, "--stacked-").concat(position, "-of-").concat(depth),
|
260
264
|
// Don't apply this on the initial open of a single tearsheet.
|
@@ -321,7 +325,7 @@ var TearsheetShell = /*#__PURE__*/React__default["default"].forwardRef(function
|
|
321
325
|
})))), /*#__PURE__*/React__default["default"].createElement("div", {
|
322
326
|
className: "".concat(bc, "__resize-detector"),
|
323
327
|
ref: resizer
|
324
|
-
})));
|
328
|
+
}))));
|
325
329
|
} else {
|
326
330
|
pconsole["default"].warn('Tearsheet not rendered: maximum stacking depth exceeded.');
|
327
331
|
return null;
|
@@ -13,8 +13,12 @@ export interface ToolbarButtonProps extends React.ComponentProps<typeof IconButt
|
|
13
13
|
caret?: boolean;
|
14
14
|
/** Provide an optional class to be applied to the containing node */
|
15
15
|
className?: string;
|
16
|
+
/**
|
17
|
+
* @deprecated use `label` instead
|
18
|
+
* Specifies the label for the icon button */
|
19
|
+
iconDescription?: string;
|
16
20
|
/** Specifies the label for the icon button */
|
17
|
-
|
21
|
+
label: string;
|
18
22
|
/** Specifies the icon to be used by the ToolbarButton component */
|
19
23
|
renderIcon: React.ElementType;
|
20
24
|
}
|
@@ -22,3 +26,10 @@ export interface ToolbarButtonProps extends React.ComponentProps<typeof IconButt
|
|
22
26
|
export declare let ToolbarButton: React.ForwardRefExoticComponent<ToolbarButtonProps & {
|
23
27
|
children?: React.ReactNode;
|
24
28
|
} & React.RefAttributes<unknown>>;
|
29
|
+
export declare const deprecatedProps: {
|
30
|
+
/**
|
31
|
+
* **Deprecated**
|
32
|
+
* Specifies the label for the icon button
|
33
|
+
* */
|
34
|
+
iconDescription: import("prop-types").Requireable<string>;
|
35
|
+
};
|
@@ -22,7 +22,7 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
|
|
22
22
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
23
23
|
var cx__default = /*#__PURE__*/_interopDefaultLegacy(cx);
|
24
24
|
|
25
|
-
var _excluded = ["caret", "children", "className", "renderIcon", "iconDescription"];
|
25
|
+
var _excluded = ["caret", "children", "className", "renderIcon", "iconDescription", "label"];
|
26
26
|
var blockClass = "".concat(Toolbar.blockClass, "__button");
|
27
27
|
/** Toolbar buttons are common functions performed as part of a products interface or an open window. */
|
28
28
|
exports.ToolbarButton = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
@@ -33,13 +33,14 @@ exports.ToolbarButton = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
33
33
|
className = _ref.className,
|
34
34
|
renderIcon = _ref.renderIcon,
|
35
35
|
_ref$iconDescription = _ref.iconDescription,
|
36
|
-
|
36
|
+
deprecated_iconDescription = _ref$iconDescription === void 0 ? '' : _ref$iconDescription,
|
37
|
+
label = _ref.label,
|
37
38
|
rest = _rollupPluginBabelHelpers.objectWithoutProperties(_ref, _excluded);
|
38
39
|
var Icon = renderIcon;
|
39
40
|
return /*#__PURE__*/React__default["default"].createElement(react.IconButton, _rollupPluginBabelHelpers["extends"]({
|
40
41
|
align: (_useContext = React.useContext(Toolbar.ToolbarContext)) !== null && _useContext !== void 0 && _useContext.vertical ? 'right' : 'top'
|
41
42
|
}, rest, {
|
42
|
-
label:
|
43
|
+
label: label !== null && label !== void 0 ? label : deprecated_iconDescription,
|
43
44
|
ref: ref,
|
44
45
|
className: cx__default["default"](className, _rollupPluginBabelHelpers.defineProperty({}, "".concat(blockClass, "--caret"), caret)),
|
45
46
|
kind: "ghost",
|
@@ -50,7 +51,14 @@ exports.ToolbarButton = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
50
51
|
});
|
51
52
|
var componentName = 'ToolbarButton';
|
52
53
|
exports.ToolbarButton.displayName = componentName;
|
53
|
-
|
54
|
+
var deprecatedProps = {
|
55
|
+
/**
|
56
|
+
* **Deprecated**
|
57
|
+
* Specifies the label for the icon button
|
58
|
+
* */
|
59
|
+
iconDescription: index.propTypesExports.string
|
60
|
+
};
|
61
|
+
exports.ToolbarButton.propTypes = _rollupPluginBabelHelpers.objectSpread2({
|
54
62
|
/** Determines whether the caret is rendered */
|
55
63
|
caret: index.propTypesExports.bool,
|
56
64
|
/** Provide the content of the `ToolbarButton` */
|
@@ -58,10 +66,11 @@ exports.ToolbarButton.propTypes = {
|
|
58
66
|
/** Provide an optional class to be applied to the containing node */
|
59
67
|
className: index.propTypesExports.string,
|
60
68
|
/** Specifies the label for the icon button */
|
61
|
-
|
69
|
+
label: index.propTypesExports.string.isRequired,
|
62
70
|
/** Specifies the icon to be used by the ToolbarButton component */
|
63
71
|
renderIcon: index.propTypesExports.func.isRequired
|
64
|
-
};
|
72
|
+
}, deprecatedProps);
|
65
73
|
exports.ToolbarButton = settings.pkg.checkComponentEnabled(exports.ToolbarButton, componentName);
|
66
74
|
|
67
75
|
exports.blockClass = blockClass;
|
76
|
+
exports.deprecatedProps = deprecatedProps;
|
@@ -4,7 +4,7 @@ export function useFocus(modalRef: any, selectorPrimaryFocus: any): {
|
|
4
4
|
lastElement: any;
|
5
5
|
allElements: any;
|
6
6
|
specifiedElement: any;
|
7
|
-
keyDownListener: (event: any) => void
|
7
|
+
keyDownListener: (event: any) => Promise<void>;
|
8
8
|
getFocusable: () => {
|
9
9
|
first: any;
|
10
10
|
last: any;
|
@@ -9,9 +9,11 @@
|
|
9
9
|
|
10
10
|
Object.defineProperty(exports, '__esModule', { value: true });
|
11
11
|
|
12
|
+
var _rollupPluginBabelHelpers = require('../../../_virtual/_rollupPluginBabelHelpers.js');
|
12
13
|
var react = require('@carbon/react');
|
13
14
|
var settings = require('../../../settings.js');
|
14
15
|
var React = require('react');
|
16
|
+
var wait = require('../utils/wait.js');
|
15
17
|
|
16
18
|
var getSpecificElement = function getSpecificElement(parentEl, elementId) {
|
17
19
|
var element = parentEl === null || parentEl === void 0 ? void 0 : parentEl.querySelector(elementId);
|
@@ -20,6 +22,7 @@ var getSpecificElement = function getSpecificElement(parentEl, elementId) {
|
|
20
22
|
var useFocus = function useFocus(modalRef, selectorPrimaryFocus) {
|
21
23
|
var carbonPrefix = react.usePrefix();
|
22
24
|
var tearsheetBaseClass = "".concat(settings.pkg.prefix, "--tearsheet");
|
25
|
+
var sidePanelBaseClass = "".concat(settings.pkg.prefix, "--side-panel");
|
23
26
|
// Querying focusable element in the modal
|
24
27
|
// Query to exclude hidden elements in the modal from querySelectorAll() method
|
25
28
|
// feel free to include more if needed :)
|
@@ -31,8 +34,9 @@ var useFocus = function useFocus(modalRef, selectorPrimaryFocus) {
|
|
31
34
|
var queryTextarea = "textarea".concat(notQuery);
|
32
35
|
var queryLink = "[href]".concat(notQuery);
|
33
36
|
var queryTabIndex = "[tabindex=\"0\"]".concat(notQuery);
|
37
|
+
var querySidePanelScroll = ".".concat(sidePanelBaseClass, "--scrolls");
|
34
38
|
// Final query
|
35
|
-
var query = "".concat(queryButton, ",").concat(queryLink, ",").concat(queryInput, ",").concat(querySelect, ",").concat(queryTextarea, ",
|
39
|
+
var query = "".concat(queryButton, ",").concat(queryLink, ",").concat(queryInput, ",").concat(querySelect, ",").concat(queryTextarea, ",").concat(queryTabIndex, ",").concat(querySidePanelScroll);
|
36
40
|
var modalEl = modalRef === null || modalRef === void 0 ? void 0 : modalRef.current;
|
37
41
|
var getFocusable = React.useCallback(function () {
|
38
42
|
var _focusableElements, _focusableElements2, _focusableElements3, _focusableElements4;
|
@@ -58,30 +62,42 @@ var useFocus = function useFocus(modalRef, selectorPrimaryFocus) {
|
|
58
62
|
React.useEffect(function () {
|
59
63
|
getFocusable();
|
60
64
|
}, [getFocusable]);
|
61
|
-
var handleKeyDown = function
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
65
|
+
var handleKeyDown = /*#__PURE__*/function () {
|
66
|
+
var _ref = _rollupPluginBabelHelpers.asyncToGenerator( /*#__PURE__*/_rollupPluginBabelHelpers.regeneratorRuntime().mark(function _callee(event) {
|
67
|
+
var _document, _document2, _getFocusable, first, last, all;
|
68
|
+
return _rollupPluginBabelHelpers.regeneratorRuntime().wrap(function _callee$(_context) {
|
69
|
+
while (1) switch (_context.prev = _context.next) {
|
70
|
+
case 0:
|
71
|
+
if (!(event.key === 'Tab')) {
|
72
|
+
_context.next = 5;
|
73
|
+
break;
|
74
|
+
}
|
75
|
+
// updating the focusable elements list
|
76
|
+
_getFocusable = getFocusable(), first = _getFocusable.first, last = _getFocusable.last, all = _getFocusable.all;
|
77
|
+
_context.next = 4;
|
78
|
+
return wait["default"](1);
|
79
|
+
case 4:
|
80
|
+
if (event.shiftKey && !Array.prototype.includes.call(all, (_document = document) === null || _document === void 0 ? void 0 : _document.activeElement)) {
|
81
|
+
// Prevents the default "Tab" behavior
|
82
|
+
event.preventDefault();
|
83
|
+
// if the user press shift+tab and the current element not in focusable items
|
84
|
+
last === null || last === void 0 || last.focus();
|
85
|
+
} else if (!Array.prototype.includes.call(all, (_document2 = document) === null || _document2 === void 0 ? void 0 : _document2.activeElement)) {
|
86
|
+
event.preventDefault();
|
87
|
+
// user pressing tab key only then
|
88
|
+
// focusing the first element if the current element is not in focusable items
|
89
|
+
first === null || first === void 0 || first.focus();
|
90
|
+
}
|
91
|
+
case 5:
|
92
|
+
case "end":
|
93
|
+
return _context.stop();
|
81
94
|
}
|
82
|
-
},
|
83
|
-
}
|
84
|
-
|
95
|
+
}, _callee);
|
96
|
+
}));
|
97
|
+
return function handleKeyDown(_x) {
|
98
|
+
return _ref.apply(this, arguments);
|
99
|
+
};
|
100
|
+
}();
|
85
101
|
return {
|
86
102
|
firstElement: getFocusable().first,
|
87
103
|
lastElement: getFocusable().last,
|
@@ -0,0 +1,27 @@
|
|
1
|
+
/**
|
2
|
+
* Copyright IBM Corp. 2016, 2018
|
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
|
+
* Various utilities to help with a11y work
|
9
|
+
*/
|
10
|
+
/**
|
11
|
+
* A flag `node.compareDocumentPosition(target)` returns,
|
12
|
+
* that indicates `target` is located earlier than `node` in the document or `target` contains `node`.
|
13
|
+
*/
|
14
|
+
export const DOCUMENT_POSITION_BROAD_PRECEDING: number | false;
|
15
|
+
/**
|
16
|
+
* A flag `node.compareDocumentPosition(target)` returns,
|
17
|
+
* that indicates `target` is located later than `node` in the document or `node` contains `target`.
|
18
|
+
*/
|
19
|
+
export const DOCUMENT_POSITION_BROAD_FOLLOWING: number | false;
|
20
|
+
/**
|
21
|
+
* CSS selector that selects major nodes that are sequential-focusable.
|
22
|
+
*/
|
23
|
+
export const selectorTabbable: "\n a[href], area[href], input:not([disabled]):not([tabindex='-1']),\n button:not([disabled]):not([tabindex='-1']),select:not([disabled]):not([tabindex='-1']),\n textarea:not([disabled]):not([tabindex='-1']),\n iframe, object, embed, *[tabindex]:not([tabindex='-1']):not([disabled]), *[contenteditable=true]\n";
|
24
|
+
/**
|
25
|
+
* CSS selector that selects major nodes that are click focusable
|
26
|
+
*/
|
27
|
+
export const selectorFocusable: "\n a[href], area[href], input:not([disabled]),\n button:not([disabled]),select:not([disabled]),\n textarea:not([disabled]),\n iframe, object, embed, *[tabindex]:not([disabled]), *[contenteditable=true]\n";
|
@@ -0,0 +1,43 @@
|
|
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
|
+
/**
|
13
|
+
* Various utilities to help with a11y work
|
14
|
+
*/
|
15
|
+
|
16
|
+
/**
|
17
|
+
* A flag `node.compareDocumentPosition(target)` returns,
|
18
|
+
* that indicates `target` is located earlier than `node` in the document or `target` contains `node`.
|
19
|
+
*/
|
20
|
+
var DOCUMENT_POSITION_BROAD_PRECEDING =
|
21
|
+
// Checks `typeof Node` for `react-docgen`
|
22
|
+
typeof Node !== 'undefined' &&
|
23
|
+
// eslint-disable-next-line ssr-friendly/no-dom-globals-in-module-scope
|
24
|
+
Node.DOCUMENT_POSITION_PRECEDING | Node.DOCUMENT_POSITION_CONTAINS;
|
25
|
+
|
26
|
+
/**
|
27
|
+
* A flag `node.compareDocumentPosition(target)` returns,
|
28
|
+
* that indicates `target` is located later than `node` in the document or `node` contains `target`.
|
29
|
+
*/
|
30
|
+
var DOCUMENT_POSITION_BROAD_FOLLOWING =
|
31
|
+
// Checks `typeof Node` for `react-docgen`
|
32
|
+
typeof Node !== 'undefined' &&
|
33
|
+
// eslint-disable-next-line ssr-friendly/no-dom-globals-in-module-scope
|
34
|
+
Node.DOCUMENT_POSITION_FOLLOWING | Node.DOCUMENT_POSITION_CONTAINED_BY;
|
35
|
+
|
36
|
+
/**
|
37
|
+
* CSS selector that selects major nodes that are sequential-focusable.
|
38
|
+
*/
|
39
|
+
var selectorTabbable = "\n a[href], area[href], input:not([disabled]):not([tabindex='-1']),\n button:not([disabled]):not([tabindex='-1']),select:not([disabled]):not([tabindex='-1']),\n textarea:not([disabled]):not([tabindex='-1']),\n iframe, object, embed, *[tabindex]:not([tabindex='-1']):not([disabled]), *[contenteditable=true]\n";
|
40
|
+
|
41
|
+
exports.DOCUMENT_POSITION_BROAD_FOLLOWING = DOCUMENT_POSITION_BROAD_FOLLOWING;
|
42
|
+
exports.DOCUMENT_POSITION_BROAD_PRECEDING = DOCUMENT_POSITION_BROAD_PRECEDING;
|
43
|
+
exports.selectorTabbable = selectorTabbable;
|
@@ -0,0 +1,25 @@
|
|
1
|
+
export default wrapFocus;
|
2
|
+
/**
|
3
|
+
* @param {Node} node A DOM node.
|
4
|
+
* @param {string[]} selectorsFloatingMenus The CSS selectors that matches floating menus.
|
5
|
+
* @returns {boolean} `true` of the given `node` is in a floating menu.
|
6
|
+
*/
|
7
|
+
export function elementOrParentIsFloatingMenu(node: Node, selectorsFloatingMenus?: string[]): boolean;
|
8
|
+
/**
|
9
|
+
* Ensures the focus is kept in the given `modalNode`, implementing "focus-wrap" behavior.
|
10
|
+
* @param {object} options The options.
|
11
|
+
* @param {Node|null} options.bodyNode The DOM node of the inner modal.
|
12
|
+
* @param {Node|null} options.startTrapNode The DOM node of the focus sentinel the is placed earlier next to `modalNode`.
|
13
|
+
* @param {Node|null} options.endTrapNode The DOM node of the focus sentinel the is placed next to `modalNode`.
|
14
|
+
* @param {Node} options.currentActiveNode The DOM node that has focus.
|
15
|
+
* @param {Node} options.oldActiveNode The DOM node that previously had focus.
|
16
|
+
* @param {string[]} [options.selectorsFloatingMenus] The CSS selectors that matches floating menus
|
17
|
+
*/
|
18
|
+
declare function wrapFocus({ bodyNode, startTrapNode, endTrapNode, currentActiveNode, oldActiveNode, selectorsFloatingMenus, }: {
|
19
|
+
bodyNode: Node | null;
|
20
|
+
startTrapNode: Node | null;
|
21
|
+
endTrapNode: Node | null;
|
22
|
+
currentActiveNode: Node;
|
23
|
+
oldActiveNode: Node;
|
24
|
+
selectorsFloatingMenus?: string[] | undefined;
|
25
|
+
}): void;
|
@@ -0,0 +1,73 @@
|
|
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 keyboardNavigation = require('./keyboardNavigation.js');
|
13
|
+
var settings = require('../../../settings.js');
|
14
|
+
|
15
|
+
/**
|
16
|
+
* @param {Node} node A DOM node.
|
17
|
+
* @param {string[]} selectorsFloatingMenus The CSS selectors that matches floating menus.
|
18
|
+
* @returns {boolean} `true` of the given `node` is in a floating menu.
|
19
|
+
*/
|
20
|
+
function elementOrParentIsFloatingMenu(node) {
|
21
|
+
var selectorsFloatingMenus = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [".".concat(settings.carbon.prefix, "--overflow-menu-options"), ".".concat(settings.carbon.prefix, "--tooltip"), '.flatpickr-calendar'];
|
22
|
+
if (node && typeof node.closest === 'function') {
|
23
|
+
return selectorsFloatingMenus.some(function (selector) {
|
24
|
+
return node.closest(selector);
|
25
|
+
});
|
26
|
+
}
|
27
|
+
}
|
28
|
+
|
29
|
+
/**
|
30
|
+
* Ensures the focus is kept in the given `modalNode`, implementing "focus-wrap" behavior.
|
31
|
+
* @param {object} options The options.
|
32
|
+
* @param {Node|null} options.bodyNode The DOM node of the inner modal.
|
33
|
+
* @param {Node|null} options.startTrapNode The DOM node of the focus sentinel the is placed earlier next to `modalNode`.
|
34
|
+
* @param {Node|null} options.endTrapNode The DOM node of the focus sentinel the is placed next to `modalNode`.
|
35
|
+
* @param {Node} options.currentActiveNode The DOM node that has focus.
|
36
|
+
* @param {Node} options.oldActiveNode The DOM node that previously had focus.
|
37
|
+
* @param {string[]} [options.selectorsFloatingMenus] The CSS selectors that matches floating menus
|
38
|
+
*/
|
39
|
+
function wrapFocus(_ref) {
|
40
|
+
var bodyNode = _ref.bodyNode,
|
41
|
+
startTrapNode = _ref.startTrapNode,
|
42
|
+
endTrapNode = _ref.endTrapNode,
|
43
|
+
currentActiveNode = _ref.currentActiveNode,
|
44
|
+
oldActiveNode = _ref.oldActiveNode,
|
45
|
+
selectorsFloatingMenus = _ref.selectorsFloatingMenus;
|
46
|
+
if (bodyNode && currentActiveNode && oldActiveNode && !bodyNode.contains(currentActiveNode) && !elementOrParentIsFloatingMenu(currentActiveNode, selectorsFloatingMenus)) {
|
47
|
+
var comparisonResult = oldActiveNode.compareDocumentPosition(currentActiveNode);
|
48
|
+
if (currentActiveNode === startTrapNode || comparisonResult & keyboardNavigation.DOCUMENT_POSITION_BROAD_PRECEDING) {
|
49
|
+
var arrayNodes = Array.from(bodyNode.querySelectorAll(keyboardNavigation.selectorTabbable));
|
50
|
+
arrayNodes.reverse();
|
51
|
+
var tabbable = arrayNodes.find(function (elem) {
|
52
|
+
return Boolean(elem.offsetParent);
|
53
|
+
});
|
54
|
+
if (tabbable) {
|
55
|
+
tabbable.focus();
|
56
|
+
} else if (bodyNode !== oldActiveNode) {
|
57
|
+
bodyNode.focus();
|
58
|
+
}
|
59
|
+
} else if (currentActiveNode === endTrapNode || comparisonResult & keyboardNavigation.DOCUMENT_POSITION_BROAD_FOLLOWING) {
|
60
|
+
var _tabbable = Array.prototype.find.call(bodyNode.querySelectorAll(keyboardNavigation.selectorTabbable), function (elem) {
|
61
|
+
return Boolean(elem.offsetParent);
|
62
|
+
});
|
63
|
+
if (_tabbable) {
|
64
|
+
_tabbable.focus();
|
65
|
+
} else if (bodyNode !== oldActiveNode) {
|
66
|
+
bodyNode.focus();
|
67
|
+
}
|
68
|
+
}
|
69
|
+
}
|
70
|
+
}
|
71
|
+
|
72
|
+
exports["default"] = wrapFocus;
|
73
|
+
exports.elementOrParentIsFloatingMenu = elementOrParentIsFloatingMenu;
|
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.
|
4
|
+
"version": "2.49.0-rc.0",
|
5
5
|
"license": "Apache-2.0",
|
6
6
|
"main": "lib/index.js",
|
7
7
|
"module": "es/index.js",
|
@@ -81,7 +81,7 @@
|
|
81
81
|
"fs-extra": "^11.2.0",
|
82
82
|
"glob": "^10.3.10",
|
83
83
|
"jest": "^29.7.0",
|
84
|
-
"jest-config-ibm-cloud-cognitive": "^1.
|
84
|
+
"jest-config-ibm-cloud-cognitive": "^1.8.0-rc.0",
|
85
85
|
"jest-environment-jsdom": "^29.7.0",
|
86
86
|
"namor": "^1.1.2",
|
87
87
|
"npm-check-updates": "^16.14.12",
|
@@ -96,7 +96,7 @@
|
|
96
96
|
"dependencies": {
|
97
97
|
"@babel/runtime": "^7.23.9",
|
98
98
|
"@carbon/feature-flags": "^0.20.0",
|
99
|
-
"@carbon/ibm-products-styles": "^2.
|
99
|
+
"@carbon/ibm-products-styles": "^2.45.0-rc.0",
|
100
100
|
"@carbon/telemetry": "^0.1.0",
|
101
101
|
"@dnd-kit/core": "^6.0.8",
|
102
102
|
"@dnd-kit/modifiers": "^7.0.0",
|
@@ -120,5 +120,5 @@
|
|
120
120
|
"react": "^16.8.6 || ^17.0.1 || ^18.2.0",
|
121
121
|
"react-dom": "^16.8.6 || ^17.0.1 || ^18.2.0"
|
122
122
|
},
|
123
|
-
"gitHead": "
|
123
|
+
"gitHead": "42f33765dd86e74f7192c6098de059f2f2c33501"
|
124
124
|
}
|
@@ -61,7 +61,7 @@ $block-class: #{c4p-settings.$pkg-prefix}--condition-builder;
|
|
61
61
|
margin-top: $spacing-03;
|
62
62
|
margin-bottom: $spacing-03;
|
63
63
|
}
|
64
|
-
.#{$block-class}
|
64
|
+
.#{$block-class}__Hierarchical
|
65
65
|
.#{$block-class}__actions-container
|
66
66
|
.#{$block-class}__condition-wrapper {
|
67
67
|
flex-direction: column;
|
@@ -54,7 +54,8 @@ $block-class: #{c4p-settings.$pkg-prefix}--condition-builder;
|
|
54
54
|
}
|
55
55
|
|
56
56
|
.#{$block-class}__item-option__option {
|
57
|
-
|
57
|
+
display: grid;
|
58
|
+
min-height: 2rem;
|
58
59
|
cursor: pointer;
|
59
60
|
padding-inline: $spacing-05;
|
60
61
|
}
|
@@ -204,7 +205,7 @@ $colors: (
|
|
204
205
|
.#{$block-class}__group-preview[data-color-index='#{($i%list.length($colors))}']
|
205
206
|
button {
|
206
207
|
/* stylelint-disable-next-line carbon/theme-token-use */
|
207
|
-
$next-group-color: list.nth($colors, ($i%list.length($colors)) +1);
|
208
|
+
$next-group-color: list.nth($colors, (($i%list.length($colors)) + 1));
|
208
209
|
/* stylelint-disable-next-line carbon/theme-token-use */
|
209
210
|
box-shadow: inset 0 #{$spacing-01} 0 0 list.nth($next-group-color, 1);
|
210
211
|
}
|
@@ -213,7 +214,7 @@ $colors: (
|
|
213
214
|
@for $el-index from 1 through 50 {
|
214
215
|
$item-index: $el-index;
|
215
216
|
/* stylelint-disable-next-line carbon/theme-token-use */
|
216
|
-
$item-index: ((($item-index - 1) % $group-colors-length) +1);
|
217
|
+
$item-index: ((($item-index - 1) % $group-colors-length) + 1);
|
217
218
|
#{$selector} {
|
218
219
|
@if $item-index != 1 {
|
219
220
|
/* stylelint-disable-next-line carbon/theme-token-use */
|
@@ -231,7 +232,7 @@ $colors: (
|
|
231
232
|
}
|
232
233
|
}
|
233
234
|
|
234
|
-
.#{$block-class}
|
235
|
+
.#{$block-class}__Hierarchical {
|
235
236
|
.#{$block-class}__condition-wrapper > :nth-child(n + 3) {
|
236
237
|
flex-basis: 100%;
|
237
238
|
}
|
@@ -263,25 +264,27 @@ $colors: (
|
|
263
264
|
align-self: center;
|
264
265
|
margin-left: auto;
|
265
266
|
}
|
266
|
-
.#{$block-class}
|
267
|
-
|
268
|
-
|
269
|
-
|
270
|
-
|
271
|
-
|
267
|
+
.#{$block-class}__content-container {
|
268
|
+
.#{$block-class}__add-button-wrapper > :nth-child(1) {
|
269
|
+
@include actions-animation(-100%);
|
270
|
+
}
|
271
|
+
.#{$block-class}__add-button-wrapper > :nth-child(2) {
|
272
|
+
@include actions-animation(-200%);
|
273
|
+
}
|
272
274
|
|
273
|
-
.#{$block-class}__condition-block:focus-within:first-child
|
274
|
-
|
275
|
-
|
276
|
-
.#{$block-class}__condition--interacting
|
277
|
-
|
278
|
-
|
279
|
-
|
280
|
-
|
281
|
-
|
282
|
-
|
283
|
-
|
284
|
-
|
275
|
+
.#{$block-class}__condition-block:focus-within:first-child
|
276
|
+
.#{$block-class}__add-button-wrapper
|
277
|
+
> span,
|
278
|
+
.#{$block-class}__condition--interacting
|
279
|
+
.#{$block-class}__add-button-wrapper
|
280
|
+
> span {
|
281
|
+
z-index: 0;
|
282
|
+
opacity: 1;
|
283
|
+
pointer-events: all;
|
284
|
+
transform: translateX(0);
|
285
|
+
/* stylelint-disable-next-line carbon/motion-easing-use */
|
286
|
+
transition: transform motion(exit, productive) $duration-fast-02;
|
287
|
+
}
|
285
288
|
}
|
286
289
|
|
287
290
|
.#{$block-class}__invalid-input {
|
@@ -295,3 +298,11 @@ $colors: (
|
|
295
298
|
fill: $icon-primary;
|
296
299
|
}
|
297
300
|
}
|
301
|
+
|
302
|
+
.#{$block-class}__statement_wrapper {
|
303
|
+
padding: $spacing-03 0;
|
304
|
+
|
305
|
+
:nth-child(2) {
|
306
|
+
color: $text-secondary;
|
307
|
+
}
|
308
|
+
}
|
@@ -779,6 +779,7 @@
|
|
779
779
|
}
|
780
780
|
|
781
781
|
.#{$block-class} .#{c4p-settings.$pkg-prefix}--datagrid__head-wrap {
|
782
|
+
overflow: hidden;
|
782
783
|
background-color: $layer-accent;
|
783
784
|
}
|
784
785
|
|
@@ -788,6 +789,12 @@
|
|
788
789
|
padding: 0;
|
789
790
|
}
|
790
791
|
|
792
|
+
.#{$block-class}
|
793
|
+
.#{c4p-settings.$carbon-prefix}--noLabel
|
794
|
+
svg.#{c4p-settings.$carbon-prefix}--btn__icon {
|
795
|
+
margin-inline-start: 0;
|
796
|
+
}
|
797
|
+
|
791
798
|
.#{$block-class}
|
792
799
|
.#{c4p-settings.$carbon-prefix}--action-list
|
793
800
|
.#{c4p-settings.$carbon-prefix}--btn__icon {
|
@@ -55,12 +55,12 @@ $carbon-input: #{$carbon-prefix}--text-input;
|
|
55
55
|
}
|
56
56
|
|
57
57
|
.#{$block-class}--invalid {
|
58
|
-
|
58
|
+
border: 2px solid $support-error;
|
59
59
|
}
|
60
60
|
|
61
61
|
.#{$block-class}--focused {
|
62
|
+
border: 2px solid $focus;
|
62
63
|
background: $field-01;
|
63
|
-
outline: 2px solid $focus;
|
64
64
|
}
|
65
65
|
|
66
66
|
.#{$block-class}__text-input {
|
package/telemetry.yml
CHANGED
@@ -32,6 +32,7 @@ collect:
|
|
32
32
|
- assistiveText
|
33
33
|
- assistiveTextDisabledInstructionsLabel
|
34
34
|
- assistiveTextInstructionsLabel
|
35
|
+
- autoAlign
|
35
36
|
- backButtonText
|
36
37
|
- backgroundColor
|
37
38
|
- batchActionMenuButtonLabel
|
@@ -219,7 +220,10 @@ collect:
|
|
219
220
|
- onContextMenuLabel
|
220
221
|
- onContextMenuValue
|
221
222
|
- onDataUpdate
|
223
|
+
- onFocus
|
222
224
|
- onMount
|
225
|
+
- onMouseEnter
|
226
|
+
- onMouseLeave
|
223
227
|
- onNext
|
224
228
|
- onOverflowTagChange
|
225
229
|
- onPrimaryButtonClick
|
@@ -343,6 +347,7 @@ collect:
|
|
343
347
|
- title
|
344
348
|
- titleSize
|
345
349
|
- toolbarBatchActions
|
350
|
+
- toolbarBatchActionsDisplayMin
|
346
351
|
- tooltipAlignment
|
347
352
|
- tooltipText
|
348
353
|
- totalVisibleColumns
|
@@ -502,7 +507,6 @@ collect:
|
|
502
507
|
- toggleLabel
|
503
508
|
- toggleLabelAlign
|
504
509
|
# Coachmark
|
505
|
-
- autoAlign
|
506
510
|
- overlayClassName
|
507
511
|
- overlayKind
|
508
512
|
- overlayRef
|
@@ -537,9 +541,6 @@ collect:
|
|
537
541
|
# ConditionBuilderButton
|
538
542
|
- hideLabel
|
539
543
|
- isInvalid
|
540
|
-
- onFocus
|
541
|
-
- onMouseEnter
|
542
|
-
- onMouseLeave
|
543
544
|
- tooltipAlign
|
544
545
|
- wrapperClassName
|
545
546
|
- wrapperProps
|
@@ -549,7 +550,11 @@ collect:
|
|
549
550
|
# ConditionBuilderItemDate
|
550
551
|
- parentRef
|
551
552
|
# ConditionBuilderProvider
|
553
|
+
- actionState
|
552
554
|
- conditionBuilderRef
|
555
|
+
- rootState
|
556
|
+
- setActionState
|
557
|
+
- setRootState
|
553
558
|
# ConditionConnector
|
554
559
|
- operator
|
555
560
|
# ConditionPreview
|
@@ -1101,12 +1106,13 @@ collect:
|
|
1101
1106
|
- radio
|
1102
1107
|
- selection
|
1103
1108
|
- text
|
1109
|
+
- textarea
|
1104
1110
|
# General - updateMethod
|
1105
1111
|
- batch
|
1106
1112
|
- instant
|
1107
1113
|
# General - variant
|
1108
|
-
-
|
1109
|
-
-
|
1114
|
+
- Hierarchical
|
1115
|
+
- Non-Hierarchical
|
1110
1116
|
# General - verticalPosition
|
1111
1117
|
- lower
|
1112
1118
|
- normal
|
@@ -1129,6 +1135,9 @@ collect:
|
|
1129
1135
|
- floating
|
1130
1136
|
- stacked
|
1131
1137
|
- tooltip
|
1138
|
+
# ConditionBlock - conjunction
|
1139
|
+
- and
|
1140
|
+
- or
|
1132
1141
|
# ConditionPreview - previewType
|
1133
1142
|
- condition
|
1134
1143
|
- newGroup
|