@atlaskit/link-datasource 2.3.1 → 2.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +23 -0
- package/dist/cjs/ui/assets-modal/search-container/styled.js +6 -0
- package/dist/cjs/ui/common/modal/popup-select/trigger.js +2 -0
- package/dist/cjs/ui/confluence-search-modal/basic-filters/filters/date-range-picker/styled.js +13 -0
- package/dist/cjs/ui/issue-like-table/drag-column-preview.js +3 -0
- package/dist/cjs/ui/issue-like-table/draggable-table-heading.js +13 -5
- package/dist/cjs/ui/issue-like-table/empty-state/type.js +1 -0
- package/dist/cjs/ui/issue-like-table/index.js +89 -48
- package/dist/cjs/ui/issue-like-table/render-type/date-time/index.js +2 -0
- package/dist/cjs/ui/issue-like-table/render-type/icon/index.js +1 -0
- package/dist/cjs/ui/issue-like-table/render-type/richtext/index.js +2 -3
- package/dist/cjs/ui/issue-like-table/render-type/text/index.js +2 -0
- package/dist/cjs/ui/issue-like-table/render-type/user/index.js +2 -0
- package/dist/cjs/ui/issue-like-table/styled.js +15 -0
- package/dist/cjs/ui/issue-like-table/utils.js +13 -6
- package/dist/cjs/ui/table-footer/index.js +9 -0
- package/dist/es2019/ui/assets-modal/search-container/styled.js +6 -0
- package/dist/es2019/ui/common/modal/popup-select/trigger.js +2 -0
- package/dist/es2019/ui/confluence-search-modal/basic-filters/filters/date-range-picker/styled.js +13 -0
- package/dist/es2019/ui/issue-like-table/drag-column-preview.js +3 -0
- package/dist/es2019/ui/issue-like-table/draggable-table-heading.js +13 -5
- package/dist/es2019/ui/issue-like-table/empty-state/type.js +1 -0
- package/dist/es2019/ui/issue-like-table/index.js +53 -17
- package/dist/es2019/ui/issue-like-table/render-type/date-time/index.js +2 -0
- package/dist/es2019/ui/issue-like-table/render-type/icon/index.js +1 -0
- package/dist/es2019/ui/issue-like-table/render-type/richtext/index.js +2 -3
- package/dist/es2019/ui/issue-like-table/render-type/text/index.js +2 -0
- package/dist/es2019/ui/issue-like-table/render-type/user/index.js +2 -0
- package/dist/es2019/ui/issue-like-table/styled.js +15 -0
- package/dist/es2019/ui/issue-like-table/utils.js +14 -5
- package/dist/es2019/ui/table-footer/index.js +9 -0
- package/dist/esm/ui/assets-modal/search-container/styled.js +6 -0
- package/dist/esm/ui/common/modal/popup-select/trigger.js +2 -0
- package/dist/esm/ui/confluence-search-modal/basic-filters/filters/date-range-picker/styled.js +13 -0
- package/dist/esm/ui/issue-like-table/drag-column-preview.js +3 -0
- package/dist/esm/ui/issue-like-table/draggable-table-heading.js +13 -5
- package/dist/esm/ui/issue-like-table/empty-state/type.js +1 -0
- package/dist/esm/ui/issue-like-table/index.js +89 -48
- package/dist/esm/ui/issue-like-table/render-type/date-time/index.js +2 -0
- package/dist/esm/ui/issue-like-table/render-type/icon/index.js +1 -0
- package/dist/esm/ui/issue-like-table/render-type/richtext/index.js +2 -3
- package/dist/esm/ui/issue-like-table/render-type/text/index.js +2 -0
- package/dist/esm/ui/issue-like-table/render-type/user/index.js +2 -0
- package/dist/esm/ui/issue-like-table/styled.js +15 -0
- package/dist/esm/ui/issue-like-table/utils.js +13 -6
- package/dist/esm/ui/table-footer/index.js +9 -0
- package/dist/types/analytics/generated/create-event-payload.d.ts +1 -1
- package/dist/types/analytics/ufoExperiences/hooks/useColumnPickerRenderedFailedUfoExperience.d.ts +1 -1
- package/dist/types/analytics/ufoExperiences/hooks/useDataRenderedUfoExperience.d.ts +1 -1
- package/dist/types/common/types.d.ts +1 -1
- package/dist/types/common/utils/adf.d.ts +1 -1
- package/dist/types/common/utils/locale/fetch-messages-for-locale.d.ts +1 -1
- package/dist/types/hooks/useAssetsClient.d.ts +2 -2
- package/dist/types/hooks/useObjectSchemas.d.ts +1 -1
- package/dist/types/services/cmdbService.d.ts +3 -3
- package/dist/types/services/makeGetJqlAutocompleteData.d.ts +1 -1
- package/dist/types/services/makeGetJqlSuggestionsData.d.ts +1 -1
- package/dist/types/services/mocks.d.ts +2 -2
- package/dist/types/services/useBasicFilterAGG.d.ts +2 -2
- package/dist/types/ui/assets-modal/index.d.ts +1 -1
- package/dist/types/ui/assets-modal/modal/render-assets-content/index.d.ts +1 -1
- package/dist/types/ui/assets-modal/search-container/object-schema-select/index.d.ts +1 -1
- package/dist/types/ui/assets-modal/search-container/object-schema-select/utils.d.ts +1 -1
- package/dist/types/ui/common/error-state/no-instances.d.ts +1 -1
- package/dist/types/ui/common/error-state/provider-auth-required.d.ts +1 -1
- package/dist/types/ui/common/initial-state-view/index.d.ts +1 -1
- package/dist/types/ui/common/modal/basic-search-input/index.d.ts +1 -1
- package/dist/types/ui/common/modal/cancel-button/index.d.ts +1 -1
- package/dist/types/ui/common/modal/content-container/index.d.ts +1 -1
- package/dist/types/ui/common/modal/count-view-smart-link/index.d.ts +1 -1
- package/dist/types/ui/common/modal/popup-select/control.d.ts +2 -2
- package/dist/types/ui/common/modal/popup-select/dropdownIndicator.d.ts +2 -2
- package/dist/types/ui/common/modal/popup-select/formatOptionLabel.d.ts +1 -1
- package/dist/types/ui/common/modal/popup-select/index.d.ts +3 -3
- package/dist/types/ui/common/modal/popup-select/menu-list/index.d.ts +2 -2
- package/dist/types/ui/common/modal/popup-select/menu-list/selectMessage.d.ts +1 -1
- package/dist/types/ui/common/modal/popup-select/trigger.d.ts +1 -1
- package/dist/types/ui/common/modal/popup-select/types.d.ts +1 -1
- package/dist/types/ui/common/modal/site-selector/index.d.ts +1 -1
- package/dist/types/ui/confluence-search-modal/basic-filters/filters/edited-or-created-by/index.d.ts +1 -1
- package/dist/types/ui/confluence-search-modal/basic-filters/hooks/useCurrentUserInfo.d.ts +1 -1
- package/dist/types/ui/confluence-search-modal/basic-filters/hooks/useRecommendation.d.ts +2 -2
- package/dist/types/ui/confluence-search-modal/basic-filters/types.d.ts +1 -1
- package/dist/types/ui/confluence-search-modal/index.d.ts +1 -1
- package/dist/types/ui/datasource-table-view/datasourceTableView.d.ts +0 -1
- package/dist/types/ui/datasource-table-view/index.d.ts +1 -1
- package/dist/types/ui/datasource-table-view/types.d.ts +1 -2
- package/dist/types/ui/issue-like-table/column-picker/concatenated-menu-list.d.ts +1 -1
- package/dist/types/ui/issue-like-table/column-picker/index.d.ts +1 -1
- package/dist/types/ui/issue-like-table/column-picker/types.d.ts +1 -1
- package/dist/types/ui/issue-like-table/custom-icons.d.ts +1 -1
- package/dist/types/ui/issue-like-table/draggable-table-heading.d.ts +2 -2
- package/dist/types/ui/issue-like-table/empty-state/priority.d.ts +1 -1
- package/dist/types/ui/issue-like-table/empty-state/type.d.ts +1 -1
- package/dist/types/ui/issue-like-table/index.d.ts +1 -1
- package/dist/types/ui/issue-like-table/render-type/boolean/index.d.ts +1 -1
- package/dist/types/ui/issue-like-table/render-type/date-time/index.d.ts +2 -2
- package/dist/types/ui/issue-like-table/render-type/icon/index.d.ts +1 -1
- package/dist/types/ui/issue-like-table/render-type/link/index.d.ts +1 -1
- package/dist/types/ui/issue-like-table/render-type/status/index.d.ts +1 -1
- package/dist/types/ui/issue-like-table/render-type/tag/index.d.ts +1 -1
- package/dist/types/ui/issue-like-table/render-type/text/index.d.ts +1 -1
- package/dist/types/ui/issue-like-table/render-type/user/index.d.ts +2 -2
- package/dist/types/ui/issue-like-table/utils.d.ts +2 -2
- package/dist/types/ui/jira-issues-modal/basic-filters/hooks/useFilterOptions.d.ts +3 -3
- package/dist/types/ui/jira-issues-modal/basic-filters/hooks/useHydrateJqlQuery.d.ts +2 -2
- package/dist/types/ui/jira-issues-modal/basic-filters/types.d.ts +1 -1
- package/dist/types/ui/jira-issues-modal/basic-filters/ui/async-popup-select/index.d.ts +2 -2
- package/dist/types/ui/jira-issues-modal/basic-filters/ui/index.d.ts +1 -1
- package/dist/types/ui/jira-issues-modal/basic-filters/utils/isClauseTooComplex.d.ts +1 -1
- package/dist/types/ui/jira-issues-modal/basic-filters/utils/transformers.d.ts +2 -2
- package/dist/types/ui/jira-issues-modal/index.d.ts +1 -1
- package/dist/types/ui/jira-issues-modal/jira-search-container/buildJQL.d.ts +1 -1
- package/dist/types/ui/jira-issues-modal/jira-search-container/index.d.ts +2 -2
- package/dist/types/ui/jira-issues-modal/types.d.ts +3 -3
- package/dist/types-ts4.5/analytics/generated/create-event-payload.d.ts +1 -1
- package/dist/types-ts4.5/analytics/ufoExperiences/hooks/useColumnPickerRenderedFailedUfoExperience.d.ts +1 -1
- package/dist/types-ts4.5/analytics/ufoExperiences/hooks/useDataRenderedUfoExperience.d.ts +1 -1
- package/dist/types-ts4.5/common/types.d.ts +1 -1
- package/dist/types-ts4.5/common/utils/adf.d.ts +1 -1
- package/dist/types-ts4.5/common/utils/locale/fetch-messages-for-locale.d.ts +1 -1
- package/dist/types-ts4.5/hooks/useAssetsClient.d.ts +2 -2
- package/dist/types-ts4.5/hooks/useObjectSchemas.d.ts +1 -1
- package/dist/types-ts4.5/services/cmdbService.d.ts +3 -3
- package/dist/types-ts4.5/services/makeGetJqlAutocompleteData.d.ts +1 -1
- package/dist/types-ts4.5/services/makeGetJqlSuggestionsData.d.ts +1 -1
- package/dist/types-ts4.5/services/mocks.d.ts +2 -2
- package/dist/types-ts4.5/services/useBasicFilterAGG.d.ts +2 -2
- package/dist/types-ts4.5/ui/assets-modal/index.d.ts +1 -1
- package/dist/types-ts4.5/ui/assets-modal/modal/render-assets-content/index.d.ts +1 -1
- package/dist/types-ts4.5/ui/assets-modal/search-container/object-schema-select/index.d.ts +1 -1
- package/dist/types-ts4.5/ui/assets-modal/search-container/object-schema-select/utils.d.ts +1 -1
- package/dist/types-ts4.5/ui/common/error-state/no-instances.d.ts +1 -1
- package/dist/types-ts4.5/ui/common/error-state/provider-auth-required.d.ts +1 -1
- package/dist/types-ts4.5/ui/common/initial-state-view/index.d.ts +1 -1
- package/dist/types-ts4.5/ui/common/modal/basic-search-input/index.d.ts +1 -1
- package/dist/types-ts4.5/ui/common/modal/cancel-button/index.d.ts +1 -1
- package/dist/types-ts4.5/ui/common/modal/content-container/index.d.ts +1 -1
- package/dist/types-ts4.5/ui/common/modal/count-view-smart-link/index.d.ts +1 -1
- package/dist/types-ts4.5/ui/common/modal/popup-select/control.d.ts +2 -2
- package/dist/types-ts4.5/ui/common/modal/popup-select/dropdownIndicator.d.ts +2 -2
- package/dist/types-ts4.5/ui/common/modal/popup-select/formatOptionLabel.d.ts +1 -1
- package/dist/types-ts4.5/ui/common/modal/popup-select/index.d.ts +3 -3
- package/dist/types-ts4.5/ui/common/modal/popup-select/menu-list/index.d.ts +2 -2
- package/dist/types-ts4.5/ui/common/modal/popup-select/menu-list/selectMessage.d.ts +1 -1
- package/dist/types-ts4.5/ui/common/modal/popup-select/trigger.d.ts +1 -1
- package/dist/types-ts4.5/ui/common/modal/popup-select/types.d.ts +1 -1
- package/dist/types-ts4.5/ui/common/modal/site-selector/index.d.ts +1 -1
- package/dist/types-ts4.5/ui/confluence-search-modal/basic-filters/filters/edited-or-created-by/index.d.ts +1 -1
- package/dist/types-ts4.5/ui/confluence-search-modal/basic-filters/hooks/useCurrentUserInfo.d.ts +1 -1
- package/dist/types-ts4.5/ui/confluence-search-modal/basic-filters/hooks/useRecommendation.d.ts +2 -2
- package/dist/types-ts4.5/ui/confluence-search-modal/basic-filters/types.d.ts +1 -1
- package/dist/types-ts4.5/ui/confluence-search-modal/index.d.ts +1 -1
- package/dist/types-ts4.5/ui/datasource-table-view/datasourceTableView.d.ts +0 -1
- package/dist/types-ts4.5/ui/datasource-table-view/index.d.ts +1 -1
- package/dist/types-ts4.5/ui/datasource-table-view/types.d.ts +1 -2
- package/dist/types-ts4.5/ui/issue-like-table/column-picker/concatenated-menu-list.d.ts +1 -1
- package/dist/types-ts4.5/ui/issue-like-table/column-picker/index.d.ts +1 -1
- package/dist/types-ts4.5/ui/issue-like-table/column-picker/types.d.ts +1 -1
- package/dist/types-ts4.5/ui/issue-like-table/custom-icons.d.ts +1 -1
- package/dist/types-ts4.5/ui/issue-like-table/draggable-table-heading.d.ts +2 -2
- package/dist/types-ts4.5/ui/issue-like-table/empty-state/priority.d.ts +1 -1
- package/dist/types-ts4.5/ui/issue-like-table/empty-state/type.d.ts +1 -1
- package/dist/types-ts4.5/ui/issue-like-table/index.d.ts +1 -1
- package/dist/types-ts4.5/ui/issue-like-table/render-type/boolean/index.d.ts +1 -1
- package/dist/types-ts4.5/ui/issue-like-table/render-type/date-time/index.d.ts +2 -2
- package/dist/types-ts4.5/ui/issue-like-table/render-type/icon/index.d.ts +1 -1
- package/dist/types-ts4.5/ui/issue-like-table/render-type/link/index.d.ts +1 -1
- package/dist/types-ts4.5/ui/issue-like-table/render-type/status/index.d.ts +1 -1
- package/dist/types-ts4.5/ui/issue-like-table/render-type/tag/index.d.ts +1 -1
- package/dist/types-ts4.5/ui/issue-like-table/render-type/text/index.d.ts +1 -1
- package/dist/types-ts4.5/ui/issue-like-table/render-type/user/index.d.ts +2 -2
- package/dist/types-ts4.5/ui/issue-like-table/utils.d.ts +2 -2
- package/dist/types-ts4.5/ui/jira-issues-modal/basic-filters/hooks/useFilterOptions.d.ts +3 -3
- package/dist/types-ts4.5/ui/jira-issues-modal/basic-filters/hooks/useHydrateJqlQuery.d.ts +2 -2
- package/dist/types-ts4.5/ui/jira-issues-modal/basic-filters/types.d.ts +1 -1
- package/dist/types-ts4.5/ui/jira-issues-modal/basic-filters/ui/async-popup-select/index.d.ts +2 -2
- package/dist/types-ts4.5/ui/jira-issues-modal/basic-filters/ui/index.d.ts +1 -1
- package/dist/types-ts4.5/ui/jira-issues-modal/basic-filters/utils/isClauseTooComplex.d.ts +1 -1
- package/dist/types-ts4.5/ui/jira-issues-modal/basic-filters/utils/transformers.d.ts +2 -2
- package/dist/types-ts4.5/ui/jira-issues-modal/index.d.ts +1 -1
- package/dist/types-ts4.5/ui/jira-issues-modal/jira-search-container/buildJQL.d.ts +1 -1
- package/dist/types-ts4.5/ui/jira-issues-modal/jira-search-container/index.d.ts +2 -2
- package/dist/types-ts4.5/ui/jira-issues-modal/types.d.ts +3 -3
- package/examples-helpers/buildAssetsIssuesTable.tsx +2 -2
- package/examples-helpers/buildConfluenceSearchTable.tsx +2 -2
- package/examples-helpers/buildIssueLikeTable.tsx +2 -1
- package/examples-helpers/buildJiraIssuesTable.tsx +2 -2
- package/examples-helpers/mockJqlSmartLinkData.ts +1 -1
- package/examples-helpers/mockSmartLinkData.ts +1 -1
- package/examples-helpers/smartLinkCustomClient.ts +1 -1
- package/examples-helpers/useAssetsTableProps.tsx +2 -2
- package/package.json +18 -12
|
@@ -22,6 +22,7 @@ var _poweredByJsmAssets = require("./powered-by-jsm-assets");
|
|
|
22
22
|
var _syncInfo = require("./sync-info");
|
|
23
23
|
/** @jsx jsx */
|
|
24
24
|
|
|
25
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
25
26
|
var FooterWrapper = _styled.default.div({
|
|
26
27
|
padding: "var(--ds-space-0, 0px)".concat(" ", "var(--ds-space-200, 16px)"),
|
|
27
28
|
boxSizing: 'border-box',
|
|
@@ -31,21 +32,29 @@ var FooterWrapper = _styled.default.div({
|
|
|
31
32
|
background: "var(--ds-background-input, ".concat(_colors.N0, ")"),
|
|
32
33
|
borderTop: "2px solid ".concat("var(--ds-background-accent-gray-subtler, ".concat(_colors.N40, ")"))
|
|
33
34
|
});
|
|
35
|
+
|
|
36
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
34
37
|
var TopBorderWrapper = _styled.default.div({
|
|
35
38
|
display: 'flex',
|
|
36
39
|
boxSizing: 'border-box',
|
|
37
40
|
justifyContent: 'space-between',
|
|
38
41
|
padding: "var(--ds-space-250, 20px)".concat(" ", "var(--ds-space-0, 0px)")
|
|
39
42
|
});
|
|
43
|
+
|
|
44
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
40
45
|
var ItemCounterWrapper = _styled.default.div({
|
|
41
46
|
display: 'flex',
|
|
42
47
|
alignSelf: 'center'
|
|
43
48
|
});
|
|
49
|
+
|
|
50
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
44
51
|
var SyncWrapper = _styled.default.div({
|
|
45
52
|
display: 'flex',
|
|
46
53
|
alignItems: 'center',
|
|
47
54
|
color: "var(--ds-text-accent-gray, ".concat(_colors.N90, ")")
|
|
48
55
|
});
|
|
56
|
+
|
|
57
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
49
58
|
var SyncTextWrapper = _styled.default.div({
|
|
50
59
|
marginRight: "var(--ds-space-075, 6px)",
|
|
51
60
|
fontSize: '12px'
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import styled from '@emotion/styled';
|
|
2
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
2
3
|
export const FormRowContainer = styled.div(props => ({
|
|
3
4
|
alignItems: 'center',
|
|
4
5
|
display: 'flex',
|
|
@@ -6,6 +7,8 @@ export const FormRowContainer = styled.div(props => ({
|
|
|
6
7
|
flexGrow: 1,
|
|
7
8
|
width: '100%'
|
|
8
9
|
}));
|
|
10
|
+
|
|
11
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
9
12
|
export const FormContainer = styled.form({
|
|
10
13
|
display: 'grid',
|
|
11
14
|
rowGap: "var(--ds-space-200, 16px)",
|
|
@@ -13,10 +16,13 @@ export const FormContainer = styled.form({
|
|
|
13
16
|
});
|
|
14
17
|
|
|
15
18
|
// Override the top margin of fields
|
|
19
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
16
20
|
export const FieldContainer = styled.div({
|
|
17
21
|
flex: 1,
|
|
18
22
|
marginTop: "var(--ds-space-negative-100, -8px)"
|
|
19
23
|
});
|
|
24
|
+
|
|
25
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
20
26
|
export const SchemaSelectContainer = styled.div({
|
|
21
27
|
width: '100%',
|
|
22
28
|
maxWidth: '386px'
|
|
@@ -12,6 +12,8 @@ const triggerButtonLabelStyles = xcss({
|
|
|
12
12
|
const badgeStyles = xcss({
|
|
13
13
|
marginLeft: 'space.050'
|
|
14
14
|
});
|
|
15
|
+
|
|
16
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
15
17
|
export const LoadingStateAnimationWrapper = styled.div({
|
|
16
18
|
position: 'relative',
|
|
17
19
|
animation: 'flickerAnimation 2s infinite',
|
package/dist/es2019/ui/confluence-search-modal/basic-filters/filters/date-range-picker/styled.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import styled from '@emotion/styled';
|
|
2
2
|
import { B400, B50, N0, N20, N30, R400 } from '@atlaskit/theme/colors';
|
|
3
3
|
import { layers } from '@atlaskit/theme/constants';
|
|
4
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
4
5
|
export const PopupComponentContainer = styled.div({
|
|
5
6
|
boxSizing: 'border-box',
|
|
6
7
|
display: 'block',
|
|
@@ -13,6 +14,8 @@ export const PopupComponentContainer = styled.div({
|
|
|
13
14
|
},
|
|
14
15
|
boxShadow: "var(--ds-shadow-overlay, 0px 0px 1px 0px rgba(9, 30, 66, 0.31), 0px 3px 5px 0px rgba(9, 30, 66, 0.20))"
|
|
15
16
|
});
|
|
17
|
+
|
|
18
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
16
19
|
export const CustomDropdown = styled.div({
|
|
17
20
|
width: '340px',
|
|
18
21
|
background: `var(--ds-background-input, ${N0})`,
|
|
@@ -20,6 +23,8 @@ export const CustomDropdown = styled.div({
|
|
|
20
23
|
boxShadow: "var(--ds-shadow-overlay, 0px 0px 1px 0px rgba(9, 30, 66, 0.31), 0px 3px 5px 0px rgba(9, 30, 66, 0.20))",
|
|
21
24
|
zIndex: layers.modal()
|
|
22
25
|
});
|
|
26
|
+
|
|
27
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
23
28
|
export const CustomDropdownItem = styled.div(props => ({
|
|
24
29
|
height: '36px',
|
|
25
30
|
width: '100%',
|
|
@@ -36,16 +41,22 @@ export const CustomDropdownItem = styled.div(props => ({
|
|
|
36
41
|
cursor: 'default'
|
|
37
42
|
}
|
|
38
43
|
}));
|
|
44
|
+
|
|
45
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
39
46
|
export const CustomDateWrapper = styled.div({
|
|
40
47
|
padding: "var(--ds-space-150, 12px)",
|
|
41
48
|
boxSizing: 'border-box'
|
|
42
49
|
});
|
|
50
|
+
|
|
51
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
43
52
|
export const DatePickersWrapper = styled.div({
|
|
44
53
|
display: 'flex',
|
|
45
54
|
justifyContent: 'space-between',
|
|
46
55
|
alignItems: 'center',
|
|
47
56
|
width: '100%'
|
|
48
57
|
});
|
|
58
|
+
|
|
59
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
49
60
|
export const SelectDateRangeButton = styled.button({
|
|
50
61
|
background: `var(--ds-background-accent-gray-subtler, ${N20})`,
|
|
51
62
|
border: 'none',
|
|
@@ -59,6 +70,8 @@ export const SelectDateRangeButton = styled.button({
|
|
|
59
70
|
cursor: 'pointer'
|
|
60
71
|
}
|
|
61
72
|
});
|
|
73
|
+
|
|
74
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
62
75
|
export const DateRangeErrorMessage = styled.div({
|
|
63
76
|
display: 'flex',
|
|
64
77
|
lineHeight: 1.3333,
|
|
@@ -12,6 +12,7 @@ const firstLastChildOverride = `
|
|
|
12
12
|
padding-right: ${"var(--ds-space-100, 8px)"};
|
|
13
13
|
}
|
|
14
14
|
`;
|
|
15
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
15
16
|
const TablePreviewHeading = styled(TableHeading)({
|
|
16
17
|
overflow: 'hidden',
|
|
17
18
|
textOverflow: 'ellipsis',
|
|
@@ -19,6 +20,8 @@ const TablePreviewHeading = styled(TableHeading)({
|
|
|
19
20
|
background: "var(--ds-background-disabled, #091E4224)",
|
|
20
21
|
maxWidth: maxWidth
|
|
21
22
|
}, firstLastChildOverride);
|
|
23
|
+
|
|
24
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
22
25
|
const TablePreviewCell = styled.td({
|
|
23
26
|
overflow: 'hidden',
|
|
24
27
|
textOverflow: 'ellipsis',
|
|
@@ -22,6 +22,7 @@ import { GlyphPlaceholder, UnwrapTextIcon, WrapTextIcon } from './custom-icons';
|
|
|
22
22
|
import { issueLikeTableMessages } from './messages';
|
|
23
23
|
import { TableHeading } from './styled';
|
|
24
24
|
import { COLUMN_MIN_WIDTH, getWidthCss } from './utils';
|
|
25
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
25
26
|
const DropdownParent = styled.div({
|
|
26
27
|
display: 'flex',
|
|
27
28
|
alignItems: 'center',
|
|
@@ -100,6 +101,11 @@ export const DraggableTableHeading = ({
|
|
|
100
101
|
const [isDraggingAnyColumn, setIsDraggingAnyColumn] = useState(false);
|
|
101
102
|
const [closestEdge, setClosestEdge] = useState(null);
|
|
102
103
|
const dropTargetRef = useRef(null);
|
|
104
|
+
/**
|
|
105
|
+
* When width is not set (or callback is not set) we assume not resizing is needed.
|
|
106
|
+
* In our case width won't be set for last cell when table container is bigger than sum of all columns
|
|
107
|
+
*/
|
|
108
|
+
const resizeIsEnabled = !!onWidthChange && !!width;
|
|
103
109
|
useEffect(() => {
|
|
104
110
|
const cell = mainHeaderCellRef.current;
|
|
105
111
|
invariant(cell);
|
|
@@ -209,7 +215,7 @@ export const DraggableTableHeading = ({
|
|
|
209
215
|
|
|
210
216
|
// Handling column resizing
|
|
211
217
|
useEffect(() => {
|
|
212
|
-
if (!
|
|
218
|
+
if (!resizeIsEnabled) {
|
|
213
219
|
return;
|
|
214
220
|
}
|
|
215
221
|
const resizeHandle = columnResizeHandleRef.current;
|
|
@@ -269,10 +275,12 @@ export const DraggableTableHeading = ({
|
|
|
269
275
|
}
|
|
270
276
|
}
|
|
271
277
|
});
|
|
272
|
-
}, [id, index, onWidthChange, state, tableId, width]);
|
|
278
|
+
}, [id, index, onWidthChange, resizeIsEnabled, state, tableId, width]);
|
|
273
279
|
const [buttonHovered, setButtonHovered] = useState(false);
|
|
274
280
|
const [isDropdownOpen, setIsDropdownOpen] = useState(false);
|
|
275
|
-
|
|
281
|
+
// Width is not set when it is a last cell in a wide table.
|
|
282
|
+
// We make assumption thus that there is enough width for chevron.
|
|
283
|
+
const isWideEnoughToHaveChevron = !width || width > 76;
|
|
276
284
|
const shouldShowTriggerIcon = (buttonHovered || isDropdownOpen) && isWideEnoughToHaveChevron;
|
|
277
285
|
const triggerIcon = useMemo(() => shouldShowTriggerIcon ? isDropdownOpen ? ChevronUp : ChevronDown : isWideEnoughToHaveChevron ? GlyphPlaceholder : undefined, [shouldShowTriggerIcon, isDropdownOpen, isWideEnoughToHaveChevron]);
|
|
278
286
|
const getTriggerButton = useCallback(({
|
|
@@ -300,11 +308,11 @@ export const DraggableTableHeading = ({
|
|
|
300
308
|
style: {
|
|
301
309
|
cursor: 'grab',
|
|
302
310
|
...getWidthCss({
|
|
303
|
-
shouldUseWidth:
|
|
311
|
+
shouldUseWidth: resizeIsEnabled,
|
|
304
312
|
width
|
|
305
313
|
})
|
|
306
314
|
}
|
|
307
|
-
},
|
|
315
|
+
}, resizeIsEnabled ? jsx("div", {
|
|
308
316
|
ref: columnResizeHandleRef,
|
|
309
317
|
css: [resizerStyles, state.type === 'resizing' && resizingStyles],
|
|
310
318
|
style: {
|
|
@@ -6,6 +6,7 @@ import Epic16Icon from '@atlaskit/icon-object/glyph/epic/16';
|
|
|
6
6
|
import Issue16Icon from '@atlaskit/icon-object/glyph/issue/16';
|
|
7
7
|
import Story16Icon from '@atlaskit/icon-object/glyph/story/16';
|
|
8
8
|
import Task16Icon from '@atlaskit/icon-object/glyph/task/16';
|
|
9
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
9
10
|
const IconWrapper = styled.div({
|
|
10
11
|
display: 'flex',
|
|
11
12
|
alignItems: 'center',
|
|
@@ -3,6 +3,7 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
3
3
|
import { forwardRef, useCallback, useEffect, useMemo, useRef, useState } from 'react';
|
|
4
4
|
import { css, jsx } from '@emotion/react';
|
|
5
5
|
import styled from '@emotion/styled';
|
|
6
|
+
import debounce from 'lodash/debounce';
|
|
6
7
|
import { useIntl } from 'react-intl-next';
|
|
7
8
|
import invariant from 'tiny-invariant';
|
|
8
9
|
import { Skeleton } from '@atlaskit/linking-common';
|
|
@@ -14,6 +15,7 @@ import { monitorForElements } from '@atlaskit/pragmatic-drag-and-drop/element/ad
|
|
|
14
15
|
import { N40 } from '@atlaskit/theme/colors';
|
|
15
16
|
import { fontFallback } from '@atlaskit/theme/typography';
|
|
16
17
|
import Tooltip from '@atlaskit/tooltip';
|
|
18
|
+
import { WidthObserver } from '@atlaskit/width-detector';
|
|
17
19
|
import { startUfoExperience, succeedUfoExperience } from '../../analytics/ufoExperiences';
|
|
18
20
|
import { stickyTableHeadersIndex } from '../../common/zindex';
|
|
19
21
|
import { ColumnPicker } from './column-picker';
|
|
@@ -36,31 +38,36 @@ const truncateTextStyles = css({
|
|
|
36
38
|
textOverflow: 'ellipsis',
|
|
37
39
|
whiteSpace: 'nowrap'
|
|
38
40
|
});
|
|
41
|
+
const columnPickerWidth = 80;
|
|
42
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
39
43
|
const ColumnPickerHeader = styled.th({
|
|
40
|
-
[`${withTablePluginHeaderPrefix()}`]: {
|
|
41
|
-
boxSizing: '
|
|
44
|
+
[`${withTablePluginHeaderPrefix('&:last-of-type')}`]: {
|
|
45
|
+
boxSizing: 'border-box',
|
|
42
46
|
border: 0,
|
|
43
|
-
width:
|
|
47
|
+
width: `${columnPickerWidth}px`,
|
|
44
48
|
zIndex: 10,
|
|
45
49
|
position: 'sticky',
|
|
46
50
|
right: `calc(-1 * ${tableSidePadding})`,
|
|
47
51
|
backgroundColor: "var(--ds-elevation-surface-current, #FFF)",
|
|
52
|
+
/* It is required to have solid (not half-transparent) color because of this gradient business below */
|
|
48
53
|
borderBottom: `2px solid ${`var(--ds-border, ${N40})`}`,
|
|
49
|
-
paddingRight:
|
|
54
|
+
paddingRight: tableSidePadding,
|
|
50
55
|
background: `linear-gradient( 90deg, rgba(255, 255, 255, 0) 0%, ${"var(--ds-elevation-surface-current, #FFF)"} 10% )`,
|
|
56
|
+
/* Keeps dropdown button in the middle */
|
|
51
57
|
verticalAlign: 'middle',
|
|
58
|
+
/* In case when TH itself is bigger we want to keep picker at the right side */
|
|
52
59
|
textAlign: 'right'
|
|
53
|
-
},
|
|
54
|
-
[`${withTablePluginHeaderPrefix('&:last-of-type')}`]: {
|
|
55
|
-
paddingRight: tableSidePadding
|
|
56
60
|
}
|
|
57
61
|
});
|
|
58
62
|
const truncateStyles = css({
|
|
59
63
|
textOverflow: 'ellipsis',
|
|
60
64
|
whiteSpace: 'nowrap'
|
|
61
65
|
});
|
|
66
|
+
|
|
67
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
62
68
|
const TableCell = styled.td({
|
|
63
69
|
[`${withTablePluginBodyPrefix()}`]: {
|
|
70
|
+
/* First section here is to override things editor table plugin css defines */
|
|
64
71
|
font: fieldTextFontSize,
|
|
65
72
|
padding: `${"var(--ds-space-050, 4px)"} ${"var(--ds-space-100, 8px)"}`,
|
|
66
73
|
border: 0,
|
|
@@ -87,7 +94,8 @@ const TableCell = styled.td({
|
|
|
87
94
|
const tableContainerStyles = css({
|
|
88
95
|
borderRadius: 'inherit',
|
|
89
96
|
borderBottomLeftRadius: 0,
|
|
90
|
-
borderBottomRightRadius: 0
|
|
97
|
+
borderBottomRightRadius: 0,
|
|
98
|
+
position: 'relative'
|
|
91
99
|
});
|
|
92
100
|
|
|
93
101
|
/**
|
|
@@ -220,7 +228,10 @@ const tableStyles = css({
|
|
|
220
228
|
// These styles are needed to prevent thead bottom border from scrolling away.
|
|
221
229
|
// This happens because it is sticky. https://stackoverflow.com/questions/50361698/border-style-do-not-work-with-sticky-position-element
|
|
222
230
|
borderCollapse: 'separate',
|
|
223
|
-
borderSpacing: 0
|
|
231
|
+
borderSpacing: 0,
|
|
232
|
+
// There is a strange table:first-of-type rule that sets margin-top to 0 coming from container,
|
|
233
|
+
// but because our table is now not the first child (there is an empty div to measure width) we need to set it manually.
|
|
234
|
+
margin: 0
|
|
224
235
|
});
|
|
225
236
|
|
|
226
237
|
// By default tbody and thead have border-bottom: 2px ...
|
|
@@ -317,6 +328,18 @@ export const IssueLikeDataTableView = ({
|
|
|
317
328
|
const isBottomOfTableVisibleRaw = useIsOnScreen(lastRowElement);
|
|
318
329
|
const containerRef = useRef(null);
|
|
319
330
|
const [orderedColumns, setOrderedColumns] = useState(() => getOrderedColumns([...columns], [...visibleColumnKeys]));
|
|
331
|
+
|
|
332
|
+
// Table container width is used to know if sum of all column widths is bigger of container or not.
|
|
333
|
+
// When sum of all columns is less than container size we make last column stretchable (width: undefined)
|
|
334
|
+
const [tableContainerWidth, setTableContainerWidth] = useState();
|
|
335
|
+
useEffect(() => {
|
|
336
|
+
const {
|
|
337
|
+
current
|
|
338
|
+
} = containerRef;
|
|
339
|
+
if (containerRef && current) {
|
|
340
|
+
setTableContainerWidth(current.getBoundingClientRect().width);
|
|
341
|
+
}
|
|
342
|
+
}, [containerRef]);
|
|
320
343
|
useEffect(() => {
|
|
321
344
|
if (!hasFullSchema) {
|
|
322
345
|
setOrderedColumns(getOrderedColumns([...columns], [...visibleColumnKeys]));
|
|
@@ -338,16 +361,27 @@ export const IssueLikeDataTableView = ({
|
|
|
338
361
|
// or some other combination.
|
|
339
362
|
|
|
340
363
|
const identityColumnKey = 'id';
|
|
341
|
-
const
|
|
364
|
+
const columnsWidthsSum = useMemo(() => visibleSortedColumns.map(({
|
|
365
|
+
key,
|
|
366
|
+
type
|
|
367
|
+
}) => (columnCustomSizes === null || columnCustomSizes === void 0 ? void 0 : columnCustomSizes[key]) || getDefaultColumnWidth(key, type)).reduce((sum, width) => width + sum, 0) + (onVisibleColumnKeysChange ? columnPickerWidth : 0), [columnCustomSizes, onVisibleColumnKeysChange, visibleSortedColumns]);
|
|
368
|
+
const shouldUseWidth = !!(onColumnResize || columnCustomSizes);
|
|
369
|
+
const getColumnWidth = useCallback((key, type, isLastCell) => {
|
|
370
|
+
if (isLastCell && shouldUseWidth && (!tableContainerWidth || tableContainerWidth > columnsWidthsSum)) {
|
|
371
|
+
return undefined;
|
|
372
|
+
} else {
|
|
373
|
+
return (columnCustomSizes === null || columnCustomSizes === void 0 ? void 0 : columnCustomSizes[key]) || getDefaultColumnWidth(key, type);
|
|
374
|
+
}
|
|
375
|
+
}, [columnCustomSizes, columnsWidthsSum, shouldUseWidth, tableContainerWidth]);
|
|
342
376
|
const headerColumns = useMemo(() => visibleSortedColumns.map(({
|
|
343
377
|
key,
|
|
344
378
|
title,
|
|
345
379
|
type
|
|
346
|
-
}) => ({
|
|
380
|
+
}, index) => ({
|
|
347
381
|
key,
|
|
348
382
|
content: title,
|
|
349
383
|
shouldTruncate: true,
|
|
350
|
-
width: getColumnWidth(key, type)
|
|
384
|
+
width: getColumnWidth(key, type, index === visibleSortedColumns.length - 1)
|
|
351
385
|
})), [getColumnWidth, visibleSortedColumns]);
|
|
352
386
|
const loadingRow = useMemo(() => ({
|
|
353
387
|
key: 'loading',
|
|
@@ -450,7 +484,7 @@ export const IssueLikeDataTableView = ({
|
|
|
450
484
|
cells: visibleSortedColumns.map(({
|
|
451
485
|
key,
|
|
452
486
|
type
|
|
453
|
-
}) => {
|
|
487
|
+
}, cellIndex) => {
|
|
454
488
|
var _newRowData$key;
|
|
455
489
|
// Need to make sure we keep falsy values like 0 and '', as well as the boolean false.
|
|
456
490
|
const value = (_newRowData$key = newRowData[key]) === null || _newRowData$key === void 0 ? void 0 : _newRowData$key.data;
|
|
@@ -471,7 +505,7 @@ export const IssueLikeDataTableView = ({
|
|
|
471
505
|
return {
|
|
472
506
|
key,
|
|
473
507
|
content: contentComponent,
|
|
474
|
-
width: getColumnWidth(key, type)
|
|
508
|
+
width: getColumnWidth(key, type, cellIndex === visibleSortedColumns.length - 1)
|
|
475
509
|
};
|
|
476
510
|
}),
|
|
477
511
|
ref: rowIndex === items.length - 1 ? el => setLastRowElement(el) : undefined
|
|
@@ -517,7 +551,6 @@ export const IssueLikeDataTableView = ({
|
|
|
517
551
|
setHasFullSchema(false);
|
|
518
552
|
}
|
|
519
553
|
}, [parentContainerRenderInstanceId, extensionKey, hasFullSchema, onLoadDatasourceDetails]);
|
|
520
|
-
const shouldUseWidth = !!(onColumnResize || columnCustomSizes);
|
|
521
554
|
const isEditable = onVisibleColumnKeysChange && hasData;
|
|
522
555
|
return jsx("div", {
|
|
523
556
|
/* There is required contentEditable={true} in editor-card-plugin
|
|
@@ -529,8 +562,11 @@ export const IssueLikeDataTableView = ({
|
|
|
529
562
|
css: [tableContainerStyles, scrollableContainerHeight && scrollableContainerStyles],
|
|
530
563
|
style: scrollableContainerHeight ? {
|
|
531
564
|
maxHeight: `${scrollableContainerHeight}px`
|
|
532
|
-
} : undefined
|
|
533
|
-
|
|
565
|
+
} : undefined,
|
|
566
|
+
"data-testid": 'issue-like-table-container'
|
|
567
|
+
}, jsx(WidthObserver, {
|
|
568
|
+
setWidth: debounce(setTableContainerWidth, 100)
|
|
569
|
+
}), jsx(Table, {
|
|
534
570
|
css: tableStyles,
|
|
535
571
|
"data-testid": testId,
|
|
536
572
|
style: shouldUseWidth ? {
|
|
@@ -13,6 +13,8 @@ const timeOptions = {
|
|
|
13
13
|
hour: '2-digit',
|
|
14
14
|
minute: '2-digit'
|
|
15
15
|
};
|
|
16
|
+
|
|
17
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
16
18
|
const DateTimeWrapper = styled.span({
|
|
17
19
|
fontSize: fieldTextFontSize
|
|
18
20
|
});
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import styled from '@emotion/styled';
|
|
3
3
|
import Image from '@atlaskit/image';
|
|
4
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
4
5
|
const IconWrapper = styled.div({
|
|
5
6
|
display: 'flex',
|
|
6
7
|
alignItems: 'center',
|
|
@@ -4,8 +4,7 @@ import { css, jsx } from '@emotion/react';
|
|
|
4
4
|
import { defaultSchema } from '@atlaskit/adf-schema/schema-default';
|
|
5
5
|
import { Node as PMNode, Schema } from '@atlaskit/editor-prosemirror/model';
|
|
6
6
|
const rootStyles = css({
|
|
7
|
-
position: 'relative'
|
|
8
|
-
display: 'block'
|
|
7
|
+
position: 'relative'
|
|
9
8
|
});
|
|
10
9
|
const smartLinkNodeToUrl = node => {
|
|
11
10
|
var _node$attrs$url;
|
|
@@ -45,7 +44,7 @@ const RichTextType = ({
|
|
|
45
44
|
}) => {
|
|
46
45
|
const adfPlainText = useMemo(() => parseRichText(value), [value]);
|
|
47
46
|
if (adfPlainText) {
|
|
48
|
-
return jsx("
|
|
47
|
+
return jsx("span", {
|
|
49
48
|
css: rootStyles,
|
|
50
49
|
"data-testid": "richtext-plaintext"
|
|
51
50
|
}, adfPlainText);
|
|
@@ -2,6 +2,8 @@ import React from 'react';
|
|
|
2
2
|
import styled from '@emotion/styled';
|
|
3
3
|
import { fieldTextFontSize } from '../../styled';
|
|
4
4
|
export const TEXT_TYPE_TEST_ID = 'link-datasource-render-type--text';
|
|
5
|
+
|
|
6
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
5
7
|
const TextWrapper = styled.span({
|
|
6
8
|
fontSize: fieldTextFontSize
|
|
7
9
|
});
|
|
@@ -20,6 +20,8 @@ const avatarWrapperStyles = xcss({
|
|
|
20
20
|
const widthObserverWrapperStyles = xcss({
|
|
21
21
|
position: 'relative'
|
|
22
22
|
});
|
|
23
|
+
|
|
24
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
23
25
|
const AvatarGroupWrapperStyles = styled.div({
|
|
24
26
|
ul: {
|
|
25
27
|
paddingLeft: '0px !important'
|
|
@@ -3,6 +3,8 @@ import { N40 } from '@atlaskit/theme/colors';
|
|
|
3
3
|
import { fontFallback } from '@atlaskit/theme/typography';
|
|
4
4
|
export const ScrollableContainerHeight = 590;
|
|
5
5
|
export const fieldTextFontSize = `var(--ds-font-body, ${fontFallback.body.medium})`;
|
|
6
|
+
|
|
7
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
6
8
|
export const Table = styled.table({
|
|
7
9
|
width: '100%'
|
|
8
10
|
});
|
|
@@ -22,15 +24,25 @@ export const withTablePluginPrefix = (tableSection, mainRule = '&') => `
|
|
|
22
24
|
`;
|
|
23
25
|
export const withTablePluginHeaderPrefix = withTablePluginPrefix.bind(null, 'thead');
|
|
24
26
|
export const withTablePluginBodyPrefix = withTablePluginPrefix.bind(null, 'tbody');
|
|
27
|
+
|
|
28
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
25
29
|
export const TableHeading = styled.th({
|
|
26
30
|
[`${withTablePluginHeaderPrefix()}`]: {
|
|
27
31
|
border: 0,
|
|
28
32
|
position: 'relative',
|
|
33
|
+
/* This makes resizing work with out jumping due to padding + changes overall width for same default values. */
|
|
29
34
|
boxSizing: 'border-box',
|
|
30
35
|
lineHeight: lineHeight,
|
|
31
36
|
padding: `${verticalPadding} ${"var(--ds-space-050, 4px)"}`,
|
|
32
37
|
borderRight: `0.5px solid ${`var(--ds-border, ${N40})`}`,
|
|
33
38
|
borderBottom: `2px solid ${`var(--ds-border, ${N40})`}`,
|
|
39
|
+
/*
|
|
40
|
+
lineHeight * 2 -> Max height of two lined header
|
|
41
|
+
verticalPadding * 2 -> padding for this component itself
|
|
42
|
+
verticalPadding * 2 -> padding inside span (--container)
|
|
43
|
+
2px -> Bottom border
|
|
44
|
+
Last two terms are needed because of border-box box sizing.
|
|
45
|
+
*/
|
|
34
46
|
height: `calc(${lineHeight} * 2 + ${verticalPadding} * 4 + 2px)`,
|
|
35
47
|
verticalAlign: 'bottom',
|
|
36
48
|
backgroundColor: "var(--ds-elevation-surface-current, #FFF)"
|
|
@@ -46,6 +58,9 @@ export const TableHeading = styled.th({
|
|
|
46
58
|
},
|
|
47
59
|
"& [data-testid='datasource-header-content--container']": {
|
|
48
60
|
width: '100%',
|
|
61
|
+
/* With Button now being a parent for this component it adds its lineHeight value and spoils
|
|
62
|
+
`height` calculation above. */
|
|
63
|
+
lineHeight: lineHeight,
|
|
49
64
|
padding: `${verticalPadding} ${"var(--ds-space-050, 4px)"}`,
|
|
50
65
|
display: '-webkit-box',
|
|
51
66
|
WebkitLineClamp: 2,
|
|
@@ -8,15 +8,24 @@ export const COLUMN_MIN_WIDTH = COLUMN_BASE_WIDTH * 3;
|
|
|
8
8
|
* or rather default width that should be treated as a maximum width. When table inserted initially
|
|
9
9
|
* and no user custom width defined we set this value to `false`. As soon as user changes any of the
|
|
10
10
|
* column widths we treat all width as custom hardcoded widths.
|
|
11
|
-
* @param width
|
|
11
|
+
* @param width Sometimes set to undefined for last column to make it occupy remainder of the table width
|
|
12
12
|
*/
|
|
13
13
|
export const getWidthCss = ({
|
|
14
14
|
shouldUseWidth,
|
|
15
15
|
width
|
|
16
|
-
}) =>
|
|
17
|
-
width
|
|
18
|
-
|
|
19
|
-
|
|
16
|
+
}) => {
|
|
17
|
+
if (!width) {
|
|
18
|
+
return {};
|
|
19
|
+
}
|
|
20
|
+
if (shouldUseWidth) {
|
|
21
|
+
return {
|
|
22
|
+
width
|
|
23
|
+
};
|
|
24
|
+
} else {
|
|
25
|
+
return {
|
|
26
|
+
maxWidth: width
|
|
27
|
+
};
|
|
28
|
+
}
|
|
20
29
|
};
|
|
21
30
|
|
|
22
31
|
/**
|
|
@@ -13,6 +13,7 @@ import { ASSETS_LIST_OF_LINKS_DATASOURCE_ID } from '../assets-modal';
|
|
|
13
13
|
import { footerMessages } from './messages';
|
|
14
14
|
import { PoweredByJSMAssets } from './powered-by-jsm-assets';
|
|
15
15
|
import { SyncInfo } from './sync-info';
|
|
16
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
16
17
|
const FooterWrapper = styled.div({
|
|
17
18
|
padding: `${"var(--ds-space-0, 0px)"} ${"var(--ds-space-200, 16px)"}`,
|
|
18
19
|
boxSizing: 'border-box',
|
|
@@ -22,21 +23,29 @@ const FooterWrapper = styled.div({
|
|
|
22
23
|
background: `var(--ds-background-input, ${N0})`,
|
|
23
24
|
borderTop: `2px solid ${`var(--ds-background-accent-gray-subtler, ${N40})`}`
|
|
24
25
|
});
|
|
26
|
+
|
|
27
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
25
28
|
const TopBorderWrapper = styled.div({
|
|
26
29
|
display: 'flex',
|
|
27
30
|
boxSizing: 'border-box',
|
|
28
31
|
justifyContent: 'space-between',
|
|
29
32
|
padding: `${"var(--ds-space-250, 20px)"} ${"var(--ds-space-0, 0px)"}`
|
|
30
33
|
});
|
|
34
|
+
|
|
35
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
31
36
|
const ItemCounterWrapper = styled.div({
|
|
32
37
|
display: 'flex',
|
|
33
38
|
alignSelf: 'center'
|
|
34
39
|
});
|
|
40
|
+
|
|
41
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
35
42
|
const SyncWrapper = styled.div({
|
|
36
43
|
display: 'flex',
|
|
37
44
|
alignItems: 'center',
|
|
38
45
|
color: `var(--ds-text-accent-gray, ${N90})`
|
|
39
46
|
});
|
|
47
|
+
|
|
48
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
40
49
|
const SyncTextWrapper = styled.div({
|
|
41
50
|
marginRight: "var(--ds-space-075, 6px)",
|
|
42
51
|
fontSize: '12px'
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import styled from '@emotion/styled';
|
|
2
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
2
3
|
export var FormRowContainer = styled.div(function (props) {
|
|
3
4
|
return {
|
|
4
5
|
alignItems: 'center',
|
|
@@ -8,6 +9,8 @@ export var FormRowContainer = styled.div(function (props) {
|
|
|
8
9
|
width: '100%'
|
|
9
10
|
};
|
|
10
11
|
});
|
|
12
|
+
|
|
13
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
11
14
|
export var FormContainer = styled.form({
|
|
12
15
|
display: 'grid',
|
|
13
16
|
rowGap: "var(--ds-space-200, 16px)",
|
|
@@ -15,10 +18,13 @@ export var FormContainer = styled.form({
|
|
|
15
18
|
});
|
|
16
19
|
|
|
17
20
|
// Override the top margin of fields
|
|
21
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
18
22
|
export var FieldContainer = styled.div({
|
|
19
23
|
flex: 1,
|
|
20
24
|
marginTop: "var(--ds-space-negative-100, -8px)"
|
|
21
25
|
});
|
|
26
|
+
|
|
27
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
22
28
|
export var SchemaSelectContainer = styled.div({
|
|
23
29
|
width: '100%',
|
|
24
30
|
maxWidth: '386px'
|
|
@@ -13,6 +13,8 @@ var triggerButtonLabelStyles = xcss({
|
|
|
13
13
|
var badgeStyles = xcss({
|
|
14
14
|
marginLeft: 'space.050'
|
|
15
15
|
});
|
|
16
|
+
|
|
17
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
16
18
|
export var LoadingStateAnimationWrapper = styled.div({
|
|
17
19
|
position: 'relative',
|
|
18
20
|
animation: 'flickerAnimation 2s infinite',
|
package/dist/esm/ui/confluence-search-modal/basic-filters/filters/date-range-picker/styled.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import styled from '@emotion/styled';
|
|
2
2
|
import { B400, B50, N0, N20, N30, R400 } from '@atlaskit/theme/colors';
|
|
3
3
|
import { layers } from '@atlaskit/theme/constants';
|
|
4
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
4
5
|
export var PopupComponentContainer = styled.div({
|
|
5
6
|
boxSizing: 'border-box',
|
|
6
7
|
display: 'block',
|
|
@@ -13,6 +14,8 @@ export var PopupComponentContainer = styled.div({
|
|
|
13
14
|
},
|
|
14
15
|
boxShadow: "var(--ds-shadow-overlay, 0px 0px 1px 0px rgba(9, 30, 66, 0.31), 0px 3px 5px 0px rgba(9, 30, 66, 0.20))"
|
|
15
16
|
});
|
|
17
|
+
|
|
18
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
16
19
|
export var CustomDropdown = styled.div({
|
|
17
20
|
width: '340px',
|
|
18
21
|
background: "var(--ds-background-input, ".concat(N0, ")"),
|
|
@@ -20,6 +23,8 @@ export var CustomDropdown = styled.div({
|
|
|
20
23
|
boxShadow: "var(--ds-shadow-overlay, 0px 0px 1px 0px rgba(9, 30, 66, 0.31), 0px 3px 5px 0px rgba(9, 30, 66, 0.20))",
|
|
21
24
|
zIndex: layers.modal()
|
|
22
25
|
});
|
|
26
|
+
|
|
27
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
23
28
|
export var CustomDropdownItem = styled.div(function (props) {
|
|
24
29
|
return {
|
|
25
30
|
height: '36px',
|
|
@@ -38,16 +43,22 @@ export var CustomDropdownItem = styled.div(function (props) {
|
|
|
38
43
|
}
|
|
39
44
|
};
|
|
40
45
|
});
|
|
46
|
+
|
|
47
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
41
48
|
export var CustomDateWrapper = styled.div({
|
|
42
49
|
padding: "var(--ds-space-150, 12px)",
|
|
43
50
|
boxSizing: 'border-box'
|
|
44
51
|
});
|
|
52
|
+
|
|
53
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
45
54
|
export var DatePickersWrapper = styled.div({
|
|
46
55
|
display: 'flex',
|
|
47
56
|
justifyContent: 'space-between',
|
|
48
57
|
alignItems: 'center',
|
|
49
58
|
width: '100%'
|
|
50
59
|
});
|
|
60
|
+
|
|
61
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
51
62
|
export var SelectDateRangeButton = styled.button({
|
|
52
63
|
background: "var(--ds-background-accent-gray-subtler, ".concat(N20, ")"),
|
|
53
64
|
border: 'none',
|
|
@@ -61,6 +72,8 @@ export var SelectDateRangeButton = styled.button({
|
|
|
61
72
|
cursor: 'pointer'
|
|
62
73
|
}
|
|
63
74
|
});
|
|
75
|
+
|
|
76
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
64
77
|
export var DateRangeErrorMessage = styled.div({
|
|
65
78
|
display: 'flex',
|
|
66
79
|
lineHeight: 1.3333,
|