@carbon/ibm-products 2.0.0-rc.1 → 2.0.0-rc.11
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 +1294 -331
- 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 +789 -171
- 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 +1171 -416
- 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 +1068 -262
- 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 +72 -31
- 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 +15 -1
- package/es/components/AddSelect/index.js +1 -1
- package/es/components/BreadcrumbWithOverflow/BreadcrumbWithOverflow.js +4 -6
- 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 +4 -1
- package/es/components/CreateTearsheet/CreateTearsheet.js +8 -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 +13 -37
- package/es/components/Datagrid/Datagrid/DatagridContent.js +159 -0
- package/es/components/Datagrid/Datagrid/DatagridEmptyBody.js +17 -4
- package/es/components/Datagrid/Datagrid/DatagridExpandedRow.js +9 -1
- package/es/components/Datagrid/Datagrid/DatagridRow.js +44 -5
- package/es/components/Datagrid/Datagrid/DatagridSelectAll.js +10 -3
- package/es/components/Datagrid/Datagrid/DatagridSelectAllWithToggle.js +13 -4
- package/es/components/Datagrid/Datagrid/DatagridToolbar.js +29 -8
- package/es/components/Datagrid/Datagrid/DatagridVirtualBody.js +31 -9
- package/es/components/Datagrid/Datagrid/DraggableElement.js +6 -2
- package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/Actions.js +5 -45
- package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/ButtonWrapper.js +4 -1
- package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/Columns.js +36 -10
- package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/CustomizeColumnsModal.js +62 -26
- package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/ModalWrapper.js +3 -2
- package/es/components/Datagrid/Datagrid/addons/Filtering/FilterFlyout.js +424 -0
- package/es/components/Datagrid/Datagrid/addons/Filtering/FilterProvider.js +83 -0
- package/es/components/Datagrid/Datagrid/addons/Filtering/constants.js +20 -0
- package/es/components/Datagrid/Datagrid/addons/Filtering/hooks/useInitialStateFromFilters.js +22 -0
- package/es/components/Datagrid/Datagrid/addons/Filtering/index.js +7 -0
- package/es/components/Datagrid/Datagrid/addons/Filtering/utils.js +38 -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 +537 -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 +263 -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}/CustomizeColumnStory.js +0 -0
- package/es/components/Datagrid/{Datagrid.stories-helpers → Datagrid.stories}/LeftPanelStory.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/es/components/Datagrid/{Datagrid.stories-helpers → Datagrid.stories}/index.js +0 -0
- 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 +5 -0
- package/es/components/Datagrid/useDefaultStringRenderer.js +4 -1
- package/es/components/Datagrid/useDisableSelectRows.js +6 -2
- package/es/components/Datagrid/useExpandedRow.js +0 -1
- package/es/components/Datagrid/useFiltering.js +90 -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 +12 -2
- package/es/components/Datagrid/useSortableColumns.js +1 -1
- package/es/components/Datagrid/useStickyColumn.js +11 -0
- package/es/components/Datagrid/utils/DatagridActions.js +223 -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 +158 -0
- package/es/components/Datagrid/utils/makeData.js +55 -2
- 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 +29 -13
- 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/UserProfileImage/UserProfileImage.js +1 -1
- package/es/components/WebTerminal/WebTerminal.js +2 -2
- package/es/components/WebTerminal/WebTerminalContentWrapper.js +1 -1
- package/es/components/WebTerminal/hooks/index.js +6 -0
- package/es/components/WebTerminal/index.js +6 -0
- package/es/components/WebTerminal/preview-components/Navigation.js +7 -1
- package/es/components/WebTerminal/preview-components/documentationLinks.js +6 -0
- package/es/components/WebTerminal/preview-components/index.js +7 -0
- package/es/components/index.js +3 -2
- 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/useResetCreateComponent.js +6 -2
- package/es/global/js/package-settings.js +7 -4
- 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 +67 -30
- 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 +9 -1
- package/lib/components/BreadcrumbWithOverflow/BreadcrumbWithOverflow.js +6 -6
- 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 +4 -1
- package/lib/components/CreateTearsheet/CreateTearsheet.js +9 -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 +16 -44
- package/lib/components/Datagrid/Datagrid/DatagridContent.js +193 -0
- package/lib/components/Datagrid/Datagrid/DatagridEmptyBody.js +17 -4
- package/lib/components/Datagrid/Datagrid/DatagridExpandedRow.js +9 -1
- package/lib/components/Datagrid/Datagrid/DatagridRow.js +45 -5
- package/lib/components/Datagrid/Datagrid/DatagridSelectAll.js +12 -3
- package/lib/components/Datagrid/Datagrid/DatagridSelectAllWithToggle.js +16 -5
- package/lib/components/Datagrid/Datagrid/DatagridToolbar.js +32 -8
- package/lib/components/Datagrid/Datagrid/DatagridVirtualBody.js +33 -9
- package/lib/components/Datagrid/Datagrid/DraggableElement.js +7 -3
- package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/Actions.js +12 -47
- package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/ButtonWrapper.js +5 -2
- package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/Columns.js +48 -25
- package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/CustomizeColumnsModal.js +60 -25
- package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/ModalWrapper.js +3 -2
- package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterFlyout.js +443 -0
- package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterProvider.js +104 -0
- package/lib/components/Datagrid/Datagrid/addons/Filtering/constants.js +35 -0
- package/lib/components/Datagrid/Datagrid/addons/Filtering/hooks/useInitialStateFromFilters.js +33 -0
- package/lib/components/Datagrid/Datagrid/addons/Filtering/index.js +15 -0
- package/lib/components/Datagrid/Datagrid/addons/Filtering/utils.js +47 -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 +562 -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 +272 -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}/CustomizeColumnStory.js +0 -0
- package/lib/components/Datagrid/{Datagrid.stories-helpers → Datagrid.stories}/LeftPanelStory.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/lib/components/Datagrid/{Datagrid.stories-helpers → Datagrid.stories}/index.js +0 -0
- 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 +5 -0
- package/lib/components/Datagrid/useDefaultStringRenderer.js +5 -1
- package/lib/components/Datagrid/useDisableSelectRows.js +6 -2
- package/lib/components/Datagrid/useExpandedRow.js +0 -1
- package/lib/components/Datagrid/useFiltering.js +94 -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 +12 -2
- package/lib/components/Datagrid/useSortableColumns.js +5 -5
- package/lib/components/Datagrid/useStickyColumn.js +11 -0
- package/lib/components/Datagrid/utils/DatagridActions.js +248 -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 +173 -0
- package/lib/components/Datagrid/utils/makeData.js +57 -3
- 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 +34 -17
- 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/UserProfileImage/UserProfileImage.js +7 -7
- package/lib/components/WebTerminal/WebTerminal.js +3 -3
- package/lib/components/WebTerminal/hooks/index.js +6 -0
- package/lib/components/WebTerminal/preview-components/Navigation.js +10 -4
- package/lib/components/WebTerminal/preview-components/documentationLinks.js +6 -0
- package/lib/components/index.js +21 -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/useResetCreateComponent.js +7 -2
- package/lib/global/js/package-settings.js +7 -4
- 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 +105 -18
- package/scss/components/Datagrid/styles/_draggableElement.scss +26 -9
- package/scss/components/Datagrid/styles/_index.scss +2 -0
- package/scss/components/Datagrid/styles/_useActionsColumn.scss +14 -0
- package/scss/components/Datagrid/styles/_useExpandedRow.scss +57 -11
- package/scss/components/Datagrid/styles/_useInlineEdit.scss +419 -0
- package/scss/components/Datagrid/styles/_useNestedRows.scss +33 -1
- package/scss/components/Datagrid/styles/_useStickyColumn.scss +31 -2
- package/scss/components/Datagrid/styles/addons/_CustomizeColumnsModal.scss +47 -6
- package/scss/components/Datagrid/styles/addons/_FilterFlyout.scss +87 -0
- package/scss/components/Datagrid/styles/addons/_RowSizeDropdown.scss +9 -1
- 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 +20 -0
- package/scss/components/FilterSummary/_index.scss +10 -0
- package/scss/components/FilterSummary/_storybook-styles.scss +14 -0
- package/scss/components/{InlineEdit → InlineEditV1}/_carbon-imports.scss +0 -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/{InlineEdit → InlineEditV1}/_storybook-styles.scss +0 -0
- 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 +7 -0
- 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 +7 -0
- package/scss/components/SingleAddSelect/_storybook-styles.scss +1 -1
- package/scss/components/Tearsheet/_tearsheet.scss +2 -2
- package/scss/components/WebTerminal/_carbon-imports.scss +6 -0
- package/scss/components/WebTerminal/_index.scss +7 -0
- package/scss/components/WebTerminal/_storybook-styles.scss +7 -0
- package/scss/components/_index-released-only-with-carbon.scss +1 -1
- package/scss/components/_index-released-only.scss +2 -1
- package/scss/components/_index-with-carbon.scss +3 -1
- package/scss/components/_index.scss +4 -1
@@ -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
|
+
}
|
@@ -7,20 +7,43 @@
|
|
7
7
|
*/
|
8
8
|
|
9
9
|
@use '@carbon/styles/scss/theme' as *;
|
10
|
+
@use '@carbon/styles/scss/spacing' as *;
|
10
11
|
@use './variables';
|
11
12
|
|
12
13
|
.#{variables.$block-class}__right-sticky-column-cell {
|
13
14
|
/* stylelint-disable-next-line declaration-no-important */
|
14
15
|
position: sticky !important;
|
15
16
|
right: 0;
|
16
|
-
|
17
|
+
display: flex;
|
18
|
+
align-items: center;
|
19
|
+
border-left: 1px solid $layer-accent-01;
|
17
20
|
}
|
18
21
|
|
19
22
|
.#{variables.$block-class}__right-sticky-column-header {
|
20
23
|
/* stylelint-disable-next-line declaration-no-important */
|
21
24
|
position: sticky !important;
|
22
25
|
right: 0;
|
23
|
-
|
26
|
+
}
|
27
|
+
|
28
|
+
.#{variables.$block-class}__left-sticky-column-cell {
|
29
|
+
/* stylelint-disable-next-line declaration-no-important */
|
30
|
+
position: sticky !important;
|
31
|
+
left: 0;
|
32
|
+
display: flex;
|
33
|
+
align-items: center;
|
34
|
+
border-right: 1px solid $layer-accent-01;
|
35
|
+
}
|
36
|
+
|
37
|
+
.#{variables.$block-class}__left-sticky-column-header {
|
38
|
+
/* stylelint-disable-next-line declaration-no-important */
|
39
|
+
position: sticky !important;
|
40
|
+
z-index: 1;
|
41
|
+
left: 0;
|
42
|
+
}
|
43
|
+
|
44
|
+
.#{variables.$block-class}__left-sticky-column-cell.#{variables.$block-class}__left-sticky-column-cell--with-extra-select-column,
|
45
|
+
.#{variables.$block-class}__left-sticky-column-header.#{variables.$block-class}__left-sticky-column-header--with-extra-select-column {
|
46
|
+
left: $spacing-08;
|
24
47
|
}
|
25
48
|
|
26
49
|
.#{variables.$block-class}__sticky-noShadow {
|
@@ -37,3 +60,9 @@
|
|
37
60
|
/* stylelint-disable-next-line */
|
38
61
|
right: 6px !important; // offset the vertical scroll bar in the table body
|
39
62
|
}
|
63
|
+
|
64
|
+
.#{variables.$block-class}__select-all-toggle-on.#{variables.$block-class}__select-all-sticky-left {
|
65
|
+
position: sticky;
|
66
|
+
z-index: 1;
|
67
|
+
left: 0;
|
68
|
+
}
|
@@ -17,22 +17,31 @@
|
|
17
17
|
position: inherit;
|
18
18
|
display: flex;
|
19
19
|
flex-flow: column;
|
20
|
-
|
21
|
-
|
20
|
+
padding: 0;
|
21
|
+
margin: 0;
|
22
22
|
}
|
23
23
|
}
|
24
24
|
|
25
|
-
.#{variables.$block-class}__customize-columns-checkbox {
|
25
|
+
.#{variables.$block-class}__customize-columns-checkbox-wrapper {
|
26
|
+
margin-bottom: 0;
|
27
|
+
}
|
28
|
+
.#{variables.$block-class}__customize-columns-checkbox-wrapper {
|
26
29
|
display: flex;
|
27
30
|
justify-content: center;
|
28
|
-
/* stylelint-disable-next-line declaration-no-important */
|
29
|
-
margin-bottom: 0 !important; // reset the bottom provided by carbon
|
30
31
|
}
|
31
32
|
|
32
33
|
.#{variables.$block-class}__customize-columns-modal--actions {
|
33
34
|
display: flex;
|
35
|
+
height: $spacing-09;
|
34
36
|
flex-flow: row;
|
35
|
-
|
37
|
+
background-color: $field-02;
|
38
|
+
}
|
39
|
+
|
40
|
+
.#{variables.$block-class}__customize-columns-modal--actions
|
41
|
+
input[role='searchbox'] {
|
42
|
+
height: $spacing-09;
|
43
|
+
padding-left: $spacing-08;
|
44
|
+
border-bottom: none;
|
36
45
|
}
|
37
46
|
|
38
47
|
.#{variables.$block-class}__customize-columns-modal--actions > button {
|
@@ -40,7 +49,9 @@
|
|
40
49
|
}
|
41
50
|
|
42
51
|
.#{variables.$block-class}__customize-columns-instructions {
|
52
|
+
padding-left: $spacing-05;
|
43
53
|
margin-bottom: $spacing-06;
|
54
|
+
|
44
55
|
@include type.type-style('body-long-01');
|
45
56
|
|
46
57
|
color: $text-primary;
|
@@ -50,3 +61,33 @@
|
|
50
61
|
position: relative; // needed for the react-dnd, otherwise the drag preview will not work correctly
|
51
62
|
overflow: auto;
|
52
63
|
}
|
64
|
+
|
65
|
+
.#{variables.$block-class}__customize-columns-select-all {
|
66
|
+
display: flex;
|
67
|
+
height: $spacing-09;
|
68
|
+
align-items: center;
|
69
|
+
padding-left: $spacing-08;
|
70
|
+
border-bottom: 1px solid $layer-active;
|
71
|
+
background-color: $layer-01;
|
72
|
+
}
|
73
|
+
.#{variables.$block-class}__customize-columns-select-all:hover {
|
74
|
+
background-color: $layer-hover-01;
|
75
|
+
}
|
76
|
+
.#{variables.$block-class}__customize-columns-select-all-selected {
|
77
|
+
display: flex;
|
78
|
+
height: $spacing-09;
|
79
|
+
align-items: center;
|
80
|
+
padding-left: $spacing-08;
|
81
|
+
border-bottom: 1px solid $layer-active;
|
82
|
+
background-color: $layer-selected-01;
|
83
|
+
}
|
84
|
+
|
85
|
+
.#{variables.$block-class}__customize-columns-select-all-selected:hover {
|
86
|
+
background-color: $background-selected-hover;
|
87
|
+
}
|
88
|
+
|
89
|
+
.#{variables.$block-class}
|
90
|
+
.#{variables.$block-class}__customize-columns-modal
|
91
|
+
.#{c4p-settings.$carbon-prefix}--modal-content {
|
92
|
+
margin-bottom: 0;
|
93
|
+
}
|
@@ -0,0 +1,87 @@
|
|
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
|
+
// stylelint-disable carbon/layout-token-use
|
10
|
+
|
11
|
+
@use '@carbon/styles/scss/theme' as *;
|
12
|
+
@use '@carbon/styles/scss/spacing' as *;
|
13
|
+
@use '@carbon/styles/scss/type' as *;
|
14
|
+
@use '@carbon/layout' as *;
|
15
|
+
|
16
|
+
@use '../../../../global/styles/project-settings' as c4p-settings;
|
17
|
+
@use '../variables';
|
18
|
+
|
19
|
+
$action-set-height: rem(64px);
|
20
|
+
|
21
|
+
.#{variables.$block-class}-filter-flyout__container {
|
22
|
+
position: relative;
|
23
|
+
}
|
24
|
+
|
25
|
+
.#{variables.$block-class}-filter-flyout {
|
26
|
+
position: absolute;
|
27
|
+
top: $spacing-09;
|
28
|
+
right: 0;
|
29
|
+
display: none;
|
30
|
+
width: rem(642px);
|
31
|
+
background-color: $layer-02;
|
32
|
+
box-shadow: 0 1px rem(8px) 0 rgba(0, 0, 0, 0.25);
|
33
|
+
}
|
34
|
+
|
35
|
+
.#{variables.$block-class}-filter-flyout--open {
|
36
|
+
display: grid;
|
37
|
+
}
|
38
|
+
|
39
|
+
.#{variables.$block-class}-filter-flyout--batch {
|
40
|
+
min-height: rem(346px);
|
41
|
+
grid-template-rows: 1fr rem(48px);
|
42
|
+
}
|
43
|
+
|
44
|
+
.#{variables.$block-class}-filter-flyout--instant {
|
45
|
+
min-height: rem(282px);
|
46
|
+
grid-template-rows: 1fr;
|
47
|
+
}
|
48
|
+
|
49
|
+
.#{variables.$block-class}-filter-flyout__inner-container {
|
50
|
+
padding: $spacing-05 $spacing-05 $spacing-09 $spacing-05;
|
51
|
+
}
|
52
|
+
|
53
|
+
.#{variables.$block-class}-filter-flyout__inner-container::before {
|
54
|
+
position: absolute;
|
55
|
+
top: rem(-7px);
|
56
|
+
right: 1px;
|
57
|
+
display: block;
|
58
|
+
width: rem(46px);
|
59
|
+
height: rem(15px);
|
60
|
+
background-color: $layer-02;
|
61
|
+
content: '';
|
62
|
+
}
|
63
|
+
|
64
|
+
.#{variables.$block-class}-filter-flyout__title {
|
65
|
+
display: block;
|
66
|
+
@include type-style('heading-compact-01');
|
67
|
+
|
68
|
+
margin-bottom: $spacing-06;
|
69
|
+
}
|
70
|
+
|
71
|
+
.#{variables.$block-class}-filter-flyout__filters {
|
72
|
+
display: grid;
|
73
|
+
gap: rem(16px) rem(32px);
|
74
|
+
grid-template-columns: 1fr 1fr;
|
75
|
+
}
|
76
|
+
|
77
|
+
// Carbon overrides
|
78
|
+
.#{variables.$block-class}-filter-flyout__trigger--open.#{c4p-settings.$carbon-prefix}--btn.#{c4p-settings.$carbon-prefix}--btn--icon-only {
|
79
|
+
position: relative;
|
80
|
+
background-color: $layer-02;
|
81
|
+
box-shadow: 0 1px rem(8px) 0 rgba(0, 0, 0, 0.25);
|
82
|
+
}
|
83
|
+
|
84
|
+
.#{variables.$block-class}-filter-flyout
|
85
|
+
.#{c4p-settings.$carbon-prefix}--fieldset {
|
86
|
+
margin-bottom: 0;
|
87
|
+
}
|