@carbon/ibm-products 2.0.0-rc.2 → 2.0.0-rc.20
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +2 -2
- package/css/index-full-carbon.css +1368 -401
- package/css/index-full-carbon.css.map +1 -1
- package/css/index-full-carbon.min.css +6 -8
- package/css/index-full-carbon.min.css.map +1 -1
- package/css/index-without-carbon-released-only.css +1413 -385
- package/css/index-without-carbon-released-only.css.map +1 -1
- package/css/index-without-carbon-released-only.min.css +4 -8
- package/css/index-without-carbon-released-only.min.css.map +1 -1
- package/css/index-without-carbon.css +1292 -456
- package/css/index-without-carbon.css.map +1 -1
- package/css/index-without-carbon.min.css +6 -8
- package/css/index-without-carbon.min.css.map +1 -1
- package/css/index.css +1165 -334
- package/css/index.css.map +1 -1
- package/css/index.min.css +6 -8
- package/css/index.min.css.map +1 -1
- package/es/components/APIKeyModal/APIKeyModal.js +1 -1
- package/es/components/ActionBar/ActionBarOverflowItems.js +1 -0
- package/es/components/ActionSet/ActionSet.js +7 -3
- package/es/components/AddSelect/AddSelect.js +6 -6
- package/es/components/AddSelect/AddSelectBody.js +73 -32
- package/es/components/AddSelect/AddSelectBreadcrumbs.js +12 -4
- package/es/components/AddSelect/AddSelectColumn.js +8 -8
- package/es/components/AddSelect/AddSelectFilter.js +10 -7
- package/es/components/AddSelect/AddSelectList.js +64 -29
- package/es/components/AddSelect/AddSelectMetaPanel.js +7 -1
- package/es/components/AddSelect/AddSelectSidebar.js +5 -2
- package/es/components/AddSelect/AddSelectSort.js +2 -2
- package/es/components/AddSelect/add-select-utils.js +9 -2
- package/es/components/AddSelect/hooks/useItemSort.js +6 -0
- package/es/components/AddSelect/hooks/useParentSelect.js +6 -0
- package/es/components/AddSelect/hooks/usePath.js +23 -2
- package/es/components/AddSelect/index.js +1 -1
- package/es/components/BreadcrumbWithOverflow/BreadcrumbWithOverflow.js +4 -6
- package/es/components/ButtonMenu/ButtonMenu.js +4 -3
- package/es/components/Card/Card.js +16 -6
- package/es/components/Card/CardFooter.js +3 -1
- package/es/components/Card/CardHeader.js +20 -1
- package/es/components/ComboButton/ComboButton.js +1 -1
- package/es/components/CreateFullPage/CreateFullPage.js +13 -3
- package/es/components/CreateTearsheet/CreateTearsheet.js +17 -3
- package/es/components/CreateTearsheet/preview-components/MultiStepTearsheet.js +3 -1
- package/es/components/CreateTearsheetNarrow/CreateTearsheetNarrow.js +2 -2
- package/es/components/DataSpreadsheet/DataSpreadsheet.js +65 -15
- package/es/components/DataSpreadsheet/DataSpreadsheetBody.js +2 -1
- package/es/components/DataSpreadsheet/DataSpreadsheetHeader.js +7 -0
- package/es/components/DataSpreadsheet/hooks/useMultipleKeyTracking.js +6 -5
- package/es/components/DataSpreadsheet/utils/handleCellDeletion.js +42 -0
- package/es/components/DataSpreadsheet/utils/handleMultipleKeys.js +1 -1
- package/es/components/Datagrid/Datagrid/Datagrid.js +16 -40
- package/es/components/Datagrid/Datagrid/DatagridContent.js +194 -0
- package/es/components/Datagrid/Datagrid/DatagridEmptyBody.js +18 -8
- package/es/components/Datagrid/Datagrid/DatagridExpandedRow.js +9 -1
- package/es/components/Datagrid/Datagrid/DatagridHead.js +1 -2
- package/es/components/Datagrid/Datagrid/DatagridHeaderRow.js +1 -4
- package/es/components/Datagrid/Datagrid/DatagridRow.js +44 -7
- package/es/components/Datagrid/Datagrid/DatagridSelectAll.js +11 -5
- package/es/components/Datagrid/Datagrid/DatagridSelectAllWithToggle.js +13 -4
- package/es/components/Datagrid/Datagrid/DatagridSimpleBody.js +1 -2
- package/es/components/Datagrid/Datagrid/DatagridToolbar.js +14 -10
- package/es/components/Datagrid/Datagrid/DatagridVirtualBody.js +32 -11
- package/es/components/Datagrid/Datagrid/DraggableElement.js +12 -4
- package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/Actions.js +11 -54
- package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/ButtonWrapper.js +15 -14
- package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/Columns.js +63 -31
- package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/CustomizeColumnsTearsheet.js +193 -0
- package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/TearsheetWrapper.js +56 -0
- package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/index.js +1 -1
- package/es/components/Datagrid/Datagrid/addons/Filtering/FilterFlyout.js +484 -0
- package/es/components/Datagrid/Datagrid/addons/Filtering/FilterPanel.js +514 -0
- package/es/components/Datagrid/Datagrid/addons/Filtering/FilterProvider.js +91 -0
- package/es/components/Datagrid/Datagrid/addons/Filtering/constants.js +28 -0
- package/es/components/Datagrid/Datagrid/addons/Filtering/hooks/index.js +9 -0
- package/es/components/Datagrid/Datagrid/addons/Filtering/hooks/useInitialStateFromFilters.js +25 -0
- package/es/components/Datagrid/Datagrid/addons/Filtering/hooks/useShouldDisableButtons.js +38 -0
- package/es/components/Datagrid/Datagrid/addons/Filtering/hooks/useSubscribeToEventEmitter.js +25 -0
- package/es/components/Datagrid/Datagrid/addons/Filtering/index.js +9 -0
- package/es/components/Datagrid/Datagrid/addons/Filtering/motion/variants.js +55 -0
- package/es/components/Datagrid/Datagrid/addons/Filtering/utils.js +72 -0
- package/es/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditButton/InlineEditButton.js +60 -0
- package/es/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditButton/index.js +1 -0
- package/es/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditCell/InlineEditCell.js +541 -0
- package/es/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditCell/index.js +1 -0
- package/es/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditContext/InlineEditContext.js +112 -0
- package/es/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditContext/getCellIdAsObject.js +27 -0
- package/es/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditContext/index.js +1 -0
- package/es/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditContext/returnUpdatedActiveCell.js +39 -0
- package/es/components/Datagrid/Datagrid/addons/InlineEdit/handleGridFocus.js +19 -0
- package/es/components/Datagrid/Datagrid/addons/InlineEdit/handleGridKeyPress.js +262 -0
- package/es/components/Datagrid/Datagrid/addons/InlineEdit/handleMultipleKeys.js +87 -0
- package/es/components/Datagrid/Datagrid/addons/RowSize/RowSizeDropdown.js +17 -14
- package/es/components/Datagrid/Datagrid/addons/RowSize/RowSizeRadioGroup.js +13 -36
- package/es/components/Datagrid/{Datagrid.stories-helpers → Datagrid.stories}/index.js +0 -1
- package/es/components/Datagrid/index.js +4 -1
- package/es/components/Datagrid/useActionsColumn.js +28 -12
- package/es/components/Datagrid/useColumnOrder.js +8 -0
- package/es/components/Datagrid/useCustomizeColumns.js +13 -8
- package/es/components/Datagrid/useDisableSelectRows.js +6 -2
- package/es/components/Datagrid/useExpandedRow.js +0 -1
- package/es/components/Datagrid/useFiltering.js +99 -0
- package/es/components/Datagrid/useInfiniteScroll.js +5 -2
- package/es/components/Datagrid/useInlineEdit.js +71 -0
- package/es/components/Datagrid/useNestedRowExpander.js +47 -0
- package/es/components/Datagrid/useNestedRows.js +16 -4
- package/es/components/Datagrid/useParentDimensions.js +3 -1
- package/es/components/Datagrid/useRowExpander.js +12 -4
- package/es/components/Datagrid/useRowSize.js +17 -6
- package/es/components/Datagrid/useSelectAllToggle.js +17 -4
- package/es/components/Datagrid/useSelectRows.js +13 -4
- package/es/components/Datagrid/useSortableColumns.js +15 -9
- package/es/components/Datagrid/useStickyColumn.js +11 -0
- package/es/components/Datagrid/utils/DatagridActions.js +249 -0
- package/es/components/Datagrid/utils/DatagridPagination.js +33 -0
- package/es/components/Datagrid/utils/Wrapper.js +21 -0
- package/es/components/Datagrid/utils/getArgTypes.js +94 -0
- package/es/components/Datagrid/utils/getInlineEditColumns.js +159 -0
- package/es/components/Datagrid/utils/makeData.js +54 -1
- package/es/components/EditUpdateCards/EditUpdateCards.js +144 -0
- package/es/components/EditUpdateCards/index.js +7 -0
- package/es/components/ExportModal/ExportModal.js +1 -1
- package/es/components/FilterSummary/FilterSummary.js +54 -0
- package/es/components/FilterSummary/index.js +7 -0
- package/es/components/ImportModal/ImportModal.js +3 -3
- package/es/components/InlineEdit/InlineEdit.js +28 -426
- package/es/components/InlineEditV1/InlineEditV1.js +447 -0
- package/es/components/InlineEditV1/index.js +7 -0
- package/es/components/InlineEditV2/InlineEditV2.js +289 -0
- package/es/components/InlineEditV2/index.js +7 -0
- package/es/components/ModifiedTabs/ModifiedTabLabelNew.js +1 -1
- package/es/components/ModifiedTabs/ModifiedTabLabelWithClose.js +1 -1
- package/es/components/MultiAddSelect/MultiAddSelect.js +14 -7
- package/es/components/MultiAddSelect/index.js +6 -0
- package/es/components/NotificationsPanel/NotificationsPanel.js +1 -1
- package/es/components/OptionsTile/OptionsTile.js +32 -16
- package/es/components/PageHeader/PageHeader.js +4 -4
- package/es/components/PageHeader/PageHeaderTitle.js +1 -1
- package/es/components/ProductiveCard/ProductiveCard.js +5 -0
- package/es/components/RemoveModal/RemoveModal.js +20 -3
- package/es/components/Saving/Saving.js +1 -1
- package/es/components/SidePanel/SidePanel.js +45 -52
- package/es/components/SidePanel/motion/variants.js +45 -0
- package/es/components/SingleAddSelect/SingleAddSelect.js +6 -0
- package/es/components/SingleAddSelect/index.js +6 -0
- package/es/components/StatusIcon/StatusIcon.js +1 -1
- package/es/components/Tearsheet/Tearsheet.js +5 -0
- package/es/components/Tearsheet/TearsheetNarrow.js +5 -0
- package/es/components/Tearsheet/TearsheetShell.js +1 -1
- package/es/components/UserProfileImage/UserProfileImage.js +1 -1
- package/es/components/WebTerminal/WebTerminal.js +1 -1
- package/es/components/WebTerminal/preview-components/Navigation.js +1 -1
- package/es/components/index.js +4 -3
- package/es/global/js/hooks/index.js +2 -1
- package/es/global/js/hooks/useClickOutside.js +1 -1
- package/es/global/js/hooks/useControllableState.js +83 -0
- package/es/global/js/hooks/useCreateComponentFocus.js +38 -10
- package/es/global/js/hooks/useResetCreateComponent.js +6 -2
- package/es/global/js/package-settings.js +9 -6
- package/es/global/js/utils/getBezierValues.js +20 -0
- package/es/global/js/utils/getNumberOfHiddenSteps.js +19 -0
- package/es/global/js/utils/motionConstants.js +45 -0
- package/es/global/js/utils/rangeWithCallback.js +13 -0
- package/es/global/js/utils/story-helper.js +5 -1
- package/es/global/js/utils/uuidv4.spec.js +4 -0
- package/lib/components/APIKeyModal/APIKeyModal.js +4 -4
- package/lib/components/ActionBar/ActionBarOverflowItems.js +1 -0
- package/lib/components/ActionSet/ActionSet.js +7 -3
- package/lib/components/AddSelect/AddSelect.js +5 -6
- package/lib/components/AddSelect/AddSelectBody.js +68 -31
- package/lib/components/AddSelect/AddSelectBreadcrumbs.js +15 -4
- package/lib/components/AddSelect/AddSelectColumn.js +7 -7
- package/lib/components/AddSelect/AddSelectFilter.js +9 -6
- package/lib/components/AddSelect/AddSelectList.js +65 -30
- package/lib/components/AddSelect/AddSelectMetaPanel.js +8 -2
- package/lib/components/AddSelect/AddSelectSidebar.js +4 -1
- package/lib/components/AddSelect/AddSelectSort.js +5 -5
- package/lib/components/AddSelect/add-select-utils.js +9 -2
- package/lib/components/AddSelect/hooks/useItemSort.js +6 -0
- package/lib/components/AddSelect/hooks/useParentSelect.js +6 -0
- package/lib/components/AddSelect/hooks/usePath.js +16 -1
- package/lib/components/BreadcrumbWithOverflow/BreadcrumbWithOverflow.js +6 -6
- package/lib/components/ButtonMenu/ButtonMenu.js +4 -3
- package/lib/components/Card/Card.js +16 -6
- package/lib/components/Card/CardFooter.js +3 -1
- package/lib/components/Card/CardHeader.js +21 -1
- package/lib/components/ComboButton/ComboButton.js +3 -3
- package/lib/components/CreateFullPage/CreateFullPage.js +13 -3
- package/lib/components/CreateTearsheet/CreateTearsheet.js +18 -3
- package/lib/components/CreateTearsheet/preview-components/MultiStepTearsheet.js +3 -1
- package/lib/components/CreateTearsheetNarrow/CreateTearsheetNarrow.js +2 -2
- package/lib/components/DataSpreadsheet/DataSpreadsheet.js +65 -14
- package/lib/components/DataSpreadsheet/DataSpreadsheetBody.js +2 -1
- package/lib/components/DataSpreadsheet/DataSpreadsheetHeader.js +7 -0
- package/lib/components/DataSpreadsheet/hooks/useMultipleKeyTracking.js +6 -5
- package/lib/components/DataSpreadsheet/utils/handleCellDeletion.js +53 -0
- package/lib/components/DataSpreadsheet/utils/handleMultipleKeys.js +1 -1
- package/lib/components/Datagrid/Datagrid/Datagrid.js +19 -47
- package/lib/components/Datagrid/Datagrid/DatagridContent.js +230 -0
- package/lib/components/Datagrid/Datagrid/DatagridEmptyBody.js +19 -9
- package/lib/components/Datagrid/Datagrid/DatagridExpandedRow.js +9 -1
- package/lib/components/Datagrid/Datagrid/DatagridHead.js +1 -3
- package/lib/components/Datagrid/Datagrid/DatagridHeaderRow.js +2 -5
- package/lib/components/Datagrid/Datagrid/DatagridRow.js +46 -8
- package/lib/components/Datagrid/Datagrid/DatagridSelectAll.js +14 -6
- package/lib/components/Datagrid/Datagrid/DatagridSelectAllWithToggle.js +16 -5
- package/lib/components/Datagrid/Datagrid/DatagridSimpleBody.js +1 -2
- package/lib/components/Datagrid/Datagrid/DatagridToolbar.js +14 -10
- package/lib/components/Datagrid/Datagrid/DatagridVirtualBody.js +33 -10
- package/lib/components/Datagrid/Datagrid/DraggableElement.js +12 -4
- package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/Actions.js +11 -49
- package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/ButtonWrapper.js +11 -8
- package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/Columns.js +76 -46
- package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/{CustomizeColumnsModal.js → CustomizeColumnsTearsheet.js} +85 -48
- package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/{ModalWrapper.js → TearsheetWrapper.js} +32 -36
- package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/index.js +3 -3
- package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterFlyout.js +505 -0
- package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterPanel.js +538 -0
- package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterProvider.js +112 -0
- package/lib/components/Datagrid/Datagrid/addons/Filtering/constants.js +47 -0
- package/lib/components/Datagrid/Datagrid/addons/Filtering/hooks/index.js +31 -0
- package/lib/components/Datagrid/Datagrid/addons/Filtering/hooks/useInitialStateFromFilters.js +37 -0
- package/lib/components/Datagrid/Datagrid/addons/Filtering/hooks/useShouldDisableButtons.js +50 -0
- package/lib/components/Datagrid/Datagrid/addons/Filtering/hooks/useSubscribeToEventEmitter.js +35 -0
- package/lib/components/Datagrid/Datagrid/addons/Filtering/index.js +37 -0
- package/lib/components/Datagrid/Datagrid/addons/Filtering/motion/variants.js +67 -0
- package/lib/components/Datagrid/Datagrid/addons/Filtering/utils.js +82 -0
- package/lib/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditButton/InlineEditButton.js +76 -0
- package/lib/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditButton/index.js +13 -0
- package/lib/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditCell/InlineEditCell.js +566 -0
- package/lib/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditCell/index.js +13 -0
- package/lib/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditContext/InlineEditContext.js +129 -0
- package/lib/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditContext/getCellIdAsObject.js +36 -0
- package/lib/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditContext/index.js +19 -0
- package/lib/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditContext/returnUpdatedActiveCell.js +45 -0
- package/lib/components/Datagrid/Datagrid/addons/InlineEdit/handleGridFocus.js +28 -0
- package/lib/components/Datagrid/Datagrid/addons/InlineEdit/handleGridKeyPress.js +271 -0
- package/lib/components/Datagrid/Datagrid/addons/InlineEdit/handleMultipleKeys.js +100 -0
- package/lib/components/Datagrid/Datagrid/addons/RowSize/RowSizeDropdown.js +17 -13
- package/lib/components/Datagrid/Datagrid/addons/RowSize/RowSizeRadioGroup.js +13 -35
- package/lib/components/Datagrid/{Datagrid.stories-helpers → Datagrid.stories}/index.js +0 -8
- package/lib/components/Datagrid/index.js +25 -1
- package/lib/components/Datagrid/useActionsColumn.js +28 -13
- package/lib/components/Datagrid/useColumnOrder.js +17 -0
- package/lib/components/Datagrid/useCustomizeColumns.js +12 -7
- package/lib/components/Datagrid/useDisableSelectRows.js +6 -2
- package/lib/components/Datagrid/useExpandedRow.js +0 -1
- package/lib/components/Datagrid/useFiltering.js +105 -0
- package/lib/components/Datagrid/useInfiniteScroll.js +5 -2
- package/lib/components/Datagrid/useInlineEdit.js +85 -0
- package/lib/components/Datagrid/useNestedRowExpander.js +63 -0
- package/lib/components/Datagrid/useNestedRows.js +17 -4
- package/lib/components/Datagrid/useParentDimensions.js +3 -1
- package/lib/components/Datagrid/useRowExpander.js +17 -5
- package/lib/components/Datagrid/useRowSize.js +18 -13
- package/lib/components/Datagrid/useSelectAllToggle.js +18 -4
- package/lib/components/Datagrid/useSelectRows.js +13 -4
- package/lib/components/Datagrid/useSortableColumns.js +16 -7
- package/lib/components/Datagrid/useStickyColumn.js +11 -0
- package/lib/components/Datagrid/utils/DatagridActions.js +275 -0
- package/lib/components/Datagrid/utils/DatagridPagination.js +46 -0
- package/lib/components/Datagrid/utils/Wrapper.js +33 -0
- package/lib/components/Datagrid/utils/getArgTypes.js +102 -0
- package/lib/components/Datagrid/utils/getInlineEditColumns.js +174 -0
- package/lib/components/Datagrid/utils/makeData.js +56 -2
- package/lib/components/EditUpdateCards/EditUpdateCards.js +152 -0
- package/lib/components/EditUpdateCards/index.js +13 -0
- package/lib/components/ExportModal/ExportModal.js +3 -3
- package/lib/components/FilterSummary/FilterSummary.js +72 -0
- package/lib/components/FilterSummary/index.js +15 -0
- package/lib/components/ImportModal/ImportModal.js +4 -4
- package/lib/components/InlineEdit/InlineEdit.js +27 -426
- package/lib/components/InlineEditV1/InlineEditV1.js +464 -0
- package/lib/components/InlineEditV1/index.js +13 -0
- package/lib/components/InlineEditV2/InlineEditV2.js +309 -0
- package/lib/components/InlineEditV2/index.js +13 -0
- package/lib/components/ModifiedTabs/ModifiedTabLabelNew.js +2 -2
- package/lib/components/ModifiedTabs/ModifiedTabLabelWithClose.js +3 -3
- package/lib/components/MultiAddSelect/MultiAddSelect.js +14 -7
- package/lib/components/NotificationsPanel/NotificationsPanel.js +8 -8
- package/lib/components/OptionsTile/OptionsTile.js +36 -19
- package/lib/components/PageHeader/PageHeader.js +5 -5
- package/lib/components/PageHeader/PageHeaderTitle.js +1 -1
- package/lib/components/ProductiveCard/ProductiveCard.js +5 -0
- package/lib/components/RemoveModal/RemoveModal.js +20 -3
- package/lib/components/Saving/Saving.js +5 -5
- package/lib/components/SidePanel/SidePanel.js +48 -53
- package/lib/components/SidePanel/motion/variants.js +55 -0
- package/lib/components/SingleAddSelect/SingleAddSelect.js +6 -0
- package/lib/components/StatusIcon/StatusIcon.js +45 -45
- package/lib/components/Tearsheet/Tearsheet.js +5 -0
- package/lib/components/Tearsheet/TearsheetNarrow.js +5 -0
- package/lib/components/Tearsheet/TearsheetShell.js +1 -1
- package/lib/components/UserProfileImage/UserProfileImage.js +7 -7
- package/lib/components/WebTerminal/WebTerminal.js +3 -3
- package/lib/components/WebTerminal/preview-components/Navigation.js +4 -4
- package/lib/components/index.js +33 -1
- package/lib/global/js/hooks/index.js +9 -1
- package/lib/global/js/hooks/useClickOutside.js +1 -1
- package/lib/global/js/hooks/useControllableState.js +94 -0
- package/lib/global/js/hooks/useCreateComponentFocus.js +42 -11
- package/lib/global/js/hooks/useResetCreateComponent.js +7 -2
- package/lib/global/js/package-settings.js +9 -6
- package/lib/global/js/utils/getBezierValues.js +29 -0
- package/lib/global/js/utils/getNumberOfHiddenSteps.js +28 -0
- package/lib/global/js/utils/motionConstants.js +55 -0
- package/lib/global/js/utils/rangeWithCallback.js +22 -0
- package/lib/global/js/utils/story-helper.js +5 -1
- package/lib/global/js/utils/uuidv4.spec.js +4 -0
- package/package.json +18 -16
- package/scss/components/ActionSet/_action-set.scss +9 -4
- package/scss/components/AddSelect/_add-select.scss +132 -34
- package/scss/components/AddSelect/_index.scss +1 -1
- package/scss/components/AddSelect/_storybook-styles.scss +1 -1
- package/scss/components/Card/_card.scss +1 -0
- package/scss/components/Cascade/_cascade.scss +1 -1
- package/scss/components/CreateTearsheet/_create-tearsheet.scss +2 -0
- package/scss/components/Datagrid/_datagrid.scss +7 -1
- package/scss/components/Datagrid/_storybook-styles.scss +29 -5
- package/scss/components/Datagrid/styles/_datagrid.scss +131 -37
- package/scss/components/Datagrid/styles/_draggableElement.scss +50 -18
- package/scss/components/Datagrid/styles/_index.scss +10 -8
- package/scss/components/Datagrid/styles/_useActionsColumn.scss +14 -0
- package/scss/components/Datagrid/styles/_useExpandedRow.scss +56 -10
- package/scss/components/Datagrid/styles/_useInlineEdit.scss +419 -0
- package/scss/components/Datagrid/styles/_useNestedRows.scss +33 -1
- package/scss/components/Datagrid/styles/_useSortableColumns.scss +35 -16
- package/scss/components/Datagrid/styles/_useStickyColumn.scss +31 -2
- package/scss/components/Datagrid/styles/addons/_CustomizeColumnsTearsheet.scss +69 -0
- package/scss/components/Datagrid/styles/addons/_FilterFlyout.scss +87 -0
- package/scss/components/Datagrid/styles/addons/_FilterPanel.scss +129 -0
- package/scss/components/Datagrid/styles/addons/_RowSizeDropdown.scss +12 -4
- package/scss/components/EditUpdateCards/_carbon-imports.scss +9 -0
- package/scss/components/EditUpdateCards/_edit-update-cards.scss +85 -0
- package/scss/components/EditUpdateCards/_index-with-carbon.scss +9 -0
- package/scss/components/EditUpdateCards/_index.scss +8 -0
- package/scss/components/EditUpdateCards/_storybook-styles.scss +55 -0
- package/scss/components/FilterSummary/_filter-summary.scss +21 -0
- package/scss/components/FilterSummary/_index.scss +10 -0
- package/scss/components/FilterSummary/_storybook-styles.scss +14 -0
- package/scss/components/{InlineEdit → InlineEditV1}/_index-with-carbon.scss +1 -1
- package/scss/components/{InlineEdit → InlineEditV1}/_index.scss +1 -1
- package/scss/components/{InlineEdit/_inline-edit.scss → InlineEditV1/_inline-edit-v1.scss} +4 -2
- package/scss/components/InlineEditV2/_carbon-imports.scss +9 -0
- package/scss/components/InlineEditV2/_index-with-carbon.scss +9 -0
- package/scss/components/InlineEditV2/_index.scss +10 -0
- package/scss/components/InlineEditV2/_inline-edit-v2.scss +83 -0
- package/scss/components/InlineEditV2/_storybook-styles.scss +9 -0
- package/scss/components/MultiAddSelect/_multi-add-select.scss +8 -1
- package/scss/components/MultiAddSelect/_storybook-styles.scss +1 -1
- package/scss/components/NotificationsPanel/_notifications-panel.scss +3 -6
- package/scss/components/RemoveModal/_remove-modal.scss +0 -4
- package/scss/components/SidePanel/_side-panel.scss +3 -82
- package/scss/components/SidePanel/_storybook-styles.scss +6 -1
- package/scss/components/SingleAddSelect/_carbon-imports.scss +1 -1
- package/scss/components/SingleAddSelect/_index-with-carbon.scss +1 -1
- package/scss/components/SingleAddSelect/_index.scss +7 -0
- package/scss/components/SingleAddSelect/_single-add-select.scss +8 -1
- package/scss/components/SingleAddSelect/_storybook-styles.scss +1 -1
- package/scss/components/Tearsheet/_tearsheet.scss +4 -2
- package/scss/components/_index-released-only-with-carbon.scss +3 -1
- package/scss/components/_index-released-only.scss +4 -1
- package/scss/components/_index-with-carbon.scss +3 -1
- package/scss/components/_index.scss +4 -1
- package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/CustomizeColumnsModal.js +0 -157
- package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/ModalWrapper.js +0 -62
- package/es/components/Datagrid/Datagrid.stories-helpers/LeftPanelStory.js +0 -6
- package/lib/components/Datagrid/Datagrid.stories-helpers/LeftPanelStory.js +0 -13
- package/scss/components/Datagrid/styles/addons/_CustomizeColumnsModal.scss +0 -52
- /package/es/components/Datagrid/{Datagrid.stories-helpers → Datagrid.stories}/CustomizeColumnStory.js +0 -0
- /package/es/components/Datagrid/{Datagrid.stories-helpers → Datagrid.stories}/RowSizeDropdownStory.js +0 -0
- /package/es/components/Datagrid/{Datagrid.stories-helpers → Datagrid.stories}/SelectAllWithToggleStory.js +0 -0
- /package/es/components/Datagrid/{Datagrid.stories-helpers → Datagrid.stories}/StickyActionsColumnStory.js +0 -0
- /package/es/components/Datagrid/{Datagrid.stories-helpers → Datagrid.stories}/common.js +0 -0
- /package/lib/components/Datagrid/{Datagrid.stories-helpers → Datagrid.stories}/CustomizeColumnStory.js +0 -0
- /package/lib/components/Datagrid/{Datagrid.stories-helpers → Datagrid.stories}/RowSizeDropdownStory.js +0 -0
- /package/lib/components/Datagrid/{Datagrid.stories-helpers → Datagrid.stories}/SelectAllWithToggleStory.js +0 -0
- /package/lib/components/Datagrid/{Datagrid.stories-helpers → Datagrid.stories}/StickyActionsColumnStory.js +0 -0
- /package/lib/components/Datagrid/{Datagrid.stories-helpers → Datagrid.stories}/common.js +0 -0
- /package/scss/components/{InlineEdit → InlineEditV1}/_carbon-imports.scss +0 -0
- /package/scss/components/{InlineEdit → InlineEditV1}/_storybook-styles.scss +0 -0
@@ -1,12 +1,14 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
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
|
+
|
8
8
|
@use '@carbon/styles/scss/theme' as *;
|
9
9
|
@use '@carbon/styles/scss/spacing' as *;
|
10
|
+
@use '@carbon/styles/scss/colors';
|
11
|
+
@use '@carbon/styles/scss/motion' as *;
|
10
12
|
@use './variables';
|
11
13
|
|
12
14
|
.#{variables.$block-class}__draggable-handleStyle {
|
@@ -20,32 +22,62 @@
|
|
20
22
|
pointer-events: none;
|
21
23
|
}
|
22
24
|
|
23
|
-
|
24
|
-
fill: $icon-disabled;
|
25
|
+
.#{variables.$block-class}__draggable-handleStyle.disabled svg {
|
26
|
+
fill: $icon-on-color-disabled;
|
25
27
|
}
|
26
28
|
|
27
29
|
.#{variables.$block-class}__draggable-handleHolder {
|
28
30
|
display: flex;
|
29
|
-
height: $spacing-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
31
|
+
height: $spacing-09;
|
32
|
+
border-bottom: 1px solid $layer-active;
|
33
|
+
background-color: $layer;
|
34
|
+
}
|
35
|
+
|
36
|
+
.#{variables.$block-class}__draggable-handleHolder:hover {
|
37
|
+
background-color: $layer-hover;
|
38
|
+
}
|
39
|
+
|
40
|
+
.#{variables.$block-class}__draggable-handleHolder-selected {
|
41
|
+
display: flex;
|
42
|
+
height: $spacing-09;
|
43
|
+
border-bottom: 1px solid $layer-active;
|
44
|
+
background-color: $layer-selected;
|
45
|
+
}
|
46
|
+
|
47
|
+
.#{variables.$block-class}__draggable-handleHolder-selected:hover {
|
48
|
+
background-color: $layer-selected-hover-01;
|
49
|
+
}
|
50
|
+
|
51
|
+
.#{variables.$block-class}__draggable-handleHolder-isOver {
|
52
|
+
border: 2px dashed $focus;
|
53
|
+
/* stylelint-disable-next-line carbon/theme-token-use */
|
54
|
+
background-color: colors.$blue-10;
|
37
55
|
}
|
38
56
|
|
39
57
|
.#{variables.$block-class}__draggable-handleHolder-droppable {
|
40
58
|
display: flex;
|
41
59
|
width: 100%;
|
60
|
+
align-items: center;
|
61
|
+
padding-left: $spacing-05;
|
62
|
+
/* stylelint-disable-next-line carbon/type-token-use */
|
63
|
+
line-height: 1; // center align text within row
|
64
|
+
transition-property: opacity;
|
42
65
|
}
|
43
66
|
|
44
|
-
.#{variables.$block-class}__draggable-handleHolder--
|
67
|
+
.#{variables.$block-class}__draggable-handleHolder-droppable.#{variables.$block-class}__draggable-handleHolder-droppable--origin {
|
68
|
+
opacity: 0.5;
|
69
|
+
transition: opacity $duration-moderate-01 motion(entrance, productive);
|
70
|
+
}
|
71
|
+
|
72
|
+
.#{variables.$block-class}__draggable-handleHolder-grabbed {
|
45
73
|
background-color: $highlight;
|
46
74
|
color: $text-primary;
|
47
75
|
}
|
48
76
|
|
77
|
+
.#{variables.$block-class}__draggable-handleHolder--sticky {
|
78
|
+
color: $text-on-color-disabled;
|
79
|
+
}
|
80
|
+
|
49
81
|
.#{variables.$block-class}__shared-ui--assistive-text {
|
50
82
|
// hide the assistive text. can not use display: none which will also hide from ARIA
|
51
83
|
position: absolute;
|
@@ -1,10 +1,9 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
*/
|
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
|
+
//
|
8
7
|
@use './datagrid';
|
9
8
|
@use './useNestedRows';
|
10
9
|
@use './useNestedTable';
|
@@ -13,8 +12,11 @@
|
|
13
12
|
@use './useColumnCenterAlign';
|
14
13
|
@use './useStickyColumn';
|
15
14
|
@use './useActionsColumn';
|
16
|
-
@use './addons/
|
15
|
+
@use './addons/CustomizeColumnsTearsheet';
|
17
16
|
@use './addons/RowSizeDropdown';
|
17
|
+
@use './addons/FilterFlyout';
|
18
|
+
@use './addons/FilterPanel';
|
18
19
|
@use './useSelectAllToggle';
|
19
20
|
@use './useExpandedRow';
|
20
21
|
@use './draggableElement';
|
22
|
+
@use './useInlineEdit';
|
@@ -7,6 +7,7 @@
|
|
7
7
|
*/
|
8
8
|
|
9
9
|
@use '@carbon/styles/scss/spacing' as *;
|
10
|
+
@use '@carbon/styles/scss/theme';
|
10
11
|
@use './variables';
|
11
12
|
|
12
13
|
.#{variables.$block-class}__actions-column-cell {
|
@@ -23,3 +24,16 @@
|
|
23
24
|
.#{variables.$block-class}__actions-column-loading {
|
24
25
|
margin-bottom: $spacing-03;
|
25
26
|
}
|
27
|
+
|
28
|
+
.#{variables.$block-class}
|
29
|
+
.#{variables.$block-class}__disabled-row-action-button {
|
30
|
+
cursor: not-allowed;
|
31
|
+
}
|
32
|
+
|
33
|
+
.#{variables.$block-class} .#{variables.$block-class}__disabled-row-action {
|
34
|
+
pointer-events: none;
|
35
|
+
}
|
36
|
+
|
37
|
+
.#{variables.$block-class} .#{variables.$block-class}__disabled-row-action svg {
|
38
|
+
fill: theme.$layer-selected-disabled;
|
39
|
+
}
|
@@ -1,14 +1,60 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
1
|
+
/*
|
2
|
+
* Licensed Materials - Property of IBM
|
3
|
+
* 5724-Q36
|
4
|
+
* (c) Copyright IBM Corp. 2022
|
5
|
+
* US Government Users Restricted Rights - Use, duplication or disclosure
|
6
|
+
* restricted by GSA ADP Schedule Contract with IBM Corp.
|
7
|
+
*/
|
8
|
+
|
9
|
+
@use '../../../global/styles/project-settings' as c4p-settings;
|
10
|
+
@use '@carbon/styles/scss/theme' as *;
|
9
11
|
@use '@carbon/styles/scss/spacing' as *;
|
12
|
+
@use './variables';
|
13
|
+
|
14
|
+
@mixin shared-pseudo-styles() {
|
15
|
+
height: 1px;
|
16
|
+
background-color: $layer-accent;
|
17
|
+
content: '';
|
18
|
+
}
|
10
19
|
|
11
|
-
|
12
|
-
|
20
|
+
.#{variables.$block-class} .#{variables.$block-class}__expanded-row-content {
|
21
|
+
position: relative;
|
13
22
|
padding: $spacing-05 $spacing-05 $spacing-06 $spacing-10;
|
14
23
|
}
|
24
|
+
|
25
|
+
.#{variables.$block-class}
|
26
|
+
.#{variables.$block-class}__expanded-row-content::before {
|
27
|
+
position: absolute;
|
28
|
+
/* stylelint-disable-next-line carbon/layout-token-use */
|
29
|
+
top: -1px;
|
30
|
+
right: 0;
|
31
|
+
width: calc(100% - #{$spacing-09});
|
32
|
+
@include shared-pseudo-styles();
|
33
|
+
}
|
34
|
+
|
35
|
+
.#{variables.$block-class}
|
36
|
+
.#{variables.$block-class}__expanded-row-content::after {
|
37
|
+
position: absolute;
|
38
|
+
bottom: 0;
|
39
|
+
left: 0;
|
40
|
+
width: 100%;
|
41
|
+
@include shared-pseudo-styles();
|
42
|
+
}
|
43
|
+
|
44
|
+
.#{variables.$block-class}__carbon-row.#{variables.$block-class}__carbon-row-expandable
|
45
|
+
.#{variables.$block-class}__cell.#{variables.$block-class}__expandable-row-cell {
|
46
|
+
padding: $spacing-03;
|
47
|
+
padding-right: 0;
|
48
|
+
}
|
49
|
+
|
50
|
+
.#{variables.$block-class}__row-expander.#{c4p-settings.$carbon-prefix}--btn {
|
51
|
+
display: flex;
|
52
|
+
width: $spacing-07;
|
53
|
+
height: $spacing-07;
|
54
|
+
min-height: $spacing-07;
|
55
|
+
justify-content: center;
|
56
|
+
padding: 0;
|
57
|
+
.#{variables.$block-class}__row-expander--icon {
|
58
|
+
fill: $layer-selected-inverse;
|
59
|
+
}
|
60
|
+
}
|
@@ -0,0 +1,419 @@
|
|
1
|
+
/*
|
2
|
+
* Licensed Materials - Property of IBM
|
3
|
+
* 5724-Q36
|
4
|
+
* (c) Copyright IBM Corp. 2021
|
5
|
+
* US Government Users Restricted Rights - Use, duplication or disclosure
|
6
|
+
* restricted by GSA ADP Schedule Contract with IBM Corp.
|
7
|
+
*/
|
8
|
+
|
9
|
+
@use '../../../global/styles/project-settings' as c4p-settings;
|
10
|
+
@use '@carbon/styles/scss/spacing' as *;
|
11
|
+
@use '@carbon/styles/scss/theme' as *;
|
12
|
+
@use '@carbon/styles/scss/components/button/tokens' as *;
|
13
|
+
@use '@carbon/type' as *;
|
14
|
+
@use './variables';
|
15
|
+
|
16
|
+
$row-heights: (
|
17
|
+
xs: 1.5rem,
|
18
|
+
sm: 2rem,
|
19
|
+
md: 2.5rem,
|
20
|
+
lg: 3rem,
|
21
|
+
xl: 4rem,
|
22
|
+
);
|
23
|
+
|
24
|
+
@each $size, $size-value in $row-heights {
|
25
|
+
.#{variables.$block-class}
|
26
|
+
.#{variables.$block-class}__inline-edit--outer-cell-button--#{$size}
|
27
|
+
.#{c4p-settings.$carbon-prefix}--text-input,
|
28
|
+
.#{variables.$block-class}
|
29
|
+
.#{variables.$block-class}__inline-edit--outer-cell-button--#{$size}
|
30
|
+
.#{c4p-settings.$carbon-prefix}--number
|
31
|
+
input[type='number'],
|
32
|
+
.#{variables.$block-class}
|
33
|
+
.#{variables.$block-class}__inline-edit--outer-cell-button--#{$size}
|
34
|
+
.#{variables.$block-class}__inline-edit--select
|
35
|
+
.#{c4p-settings.$carbon-prefix}--list-box.#{c4p-settings.$carbon-prefix}--dropdown,
|
36
|
+
.#{variables.$block-class}
|
37
|
+
.#{variables.$block-class}__inline-edit--date.#{variables.$block-class}__inline-edit--date-#{$size}
|
38
|
+
.#{c4p-settings.$carbon-prefix}--date-picker__input {
|
39
|
+
height: $size-value;
|
40
|
+
}
|
41
|
+
.#{variables.$block-class}
|
42
|
+
.#{variables.$block-class}__inline-edit--outer-cell-button--#{$size}
|
43
|
+
.#{c4p-settings.$carbon-prefix}--number__control-btn::before,
|
44
|
+
.#{variables.$block-class}
|
45
|
+
.#{variables.$block-class}__inline-edit--outer-cell-button--#{$size}
|
46
|
+
.#{c4p-settings.$carbon-prefix}--number__control-btn::after {
|
47
|
+
height: calc(#{$size-value} - 0.25rem);
|
48
|
+
}
|
49
|
+
.#{variables.$block-class}
|
50
|
+
.#{variables.$block-class}__inline-edit--outer-cell-button--#{$size}
|
51
|
+
.#{variables.$block-class}__inline-edit--select
|
52
|
+
.#{c4p-settings.$carbon-prefix}--list-box {
|
53
|
+
max-height: none;
|
54
|
+
}
|
55
|
+
}
|
56
|
+
|
57
|
+
@mixin input-outline($color: $focus) {
|
58
|
+
/* stylelint-disable-next-line carbon/theme-token-use */
|
59
|
+
outline: $spacing-01 solid $color;
|
60
|
+
outline-offset: calc(-1 * #{$spacing-01});
|
61
|
+
|
62
|
+
@media screen and (prefers-contrast) {
|
63
|
+
outline-style: dotted;
|
64
|
+
}
|
65
|
+
}
|
66
|
+
|
67
|
+
.#{variables.$block-class} {
|
68
|
+
--#{variables.$block-class}--grid-header-height: 0;
|
69
|
+
}
|
70
|
+
|
71
|
+
.#{variables.$block-class}__inline-edit-cell {
|
72
|
+
display: flex;
|
73
|
+
height: 100%;
|
74
|
+
align-items: center;
|
75
|
+
}
|
76
|
+
|
77
|
+
.#{variables.$block-class}
|
78
|
+
.#{c4p-settings.$pkg-prefix}--inline-edit__after-input-elements {
|
79
|
+
display: flex;
|
80
|
+
align-items: center;
|
81
|
+
}
|
82
|
+
|
83
|
+
.#{variables.$block-class}__inline-edit--outer-cell-button {
|
84
|
+
width: 100%;
|
85
|
+
height: calc(100% + 2px); // account for borders
|
86
|
+
}
|
87
|
+
|
88
|
+
.#{variables.$block-class}__inline-edit--outer-cell-button
|
89
|
+
.#{variables.$block-class}__inline-edit-button {
|
90
|
+
position: relative;
|
91
|
+
display: flex;
|
92
|
+
width: 100%;
|
93
|
+
height: 100%;
|
94
|
+
align-items: center;
|
95
|
+
justify-content: space-between;
|
96
|
+
padding-left: $spacing-05;
|
97
|
+
color: $text-secondary;
|
98
|
+
cursor: pointer;
|
99
|
+
outline: 0; // handled by active class
|
100
|
+
.#{variables.$block-class}__label-icon {
|
101
|
+
height: $spacing-05;
|
102
|
+
padding-right: $spacing-05;
|
103
|
+
}
|
104
|
+
&.#{variables.$block-class}__inline-edit-button--non-edit {
|
105
|
+
padding-left: 0;
|
106
|
+
cursor: default;
|
107
|
+
}
|
108
|
+
.#{variables.$block-class}__inline-edit-button-icon {
|
109
|
+
height: $spacing-05;
|
110
|
+
fill: $icon-secondary;
|
111
|
+
}
|
112
|
+
&.#{variables.$block-class}__inline-edit-button--date {
|
113
|
+
@include font-family($name: mono);
|
114
|
+
}
|
115
|
+
&.#{variables.$block-class}__inline-edit-button--selection {
|
116
|
+
justify-content: flex-start;
|
117
|
+
}
|
118
|
+
// Always show renderIcon if inline edit columns are less than half of total columns
|
119
|
+
&:not(.#{variables.$block-class}__inline-edit-button--edit-less-than-half-of-total-cols) {
|
120
|
+
.#{variables.$block-class}__inline-edit-button-icon {
|
121
|
+
display: none;
|
122
|
+
}
|
123
|
+
|
124
|
+
/* stylelint-disable-next-line */
|
125
|
+
&:hover {
|
126
|
+
.#{variables.$block-class}__inline-edit-button-icon {
|
127
|
+
display: block;
|
128
|
+
}
|
129
|
+
}
|
130
|
+
}
|
131
|
+
}
|
132
|
+
|
133
|
+
.#{variables.$block-class}__inline-edit--outer-cell-button
|
134
|
+
.#{variables.$block-class}__inline-edit-button:not([data-disabled='true']):hover {
|
135
|
+
background-color: $layer-active;
|
136
|
+
color: $text-primary;
|
137
|
+
.#{variables.$block-class}__inline-edit-button-icon {
|
138
|
+
fill: $icon-primary;
|
139
|
+
}
|
140
|
+
}
|
141
|
+
|
142
|
+
.#{variables.$block-class}__inline-edit--outer-cell-button
|
143
|
+
.#{variables.$block-class}__inline-edit-button.#{variables.$block-class}__inline-edit-button--active:not([data-disabled='true']) {
|
144
|
+
background-color: $layer-active;
|
145
|
+
color: $text-primary;
|
146
|
+
cursor: text;
|
147
|
+
}
|
148
|
+
|
149
|
+
.#{variables.$block-class}__inline-edit--outer-cell-button
|
150
|
+
.#{variables.$block-class}__inline-edit-button.#{variables.$block-class}__inline-edit-button--active {
|
151
|
+
@include input-outline;
|
152
|
+
}
|
153
|
+
|
154
|
+
.#{variables.$block-class}__inline-edit--outer-cell-button
|
155
|
+
.#{variables.$block-class}__inline-edit-button--disabled:not(.#{variables.$block-class}__inline-edit-button--edit-less-than-half-of-total-cols) {
|
156
|
+
color: $button-disabled;
|
157
|
+
cursor: not-allowed;
|
158
|
+
}
|
159
|
+
|
160
|
+
.#{variables.$block-class}__inline-edit--outer-cell-button
|
161
|
+
.#{variables.$block-class}__inline-edit-button
|
162
|
+
.#{variables.$block-class}__inline-edit-button-label {
|
163
|
+
overflow: hidden;
|
164
|
+
padding-right: $spacing-05;
|
165
|
+
text-overflow: ellipsis;
|
166
|
+
white-space: nowrap;
|
167
|
+
}
|
168
|
+
|
169
|
+
.#{variables.$block-class}__inline-edit--outer-cell-button
|
170
|
+
.#{variables.$block-class}__inline-edit-button
|
171
|
+
.#{variables.$block-class}__inline-edit-button-label.#{variables.$block-class}__inline-edit-button-label-with-icon {
|
172
|
+
padding-right: $spacing-09;
|
173
|
+
}
|
174
|
+
|
175
|
+
.#{variables.$block-class}__inline-edit--outer-cell-button
|
176
|
+
.#{c4p-settings.$carbon-prefix}--text-input,
|
177
|
+
.#{variables.$block-class}__inline-edit--outer-cell-button
|
178
|
+
.#{c4p-settings.$carbon-prefix}--number
|
179
|
+
input[type='number'] {
|
180
|
+
height: $spacing-09;
|
181
|
+
}
|
182
|
+
|
183
|
+
.#{variables.$block-class}__inline-edit-button-icon {
|
184
|
+
position: absolute;
|
185
|
+
right: $spacing-05;
|
186
|
+
}
|
187
|
+
|
188
|
+
.#{variables.$block-class}__table-with-inline-edit.#{c4p-settings.$carbon-prefix}--data-table
|
189
|
+
.#{variables.$block-class}__cell-inline-edit {
|
190
|
+
position: relative;
|
191
|
+
padding: 0;
|
192
|
+
.#{variables.$block-class}__inline-edit-button--non-edit {
|
193
|
+
padding-left: $spacing-05;
|
194
|
+
}
|
195
|
+
|
196
|
+
.#{c4p-settings.$carbon-prefix}--number input[type='number'] {
|
197
|
+
min-width: auto;
|
198
|
+
padding-right: $spacing-05;
|
199
|
+
}
|
200
|
+
}
|
201
|
+
|
202
|
+
.#{variables.$block-class}__inline-edit--select
|
203
|
+
.#{variables.$block-class}__inline-edit--select-item {
|
204
|
+
padding-bottom: $spacing-05;
|
205
|
+
padding-left: $spacing-05;
|
206
|
+
}
|
207
|
+
|
208
|
+
.#{variables.$block-class}__inline-edit--select.#{c4p-settings.$carbon-prefix}--dropdown,
|
209
|
+
.#{variables.$block-class}__inline-edit--date
|
210
|
+
.#{c4p-settings.$carbon-prefix}--date-picker {
|
211
|
+
width: inherit;
|
212
|
+
}
|
213
|
+
|
214
|
+
.#{variables.$block-class}__inline-edit--select.#{c4p-settings.$carbon-prefix}--dropdown,
|
215
|
+
.#{variables.$block-class}__inline-edit--date
|
216
|
+
.#{c4p-settings.$carbon-prefix}--date-picker.#{c4p-settings.$carbon-prefix}--date-picker--single
|
217
|
+
.#{c4p-settings.$carbon-prefix}--date-picker__input {
|
218
|
+
width: 100%;
|
219
|
+
height: $spacing-09; // default row height
|
220
|
+
max-height: none;
|
221
|
+
}
|
222
|
+
|
223
|
+
.#{variables.$block-class}__inline-edit--date
|
224
|
+
.#{c4p-settings.$carbon-prefix}--date-picker-container {
|
225
|
+
width: inherit;
|
226
|
+
}
|
227
|
+
|
228
|
+
.#{variables.$block-class}__inline-edit--date.#{c4p-settings.$carbon-prefix}--date-picker.#{c4p-settings.$carbon-prefix}--date-picker--single
|
229
|
+
.#{c4p-settings.$carbon-prefix}--date-picker__input {
|
230
|
+
overflow: hidden;
|
231
|
+
width: 100%;
|
232
|
+
max-width: none;
|
233
|
+
padding-right: $spacing-07;
|
234
|
+
text-overflow: ellipsis;
|
235
|
+
white-space: nowrap;
|
236
|
+
}
|
237
|
+
|
238
|
+
.#{variables.$block-class}
|
239
|
+
.#{c4p-settings.$carbon-prefix}--data-table
|
240
|
+
.#{variables.$block-class}__carbon-row-hover-active
|
241
|
+
td {
|
242
|
+
border-top-color: $layer-hover;
|
243
|
+
background-color: $layer-hover;
|
244
|
+
}
|
245
|
+
|
246
|
+
// Custom border/outline for the focus region area, because of the scrolling
|
247
|
+
// containers, using default border caused grid area width to be changed and
|
248
|
+
// outlines were not present be
|
249
|
+
.#{variables.$block-class}
|
250
|
+
.#{variables.$block-class}__grid-container-grid-active::before {
|
251
|
+
position: absolute;
|
252
|
+
z-index: 2;
|
253
|
+
bottom: 0;
|
254
|
+
left: 0;
|
255
|
+
width: 2px;
|
256
|
+
height: calc(
|
257
|
+
100% - 50px - var(--#{variables.$block-class}--grid-header-height)
|
258
|
+
);
|
259
|
+
background-color: $link-inverse;
|
260
|
+
content: '';
|
261
|
+
}
|
262
|
+
|
263
|
+
.#{variables.$block-class}
|
264
|
+
.#{variables.$block-class}__grid-container-grid-active::after {
|
265
|
+
position: absolute;
|
266
|
+
z-index: 2;
|
267
|
+
right: 0;
|
268
|
+
bottom: 0;
|
269
|
+
width: 2px;
|
270
|
+
height: calc(
|
271
|
+
100% - 50px - var(--#{variables.$block-class}--grid-header-height)
|
272
|
+
);
|
273
|
+
background-color: $link-inverse;
|
274
|
+
content: '';
|
275
|
+
}
|
276
|
+
|
277
|
+
.#{variables.$block-class}
|
278
|
+
.#{variables.$block-class}__grid-container-grid-active
|
279
|
+
.#{c4p-settings.$carbon-prefix}--data-table-content::before {
|
280
|
+
position: absolute;
|
281
|
+
z-index: 2;
|
282
|
+
top: 0;
|
283
|
+
right: 0;
|
284
|
+
left: 0;
|
285
|
+
width: var(--#{variables.$block-class}--grid-width);
|
286
|
+
height: 2px;
|
287
|
+
background-color: $link-inverse;
|
288
|
+
}
|
289
|
+
|
290
|
+
.#{variables.$block-class}
|
291
|
+
.#{variables.$block-class}__grid-container-grid-active.#{variables.$block-class}__grid-container-grid-active--without-toolbar::before,
|
292
|
+
.#{variables.$block-class}
|
293
|
+
.#{variables.$block-class}__grid-container-grid-active.#{variables.$block-class}__grid-container-grid-active--without-toolbar::after {
|
294
|
+
height: calc(
|
295
|
+
100% - 2px - var(--#{variables.$block-class}--grid-header-height)
|
296
|
+
);
|
297
|
+
}
|
298
|
+
|
299
|
+
.#{variables.$block-class}
|
300
|
+
.#{variables.$block-class}__grid-container-grid-active
|
301
|
+
.#{variables.$block-class}__table-container {
|
302
|
+
outline: 2px solid $link-inverse;
|
303
|
+
outline-offset: -2px;
|
304
|
+
}
|
305
|
+
|
306
|
+
.#{variables.$block-class}
|
307
|
+
.#{variables.$block-class}__grid-container-inline-edit
|
308
|
+
.#{variables.$block-class}__table-container {
|
309
|
+
padding-top: $spacing-01;
|
310
|
+
}
|
311
|
+
|
312
|
+
.#{variables.$block-class}
|
313
|
+
.#{variables.$block-class}__inline-edit--outer-cell-button--invalid
|
314
|
+
[data-invalid]
|
315
|
+
~ .#{c4p-settings.$carbon-prefix}--form-requirement,
|
316
|
+
.#{variables.$block-class}
|
317
|
+
.#{variables.$block-class}__inline-edit--outer-cell-button--invalid
|
318
|
+
[data-invalid]
|
319
|
+
.#{c4p-settings.$carbon-prefix}--form-requirement {
|
320
|
+
position: absolute;
|
321
|
+
z-index: 3;
|
322
|
+
top: calc(100% - #{$spacing-01});
|
323
|
+
width: 100%;
|
324
|
+
padding: $spacing-03 $spacing-06 $spacing-03 $spacing-03;
|
325
|
+
margin: 0;
|
326
|
+
background-color: $layer-01;
|
327
|
+
outline: $spacing-01 solid $support-error;
|
328
|
+
outline-offset: calc(-1 * #{$spacing-01});
|
329
|
+
}
|
330
|
+
|
331
|
+
.#{variables.$block-class}
|
332
|
+
.#{variables.$block-class}__inline-edit--outer-cell-button--invalid
|
333
|
+
.#{c4p-settings.$carbon-prefix}--list-box[data-invalid]:focus-within
|
334
|
+
~ .#{c4p-settings.$carbon-prefix}--form-requirement {
|
335
|
+
outline: $spacing-01 solid $focus;
|
336
|
+
}
|
337
|
+
|
338
|
+
.#{variables.$block-class}
|
339
|
+
.#{variables.$block-class}__inline-edit--outer-cell-button--invalid
|
340
|
+
.#{c4p-settings.$carbon-prefix}--list-box__invalid-icon,
|
341
|
+
.#{variables.$block-class}
|
342
|
+
.#{variables.$block-class}__inline-edit--outer-cell-button--invalid
|
343
|
+
.#{c4p-settings.$carbon-prefix}--text-input__invalid-icon,
|
344
|
+
.#{variables.$block-class}
|
345
|
+
.#{variables.$block-class}__inline-edit--outer-cell-button--invalid
|
346
|
+
.#{c4p-settings.$carbon-prefix}--number__invalid {
|
347
|
+
z-index: 4;
|
348
|
+
top: calc(100% + #{$spacing-04} + #{$spacing-01});
|
349
|
+
right: $spacing-03;
|
350
|
+
}
|
351
|
+
|
352
|
+
.#{variables.$block-class}
|
353
|
+
.#{variables.$block-class}__inline-edit--outer-cell-button--invalid
|
354
|
+
.#{c4p-settings.$carbon-prefix}--number__invalid {
|
355
|
+
top: calc(100% + #{$spacing-02} + #{$spacing-01});
|
356
|
+
}
|
357
|
+
|
358
|
+
.#{variables.$block-class}
|
359
|
+
.#{variables.$block-class}__inline-edit--outer-cell-button--invalid
|
360
|
+
.#{c4p-settings.$carbon-prefix}--form-requirement::before {
|
361
|
+
position: absolute;
|
362
|
+
top: 0;
|
363
|
+
left: $spacing-01;
|
364
|
+
width: calc(100% - (#{$spacing-01} * 2));
|
365
|
+
height: $spacing-01;
|
366
|
+
background-color: $layer-01;
|
367
|
+
content: '';
|
368
|
+
}
|
369
|
+
|
370
|
+
.#{variables.$block-class}__inline-edit--outer-cell-button--invalid
|
371
|
+
.#{c4p-settings.$carbon-prefix}--form-requirement::after {
|
372
|
+
position: absolute;
|
373
|
+
top: $spacing-01;
|
374
|
+
left: $spacing-03;
|
375
|
+
width: calc(100% - (#{$spacing-03} * 2));
|
376
|
+
height: 1px;
|
377
|
+
background-color: $layer-accent-01;
|
378
|
+
content: '';
|
379
|
+
}
|
380
|
+
|
381
|
+
.#{variables.$block-class} tbody tr:hover {
|
382
|
+
.#{variables.$block-class}__inline-edit--outer-cell-button--invalid
|
383
|
+
.#{c4p-settings.$carbon-prefix}--form-requirement::before {
|
384
|
+
background-color: $layer-accent-01;
|
385
|
+
}
|
386
|
+
.#{variables.$block-class}__inline-edit--outer-cell-button--invalid
|
387
|
+
.#{c4p-settings.$carbon-prefix}--form-requirement::after {
|
388
|
+
background-color: transparent;
|
389
|
+
}
|
390
|
+
}
|
391
|
+
|
392
|
+
// Keep input focus states using $support-01 when inline edit cell is invalid
|
393
|
+
.#{variables.$block-class}
|
394
|
+
.#{variables.$block-class}__inline-edit--outer-cell-button--invalid
|
395
|
+
.#{c4p-settings.$carbon-prefix}--text-input:focus,
|
396
|
+
.#{variables.$block-class}
|
397
|
+
.#{variables.$block-class}__inline-edit--outer-cell-button--invalid
|
398
|
+
.#{c4p-settings.$carbon-prefix}--number
|
399
|
+
input[type='number']:focus,
|
400
|
+
.#{variables.$block-class}
|
401
|
+
.#{variables.$block-class}__inline-edit--outer-cell-button--invalid
|
402
|
+
.#{c4p-settings.$carbon-prefix}--number
|
403
|
+
input[type='number']:focus
|
404
|
+
~ .#{c4p-settings.$carbon-prefix}--number__controls
|
405
|
+
.#{c4p-settings.$carbon-prefix}--number__control-btn:hover,
|
406
|
+
.#{variables.$block-class}
|
407
|
+
.#{variables.$block-class}__inline-edit--outer-cell-button--invalid
|
408
|
+
.#{c4p-settings.$carbon-prefix}--number__control-btn:focus {
|
409
|
+
outline-color: $support-error;
|
410
|
+
}
|
411
|
+
|
412
|
+
.#{variables.$block-class}
|
413
|
+
.#{variables.$block-class}__inline-edit--outer-cell-button--invalid
|
414
|
+
.#{c4p-settings.$carbon-prefix}--number
|
415
|
+
input[type='number'][data-invalid]:focus
|
416
|
+
~ .#{c4p-settings.$carbon-prefix}--number__controls
|
417
|
+
.#{c4p-settings.$carbon-prefix}--number__control-btn.up-icon::after {
|
418
|
+
background-color: $support-error;
|
419
|
+
}
|
@@ -1,13 +1,14 @@
|
|
1
1
|
/*
|
2
2
|
* Licensed Materials - Property of IBM
|
3
3
|
* 5724-Q36
|
4
|
-
* (c) Copyright IBM Corp. 2020 -
|
4
|
+
* (c) Copyright IBM Corp. 2020 - 2022
|
5
5
|
* US Government Users Restricted Rights - Use, duplication or disclosure
|
6
6
|
* restricted by GSA ADP Schedule Contract with IBM Corp.
|
7
7
|
*/
|
8
8
|
|
9
9
|
@use '@carbon/styles/scss/theme' as *;
|
10
10
|
@use '../../../global/styles/project-settings' as c4p-settings;
|
11
|
+
@use '@carbon/styles/scss/motion' as *;
|
11
12
|
@use './variables' as *;
|
12
13
|
|
13
14
|
.#{c4p-settings.$carbon-prefix}--data-table
|
@@ -18,3 +19,34 @@
|
|
18
19
|
border-bottom: 1px solid $layer-accent-01;
|
19
20
|
}
|
20
21
|
}
|
22
|
+
|
23
|
+
.#{$block-class} .#{$block-class}__expander-icon {
|
24
|
+
transition: transform $duration-fast-01 motion('standard', 'productive');
|
25
|
+
}
|
26
|
+
|
27
|
+
.#{$block-class} .#{$block-class}__expander-icon--open {
|
28
|
+
transform: rotate(90deg);
|
29
|
+
}
|
30
|
+
|
31
|
+
.#{$block-class}__expanded-row
|
32
|
+
.#{$block-class}__carbon-row-expanded
|
33
|
+
td:first-child {
|
34
|
+
border-bottom: none;
|
35
|
+
}
|
36
|
+
|
37
|
+
.#{$block-class} .#{$block-class}__carbon-row-expandable {
|
38
|
+
position: relative;
|
39
|
+
}
|
40
|
+
|
41
|
+
.#{$block-class}
|
42
|
+
tr.#{$block-class}__carbon-nested-row
|
43
|
+
+ :not(tr.#{$block-class}__carbon-nested-row)::before {
|
44
|
+
position: absolute;
|
45
|
+
/* stylelint-disable-next-line carbon/layout-token-use */
|
46
|
+
top: -1px;
|
47
|
+
left: 0;
|
48
|
+
width: 100%;
|
49
|
+
height: 1px;
|
50
|
+
background-color: $border-subtle;
|
51
|
+
content: '';
|
52
|
+
}
|