@carbon/ibm-products 2.33.0 → 2.35.0
Sign up to get free protection for your applications and to get access to all the features.
- package/css/index-full-carbon.css +31990 -32061
- 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 +38 -17
- 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 +636 -24096
- 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 +2342 -17830
- 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/ActionSet/ActionSet.d.ts +38 -2
- package/es/components/ActionSet/ActionSet.js +3 -5
- package/es/components/CoachmarkFixed/CoachmarkFixed.js +1 -1
- package/es/components/ConditionBuilder/ConditionBuilder.d.ts +5 -0
- package/es/components/ConditionBuilder/ConditionBuilder.js +125 -0
- package/es/components/ConditionBuilder/ConditionBuilderContent/ConditionBuilderContent.d.ts +10 -0
- package/es/components/ConditionBuilder/ConditionBuilderContent/ConditionBuilderContent.js +92 -0
- package/es/components/ConditionBuilder/ConditionBuilderContext/DataTreeContext.d.ts +38 -0
- package/es/components/ConditionBuilder/ConditionBuilderContext/DataTreeContext.js +88 -0
- package/es/components/ConditionBuilder/assets/sampleInput.d.ts +58 -0
- package/es/components/ConditionBuilder/index.d.ts +1 -0
- package/es/components/CreateFullPage/CreateFullPage.js +3 -19
- package/es/components/CreateFullPage/CreateFullPageStep.js +22 -7
- package/es/components/CreateSidePanel/CreateSidePanel.d.ts +81 -2
- package/es/components/CreateSidePanel/CreateSidePanel.js +5 -2
- package/es/components/CreateTearsheetNarrow/CreateTearsheetNarrow.d.ts +82 -2
- package/es/components/DataSpreadsheet/DataSpreadsheet.js +5 -117
- package/es/components/DataSpreadsheet/DataSpreadsheetBody.js +12 -111
- package/es/components/DataSpreadsheet/utils/commonEventHandlers.d.ts +4 -0
- package/es/components/DataSpreadsheet/utils/commonEventHandlers.js +304 -0
- package/es/components/Datagrid/Datagrid/DatagridContent.js +2 -1
- package/es/components/Datagrid/Datagrid/DatagridEmptyBody.js +4 -1
- package/es/components/Datagrid/Datagrid/DatagridRefBody.js +3 -1
- package/es/components/Datagrid/Datagrid/DatagridSimpleBody.js +4 -1
- package/es/components/Datagrid/Datagrid/DatagridVirtualBody.js +6 -2
- package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/Columns.d.ts +1 -1
- package/es/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditCell/InlineEditCell.js +4 -0
- package/es/components/Datagrid/Datagrid/addons/InlineEdit/handleGridKeyPress.d.ts +2 -1
- package/es/components/Datagrid/Datagrid/addons/InlineEdit/handleGridKeyPress.js +4 -3
- package/es/components/Datagrid/Datagrid/addons/stateReducer.js +2 -1
- package/es/components/Datagrid/useEditableCell.js +15 -0
- package/es/components/DelimitedList/DelimitedList.d.ts +27 -2
- package/es/components/DelimitedList/DelimitedList.js +0 -1
- package/es/components/EditInPlace/EditInPlace.d.ts +97 -5
- package/es/components/EditInPlace/EditInPlace.js +10 -6
- package/es/components/EditSidePanel/EditSidePanel.d.ts +92 -2
- package/es/components/EditSidePanel/EditSidePanel.js +8 -10
- package/es/components/EmptyStates/ErrorEmptyState/ErrorEmptyState.d.ts +61 -2
- package/es/components/EmptyStates/ErrorEmptyState/ErrorEmptyState.js +1 -3
- package/es/components/EmptyStates/NoDataEmptyState/NoDataEmptyState.d.ts +61 -2
- package/es/components/EmptyStates/NoDataEmptyState/NoDataEmptyState.js +1 -2
- package/es/components/EmptyStates/NotFoundEmptyState/NotFoundEmptyState.d.ts +61 -2
- package/es/components/EmptyStates/NotFoundEmptyState/NotFoundEmptyState.js +1 -3
- package/es/components/ExportModal/ExportModal.d.ts +110 -2
- package/es/components/ExportModal/ExportModal.js +10 -4
- package/es/components/FilterPanel/FilterPanelAccordion/FilterPanelAccordion.d.ts +5 -0
- package/es/components/FilterPanel/FilterPanelAccordion/FilterPanelAccordion.js +83 -0
- package/es/components/FilterPanel/FilterPanelAccordionItem/FilterPanelAccordionItem.d.ts +5 -0
- package/es/components/FilterPanel/FilterPanelAccordionItem/FilterPanelAccordionItem.js +94 -0
- package/es/components/FilterPanel/FilterPanelCheckbox/FilterPanelCheckbox.d.ts +5 -0
- package/es/components/FilterPanel/FilterPanelCheckbox/FilterPanelCheckbox.js +8 -10
- package/es/components/FilterPanel/FilterPanelCheckbox/index.d.ts +1 -0
- package/es/components/FilterPanel/FilterPanelCheckboxWithOverflow/FilterPanelCheckboxWithOverflow.d.ts +10 -0
- package/es/components/FilterPanel/FilterPanelCheckboxWithOverflow/FilterPanelCheckboxWithOverflow.js +157 -0
- package/es/components/FilterPanel/FilterPanelGroup/FilterPanelGroup.d.ts +5 -0
- package/es/components/FilterPanel/FilterPanelGroup/FilterPanelGroup.js +72 -0
- package/es/components/FilterPanel/FilterPanelLabel/FilterPanelLabel.js +2 -2
- package/es/components/FilterPanel/FilterPanelSearch/FilterPanelSearch.d.ts +5 -0
- package/es/components/FilterPanel/FilterPanelSearch/FilterPanelSearch.js +92 -0
- package/es/components/FilterPanel/index.d.ts +5 -0
- package/es/components/HTTPErrors/HTTPError403/HTTPError403.d.ts +40 -2
- package/es/components/HTTPErrors/HTTPError403/HTTPError403.js +1 -1
- package/es/components/HTTPErrors/HTTPError404/HTTPError404.d.ts +40 -2
- package/es/components/HTTPErrors/HTTPError404/HTTPError404.js +1 -1
- package/es/components/ImportModal/ImportModal.d.ts +136 -2
- package/es/components/ImportModal/ImportModal.js +3 -2
- package/es/components/InlineTip/InlineTip.d.ts +90 -2
- package/es/components/InlineTip/InlineTip.js +3 -2
- package/es/components/Nav/Nav.js +1 -1
- package/es/components/Nav/NavList.js +7 -7
- package/es/components/NotificationsPanel/NotificationsPanel.js +1 -1
- package/es/components/OptionsTile/OptionsTile.d.ts +77 -3
- package/es/components/OptionsTile/OptionsTile.js +9 -20
- package/es/components/PageHeader/PageHeader.js +3 -3
- package/es/components/PageHeader/PageHeaderUtils.d.ts +1 -1
- package/es/components/PageHeader/PageHeaderUtils.js +4 -3
- package/es/components/RemoveModal/RemoveModal.d.ts +81 -7
- package/es/components/RemoveModal/RemoveModal.js +1 -0
- package/es/components/ScrollGradient/ScrollGradient.d.ts +5 -0
- package/es/components/ScrollGradient/ScrollGradient.js +156 -0
- package/es/components/ScrollGradient/constants.d.ts +15 -0
- package/es/components/ScrollGradient/constants.js +121 -0
- package/es/components/ScrollGradient/index.d.ts +1 -0
- package/es/components/SidePanel/SidePanel.d.ts +144 -2
- package/es/components/SidePanel/SidePanel.js +100 -75
- package/es/components/StatusIcon/StatusIcon.d.ts +34 -2
- package/es/components/StatusIcon/StatusIcon.js +97 -95
- package/es/components/SteppedAnimatedMedia/SteppedAnimatedMedia.d.ts +23 -2
- package/es/components/SteppedAnimatedMedia/SteppedAnimatedMedia.js +6 -5
- package/es/components/TagOverflow/TagOverflow.d.ts +5 -0
- package/es/components/TagOverflow/TagOverflow.js +209 -0
- package/es/components/TagOverflow/constants.d.ts +14 -0
- package/es/components/TagOverflow/constants.js +30 -0
- package/es/components/TagOverflow/index.d.ts +1 -0
- package/es/components/Tearsheet/TearsheetNarrow.d.ts +105 -6
- package/es/components/Tearsheet/TearsheetNarrow.js +6 -1
- package/es/components/Toolbar/Toolbar.d.ts +23 -5
- package/es/components/Toolbar/Toolbar.js +30 -26
- package/es/components/TruncatedList/TruncatedList.js +5 -3
- package/es/components/UserAvatar/UserAvatar.js +7 -4
- package/es/components/index.d.ts +5 -2
- package/es/global/js/package-settings.d.ts +8 -0
- package/es/global/js/package-settings.js +8 -0
- package/es/index.js +9 -0
- package/es/settings.d.ts +8 -0
- package/lib/components/ActionSet/ActionSet.d.ts +38 -2
- package/lib/components/ActionSet/ActionSet.js +3 -5
- package/lib/components/CoachmarkFixed/CoachmarkFixed.js +1 -1
- package/lib/components/ConditionBuilder/ConditionBuilder.d.ts +5 -0
- package/lib/components/ConditionBuilder/ConditionBuilder.js +132 -0
- package/lib/components/ConditionBuilder/ConditionBuilderContent/ConditionBuilderContent.d.ts +10 -0
- package/lib/components/ConditionBuilder/ConditionBuilderContent/ConditionBuilderContent.js +100 -0
- package/lib/components/ConditionBuilder/ConditionBuilderContext/DataTreeContext.d.ts +38 -0
- package/lib/components/ConditionBuilder/ConditionBuilderContext/DataTreeContext.js +98 -0
- package/lib/components/ConditionBuilder/assets/sampleInput.d.ts +58 -0
- package/lib/components/ConditionBuilder/index.d.ts +1 -0
- package/lib/components/CreateFullPage/CreateFullPage.js +2 -18
- package/lib/components/CreateFullPage/CreateFullPageStep.js +20 -5
- package/lib/components/CreateSidePanel/CreateSidePanel.d.ts +81 -2
- package/lib/components/CreateSidePanel/CreateSidePanel.js +5 -2
- package/lib/components/CreateTearsheetNarrow/CreateTearsheetNarrow.d.ts +82 -2
- package/lib/components/DataSpreadsheet/DataSpreadsheet.js +5 -117
- package/lib/components/DataSpreadsheet/DataSpreadsheetBody.js +12 -111
- package/lib/components/DataSpreadsheet/utils/commonEventHandlers.d.ts +4 -0
- package/lib/components/DataSpreadsheet/utils/commonEventHandlers.js +311 -0
- package/lib/components/Datagrid/Datagrid/DatagridContent.js +2 -1
- package/lib/components/Datagrid/Datagrid/DatagridEmptyBody.js +4 -1
- package/lib/components/Datagrid/Datagrid/DatagridRefBody.js +3 -1
- package/lib/components/Datagrid/Datagrid/DatagridSimpleBody.js +4 -1
- package/lib/components/Datagrid/Datagrid/DatagridVirtualBody.js +5 -1
- package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/Columns.d.ts +1 -1
- package/lib/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditCell/InlineEditCell.js +4 -0
- package/lib/components/Datagrid/Datagrid/addons/InlineEdit/handleGridKeyPress.d.ts +2 -1
- package/lib/components/Datagrid/Datagrid/addons/InlineEdit/handleGridKeyPress.js +4 -3
- package/lib/components/Datagrid/Datagrid/addons/stateReducer.js +2 -1
- package/lib/components/Datagrid/useEditableCell.js +19 -0
- package/lib/components/DelimitedList/DelimitedList.d.ts +27 -2
- package/lib/components/DelimitedList/DelimitedList.js +0 -1
- package/lib/components/EditInPlace/EditInPlace.d.ts +97 -5
- package/lib/components/EditInPlace/EditInPlace.js +10 -6
- package/lib/components/EditSidePanel/EditSidePanel.d.ts +92 -2
- package/lib/components/EditSidePanel/EditSidePanel.js +8 -10
- package/lib/components/EmptyStates/ErrorEmptyState/ErrorEmptyState.d.ts +61 -2
- package/lib/components/EmptyStates/ErrorEmptyState/ErrorEmptyState.js +1 -3
- package/lib/components/EmptyStates/NoDataEmptyState/NoDataEmptyState.d.ts +61 -2
- package/lib/components/EmptyStates/NoDataEmptyState/NoDataEmptyState.js +1 -2
- package/lib/components/EmptyStates/NotFoundEmptyState/NotFoundEmptyState.d.ts +61 -2
- package/lib/components/EmptyStates/NotFoundEmptyState/NotFoundEmptyState.js +1 -3
- package/lib/components/ExportModal/ExportModal.d.ts +110 -2
- package/lib/components/ExportModal/ExportModal.js +10 -4
- package/lib/components/FilterPanel/FilterPanelAccordion/FilterPanelAccordion.d.ts +5 -0
- package/lib/components/FilterPanel/FilterPanelAccordion/FilterPanelAccordion.js +90 -0
- package/lib/components/FilterPanel/FilterPanelAccordionItem/FilterPanelAccordionItem.d.ts +5 -0
- package/lib/components/FilterPanel/FilterPanelAccordionItem/FilterPanelAccordionItem.js +101 -0
- package/lib/components/FilterPanel/FilterPanelCheckbox/FilterPanelCheckbox.d.ts +5 -0
- package/lib/components/FilterPanel/FilterPanelCheckbox/FilterPanelCheckbox.js +8 -10
- package/lib/components/FilterPanel/FilterPanelCheckbox/index.d.ts +1 -0
- package/lib/components/FilterPanel/FilterPanelCheckboxWithOverflow/FilterPanelCheckboxWithOverflow.d.ts +10 -0
- package/lib/components/FilterPanel/FilterPanelCheckboxWithOverflow/FilterPanelCheckboxWithOverflow.js +164 -0
- package/lib/components/FilterPanel/FilterPanelGroup/FilterPanelGroup.d.ts +5 -0
- package/lib/components/FilterPanel/FilterPanelGroup/FilterPanelGroup.js +79 -0
- package/lib/components/FilterPanel/FilterPanelLabel/FilterPanelLabel.js +2 -2
- package/lib/components/FilterPanel/FilterPanelSearch/FilterPanelSearch.d.ts +5 -0
- package/lib/components/FilterPanel/FilterPanelSearch/FilterPanelSearch.js +99 -0
- package/lib/components/FilterPanel/index.d.ts +5 -0
- package/lib/components/HTTPErrors/HTTPError403/HTTPError403.d.ts +40 -2
- package/lib/components/HTTPErrors/HTTPError403/HTTPError403.js +1 -1
- package/lib/components/HTTPErrors/HTTPError404/HTTPError404.d.ts +40 -2
- package/lib/components/HTTPErrors/HTTPError404/HTTPError404.js +1 -1
- package/lib/components/ImportModal/ImportModal.d.ts +136 -2
- package/lib/components/ImportModal/ImportModal.js +3 -2
- package/lib/components/InlineTip/InlineTip.d.ts +90 -2
- package/lib/components/InlineTip/InlineTip.js +3 -2
- package/lib/components/Nav/Nav.js +1 -1
- package/lib/components/Nav/NavList.js +7 -7
- package/lib/components/NotificationsPanel/NotificationsPanel.js +1 -1
- package/lib/components/OptionsTile/OptionsTile.d.ts +77 -3
- package/lib/components/OptionsTile/OptionsTile.js +9 -20
- package/lib/components/PageHeader/PageHeader.js +3 -3
- package/lib/components/PageHeader/PageHeaderUtils.d.ts +1 -1
- package/lib/components/PageHeader/PageHeaderUtils.js +4 -3
- package/lib/components/RemoveModal/RemoveModal.d.ts +81 -7
- package/lib/components/RemoveModal/RemoveModal.js +1 -0
- package/lib/components/ScrollGradient/ScrollGradient.d.ts +5 -0
- package/lib/components/ScrollGradient/ScrollGradient.js +163 -0
- package/lib/components/ScrollGradient/constants.d.ts +15 -0
- package/lib/components/ScrollGradient/constants.js +128 -0
- package/lib/components/ScrollGradient/index.d.ts +1 -0
- package/lib/components/SidePanel/SidePanel.d.ts +144 -2
- package/lib/components/SidePanel/SidePanel.js +100 -75
- package/lib/components/StatusIcon/StatusIcon.d.ts +34 -2
- package/lib/components/StatusIcon/StatusIcon.js +97 -95
- package/lib/components/SteppedAnimatedMedia/SteppedAnimatedMedia.d.ts +23 -2
- package/lib/components/SteppedAnimatedMedia/SteppedAnimatedMedia.js +6 -5
- package/lib/components/TagOverflow/TagOverflow.d.ts +5 -0
- package/lib/components/TagOverflow/TagOverflow.js +216 -0
- package/lib/components/TagOverflow/constants.d.ts +14 -0
- package/lib/components/TagOverflow/constants.js +34 -0
- package/lib/components/TagOverflow/index.d.ts +1 -0
- package/lib/components/Tearsheet/TearsheetNarrow.d.ts +105 -6
- package/lib/components/Tearsheet/TearsheetNarrow.js +6 -1
- package/lib/components/Toolbar/Toolbar.d.ts +23 -5
- package/lib/components/Toolbar/Toolbar.js +30 -26
- package/lib/components/TruncatedList/TruncatedList.js +5 -3
- package/lib/components/UserAvatar/UserAvatar.js +7 -4
- package/lib/components/index.d.ts +5 -2
- package/lib/global/js/package-settings.d.ts +8 -0
- package/lib/global/js/package-settings.js +8 -0
- package/lib/index.js +42 -0
- package/lib/settings.d.ts +8 -0
- package/package.json +3 -3
- package/scss/components/Coachmark/_coachmark-dragbar.scss +0 -1
- package/scss/components/Coachmark/_coachmark-tagline.scss +2 -2
- package/scss/components/ConditionBuilder/_carbon-imports.scss +9 -0
- package/scss/components/ConditionBuilder/_condition-builder.scss +25 -0
- package/scss/components/ConditionBuilder/_index-with-carbon.scss +9 -0
- package/scss/components/ConditionBuilder/_index.scss +8 -0
- package/scss/components/CreateFullPage/_create-full-page.scss +10 -10
- package/scss/components/Datagrid/styles/_useNestedRows.scss +5 -1
- package/scss/components/FilterPanel/_carbon-imports.scss +5 -0
- package/scss/components/FilterPanel/_filter-panel-accordion-item.scss +54 -0
- package/scss/components/FilterPanel/_filter-panel-accordion.scss +6 -0
- package/scss/components/FilterPanel/_filter-panel-checkbox-with-overflow.scss +60 -0
- package/scss/components/FilterPanel/_filter-panel-checkbox.scss +24 -3
- package/scss/components/FilterPanel/_filter-panel-group.scss +39 -0
- package/scss/components/FilterPanel/_filter-panel-label.scss +0 -8
- package/scss/components/FilterPanel/_filter-panel-search.scss +38 -0
- package/scss/components/FilterPanel/_filter-panel.scss +2 -0
- package/scss/components/FilterPanel/_index-with-carbon.scss +5 -0
- package/scss/components/FilterPanel/_index.scss +5 -0
- package/scss/components/Guidebanner/_guidebanner.scss +1 -1
- package/scss/components/InlineTip/_inline-tip.scss +1 -1
- package/scss/components/ProductiveCard/_productive-card.scss +13 -0
- package/scss/components/ScrollGradient/_carbon-imports.scss +9 -0
- package/scss/components/ScrollGradient/_index-with-carbon.scss +9 -0
- package/scss/components/ScrollGradient/_index.scss +8 -0
- package/scss/components/ScrollGradient/_scroll-gradient.scss +102 -0
- package/scss/components/SidePanel/_side-panel.scss +9 -9
- package/scss/components/TagOverflow/_carbon-imports.scss +9 -0
- package/scss/components/TagOverflow/_index-with-carbon.scss +9 -0
- package/scss/components/TagOverflow/_index.scss +8 -0
- package/scss/components/TagOverflow/_tag-overflow.scss +55 -0
- package/scss/components/Tearsheet/_tearsheet.scss +10 -0
- package/scss/components/UserAvatar/_user-avatar.scss +38 -4
- package/scss/components/_index-with-carbon.scss +3 -0
- package/scss/components/_index.scss +3 -0
@@ -35,298 +35,300 @@ _Status icons_ are an important method of communicating severity level
|
|
35
35
|
information to users. The shapes and colors, communicate severity that enable
|
36
36
|
users to quickly assess and identify status and respond accordingly.
|
37
37
|
*/
|
38
|
-
|
38
|
+
|
39
|
+
exports.StatusIcon = /*#__PURE__*/React.forwardRef(function (_ref2, ref) {
|
39
40
|
var _icons$kind;
|
40
|
-
var kind =
|
41
|
-
theme =
|
42
|
-
size =
|
43
|
-
className =
|
44
|
-
iconDescription =
|
45
|
-
rest = _rollupPluginBabelHelpers.objectWithoutProperties(
|
41
|
+
var kind = _ref2.kind,
|
42
|
+
theme = _ref2.theme,
|
43
|
+
size = _ref2.size,
|
44
|
+
className = _ref2.className,
|
45
|
+
iconDescription = _ref2.iconDescription,
|
46
|
+
rest = _rollupPluginBabelHelpers.objectWithoutProperties(_ref2, _excluded);
|
47
|
+
var forwardedRef = ref;
|
46
48
|
var icons$1 = {
|
47
49
|
fatal: {
|
48
|
-
sm: /*#__PURE__*/React.forwardRef(function (props,
|
50
|
+
sm: /*#__PURE__*/React.forwardRef(function (props, _ref) {
|
49
51
|
return /*#__PURE__*/React__default["default"].createElement(icons.Misuse, _rollupPluginBabelHelpers["extends"]({
|
50
52
|
size: 16,
|
51
|
-
ref:
|
53
|
+
ref: forwardedRef
|
52
54
|
}, props));
|
53
55
|
}),
|
54
|
-
md: /*#__PURE__*/React.forwardRef(function (props,
|
56
|
+
md: /*#__PURE__*/React.forwardRef(function (props, _ref) {
|
55
57
|
return /*#__PURE__*/React__default["default"].createElement(icons.Misuse, _rollupPluginBabelHelpers["extends"]({
|
56
58
|
size: 20,
|
57
|
-
ref:
|
59
|
+
ref: forwardedRef
|
58
60
|
}, props));
|
59
61
|
}),
|
60
|
-
lg: /*#__PURE__*/React.forwardRef(function (props,
|
62
|
+
lg: /*#__PURE__*/React.forwardRef(function (props, _ref) {
|
61
63
|
return /*#__PURE__*/React__default["default"].createElement(icons.Misuse, _rollupPluginBabelHelpers["extends"]({
|
62
64
|
size: 24,
|
63
|
-
ref:
|
65
|
+
ref: forwardedRef
|
64
66
|
}, props));
|
65
67
|
}),
|
66
|
-
xl: /*#__PURE__*/React.forwardRef(function (props,
|
68
|
+
xl: /*#__PURE__*/React.forwardRef(function (props, _ref) {
|
67
69
|
return /*#__PURE__*/React__default["default"].createElement(icons.Misuse, _rollupPluginBabelHelpers["extends"]({
|
68
70
|
size: 32,
|
69
|
-
ref:
|
71
|
+
ref: forwardedRef
|
70
72
|
}, props));
|
71
73
|
})
|
72
74
|
},
|
73
75
|
critical: {
|
74
|
-
sm: /*#__PURE__*/React.forwardRef(function (props,
|
76
|
+
sm: /*#__PURE__*/React.forwardRef(function (props, _ref) {
|
75
77
|
return /*#__PURE__*/React__default["default"].createElement(icons.ErrorFilled, _rollupPluginBabelHelpers["extends"]({
|
76
78
|
size: 16,
|
77
|
-
ref:
|
79
|
+
ref: forwardedRef
|
78
80
|
}, props));
|
79
81
|
}),
|
80
|
-
md: /*#__PURE__*/React.forwardRef(function (props,
|
82
|
+
md: /*#__PURE__*/React.forwardRef(function (props, _ref) {
|
81
83
|
return /*#__PURE__*/React__default["default"].createElement(icons.ErrorFilled, _rollupPluginBabelHelpers["extends"]({
|
82
84
|
size: 20,
|
83
|
-
ref:
|
85
|
+
ref: forwardedRef
|
84
86
|
}, props));
|
85
87
|
}),
|
86
|
-
lg: /*#__PURE__*/React.forwardRef(function (props,
|
88
|
+
lg: /*#__PURE__*/React.forwardRef(function (props, _ref) {
|
87
89
|
return /*#__PURE__*/React__default["default"].createElement(icons.ErrorFilled, _rollupPluginBabelHelpers["extends"]({
|
88
90
|
size: 24,
|
89
|
-
ref:
|
91
|
+
ref: forwardedRef
|
90
92
|
}, props));
|
91
93
|
}),
|
92
|
-
xl: /*#__PURE__*/React.forwardRef(function (props,
|
94
|
+
xl: /*#__PURE__*/React.forwardRef(function (props, _ref) {
|
93
95
|
return /*#__PURE__*/React__default["default"].createElement(icons.ErrorFilled, _rollupPluginBabelHelpers["extends"]({
|
94
96
|
size: 32,
|
95
|
-
ref:
|
97
|
+
ref: forwardedRef
|
96
98
|
}, props));
|
97
99
|
})
|
98
100
|
},
|
99
101
|
'major-warning': {
|
100
|
-
sm: /*#__PURE__*/React.forwardRef(function (props,
|
102
|
+
sm: /*#__PURE__*/React.forwardRef(function (props, _ref) {
|
101
103
|
return /*#__PURE__*/React__default["default"].createElement(icons.WarningAltInvertedFilled, _rollupPluginBabelHelpers["extends"]({
|
102
104
|
size: 16,
|
103
|
-
ref:
|
105
|
+
ref: forwardedRef
|
104
106
|
}, props));
|
105
107
|
}),
|
106
|
-
md: /*#__PURE__*/React.forwardRef(function (props,
|
108
|
+
md: /*#__PURE__*/React.forwardRef(function (props, _ref) {
|
107
109
|
return /*#__PURE__*/React__default["default"].createElement(icons.WarningAltInvertedFilled, _rollupPluginBabelHelpers["extends"]({
|
108
110
|
size: 20,
|
109
|
-
ref:
|
111
|
+
ref: forwardedRef
|
110
112
|
}, props));
|
111
113
|
}),
|
112
|
-
lg: /*#__PURE__*/React.forwardRef(function (props,
|
114
|
+
lg: /*#__PURE__*/React.forwardRef(function (props, _ref) {
|
113
115
|
return /*#__PURE__*/React__default["default"].createElement(icons.WarningAltInvertedFilled, _rollupPluginBabelHelpers["extends"]({
|
114
116
|
size: 24,
|
115
|
-
ref:
|
117
|
+
ref: forwardedRef
|
116
118
|
}, props));
|
117
119
|
}),
|
118
|
-
xl: /*#__PURE__*/React.forwardRef(function (props,
|
120
|
+
xl: /*#__PURE__*/React.forwardRef(function (props, _ref) {
|
119
121
|
return /*#__PURE__*/React__default["default"].createElement(icons.WarningAltInvertedFilled, _rollupPluginBabelHelpers["extends"]({
|
120
122
|
size: 32,
|
121
|
-
ref:
|
123
|
+
ref: forwardedRef
|
122
124
|
}, props));
|
123
125
|
})
|
124
126
|
},
|
125
127
|
'minor-warning': {
|
126
|
-
sm: /*#__PURE__*/React.forwardRef(function (props,
|
128
|
+
sm: /*#__PURE__*/React.forwardRef(function (props, _ref) {
|
127
129
|
return /*#__PURE__*/React__default["default"].createElement(icons.WarningAltFilled, _rollupPluginBabelHelpers["extends"]({
|
128
130
|
size: 16,
|
129
|
-
ref:
|
131
|
+
ref: forwardedRef
|
130
132
|
}, props));
|
131
133
|
}),
|
132
|
-
md: /*#__PURE__*/React.forwardRef(function (props,
|
134
|
+
md: /*#__PURE__*/React.forwardRef(function (props, _ref) {
|
133
135
|
return /*#__PURE__*/React__default["default"].createElement(icons.WarningAltFilled, _rollupPluginBabelHelpers["extends"]({
|
134
136
|
size: 20,
|
135
|
-
ref:
|
137
|
+
ref: forwardedRef
|
136
138
|
}, props));
|
137
139
|
}),
|
138
|
-
lg: /*#__PURE__*/React.forwardRef(function (props,
|
140
|
+
lg: /*#__PURE__*/React.forwardRef(function (props, _ref) {
|
139
141
|
return /*#__PURE__*/React__default["default"].createElement(icons.WarningAltFilled, _rollupPluginBabelHelpers["extends"]({
|
140
142
|
size: 24,
|
141
|
-
ref:
|
143
|
+
ref: forwardedRef
|
142
144
|
}, props));
|
143
145
|
}),
|
144
|
-
xl: /*#__PURE__*/React.forwardRef(function (props,
|
146
|
+
xl: /*#__PURE__*/React.forwardRef(function (props, _ref) {
|
145
147
|
return /*#__PURE__*/React__default["default"].createElement(icons.WarningAltFilled, _rollupPluginBabelHelpers["extends"]({
|
146
148
|
size: 32,
|
147
|
-
ref:
|
149
|
+
ref: forwardedRef
|
148
150
|
}, props));
|
149
151
|
})
|
150
152
|
},
|
151
153
|
undefined: {
|
152
|
-
sm: /*#__PURE__*/React.forwardRef(function (props,
|
154
|
+
sm: /*#__PURE__*/React.forwardRef(function (props, _ref) {
|
153
155
|
return /*#__PURE__*/React__default["default"].createElement(icons.UndefinedFilled, _rollupPluginBabelHelpers["extends"]({
|
154
156
|
size: 16,
|
155
|
-
ref:
|
157
|
+
ref: forwardedRef
|
156
158
|
}, props));
|
157
159
|
}),
|
158
|
-
md: /*#__PURE__*/React.forwardRef(function (props,
|
160
|
+
md: /*#__PURE__*/React.forwardRef(function (props, _ref) {
|
159
161
|
return /*#__PURE__*/React__default["default"].createElement(icons.UndefinedFilled, _rollupPluginBabelHelpers["extends"]({
|
160
162
|
size: 20,
|
161
|
-
ref:
|
163
|
+
ref: forwardedRef
|
162
164
|
}, props));
|
163
165
|
}),
|
164
|
-
lg: /*#__PURE__*/React.forwardRef(function (props,
|
166
|
+
lg: /*#__PURE__*/React.forwardRef(function (props, _ref) {
|
165
167
|
return /*#__PURE__*/React__default["default"].createElement(icons.UndefinedFilled, _rollupPluginBabelHelpers["extends"]({
|
166
168
|
size: 24,
|
167
|
-
ref:
|
169
|
+
ref: forwardedRef
|
168
170
|
}, props));
|
169
171
|
}),
|
170
|
-
xl: /*#__PURE__*/React.forwardRef(function (props,
|
172
|
+
xl: /*#__PURE__*/React.forwardRef(function (props, _ref) {
|
171
173
|
return /*#__PURE__*/React__default["default"].createElement(icons.UndefinedFilled, _rollupPluginBabelHelpers["extends"]({
|
172
174
|
size: 32,
|
173
|
-
ref:
|
175
|
+
ref: forwardedRef
|
174
176
|
}, props));
|
175
177
|
})
|
176
178
|
},
|
177
179
|
unknown: {
|
178
|
-
sm: /*#__PURE__*/React.forwardRef(function (props,
|
180
|
+
sm: /*#__PURE__*/React.forwardRef(function (props, _ref) {
|
179
181
|
return /*#__PURE__*/React__default["default"].createElement(icons.UnknownFilled, _rollupPluginBabelHelpers["extends"]({
|
180
182
|
size: 16,
|
181
|
-
ref:
|
183
|
+
ref: forwardedRef
|
182
184
|
}, props));
|
183
185
|
}),
|
184
|
-
md: /*#__PURE__*/React.forwardRef(function (props,
|
186
|
+
md: /*#__PURE__*/React.forwardRef(function (props, _ref) {
|
185
187
|
return /*#__PURE__*/React__default["default"].createElement(icons.UnknownFilled, _rollupPluginBabelHelpers["extends"]({
|
186
188
|
size: 20,
|
187
|
-
ref:
|
189
|
+
ref: forwardedRef
|
188
190
|
}, props));
|
189
191
|
}),
|
190
|
-
lg: /*#__PURE__*/React.forwardRef(function (props,
|
192
|
+
lg: /*#__PURE__*/React.forwardRef(function (props, _ref) {
|
191
193
|
return /*#__PURE__*/React__default["default"].createElement(icons.UnknownFilled, _rollupPluginBabelHelpers["extends"]({
|
192
194
|
size: 24,
|
193
|
-
ref:
|
195
|
+
ref: forwardedRef
|
194
196
|
}, props));
|
195
197
|
}),
|
196
|
-
xl: /*#__PURE__*/React.forwardRef(function (props,
|
198
|
+
xl: /*#__PURE__*/React.forwardRef(function (props, _ref) {
|
197
199
|
return /*#__PURE__*/React__default["default"].createElement(icons.UnknownFilled, _rollupPluginBabelHelpers["extends"]({
|
198
200
|
size: 32,
|
199
|
-
ref:
|
201
|
+
ref: forwardedRef
|
200
202
|
}, props));
|
201
203
|
})
|
202
204
|
},
|
203
205
|
normal: {
|
204
|
-
sm: /*#__PURE__*/React.forwardRef(function (props,
|
206
|
+
sm: /*#__PURE__*/React.forwardRef(function (props, _ref) {
|
205
207
|
return /*#__PURE__*/React__default["default"].createElement(icons.CheckmarkFilled, _rollupPluginBabelHelpers["extends"]({
|
206
208
|
size: 16,
|
207
|
-
ref:
|
209
|
+
ref: forwardedRef
|
208
210
|
}, props));
|
209
211
|
}),
|
210
|
-
md: /*#__PURE__*/React.forwardRef(function (props,
|
212
|
+
md: /*#__PURE__*/React.forwardRef(function (props, _ref) {
|
211
213
|
return /*#__PURE__*/React__default["default"].createElement(icons.CheckmarkFilled, _rollupPluginBabelHelpers["extends"]({
|
212
214
|
size: 20,
|
213
|
-
ref:
|
215
|
+
ref: forwardedRef
|
214
216
|
}, props));
|
215
217
|
}),
|
216
|
-
lg: /*#__PURE__*/React.forwardRef(function (props,
|
218
|
+
lg: /*#__PURE__*/React.forwardRef(function (props, _ref) {
|
217
219
|
return /*#__PURE__*/React__default["default"].createElement(icons.CheckmarkFilled, _rollupPluginBabelHelpers["extends"]({
|
218
220
|
size: 24,
|
219
|
-
ref:
|
221
|
+
ref: forwardedRef
|
220
222
|
}, props));
|
221
223
|
}),
|
222
|
-
xl: /*#__PURE__*/React.forwardRef(function (props,
|
224
|
+
xl: /*#__PURE__*/React.forwardRef(function (props, _ref) {
|
223
225
|
return /*#__PURE__*/React__default["default"].createElement(icons.CheckmarkFilled, _rollupPluginBabelHelpers["extends"]({
|
224
226
|
size: 32,
|
225
|
-
ref:
|
227
|
+
ref: forwardedRef
|
226
228
|
}, props));
|
227
229
|
})
|
228
230
|
},
|
229
231
|
info: {
|
230
|
-
sm: /*#__PURE__*/React.forwardRef(function (props,
|
232
|
+
sm: /*#__PURE__*/React.forwardRef(function (props, _ref) {
|
231
233
|
return /*#__PURE__*/React__default["default"].createElement(icons.InformationSquareFilled, _rollupPluginBabelHelpers["extends"]({
|
232
234
|
size: 16,
|
233
|
-
ref:
|
235
|
+
ref: forwardedRef
|
234
236
|
}, props));
|
235
237
|
}),
|
236
|
-
md: /*#__PURE__*/React.forwardRef(function (props,
|
238
|
+
md: /*#__PURE__*/React.forwardRef(function (props, _ref) {
|
237
239
|
return /*#__PURE__*/React__default["default"].createElement(icons.InformationSquareFilled, _rollupPluginBabelHelpers["extends"]({
|
238
240
|
size: 20,
|
239
|
-
ref:
|
241
|
+
ref: forwardedRef
|
240
242
|
}, props));
|
241
243
|
}),
|
242
|
-
lg: /*#__PURE__*/React.forwardRef(function (props,
|
244
|
+
lg: /*#__PURE__*/React.forwardRef(function (props, _ref) {
|
243
245
|
return /*#__PURE__*/React__default["default"].createElement(icons.InformationSquareFilled, _rollupPluginBabelHelpers["extends"]({
|
244
246
|
size: 24,
|
245
|
-
ref:
|
247
|
+
ref: forwardedRef
|
246
248
|
}, props));
|
247
249
|
}),
|
248
|
-
xl: /*#__PURE__*/React.forwardRef(function (props,
|
250
|
+
xl: /*#__PURE__*/React.forwardRef(function (props, _ref) {
|
249
251
|
return /*#__PURE__*/React__default["default"].createElement(icons.InformationSquareFilled, _rollupPluginBabelHelpers["extends"]({
|
250
252
|
size: 32,
|
251
|
-
ref:
|
253
|
+
ref: forwardedRef
|
252
254
|
}, props));
|
253
255
|
})
|
254
256
|
},
|
255
257
|
'in-progress': {
|
256
|
-
sm: /*#__PURE__*/React.forwardRef(function (props,
|
258
|
+
sm: /*#__PURE__*/React.forwardRef(function (props, _ref) {
|
257
259
|
return /*#__PURE__*/React__default["default"].createElement(icons.InProgress, _rollupPluginBabelHelpers["extends"]({
|
258
260
|
size: 16,
|
259
|
-
ref:
|
261
|
+
ref: forwardedRef
|
260
262
|
}, props));
|
261
263
|
}),
|
262
|
-
md: /*#__PURE__*/React.forwardRef(function (props,
|
264
|
+
md: /*#__PURE__*/React.forwardRef(function (props, _ref) {
|
263
265
|
return /*#__PURE__*/React__default["default"].createElement(icons.InProgress, _rollupPluginBabelHelpers["extends"]({
|
264
266
|
size: 20,
|
265
|
-
ref:
|
267
|
+
ref: forwardedRef
|
266
268
|
}, props));
|
267
269
|
}),
|
268
|
-
lg: /*#__PURE__*/React.forwardRef(function (props,
|
270
|
+
lg: /*#__PURE__*/React.forwardRef(function (props, _ref) {
|
269
271
|
return /*#__PURE__*/React__default["default"].createElement(icons.InProgress, _rollupPluginBabelHelpers["extends"]({
|
270
272
|
size: 24,
|
271
|
-
ref:
|
273
|
+
ref: forwardedRef
|
272
274
|
}, props));
|
273
275
|
}),
|
274
|
-
xl: /*#__PURE__*/React.forwardRef(function (props,
|
276
|
+
xl: /*#__PURE__*/React.forwardRef(function (props, _ref) {
|
275
277
|
return /*#__PURE__*/React__default["default"].createElement(icons.InProgress, _rollupPluginBabelHelpers["extends"]({
|
276
278
|
size: 32,
|
277
|
-
ref:
|
279
|
+
ref: forwardedRef
|
278
280
|
}, props));
|
279
281
|
})
|
280
282
|
},
|
281
283
|
running: {
|
282
|
-
sm: /*#__PURE__*/React.forwardRef(function (props,
|
284
|
+
sm: /*#__PURE__*/React.forwardRef(function (props, _ref) {
|
283
285
|
return /*#__PURE__*/React__default["default"].createElement(icons.CheckmarkOutline, _rollupPluginBabelHelpers["extends"]({
|
284
286
|
size: 16,
|
285
|
-
ref:
|
287
|
+
ref: forwardedRef
|
286
288
|
}, props));
|
287
289
|
}),
|
288
|
-
md: /*#__PURE__*/React.forwardRef(function (props,
|
290
|
+
md: /*#__PURE__*/React.forwardRef(function (props, _ref) {
|
289
291
|
return /*#__PURE__*/React__default["default"].createElement(icons.CheckmarkOutline, _rollupPluginBabelHelpers["extends"]({
|
290
292
|
size: 20,
|
291
|
-
ref:
|
293
|
+
ref: forwardedRef
|
292
294
|
}, props));
|
293
295
|
}),
|
294
|
-
lg: /*#__PURE__*/React.forwardRef(function (props,
|
296
|
+
lg: /*#__PURE__*/React.forwardRef(function (props, _ref) {
|
295
297
|
return /*#__PURE__*/React__default["default"].createElement(icons.CheckmarkOutline, _rollupPluginBabelHelpers["extends"]({
|
296
298
|
size: 24,
|
297
|
-
ref:
|
299
|
+
ref: forwardedRef
|
298
300
|
}, props));
|
299
301
|
}),
|
300
|
-
xl: /*#__PURE__*/React.forwardRef(function (props,
|
302
|
+
xl: /*#__PURE__*/React.forwardRef(function (props, _ref) {
|
301
303
|
return /*#__PURE__*/React__default["default"].createElement(icons.CheckmarkOutline, _rollupPluginBabelHelpers["extends"]({
|
302
304
|
size: 32,
|
303
|
-
ref:
|
305
|
+
ref: forwardedRef
|
304
306
|
}, props));
|
305
307
|
})
|
306
308
|
},
|
307
309
|
pending: {
|
308
|
-
sm: /*#__PURE__*/React.forwardRef(function (props,
|
310
|
+
sm: /*#__PURE__*/React.forwardRef(function (props, _ref) {
|
309
311
|
return /*#__PURE__*/React__default["default"].createElement(icons.Pending, _rollupPluginBabelHelpers["extends"]({
|
310
312
|
size: 16,
|
311
|
-
ref:
|
313
|
+
ref: forwardedRef
|
312
314
|
}, props));
|
313
315
|
}),
|
314
|
-
md: /*#__PURE__*/React.forwardRef(function (props,
|
316
|
+
md: /*#__PURE__*/React.forwardRef(function (props, _ref) {
|
315
317
|
return /*#__PURE__*/React__default["default"].createElement(icons.Pending, _rollupPluginBabelHelpers["extends"]({
|
316
318
|
size: 20,
|
317
|
-
ref:
|
319
|
+
ref: forwardedRef
|
318
320
|
}, props));
|
319
321
|
}),
|
320
|
-
lg: /*#__PURE__*/React.forwardRef(function (props,
|
322
|
+
lg: /*#__PURE__*/React.forwardRef(function (props, _ref) {
|
321
323
|
return /*#__PURE__*/React__default["default"].createElement(icons.Pending, _rollupPluginBabelHelpers["extends"]({
|
322
324
|
size: 24,
|
323
|
-
ref:
|
325
|
+
ref: forwardedRef
|
324
326
|
}, props));
|
325
327
|
}),
|
326
|
-
xl: /*#__PURE__*/React.forwardRef(function (props,
|
328
|
+
xl: /*#__PURE__*/React.forwardRef(function (props, _ref) {
|
327
329
|
return /*#__PURE__*/React__default["default"].createElement(icons.Pending, _rollupPluginBabelHelpers["extends"]({
|
328
330
|
size: 32,
|
329
|
-
ref:
|
331
|
+
ref: forwardedRef
|
330
332
|
}, props));
|
331
333
|
})
|
332
334
|
}
|
@@ -1,5 +1,26 @@
|
|
1
1
|
/**
|
2
|
-
*
|
2
|
+
* Copyright IBM Corp. 2023, 2024
|
3
|
+
*
|
4
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
3
6
|
*/
|
4
|
-
export const SteppedAnimatedMedia: React.ForwardRefExoticComponent<React.RefAttributes<any>>;
|
5
7
|
import React from 'react';
|
8
|
+
interface SteppedAnimatedMediaProps {
|
9
|
+
/**
|
10
|
+
* Optional class name for this component.
|
11
|
+
*/
|
12
|
+
className?: string;
|
13
|
+
/**
|
14
|
+
* The file path(s) to json formatted Lottie animation files.
|
15
|
+
*/
|
16
|
+
filePaths: string[] | undefined;
|
17
|
+
/**
|
18
|
+
* Which animation step from the filePaths array to play.
|
19
|
+
*/
|
20
|
+
playStep?: number;
|
21
|
+
}
|
22
|
+
/**
|
23
|
+
* The SteppedAnimatedMedia is a Novice to Pro internal component and is not intended for general use.
|
24
|
+
*/
|
25
|
+
export declare const SteppedAnimatedMedia: React.ForwardRefExoticComponent<SteppedAnimatedMediaProps & React.RefAttributes<HTMLDivElement>>;
|
26
|
+
export {};
|
@@ -37,7 +37,6 @@ var componentName = 'SteppedAnimatedMedia';
|
|
37
37
|
var defaults = {
|
38
38
|
playStep: 0
|
39
39
|
};
|
40
|
-
|
41
40
|
/**
|
42
41
|
* The SteppedAnimatedMedia is a Novice to Pro internal component and is not intended for general use.
|
43
42
|
*/
|
@@ -52,8 +51,9 @@ var SteppedAnimatedMedia = /*#__PURE__*/React__default["default"].forwardRef(fun
|
|
52
51
|
jsonData = _useState2[0],
|
53
52
|
setJsonData = _useState2[1];
|
54
53
|
var animRef = React.useRef();
|
55
|
-
var backupRef = React.useRef();
|
54
|
+
var backupRef = React.useRef(null);
|
56
55
|
var localRef = ref !== null && ref !== void 0 ? ref : backupRef;
|
56
|
+
var localRefValue = localRef.current;
|
57
57
|
// load animation source
|
58
58
|
React.useEffect(function () {
|
59
59
|
var isJsonFile = function isJsonFile(filePath) {
|
@@ -100,11 +100,11 @@ var SteppedAnimatedMedia = /*#__PURE__*/React__default["default"].forwardRef(fun
|
|
100
100
|
React.useEffect(function () {
|
101
101
|
var _window;
|
102
102
|
var prefersReducedMotion = (_window = window) !== null && _window !== void 0 && _window.matchMedia ? window.matchMedia('(prefers-reduced-motion: reduce)').matches : true;
|
103
|
-
if (
|
103
|
+
if (localRefValue) {
|
104
104
|
var _animRef$current, _animRef$current2, _animRef$current3;
|
105
105
|
(_animRef$current = animRef.current) === null || _animRef$current === void 0 || _animRef$current.destroy();
|
106
106
|
animRef.current = lottie__default["default"].loadAnimation({
|
107
|
-
container:
|
107
|
+
container: localRefValue,
|
108
108
|
renderer: 'svg',
|
109
109
|
animationData: jsonData[clamp__default["default"](playStep, 0, jsonData.length - 1)],
|
110
110
|
loop: false,
|
@@ -119,7 +119,7 @@ var SteppedAnimatedMedia = /*#__PURE__*/React__default["default"].forwardRef(fun
|
|
119
119
|
var _animRef$current4;
|
120
120
|
return (_animRef$current4 = animRef.current) === null || _animRef$current4 === void 0 ? void 0 : _animRef$current4.destroy();
|
121
121
|
};
|
122
|
-
}, [jsonData,
|
122
|
+
}, [jsonData, localRefValue, playStep]);
|
123
123
|
if (!jsonData) {
|
124
124
|
return null;
|
125
125
|
}
|
@@ -138,6 +138,7 @@ SteppedAnimatedMedia.propTypes = {
|
|
138
138
|
/**
|
139
139
|
* The file path(s) to json formatted Lottie animation files.
|
140
140
|
*/
|
141
|
+
/**@ts-ignore*/
|
141
142
|
filePaths: index["default"].arrayOf(index["default"].string).isRequired,
|
142
143
|
/**
|
143
144
|
* Which animation step from the filePaths array to play.
|