@atlaskit/link-picker 1.37.1 → 1.37.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 +17 -0
- package/compass.yml +0 -1
- package/dist/cjs/common/generic-error-svg/index.js +4 -1
- package/dist/cjs/common/generic-error-svg/styled.js +4 -0
- package/dist/cjs/common/ui/empty-state/index.js +3 -1
- package/dist/cjs/common/ui/min-height-container/index.js +4 -1
- package/dist/cjs/common/ui/min-height-container/styled.js +3 -0
- package/dist/cjs/ui/error-boundary/error-boundary-fallback/index.js +17 -11
- package/dist/cjs/ui/error-boundary/error-boundary-fallback/styled.js +3 -0
- package/dist/cjs/ui/index.js +5 -3
- package/dist/cjs/ui/link-picker/form-footer/feature-discovery/index.js +9 -4
- package/dist/cjs/ui/link-picker/form-footer/feature-discovery/styled.js +4 -0
- package/dist/cjs/ui/link-picker/form-footer/index.js +30 -24
- package/dist/cjs/ui/link-picker/form-footer/styled.js +5 -0
- package/dist/cjs/ui/link-picker/index.js +7 -3
- package/dist/cjs/ui/link-picker/search-results/index.js +7 -3
- package/dist/cjs/ui/link-picker/search-results/link-search-error/index.js +1 -0
- package/dist/cjs/ui/link-picker/search-results/link-search-list/index.js +21 -10
- package/dist/cjs/ui/link-picker/search-results/link-search-list/link-search-no-results/index.js +15 -11
- package/dist/cjs/ui/link-picker/search-results/link-search-list/link-search-no-results/no-results-svg/index.js +2 -0
- package/dist/cjs/ui/link-picker/search-results/link-search-list/link-search-no-results/no-results-svg/styled.js +4 -0
- package/dist/cjs/ui/link-picker/search-results/link-search-list/link-search-no-results/styled.js +6 -0
- package/dist/cjs/ui/link-picker/search-results/link-search-list/list-item/index.js +34 -17
- package/dist/cjs/ui/link-picker/search-results/link-search-list/list-item/styled.js +29 -3
- package/dist/cjs/ui/link-picker/search-results/link-search-list/styled.js +9 -0
- package/dist/cjs/ui/link-picker/search-results/scrolling-tabs/index.js +38 -33
- package/dist/cjs/ui/link-picker/search-results/scrolling-tabs/styles.js +20 -4
- package/dist/cjs/ui/link-picker/search-results/search-results-container/index.js +3 -0
- package/dist/cjs/ui/link-picker/search-results/search-results-container/styled.js +3 -0
- package/dist/cjs/ui/link-picker/search-results/styled.js +7 -0
- package/dist/cjs/ui/link-picker/styled.js +4 -2
- package/dist/cjs/ui/link-picker/text-input/index.js +34 -23
- package/dist/cjs/ui/link-picker/text-input/styled.js +5 -10
- package/dist/cjs/ui/loader-fallback/index.js +4 -1
- package/dist/cjs/ui/loader-fallback/styled.js +3 -0
- package/dist/cjs/ui/styled.js +3 -0
- package/dist/es2019/common/generic-error-svg/index.js +4 -1
- package/dist/es2019/common/generic-error-svg/styled.js +3 -0
- package/dist/es2019/common/ui/empty-state/index.js +3 -1
- package/dist/es2019/common/ui/min-height-container/index.js +5 -1
- package/dist/es2019/common/ui/min-height-container/styled.js +3 -0
- package/dist/es2019/ui/error-boundary/error-boundary-fallback/index.js +15 -9
- package/dist/es2019/ui/error-boundary/error-boundary-fallback/styled.js +3 -0
- package/dist/es2019/ui/index.js +7 -2
- package/dist/es2019/ui/link-picker/form-footer/feature-discovery/index.js +9 -4
- package/dist/es2019/ui/link-picker/form-footer/feature-discovery/styled.js +3 -0
- package/dist/es2019/ui/link-picker/form-footer/index.js +31 -24
- package/dist/es2019/ui/link-picker/form-footer/styled.js +5 -0
- package/dist/es2019/ui/link-picker/index.js +8 -2
- package/dist/es2019/ui/link-picker/search-results/index.js +8 -2
- package/dist/es2019/ui/link-picker/search-results/link-search-error/index.js +1 -0
- package/dist/es2019/ui/link-picker/search-results/link-search-list/index.js +22 -9
- package/dist/es2019/ui/link-picker/search-results/link-search-list/link-search-no-results/index.js +13 -9
- package/dist/es2019/ui/link-picker/search-results/link-search-list/link-search-no-results/no-results-svg/index.js +2 -0
- package/dist/es2019/ui/link-picker/search-results/link-search-list/link-search-no-results/no-results-svg/styled.js +3 -0
- package/dist/es2019/ui/link-picker/search-results/link-search-list/link-search-no-results/styled.js +5 -0
- package/dist/es2019/ui/link-picker/search-results/link-search-list/list-item/index.js +34 -17
- package/dist/es2019/ui/link-picker/search-results/link-search-list/list-item/styled.js +28 -3
- package/dist/es2019/ui/link-picker/search-results/link-search-list/styled.js +8 -0
- package/dist/es2019/ui/link-picker/search-results/scrolling-tabs/index.js +35 -28
- package/dist/es2019/ui/link-picker/search-results/scrolling-tabs/styles.js +19 -4
- package/dist/es2019/ui/link-picker/search-results/search-results-container/index.js +4 -0
- package/dist/es2019/ui/link-picker/search-results/search-results-container/styled.js +3 -0
- package/dist/es2019/ui/link-picker/search-results/styled.js +6 -0
- package/dist/es2019/ui/link-picker/styled.js +4 -1
- package/dist/es2019/ui/link-picker/text-input/index.js +37 -25
- package/dist/es2019/ui/link-picker/text-input/styled.js +4 -10
- package/dist/es2019/ui/loader-fallback/index.js +4 -1
- package/dist/es2019/ui/loader-fallback/styled.js +3 -0
- package/dist/es2019/ui/styled.js +3 -0
- package/dist/esm/common/generic-error-svg/index.js +4 -1
- package/dist/esm/common/generic-error-svg/styled.js +3 -0
- package/dist/esm/common/ui/empty-state/index.js +3 -1
- package/dist/esm/common/ui/min-height-container/index.js +5 -1
- package/dist/esm/common/ui/min-height-container/styled.js +3 -0
- package/dist/esm/ui/error-boundary/error-boundary-fallback/index.js +17 -11
- package/dist/esm/ui/error-boundary/error-boundary-fallback/styled.js +3 -0
- package/dist/esm/ui/index.js +6 -2
- package/dist/esm/ui/link-picker/form-footer/feature-discovery/index.js +9 -4
- package/dist/esm/ui/link-picker/form-footer/feature-discovery/styled.js +3 -0
- package/dist/esm/ui/link-picker/form-footer/index.js +31 -24
- package/dist/esm/ui/link-picker/form-footer/styled.js +5 -0
- package/dist/esm/ui/link-picker/index.js +8 -2
- package/dist/esm/ui/link-picker/search-results/index.js +8 -2
- package/dist/esm/ui/link-picker/search-results/link-search-error/index.js +1 -0
- package/dist/esm/ui/link-picker/search-results/link-search-list/index.js +22 -9
- package/dist/esm/ui/link-picker/search-results/link-search-list/link-search-no-results/index.js +15 -11
- package/dist/esm/ui/link-picker/search-results/link-search-list/link-search-no-results/no-results-svg/index.js +2 -0
- package/dist/esm/ui/link-picker/search-results/link-search-list/link-search-no-results/no-results-svg/styled.js +3 -0
- package/dist/esm/ui/link-picker/search-results/link-search-list/link-search-no-results/styled.js +5 -0
- package/dist/esm/ui/link-picker/search-results/link-search-list/list-item/index.js +34 -17
- package/dist/esm/ui/link-picker/search-results/link-search-list/list-item/styled.js +28 -3
- package/dist/esm/ui/link-picker/search-results/link-search-list/styled.js +8 -0
- package/dist/esm/ui/link-picker/search-results/scrolling-tabs/index.js +39 -32
- package/dist/esm/ui/link-picker/search-results/scrolling-tabs/styles.js +19 -4
- package/dist/esm/ui/link-picker/search-results/search-results-container/index.js +4 -0
- package/dist/esm/ui/link-picker/search-results/search-results-container/styled.js +3 -0
- package/dist/esm/ui/link-picker/search-results/styled.js +6 -0
- package/dist/esm/ui/link-picker/styled.js +4 -1
- package/dist/esm/ui/link-picker/text-input/index.js +36 -24
- package/dist/esm/ui/link-picker/text-input/styled.js +4 -10
- package/dist/esm/ui/loader-fallback/index.js +4 -1
- package/dist/esm/ui/loader-fallback/styled.js +3 -0
- package/dist/esm/ui/styled.js +3 -0
- package/dist/types/ui/error-boundary/error-boundary-base/index.d.ts +3 -3
- package/dist/types/ui/link-picker/text-input/styled.d.ts +0 -1
- package/dist/types-ts4.5/ui/error-boundary/error-boundary-base/index.d.ts +3 -3
- package/dist/types-ts4.5/ui/link-picker/text-input/styled.d.ts +0 -1
- package/package.json +147 -147
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
/** @jsx jsx */
|
|
3
3
|
import React, { forwardRef } from 'react';
|
|
4
|
+
|
|
5
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
4
6
|
import { jsx } from '@emotion/react';
|
|
5
7
|
import { minHeightComponentStyles } from './styled';
|
|
6
8
|
export const MinHeightContainer = /*#__PURE__*/forwardRef(({
|
|
@@ -8,7 +10,9 @@ export const MinHeightContainer = /*#__PURE__*/forwardRef(({
|
|
|
8
10
|
...props
|
|
9
11
|
}, ref) => {
|
|
10
12
|
return jsx("div", _extends({
|
|
11
|
-
ref: ref
|
|
13
|
+
ref: ref
|
|
14
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
15
|
+
,
|
|
12
16
|
css: minHeightComponentStyles
|
|
13
17
|
}, props, {
|
|
14
18
|
style: {
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
1
2
|
import { css } from '@emotion/react';
|
|
3
|
+
|
|
4
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
2
5
|
export const minHeightComponentStyles = css({
|
|
3
6
|
display: 'flex',
|
|
4
7
|
alignItems: 'stretch',
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
2
3
|
import { jsx } from '@emotion/react';
|
|
3
4
|
import { defineMessages, useIntl } from 'react-intl-next';
|
|
4
5
|
import EmptyState from '@atlaskit/empty-state';
|
|
@@ -28,7 +29,9 @@ export const ErrorBoundaryFallback = () => {
|
|
|
28
29
|
const description = intl.formatMessage(messages.description);
|
|
29
30
|
const EmptyStateComponent = getBooleanFF('platform.linking-platform.link-picker.remove-dst-empty-state') ? EmptyStateInternal : EmptyState;
|
|
30
31
|
if (getBooleanFF('platform.linking-platform.link-picker.fixed-height-search-results')) {
|
|
31
|
-
return jsx(MinHeightContainer
|
|
32
|
+
return jsx(MinHeightContainer
|
|
33
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
34
|
+
, {
|
|
32
35
|
css: errorBoundaryFallbackStyles,
|
|
33
36
|
minHeight: LINK_PICKER_MIN_HEIGHT_IN_PX_FALLBACK,
|
|
34
37
|
"data-testid": "link-picker-root-error-boundary-ui"
|
|
@@ -38,12 +41,15 @@ export const ErrorBoundaryFallback = () => {
|
|
|
38
41
|
description: description
|
|
39
42
|
}));
|
|
40
43
|
}
|
|
41
|
-
return
|
|
42
|
-
css
|
|
43
|
-
"
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
44
|
+
return (
|
|
45
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
46
|
+
jsx("div", {
|
|
47
|
+
css: rootContainerStyles,
|
|
48
|
+
"data-testid": "link-picker-root-error-boundary-ui"
|
|
49
|
+
}, jsx(EmptyStateComponent, {
|
|
50
|
+
header: header,
|
|
51
|
+
renderImage: () => jsx(GenericErrorSVG, null),
|
|
52
|
+
description: description
|
|
53
|
+
}))
|
|
54
|
+
);
|
|
49
55
|
};
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
1
2
|
import { css } from '@emotion/react';
|
|
3
|
+
|
|
4
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
2
5
|
export const errorBoundaryFallbackStyles = css({
|
|
3
6
|
lineHeight: 'initial'
|
|
4
7
|
});
|
package/dist/es2019/ui/index.js
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
/** @jsx jsx */
|
|
3
3
|
import React, { Fragment, memo } from 'react';
|
|
4
|
+
|
|
5
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
4
6
|
import { jsx } from '@emotion/react';
|
|
5
7
|
import { lazyForPaint, LazySuspense } from 'react-loosely-lazy';
|
|
6
8
|
import { AnalyticsContext } from '@atlaskit/analytics-next';
|
|
@@ -16,7 +18,7 @@ export const testIds = {
|
|
|
16
18
|
};
|
|
17
19
|
export const PACKAGE_DATA = {
|
|
18
20
|
packageName: "@atlaskit/link-picker" || '',
|
|
19
|
-
packageVersion: "1.37.
|
|
21
|
+
packageVersion: "1.37.3" || '',
|
|
20
22
|
componentName: COMPONENT_NAME,
|
|
21
23
|
source: COMPONENT_NAME
|
|
22
24
|
};
|
|
@@ -34,6 +36,7 @@ const DefaultRootComponent = ({
|
|
|
34
36
|
}, children);
|
|
35
37
|
};
|
|
36
38
|
const FixedWidthContainer = props => {
|
|
39
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
37
40
|
return jsx("div", _extends({
|
|
38
41
|
css: fixedWidthContainerStyles
|
|
39
42
|
}, props));
|
|
@@ -56,7 +59,9 @@ const ComposedLinkPicker = /*#__PURE__*/memo(props => {
|
|
|
56
59
|
data: PACKAGE_DATA
|
|
57
60
|
}, jsx(LinkPickerSessionProvider, null, jsx(MessagesProvider, null, jsx("div", {
|
|
58
61
|
style: {
|
|
59
|
-
['--link-picker-width']: props.disableWidth ? '100%' :
|
|
62
|
+
['--link-picker-width']: props.disableWidth ? '100%' :
|
|
63
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
64
|
+
`${LINK_PICKER_WIDTH_IN_PX}px`,
|
|
60
65
|
['--link-picker-padding-left']: (_props$paddingLeft = props.paddingLeft) !== null && _props$paddingLeft !== void 0 ? _props$paddingLeft : "var(--ds-space-200, 16px)",
|
|
61
66
|
['--link-picker-padding-right']: (_props$paddingRight = props.paddingRight) !== null && _props$paddingRight !== void 0 ? _props$paddingRight : "var(--ds-space-200, 16px)",
|
|
62
67
|
['--link-picker-padding-top']: (_props$paddingTop = props.paddingTop) !== null && _props$paddingTop !== void 0 ? _props$paddingTop : "var(--ds-space-200, 16px)",
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import { useEffect, useMemo } from 'react';
|
|
3
|
+
|
|
4
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
3
5
|
import { jsx } from '@emotion/react';
|
|
4
6
|
import { StorageClient } from '@atlaskit/frontend-utilities/storage-client';
|
|
5
7
|
import { pulseStyles } from './styled';
|
|
@@ -33,9 +35,12 @@ const FeatureDiscovery = ({
|
|
|
33
35
|
if (discovered) {
|
|
34
36
|
return children;
|
|
35
37
|
}
|
|
36
|
-
return
|
|
37
|
-
css
|
|
38
|
-
"
|
|
39
|
-
|
|
38
|
+
return (
|
|
39
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
40
|
+
jsx("span", {
|
|
41
|
+
css: pulseStyles,
|
|
42
|
+
"data-testid": `${testId}-discovery`
|
|
43
|
+
}, children)
|
|
44
|
+
);
|
|
40
45
|
};
|
|
41
46
|
export default FeatureDiscovery;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
1
2
|
import { css, keyframes } from '@emotion/react';
|
|
2
3
|
const pulseKeyframes = keyframes({
|
|
3
4
|
to: {
|
|
@@ -7,6 +8,8 @@ const pulseKeyframes = keyframes({
|
|
|
7
8
|
|
|
8
9
|
// Styling from atlassian-frontend/packages/design-system/onboarding/src/styled/target.tsx
|
|
9
10
|
const pulseColor = 'rgb(101, 84, 192)';
|
|
11
|
+
|
|
12
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-keyframes, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
10
13
|
export const pulseStyles = css({
|
|
11
14
|
display: 'inline-flex',
|
|
12
15
|
borderRadius: '3px',
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
/** @jsx jsx */
|
|
3
3
|
import { memo, useMemo } from 'react';
|
|
4
|
+
|
|
5
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
4
6
|
import { jsx } from '@emotion/react';
|
|
5
7
|
import { defineMessages, useIntl } from 'react-intl-next';
|
|
6
8
|
import uuid from 'uuid';
|
|
@@ -74,28 +76,33 @@ export const FormFooter = /*#__PURE__*/memo(({
|
|
|
74
76
|
isDisabled: isSubmitting,
|
|
75
77
|
"aria-labelledby": isSubmitting ? submitMessageId : undefined
|
|
76
78
|
}, typeof pluginAction.label === 'string' ? pluginAction.label : intl.formatMessage(pluginAction.label));
|
|
77
|
-
return
|
|
78
|
-
css
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
79
|
+
return (
|
|
80
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
81
|
+
jsx("footer", _extends({
|
|
82
|
+
css: formFooterStyles
|
|
83
|
+
}, restProps), isSubmitting && jsx(VisuallyHidden, {
|
|
84
|
+
role: "status",
|
|
85
|
+
id: submitMessageId,
|
|
86
|
+
testId: testIds.submitStatusA11yIndicator
|
|
87
|
+
}, intl.formatMessage(messages.submittingStatusMessage)), action &&
|
|
88
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
89
|
+
jsx("div", {
|
|
90
|
+
css: formFooterActionStyles
|
|
91
|
+
}, createFeatureDiscovery ? jsx(FeatureDiscovery, {
|
|
92
|
+
testId: testIds.actionButtonDiscovery
|
|
93
|
+
}, createButton(action)) : createButton(action)), jsx(ButtonGroup, null, onCancel && jsx(Button, {
|
|
94
|
+
appearance: "subtle",
|
|
95
|
+
onClick: onCancel,
|
|
96
|
+
testId: testIds.cancelButton,
|
|
97
|
+
isDisabled: isSubmitting,
|
|
98
|
+
"aria-labelledby": isSubmitting ? submitMessageId : undefined
|
|
99
|
+
}, intl.formatMessage(messages.cancelButton)), jsx(LoadingButton, {
|
|
100
|
+
type: "submit",
|
|
101
|
+
appearance: "primary",
|
|
102
|
+
testId: testIds.insertButton,
|
|
103
|
+
isDisabled: isSubmitDisabled,
|
|
104
|
+
"aria-labelledby": isSubmitting ? submitMessageId : undefined,
|
|
105
|
+
isLoading: isSubmitting
|
|
106
|
+
}, customSubmitButtonLabel ? intl.formatMessage(customSubmitButtonLabel) : intl.formatMessage(insertButtonMsg))))
|
|
107
|
+
);
|
|
101
108
|
});
|
|
@@ -1,8 +1,13 @@
|
|
|
1
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
1
2
|
import { css } from '@emotion/react';
|
|
3
|
+
|
|
4
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
2
5
|
export const formFooterStyles = css({
|
|
3
6
|
display: 'flex',
|
|
4
7
|
justifyContent: 'flex-end'
|
|
5
8
|
});
|
|
9
|
+
|
|
10
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
6
11
|
export const formFooterActionStyles = css({
|
|
7
12
|
marginRight: 'auto'
|
|
8
13
|
});
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
/** @jsx jsx */
|
|
3
3
|
import { Fragment, memo, useCallback, useLayoutEffect, useReducer } from 'react';
|
|
4
|
+
|
|
5
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
4
6
|
import { jsx } from '@emotion/react';
|
|
5
7
|
import { FormattedMessage, useIntl } from 'react-intl-next';
|
|
6
8
|
import { useAnalyticsEvents } from '@atlaskit/analytics-next';
|
|
@@ -316,7 +318,9 @@ export const LinkPicker = withLinkPickerAnalyticsContext( /*#__PURE__*/memo(({
|
|
|
316
318
|
// for details: https://a11y-internal.atlassian.net/browse/AK-740
|
|
317
319
|
const screenReaderText = browser().safari && getScreenReaderText(items !== null && items !== void 0 ? items : [], selectedIndex, intl);
|
|
318
320
|
return jsx("form", {
|
|
319
|
-
"data-testid": testIds.linkPicker
|
|
321
|
+
"data-testid": testIds.linkPicker
|
|
322
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
323
|
+
,
|
|
320
324
|
css: rootContainerStyles
|
|
321
325
|
// Use onSubmitCapture instead of onSubmit so that any possible parent form isn't submitted
|
|
322
326
|
,
|
|
@@ -384,7 +388,9 @@ export const LinkPicker = withLinkPickerAnalyticsContext( /*#__PURE__*/memo(({
|
|
|
384
388
|
url: url,
|
|
385
389
|
isEditing: isEditing,
|
|
386
390
|
onCancel: onCancel,
|
|
387
|
-
action: pluginAction
|
|
391
|
+
action: pluginAction
|
|
392
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
393
|
+
,
|
|
388
394
|
css: !queryState || !(plugins !== null && plugins !== void 0 && plugins.length) ? formFooterMargin : undefined
|
|
389
395
|
/* Show the feature discovery pulse when we're on the Jira tab, we haven't started typing a url and
|
|
390
396
|
the feature flag is enabled */,
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
/** @jsx jsx */
|
|
3
3
|
import { Fragment } from 'react';
|
|
4
|
+
|
|
5
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
4
6
|
import { jsx } from '@emotion/react';
|
|
5
7
|
import Spinner from '@atlaskit/spinner/spinner';
|
|
6
8
|
import Tabs, { Tab, TabList } from '@atlaskit/tabs';
|
|
@@ -49,12 +51,16 @@ export const SearchResults = ({
|
|
|
49
51
|
}, tab.tabTitle)));
|
|
50
52
|
return jsx(SearchResultsContainer, _extends({
|
|
51
53
|
hasTabs: !!tabs.length || isLoadingPlugins
|
|
52
|
-
}, fixListHeightProps), isLoadingPlugins && !!queryState &&
|
|
54
|
+
}, fixListHeightProps), isLoadingPlugins && !!queryState &&
|
|
55
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
56
|
+
jsx("div", {
|
|
53
57
|
css: spinnerContainerStyles
|
|
54
58
|
}, jsx(Spinner, {
|
|
55
59
|
testId: testIds.tabsLoadingIndicator,
|
|
56
60
|
size: "medium"
|
|
57
|
-
})), !isLoadingPlugins && isActivePlugin && !!queryState && jsx(Fragment, null, tabs.length > 0 &&
|
|
61
|
+
})), !isLoadingPlugins && isActivePlugin && !!queryState && jsx(Fragment, null, tabs.length > 0 &&
|
|
62
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
63
|
+
jsx("div", {
|
|
58
64
|
css: tabsWrapperStyles
|
|
59
65
|
}, jsx(Tabs, {
|
|
60
66
|
id: testIds.tabList,
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
/** @jsx jsx */
|
|
3
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
3
4
|
import { jsx } from '@emotion/react';
|
|
4
5
|
import { defineMessages, FormattedMessage, useIntl } from 'react-intl-next';
|
|
5
6
|
import Button from '@atlaskit/button';
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
/** @jsx jsx */
|
|
3
3
|
import { forwardRef, Fragment, useCallback, useRef } from 'react';
|
|
4
|
+
|
|
5
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
4
6
|
import { jsx } from '@emotion/react';
|
|
5
7
|
import { defineMessages, FormattedMessage } from 'react-intl-next';
|
|
6
8
|
import { getBooleanFF } from '@atlaskit/platform-feature-flags';
|
|
@@ -98,9 +100,12 @@ export const LinkSearchList = /*#__PURE__*/forwardRef(({
|
|
|
98
100
|
if (hasSearchTerm) {
|
|
99
101
|
return jsx(NoResults, null);
|
|
100
102
|
} else {
|
|
101
|
-
return
|
|
102
|
-
css
|
|
103
|
-
|
|
103
|
+
return (
|
|
104
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
105
|
+
jsx("div", {
|
|
106
|
+
css: emptyStateNoResultsWrapper
|
|
107
|
+
}, activePlugin !== null && activePlugin !== void 0 && activePlugin.emptyStateNoResults ? activePlugin.emptyStateNoResults() : null)
|
|
108
|
+
);
|
|
104
109
|
}
|
|
105
110
|
} else {
|
|
106
111
|
return jsx(NoResults, null);
|
|
@@ -108,6 +113,7 @@ export const LinkSearchList = /*#__PURE__*/forwardRef(({
|
|
|
108
113
|
}
|
|
109
114
|
if (items && items.length > 0) {
|
|
110
115
|
itemsContent = jsx(Fragment, null, jsx("div", {
|
|
116
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
111
117
|
css: listTitleStyles,
|
|
112
118
|
id: testIds.resultListTitle,
|
|
113
119
|
"data-testid": testIds.resultListTitle
|
|
@@ -121,7 +127,9 @@ export const LinkSearchList = /*#__PURE__*/forwardRef(({
|
|
|
121
127
|
"aria-atomic": "true"
|
|
122
128
|
}))), jsx("ul", {
|
|
123
129
|
id: id,
|
|
124
|
-
role: role
|
|
130
|
+
role: role
|
|
131
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
132
|
+
,
|
|
125
133
|
css: listStyles,
|
|
126
134
|
"aria-controls": "fabric.smartcard.linkpicker.suggested.results",
|
|
127
135
|
"aria-labelledby": testIds.resultListTitle,
|
|
@@ -143,15 +151,20 @@ export const LinkSearchList = /*#__PURE__*/forwardRef(({
|
|
|
143
151
|
}
|
|
144
152
|
if (isLoading) {
|
|
145
153
|
loadingContent = jsx(MinHeightContainer, {
|
|
146
|
-
minHeight: getBooleanFF('platform.linking-platform.link-picker.fixed-height-search-results') ? '50px' : '80px'
|
|
154
|
+
minHeight: getBooleanFF('platform.linking-platform.link-picker.fixed-height-search-results') ? '50px' : '80px'
|
|
155
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
156
|
+
,
|
|
147
157
|
css: spinnerContainerStyles
|
|
148
158
|
}, jsx(Spinner, {
|
|
149
159
|
testId: testIds.searchResultLoadingIndicator,
|
|
150
160
|
size: "medium"
|
|
151
161
|
}));
|
|
152
162
|
}
|
|
153
|
-
return
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
163
|
+
return (
|
|
164
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
165
|
+
jsx("div", _extends({
|
|
166
|
+
ref: ref,
|
|
167
|
+
css: listContainerStyles
|
|
168
|
+
}, restProps), itemsContent, loadingContent)
|
|
169
|
+
);
|
|
157
170
|
});
|
package/dist/es2019/ui/link-picker/search-results/link-search-list/link-search-no-results/index.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
2
3
|
import { jsx } from '@emotion/react';
|
|
3
4
|
import { defineMessages, useIntl } from 'react-intl-next';
|
|
4
5
|
import EmptyState from '@atlaskit/empty-state';
|
|
@@ -24,13 +25,16 @@ export const testIds = {
|
|
|
24
25
|
export const NoResults = () => {
|
|
25
26
|
const intl = useIntl();
|
|
26
27
|
const Component = getBooleanFF('platform.linking-platform.link-picker.remove-dst-empty-state') ? EmptyStateInternal : EmptyState;
|
|
27
|
-
return
|
|
28
|
-
css
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
28
|
+
return (
|
|
29
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
30
|
+
jsx("div", {
|
|
31
|
+
css: emptyStateWrapperStyles
|
|
32
|
+
}, jsx(Component, {
|
|
33
|
+
testId: testIds.emptyResultPage,
|
|
34
|
+
header: intl.formatMessage(messages.noResults),
|
|
35
|
+
headingLevel: getBooleanFF('platform.linking-platform.link-picker.remove-dst-empty-state') ? undefined : 3,
|
|
36
|
+
description: intl.formatMessage(messages.noResultsDescription),
|
|
37
|
+
renderImage: () => jsx(NoResultsSVG, null)
|
|
38
|
+
}))
|
|
39
|
+
);
|
|
36
40
|
};
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
/* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
|
|
2
2
|
/** @jsx jsx */
|
|
3
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
3
4
|
import { jsx } from '@emotion/react';
|
|
4
5
|
import { noResultsSVGStyles } from './styled';
|
|
5
6
|
export const NoResultsSVG = () => {
|
|
6
7
|
const id = 'link-picker-ui-no-results-svg';
|
|
7
8
|
return jsx("svg", {
|
|
9
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
8
10
|
css: noResultsSVGStyles,
|
|
9
11
|
height: "120",
|
|
10
12
|
viewBox: "0 0 208 191",
|
|
@@ -1,5 +1,8 @@
|
|
|
1
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
1
2
|
import { css } from '@emotion/react';
|
|
2
3
|
const HEIGHT = 120;
|
|
4
|
+
|
|
5
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
3
6
|
export const noResultsSVGStyles = css({
|
|
4
7
|
height: `${HEIGHT}px`,
|
|
5
8
|
margin: `0 auto ${"var(--ds-space-300, 24px)"}`,
|
package/dist/es2019/ui/link-picker/search-results/link-search-list/link-search-no-results/styled.js
CHANGED
|
@@ -1,9 +1,14 @@
|
|
|
1
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
1
2
|
import { css } from '@emotion/react';
|
|
3
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
2
4
|
export const emptyStateWrapperStyles = css({
|
|
5
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
3
6
|
'& p': {
|
|
4
7
|
margin: 0
|
|
5
8
|
}
|
|
6
9
|
});
|
|
10
|
+
|
|
11
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
7
12
|
export const emptyStateNoResultsWrapper = css({
|
|
8
13
|
minHeight: "var(--ds-space-200, 16px)"
|
|
9
14
|
});
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import { forwardRef, Fragment } from 'react';
|
|
3
|
+
|
|
4
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
3
5
|
import { jsx } from '@emotion/react';
|
|
4
6
|
import { useIntl } from 'react-intl-next';
|
|
5
7
|
/* eslint-disable-next-line @atlassian/tangerine/import/no-parent-imports */
|
|
@@ -26,21 +28,29 @@ const ListItemIcon = props => {
|
|
|
26
28
|
const alt = typeof iconAlt === 'string' ? iconAlt : intl.formatMessage(iconAlt);
|
|
27
29
|
if (typeof icon !== 'string') {
|
|
28
30
|
const Glyph = icon;
|
|
29
|
-
return
|
|
30
|
-
css
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
31
|
+
return (
|
|
32
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
33
|
+
jsx("span", {
|
|
34
|
+
css: itemIconStyles
|
|
35
|
+
}, jsx(Glyph, {
|
|
36
|
+
alt: alt,
|
|
37
|
+
"data-testid": testIds.searchResultIcon
|
|
38
|
+
}))
|
|
39
|
+
);
|
|
35
40
|
}
|
|
36
|
-
return
|
|
37
|
-
css
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
41
|
+
return (
|
|
42
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
43
|
+
jsx("span", {
|
|
44
|
+
css: itemIconStyles
|
|
45
|
+
}, jsx("img", {
|
|
46
|
+
"data-testid": testIds.searchResultIcon,
|
|
47
|
+
src: isSVG(icon) ? base64SVG(icon) : icon,
|
|
48
|
+
alt: alt
|
|
49
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
50
|
+
,
|
|
51
|
+
css: imgStyles
|
|
52
|
+
}))
|
|
53
|
+
);
|
|
44
54
|
};
|
|
45
55
|
export const LinkSearchListItem = /*#__PURE__*/forwardRef(({
|
|
46
56
|
item,
|
|
@@ -57,6 +67,7 @@ export const LinkSearchListItem = /*#__PURE__*/forwardRef(({
|
|
|
57
67
|
const container = item.container || null;
|
|
58
68
|
const date = transformTimeStamp(intl, item.lastViewedDate, item.lastUpdatedDate);
|
|
59
69
|
return jsx("div", {
|
|
70
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
60
71
|
css: composeListItemStyles(selected),
|
|
61
72
|
role: role,
|
|
62
73
|
id: id,
|
|
@@ -73,17 +84,23 @@ export const LinkSearchListItem = /*#__PURE__*/forwardRef(({
|
|
|
73
84
|
}), jsx("div", {
|
|
74
85
|
css: itemNameStyles
|
|
75
86
|
}, jsx("div", {
|
|
76
|
-
"data-testid": `${testIds.searchResultItem}-title
|
|
87
|
+
"data-testid": `${testIds.searchResultItem}-title`
|
|
88
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
89
|
+
,
|
|
77
90
|
css: listItemNameStyles,
|
|
78
91
|
title: item.name
|
|
79
92
|
}, item.name), jsx("div", {
|
|
80
93
|
"data-testid": `${testIds.searchResultItem}-subtitle`,
|
|
81
94
|
css: listItemContextStyles
|
|
82
|
-
}, container &&
|
|
95
|
+
}, container &&
|
|
96
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
97
|
+
jsx("div", {
|
|
83
98
|
css: listItemContainerStyles
|
|
84
99
|
}, jsx("span", {
|
|
85
100
|
css: listItemContainerInnerStyles
|
|
86
|
-
}, container)), date &&
|
|
101
|
+
}, container)), date &&
|
|
102
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
103
|
+
jsx("div", {
|
|
87
104
|
css: listItemContainerInnerStyles
|
|
88
105
|
}, container && jsx(Fragment, null, "\xA0 \u2022\xA0 "), jsx(Fragment, null, date)))));
|
|
89
106
|
});
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
1
2
|
import { css } from '@emotion/react';
|
|
2
3
|
import { B100, B400, B50, N20, N200, N300, N800 } from '@atlaskit/theme/colors';
|
|
3
4
|
import { fontSize, fontSizeSmall } from '@atlaskit/theme/constants';
|
|
@@ -36,18 +37,33 @@ const listItemActive = css({
|
|
|
36
37
|
'&:hover': {
|
|
37
38
|
backgroundColor: `var(--ds-background-neutral-subtle-hovered, ${N20})`
|
|
38
39
|
},
|
|
40
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
39
41
|
listItemBoxShadow
|
|
40
42
|
});
|
|
41
43
|
const listItemSelected = css({
|
|
42
44
|
backgroundColor: `var(--ds-background-selected, ${B50})`
|
|
43
|
-
},
|
|
45
|
+
},
|
|
46
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
47
|
+
listItemBoxShadow);
|
|
44
48
|
export const composeListItemStyles = (selected = false) => {
|
|
45
|
-
return css(
|
|
49
|
+
return css(
|
|
50
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
51
|
+
listItemBaseStyles,
|
|
52
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
53
|
+
!selected && listItemActive,
|
|
54
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
55
|
+
selected && listItemSelected,
|
|
56
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
57
|
+
listItemFocusStyles);
|
|
46
58
|
};
|
|
59
|
+
|
|
60
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
47
61
|
export const itemNameStyles = css({
|
|
48
62
|
overflow: 'hidden',
|
|
49
63
|
alignContent: 'center'
|
|
50
64
|
});
|
|
65
|
+
|
|
66
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
51
67
|
export const listItemNameStyles = css({
|
|
52
68
|
color: `var(--ds-text, ${N800})`,
|
|
53
69
|
overflow: 'hidden',
|
|
@@ -55,27 +71,36 @@ export const listItemNameStyles = css({
|
|
|
55
71
|
whiteSpace: 'nowrap',
|
|
56
72
|
lineHeight: '20px'
|
|
57
73
|
});
|
|
74
|
+
|
|
75
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
58
76
|
export const listItemContextStyles = css({
|
|
59
77
|
color: `var(--ds-text, ${N300})`,
|
|
78
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
60
79
|
fontSize: relativeFontSizeToBase16(fontSizeSmall()),
|
|
61
80
|
lineHeight: `${fontSize()}px`,
|
|
62
81
|
display: 'flex'
|
|
63
82
|
});
|
|
83
|
+
|
|
84
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
64
85
|
export const listItemContainerStyles = css({
|
|
65
86
|
overflow: 'hidden',
|
|
66
87
|
textOverflow: 'ellipsis'
|
|
67
88
|
});
|
|
89
|
+
|
|
90
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
68
91
|
export const listItemContainerInnerStyles = css({
|
|
69
92
|
color: `var(--ds-text-subtlest, ${N200})`,
|
|
70
93
|
whiteSpace: 'nowrap'
|
|
71
94
|
});
|
|
72
95
|
|
|
73
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
96
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage, @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
74
97
|
export const itemIconStyles = css({
|
|
75
98
|
minWidth: "var(--ds-space-200, 16px)",
|
|
76
99
|
marginTop: "var(--ds-space-050, 4px)",
|
|
77
100
|
marginRight: "var(--ds-space-150, 12px)"
|
|
78
101
|
});
|
|
102
|
+
|
|
103
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
79
104
|
export const imgStyles = css({
|
|
80
105
|
maxWidth: "var(--ds-space-200, 16px)"
|
|
81
106
|
});
|