@atlaskit/link-datasource 2.6.0 → 2.7.1
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 +20 -0
- package/dist/cjs/ui/assets-modal/search-container/aql-search-input/index.js +27 -19
- package/dist/cjs/ui/common/modal/basic-search-input/index.js +5 -3
- package/dist/cjs/ui/common/modal/popup-select/dropdownIndicator.js +8 -6
- package/dist/cjs/ui/common/modal/popup-select/menu-list/errorMessage.js +3 -1
- package/dist/cjs/ui/common/modal/popup-select/menu-list/noOptionsMessage.js +3 -1
- package/dist/cjs/ui/common/modal/popup-select/menu-list/selectMessage.js +1 -1
- package/dist/cjs/ui/common/modal/popup-select/trigger.js +3 -2
- package/dist/cjs/ui/confluence-search-modal/basic-filters/filters/date-range-picker/index.js +3 -3
- package/dist/cjs/ui/confluence-search-modal/basic-filters/filters/date-range-picker/styled.js +2 -1
- package/dist/cjs/ui/confluence-search-modal/basic-filters/filters/date-range-picker/trigger.js +4 -3
- package/dist/cjs/ui/issue-like-table/empty-state/type.js +6 -0
- package/dist/cjs/ui/table-footer/index.js +3 -1
- package/dist/es2019/ui/assets-modal/search-container/aql-search-input/index.js +25 -17
- package/dist/es2019/ui/common/modal/basic-search-input/index.js +4 -2
- package/dist/es2019/ui/common/modal/popup-select/dropdownIndicator.js +8 -6
- package/dist/es2019/ui/common/modal/popup-select/menu-list/errorMessage.js +3 -1
- package/dist/es2019/ui/common/modal/popup-select/menu-list/noOptionsMessage.js +3 -1
- package/dist/es2019/ui/common/modal/popup-select/menu-list/selectMessage.js +1 -1
- package/dist/es2019/ui/common/modal/popup-select/trigger.js +3 -2
- package/dist/es2019/ui/confluence-search-modal/basic-filters/filters/date-range-picker/index.js +3 -3
- package/dist/es2019/ui/confluence-search-modal/basic-filters/filters/date-range-picker/styled.js +2 -1
- package/dist/es2019/ui/confluence-search-modal/basic-filters/filters/date-range-picker/trigger.js +4 -3
- package/dist/es2019/ui/issue-like-table/empty-state/type.js +6 -0
- package/dist/es2019/ui/table-footer/index.js +3 -1
- package/dist/esm/ui/assets-modal/search-container/aql-search-input/index.js +25 -17
- package/dist/esm/ui/common/modal/basic-search-input/index.js +4 -2
- package/dist/esm/ui/common/modal/popup-select/dropdownIndicator.js +8 -6
- package/dist/esm/ui/common/modal/popup-select/menu-list/errorMessage.js +3 -1
- package/dist/esm/ui/common/modal/popup-select/menu-list/noOptionsMessage.js +3 -1
- package/dist/esm/ui/common/modal/popup-select/menu-list/selectMessage.js +1 -1
- package/dist/esm/ui/common/modal/popup-select/trigger.js +3 -2
- package/dist/esm/ui/confluence-search-modal/basic-filters/filters/date-range-picker/index.js +3 -3
- package/dist/esm/ui/confluence-search-modal/basic-filters/filters/date-range-picker/styled.js +2 -1
- package/dist/esm/ui/confluence-search-modal/basic-filters/filters/date-range-picker/trigger.js +4 -3
- package/dist/esm/ui/issue-like-table/empty-state/type.js +6 -0
- package/dist/esm/ui/table-footer/index.js +3 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,25 @@
|
|
|
1
1
|
# @atlaskit/link-datasource
|
|
2
2
|
|
|
3
|
+
## 2.7.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#123925](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/123925)
|
|
8
|
+
[`d6234c59408c8`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/d6234c59408c8) -
|
|
9
|
+
Internal change to typography component APIs resulting in very minor letter spacing changes.
|
|
10
|
+
|
|
11
|
+
## 2.7.0
|
|
12
|
+
|
|
13
|
+
### Minor Changes
|
|
14
|
+
|
|
15
|
+
- [#117215](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/117215)
|
|
16
|
+
[`3f2423168897d`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/3f2423168897d) -
|
|
17
|
+
[ux] Updated components to use new iconography behind a feature flag
|
|
18
|
+
|
|
19
|
+
### Patch Changes
|
|
20
|
+
|
|
21
|
+
- Updated dependencies
|
|
22
|
+
|
|
3
23
|
## 2.6.0
|
|
4
24
|
|
|
5
25
|
### Minor Changes
|
|
@@ -11,10 +11,10 @@ var _react2 = require("@emotion/react");
|
|
|
11
11
|
var _reactIntlNext = require("react-intl-next");
|
|
12
12
|
var _button = require("@atlaskit/button");
|
|
13
13
|
var _form = require("@atlaskit/form");
|
|
14
|
-
var _checkCircle = _interopRequireDefault(require("@atlaskit/icon/
|
|
15
|
-
var _crossCircle = _interopRequireDefault(require("@atlaskit/icon/
|
|
16
|
-
var
|
|
17
|
-
var
|
|
14
|
+
var _checkCircle = _interopRequireDefault(require("@atlaskit/icon/core/migration/check-circle"));
|
|
15
|
+
var _crossCircle = _interopRequireDefault(require("@atlaskit/icon/core/migration/cross-circle"));
|
|
16
|
+
var _questionCircle = _interopRequireDefault(require("@atlaskit/icon/core/migration/question-circle"));
|
|
17
|
+
var _searchEditorSearch = _interopRequireDefault(require("@atlaskit/icon/core/migration/search--editor-search"));
|
|
18
18
|
var _spinner = _interopRequireDefault(require("@atlaskit/spinner"));
|
|
19
19
|
var _textfield = _interopRequireDefault(require("@atlaskit/textfield"));
|
|
20
20
|
var _colors = require("@atlaskit/theme/colors");
|
|
@@ -53,23 +53,27 @@ var renderValidatorIcon = function renderValidatorIcon(lastValidationResult) {
|
|
|
53
53
|
if (lastValidationResult.type === 'invalid') {
|
|
54
54
|
return (0, _react2.jsx)(_crossCircle.default, {
|
|
55
55
|
label: "label",
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
testId: "assets-datasource-modal--aql-invalid"
|
|
56
|
+
color: "var(--ds-icon-danger, ".concat(_colors.R400, ")"),
|
|
57
|
+
LEGACY_size: "medium",
|
|
58
|
+
testId: "assets-datasource-modal--aql-invalid",
|
|
59
|
+
spacing: "spacious"
|
|
59
60
|
});
|
|
60
61
|
}
|
|
61
62
|
if (lastValidationResult.type === 'valid') {
|
|
62
63
|
return (0, _react2.jsx)(_checkCircle.default, {
|
|
63
64
|
label: "label",
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
testId: "assets-datasource-modal--aql-valid"
|
|
65
|
+
color: "var(--ds-icon-success, ".concat(_colors.G300, ")"),
|
|
66
|
+
LEGACY_size: "medium",
|
|
67
|
+
testId: "assets-datasource-modal--aql-valid",
|
|
68
|
+
spacing: "spacious"
|
|
67
69
|
});
|
|
68
70
|
}
|
|
69
|
-
return (0, _react2.jsx)(
|
|
71
|
+
return (0, _react2.jsx)(_searchEditorSearch.default, {
|
|
70
72
|
label: "label",
|
|
71
|
-
|
|
72
|
-
testId: "assets-datasource-modal--aql-idle"
|
|
73
|
+
LEGACY_size: "medium",
|
|
74
|
+
testId: "assets-datasource-modal--aql-idle",
|
|
75
|
+
color: "currentColor",
|
|
76
|
+
spacing: "spacious"
|
|
73
77
|
});
|
|
74
78
|
};
|
|
75
79
|
var AqlSearchInput = exports.AqlSearchInput = function AqlSearchInput(_ref) {
|
|
@@ -94,7 +98,8 @@ var AqlSearchInput = exports.AqlSearchInput = function AqlSearchInput(_ref) {
|
|
|
94
98
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
95
99
|
style: {
|
|
96
100
|
paddingLeft: "var(--ds-space-075, 6px)",
|
|
97
|
-
width: 24
|
|
101
|
+
width: 24,
|
|
102
|
+
display: 'flex'
|
|
98
103
|
}
|
|
99
104
|
}, renderValidatorIcon(lastValidationResult)),
|
|
100
105
|
elemAfterInput: (0, _react2.jsx)(_react.Fragment, null, (0, _react2.jsx)(_tooltip.default, {
|
|
@@ -106,15 +111,18 @@ var AqlSearchInput = exports.AqlSearchInput = function AqlSearchInput(_ref) {
|
|
|
106
111
|
css: buttonBaseStyles
|
|
107
112
|
}, (0, _react2.jsx)(_questionCircle.default, {
|
|
108
113
|
label: "label",
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
testId: "assets-datasource-modal-help"
|
|
114
|
+
color: "var(--ds-icon, ".concat(_colors.N500, ")"),
|
|
115
|
+
LEGACY_size: "medium",
|
|
116
|
+
testId: "assets-datasource-modal-help",
|
|
117
|
+
spacing: "spacious"
|
|
112
118
|
}))), (0, _react2.jsx)(_button.LoadingButton, {
|
|
113
119
|
appearance: "primary",
|
|
114
120
|
css: searchButtonStyles,
|
|
115
|
-
iconBefore: (0, _react2.jsx)(
|
|
121
|
+
iconBefore: (0, _react2.jsx)(_searchEditorSearch.default, {
|
|
116
122
|
label: formatMessage(_messages.searchInputMessages.placeholder),
|
|
117
|
-
|
|
123
|
+
LEGACY_size: "medium",
|
|
124
|
+
color: "currentColor",
|
|
125
|
+
spacing: "spacious"
|
|
118
126
|
}),
|
|
119
127
|
isLoading: isSearching,
|
|
120
128
|
spacing: "none",
|
|
@@ -8,7 +8,7 @@ exports.BasicSearchInput = void 0;
|
|
|
8
8
|
var _react = require("@emotion/react");
|
|
9
9
|
var _reactIntlNext = require("react-intl-next");
|
|
10
10
|
var _button = require("@atlaskit/button");
|
|
11
|
-
var
|
|
11
|
+
var _searchEditorSearch = _interopRequireDefault(require("@atlaskit/icon/core/migration/search--editor-search"));
|
|
12
12
|
var _textfield = _interopRequireDefault(require("@atlaskit/textfield"));
|
|
13
13
|
var _analytics = require("../../../../analytics");
|
|
14
14
|
var _messages = require("./messages");
|
|
@@ -57,9 +57,11 @@ var BasicSearchInput = exports.BasicSearchInput = function BasicSearchInput(_ref
|
|
|
57
57
|
elemAfterInput: (0, _react.jsx)(_button.LoadingButton, {
|
|
58
58
|
appearance: "primary",
|
|
59
59
|
css: searchButtonStyles,
|
|
60
|
-
iconBefore: (0, _react.jsx)(
|
|
60
|
+
iconBefore: (0, _react.jsx)(_searchEditorSearch.default, {
|
|
61
61
|
label: formatMessage(_messages.basicSearchInputMessages.basicTextSearchLabel),
|
|
62
|
-
|
|
62
|
+
LEGACY_size: "medium",
|
|
63
|
+
color: "currentColor",
|
|
64
|
+
spacing: "spacious"
|
|
63
65
|
}),
|
|
64
66
|
isDisabled: isDisabled,
|
|
65
67
|
isLoading: isSearching,
|
|
@@ -6,8 +6,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
});
|
|
7
7
|
exports.default = void 0;
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
var _crossCircle = _interopRequireDefault(require("@atlaskit/icon/
|
|
10
|
-
var _search = _interopRequireDefault(require("@atlaskit/icon/
|
|
9
|
+
var _crossCircle = _interopRequireDefault(require("@atlaskit/icon/core/migration/cross-circle"));
|
|
10
|
+
var _search = _interopRequireDefault(require("@atlaskit/icon/core/migration/search"));
|
|
11
11
|
var _primitives = require("@atlaskit/primitives");
|
|
12
12
|
var _select = require("@atlaskit/select");
|
|
13
13
|
var customDropdownIndicatorStyles = (0, _primitives.xcss)({
|
|
@@ -29,11 +29,13 @@ var CustomDropdownIndicator = function CustomDropdownIndicator(props) {
|
|
|
29
29
|
}
|
|
30
30
|
}
|
|
31
31
|
}, selectProps.inputValue ? /*#__PURE__*/_react.default.createElement(_crossCircle.default, {
|
|
32
|
-
|
|
33
|
-
label: ""
|
|
32
|
+
LEGACY_size: "small",
|
|
33
|
+
label: "",
|
|
34
|
+
color: "currentColor"
|
|
34
35
|
}) : /*#__PURE__*/_react.default.createElement(_search.default, {
|
|
35
|
-
|
|
36
|
-
label: ""
|
|
36
|
+
LEGACY_size: "small",
|
|
37
|
+
label: "",
|
|
38
|
+
color: "currentColor"
|
|
37
39
|
})));
|
|
38
40
|
};
|
|
39
41
|
var _default = exports.default = CustomDropdownIndicator;
|
|
@@ -48,7 +48,9 @@ var CustomErrorMessage = function CustomErrorMessage(_ref3) {
|
|
|
48
48
|
_useDebouncedCallback2 = (0, _slicedToArray2.default)(_useDebouncedCallback, 1),
|
|
49
49
|
debouncedAnalyticsCallback = _useDebouncedCallback2[0];
|
|
50
50
|
(0, _react.useEffect)(debouncedAnalyticsCallback, [debouncedAnalyticsCallback]);
|
|
51
|
-
return /*#__PURE__*/_react.default.createElement(_selectMessage.default
|
|
51
|
+
return /*#__PURE__*/_react.default.createElement(_selectMessage.default
|
|
52
|
+
// eslint-disable-next-line @atlaskit/design-system/no-legacy-icons -- TODO - https://product-fabric.atlassian.net/browse/DSP-19579
|
|
53
|
+
, {
|
|
52
54
|
icon: /*#__PURE__*/_react.default.createElement(_error.default, {
|
|
53
55
|
primaryColor: "var(--ds-icon, ".concat(_colors.N500, ")"),
|
|
54
56
|
label: "",
|
|
@@ -36,7 +36,9 @@ var CustomNoOptionsMessage = function CustomNoOptionsMessage(_ref) {
|
|
|
36
36
|
_useDebouncedCallback2 = (0, _slicedToArray2.default)(_useDebouncedCallback, 1),
|
|
37
37
|
debouncedAnalyticsCallback = _useDebouncedCallback2[0];
|
|
38
38
|
(0, _react.useEffect)(debouncedAnalyticsCallback, [debouncedAnalyticsCallback]);
|
|
39
|
-
return /*#__PURE__*/_react.default.createElement(_selectMessage.default
|
|
39
|
+
return /*#__PURE__*/_react.default.createElement(_selectMessage.default
|
|
40
|
+
// eslint-disable-next-line @atlaskit/design-system/no-legacy-icons -- TODO - https://product-fabric.atlassian.net/browse/DSP-19578
|
|
41
|
+
, {
|
|
40
42
|
icon: /*#__PURE__*/_react.default.createElement(_questionCircle.default, {
|
|
41
43
|
primaryColor: "var(--ds-icon, ".concat(_colors.N500, ")"),
|
|
42
44
|
size: "xlarge",
|
|
@@ -32,7 +32,7 @@ var CustomSelectMessage = function CustomSelectMessage(_ref) {
|
|
|
32
32
|
alignItems: "center",
|
|
33
33
|
justifyContent: "center"
|
|
34
34
|
}, icon), /*#__PURE__*/_react.default.createElement(_heading.default, {
|
|
35
|
-
|
|
35
|
+
size: "xsmall"
|
|
36
36
|
}, /*#__PURE__*/_react.default.createElement(_reactIntlNext.FormattedMessage, message)));
|
|
37
37
|
};
|
|
38
38
|
var _default = exports.default = CustomSelectMessage;
|
|
@@ -11,7 +11,7 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
11
11
|
var _styled = _interopRequireDefault(require("@emotion/styled"));
|
|
12
12
|
var _badge = _interopRequireDefault(require("@atlaskit/badge"));
|
|
13
13
|
var _standardButton = _interopRequireDefault(require("@atlaskit/button/standard-button"));
|
|
14
|
-
var _chevronDown = _interopRequireDefault(require("@atlaskit/icon/
|
|
14
|
+
var _chevronDown = _interopRequireDefault(require("@atlaskit/icon/utility/migration/chevron-down"));
|
|
15
15
|
var _primitives = require("@atlaskit/primitives");
|
|
16
16
|
var _spinner = _interopRequireDefault(require("@atlaskit/spinner"));
|
|
17
17
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
@@ -73,7 +73,8 @@ var PopupTrigger = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
|
73
73
|
isSelected: isSelected || hasOptions,
|
|
74
74
|
isDisabled: isDisabled,
|
|
75
75
|
iconAfter: /*#__PURE__*/_react.default.createElement(_chevronDown.default, {
|
|
76
|
-
label: ""
|
|
76
|
+
label: "",
|
|
77
|
+
color: "currentColor"
|
|
77
78
|
}),
|
|
78
79
|
testId: "".concat(triggerButtonTestId, "--button")
|
|
79
80
|
}, /*#__PURE__*/_react.default.createElement(_primitives.Flex, null, /*#__PURE__*/_react.default.createElement(_primitives.Box, {
|
package/dist/cjs/ui/confluence-search-modal/basic-filters/filters/date-range-picker/index.js
CHANGED
|
@@ -11,7 +11,7 @@ var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/sli
|
|
|
11
11
|
var _react = _interopRequireWildcard(require("react"));
|
|
12
12
|
var _reactIntlNext = require("react-intl-next");
|
|
13
13
|
var _datetimePicker = require("@atlaskit/datetime-picker");
|
|
14
|
-
var _error = _interopRequireDefault(require("@atlaskit/icon/
|
|
14
|
+
var _error = _interopRequireDefault(require("@atlaskit/icon/utility/migration/error"));
|
|
15
15
|
var _popup = _interopRequireDefault(require("@atlaskit/popup"));
|
|
16
16
|
var _colors = require("@atlaskit/theme/colors");
|
|
17
17
|
var _constants = require("@atlaskit/theme/constants");
|
|
@@ -162,8 +162,8 @@ var DateRangePicker = exports.DateRangePicker = function DateRangePicker(_ref) {
|
|
|
162
162
|
}
|
|
163
163
|
}
|
|
164
164
|
})), invalidDateRange && /*#__PURE__*/_react.default.createElement(_styled.DateRangeErrorMessage, null, /*#__PURE__*/_react.default.createElement(_error.default, {
|
|
165
|
-
|
|
166
|
-
|
|
165
|
+
LEGACY_size: "small",
|
|
166
|
+
color: "var(--ds-icon-danger, ".concat(_colors.R400, ")"),
|
|
167
167
|
label: "Date range error"
|
|
168
168
|
}), invalidDateRange), /*#__PURE__*/_react.default.createElement(_styled.SelectDateRangeButton, {
|
|
169
169
|
"data-testId": "custom-date-range-update-button",
|
package/dist/cjs/ui/confluence-search-modal/basic-filters/filters/date-range-picker/styled.js
CHANGED
|
@@ -94,5 +94,6 @@ var DateRangeErrorMessage = exports.DateRangeErrorMessage = _styled.default.div(
|
|
|
94
94
|
lineHeight: 1.3333,
|
|
95
95
|
marginTop: "var(--ds-space-050, 2px)",
|
|
96
96
|
fontSize: '12px',
|
|
97
|
-
color: "var(--ds-text-danger, ".concat(_colors.R400, ")")
|
|
97
|
+
color: "var(--ds-text-danger, ".concat(_colors.R400, ")"),
|
|
98
|
+
alignItems: 'center'
|
|
98
99
|
});
|
package/dist/cjs/ui/confluence-search-modal/basic-filters/filters/date-range-picker/trigger.js
CHANGED
|
@@ -8,7 +8,7 @@ exports.PopupTrigger = void 0;
|
|
|
8
8
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
9
9
|
var _react = _interopRequireDefault(require("react"));
|
|
10
10
|
var _standardButton = _interopRequireDefault(require("@atlaskit/button/standard-button"));
|
|
11
|
-
var _chevronDown = _interopRequireDefault(require("@atlaskit/icon/
|
|
11
|
+
var _chevronDown = _interopRequireDefault(require("@atlaskit/icon/utility/migration/chevron-down"));
|
|
12
12
|
var PopupTrigger = exports.PopupTrigger = function PopupTrigger(_ref) {
|
|
13
13
|
var triggerProps = _ref.triggerProps,
|
|
14
14
|
isSelected = _ref.isSelected,
|
|
@@ -28,8 +28,9 @@ var PopupTrigger = exports.PopupTrigger = function PopupTrigger(_ref) {
|
|
|
28
28
|
alignItems: 'center'
|
|
29
29
|
}
|
|
30
30
|
}, /*#__PURE__*/_react.default.createElement(_chevronDown.default, {
|
|
31
|
-
|
|
32
|
-
label: ""
|
|
31
|
+
LEGACY_size: "medium",
|
|
32
|
+
label: "",
|
|
33
|
+
color: "currentColor"
|
|
33
34
|
}))
|
|
34
35
|
}), labelPrefix, selectedLabel ? ": ".concat(selectedLabel) : '');
|
|
35
36
|
};
|
|
@@ -26,26 +26,32 @@ var _default = exports.default = function _default(_ref) {
|
|
|
26
26
|
var TypeIcon = function TypeIcon() {
|
|
27
27
|
switch (type) {
|
|
28
28
|
case 'issue':
|
|
29
|
+
// eslint-disable-next-line @atlaskit/design-system/no-legacy-icons -- TODO - https://product-fabric.atlassian.net/browse/DSP-19548
|
|
29
30
|
return /*#__PURE__*/_react.default.createElement(_4.default, {
|
|
30
31
|
label: 'issue'
|
|
31
32
|
});
|
|
32
33
|
case 'commit':
|
|
34
|
+
// eslint-disable-next-line @atlaskit/design-system/no-legacy-icons -- TODO - https://product-fabric.atlassian.net/browse/DSP-19548
|
|
33
35
|
return /*#__PURE__*/_react.default.createElement(_2.default, {
|
|
34
36
|
label: 'commit'
|
|
35
37
|
});
|
|
36
38
|
case 'story':
|
|
39
|
+
// eslint-disable-next-line @atlaskit/design-system/no-legacy-icons -- TODO - https://product-fabric.atlassian.net/browse/DSP-19548
|
|
37
40
|
return /*#__PURE__*/_react.default.createElement(_5.default, {
|
|
38
41
|
label: 'story'
|
|
39
42
|
});
|
|
40
43
|
case 'epic':
|
|
44
|
+
// eslint-disable-next-line @atlaskit/design-system/no-legacy-icons -- TODO - https://product-fabric.atlassian.net/browse/DSP-19548
|
|
41
45
|
return /*#__PURE__*/_react.default.createElement(_3.default, {
|
|
42
46
|
label: 'epic'
|
|
43
47
|
});
|
|
44
48
|
case 'bug':
|
|
49
|
+
// eslint-disable-next-line @atlaskit/design-system/no-legacy-icons -- TODO - https://product-fabric.atlassian.net/browse/DSP-19548
|
|
45
50
|
return /*#__PURE__*/_react.default.createElement(_.default, {
|
|
46
51
|
label: 'bug'
|
|
47
52
|
});
|
|
48
53
|
case 'task':
|
|
54
|
+
// eslint-disable-next-line @atlaskit/design-system/no-legacy-icons -- TODO - https://product-fabric.atlassian.net/browse/DSP-19548
|
|
49
55
|
return /*#__PURE__*/_react.default.createElement(_6.default, {
|
|
50
56
|
label: 'task'
|
|
51
57
|
});
|
|
@@ -102,7 +102,9 @@ var TableFooter = exports.TableFooter = function TableFooter(_ref) {
|
|
|
102
102
|
lastSyncTime: lastSyncTime
|
|
103
103
|
})), (0, _react2.jsx)(_button.default, {
|
|
104
104
|
onClick: onRefresh,
|
|
105
|
-
appearance: "subtle"
|
|
105
|
+
appearance: "subtle"
|
|
106
|
+
// eslint-disable-next-line @atlaskit/design-system/no-legacy-icons -- TODO - https://product-fabric.atlassian.net/browse/DSP-19585
|
|
107
|
+
,
|
|
106
108
|
iconBefore: (0, _react2.jsx)(_refresh.default, {
|
|
107
109
|
label: intl.formatMessage(_messages.footerMessages.refreshLabel)
|
|
108
110
|
}),
|
|
@@ -10,10 +10,10 @@ import { css, jsx } from '@emotion/react';
|
|
|
10
10
|
import { useIntl } from 'react-intl-next';
|
|
11
11
|
import { LoadingButton } from '@atlaskit/button';
|
|
12
12
|
import { ErrorMessage, Field } from '@atlaskit/form';
|
|
13
|
-
import CheckCircleIcon from '@atlaskit/icon/
|
|
14
|
-
import CrossCircleIcon from '@atlaskit/icon/
|
|
15
|
-
import
|
|
16
|
-
import
|
|
13
|
+
import CheckCircleIcon from '@atlaskit/icon/core/migration/check-circle';
|
|
14
|
+
import CrossCircleIcon from '@atlaskit/icon/core/migration/cross-circle';
|
|
15
|
+
import QuestionCircleIcon from '@atlaskit/icon/core/migration/question-circle';
|
|
16
|
+
import SearchIcon from '@atlaskit/icon/core/migration/search--editor-search';
|
|
17
17
|
import Spinner from '@atlaskit/spinner';
|
|
18
18
|
import Textfield from '@atlaskit/textfield';
|
|
19
19
|
import { G300, N500, R400 } from '@atlaskit/theme/colors';
|
|
@@ -45,23 +45,27 @@ const renderValidatorIcon = lastValidationResult => {
|
|
|
45
45
|
if (lastValidationResult.type === 'invalid') {
|
|
46
46
|
return jsx(CrossCircleIcon, {
|
|
47
47
|
label: "label",
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
testId: "assets-datasource-modal--aql-invalid"
|
|
48
|
+
color: `var(--ds-icon-danger, ${R400})`,
|
|
49
|
+
LEGACY_size: "medium",
|
|
50
|
+
testId: "assets-datasource-modal--aql-invalid",
|
|
51
|
+
spacing: "spacious"
|
|
51
52
|
});
|
|
52
53
|
}
|
|
53
54
|
if (lastValidationResult.type === 'valid') {
|
|
54
55
|
return jsx(CheckCircleIcon, {
|
|
55
56
|
label: "label",
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
testId: "assets-datasource-modal--aql-valid"
|
|
57
|
+
color: `var(--ds-icon-success, ${G300})`,
|
|
58
|
+
LEGACY_size: "medium",
|
|
59
|
+
testId: "assets-datasource-modal--aql-valid",
|
|
60
|
+
spacing: "spacious"
|
|
59
61
|
});
|
|
60
62
|
}
|
|
61
63
|
return jsx(SearchIcon, {
|
|
62
64
|
label: "label",
|
|
63
|
-
|
|
64
|
-
testId: "assets-datasource-modal--aql-idle"
|
|
65
|
+
LEGACY_size: "medium",
|
|
66
|
+
testId: "assets-datasource-modal--aql-idle",
|
|
67
|
+
color: "currentColor",
|
|
68
|
+
spacing: "spacious"
|
|
65
69
|
});
|
|
66
70
|
};
|
|
67
71
|
export const AqlSearchInput = ({
|
|
@@ -88,7 +92,8 @@ export const AqlSearchInput = ({
|
|
|
88
92
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
89
93
|
style: {
|
|
90
94
|
paddingLeft: "var(--ds-space-075, 6px)",
|
|
91
|
-
width: 24
|
|
95
|
+
width: 24,
|
|
96
|
+
display: 'flex'
|
|
92
97
|
}
|
|
93
98
|
}, renderValidatorIcon(lastValidationResult)),
|
|
94
99
|
elemAfterInput: jsx(Fragment, null, jsx(Tooltip, {
|
|
@@ -100,15 +105,18 @@ export const AqlSearchInput = ({
|
|
|
100
105
|
css: buttonBaseStyles
|
|
101
106
|
}, jsx(QuestionCircleIcon, {
|
|
102
107
|
label: "label",
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
testId: "assets-datasource-modal-help"
|
|
108
|
+
color: `var(--ds-icon, ${N500})`,
|
|
109
|
+
LEGACY_size: "medium",
|
|
110
|
+
testId: "assets-datasource-modal-help",
|
|
111
|
+
spacing: "spacious"
|
|
106
112
|
}))), jsx(LoadingButton, {
|
|
107
113
|
appearance: "primary",
|
|
108
114
|
css: searchButtonStyles,
|
|
109
115
|
iconBefore: jsx(SearchIcon, {
|
|
110
116
|
label: formatMessage(searchInputMessages.placeholder),
|
|
111
|
-
|
|
117
|
+
LEGACY_size: "medium",
|
|
118
|
+
color: "currentColor",
|
|
119
|
+
spacing: "spacious"
|
|
112
120
|
}),
|
|
113
121
|
isLoading: isSearching,
|
|
114
122
|
spacing: "none",
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
import { css, jsx } from '@emotion/react';
|
|
8
8
|
import { useIntl } from 'react-intl-next';
|
|
9
9
|
import { LoadingButton } from '@atlaskit/button';
|
|
10
|
-
import SearchIcon from '@atlaskit/icon/
|
|
10
|
+
import SearchIcon from '@atlaskit/icon/core/migration/search--editor-search';
|
|
11
11
|
import Textfield from '@atlaskit/textfield';
|
|
12
12
|
import { useDatasourceAnalyticsEvents } from '../../../../analytics';
|
|
13
13
|
import { basicSearchInputMessages } from './messages';
|
|
@@ -54,7 +54,9 @@ export const BasicSearchInput = ({
|
|
|
54
54
|
css: searchButtonStyles,
|
|
55
55
|
iconBefore: jsx(SearchIcon, {
|
|
56
56
|
label: formatMessage(basicSearchInputMessages.basicTextSearchLabel),
|
|
57
|
-
|
|
57
|
+
LEGACY_size: "medium",
|
|
58
|
+
color: "currentColor",
|
|
59
|
+
spacing: "spacious"
|
|
58
60
|
}),
|
|
59
61
|
isDisabled: isDisabled,
|
|
60
62
|
isLoading: isSearching,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import CloseIcon from '@atlaskit/icon/
|
|
3
|
-
import SearchIcon from '@atlaskit/icon/
|
|
2
|
+
import CloseIcon from '@atlaskit/icon/core/migration/cross-circle';
|
|
3
|
+
import SearchIcon from '@atlaskit/icon/core/migration/search';
|
|
4
4
|
import { Box, xcss } from '@atlaskit/primitives';
|
|
5
5
|
import { components } from '@atlaskit/select';
|
|
6
6
|
const customDropdownIndicatorStyles = xcss({
|
|
@@ -24,11 +24,13 @@ const CustomDropdownIndicator = props => {
|
|
|
24
24
|
}
|
|
25
25
|
}
|
|
26
26
|
}, selectProps.inputValue ? /*#__PURE__*/React.createElement(CloseIcon, {
|
|
27
|
-
|
|
28
|
-
label: ""
|
|
27
|
+
LEGACY_size: "small",
|
|
28
|
+
label: "",
|
|
29
|
+
color: "currentColor"
|
|
29
30
|
}) : /*#__PURE__*/React.createElement(SearchIcon, {
|
|
30
|
-
|
|
31
|
-
label: ""
|
|
31
|
+
LEGACY_size: "small",
|
|
32
|
+
label: "",
|
|
33
|
+
color: "currentColor"
|
|
32
34
|
})));
|
|
33
35
|
};
|
|
34
36
|
export default CustomDropdownIndicator;
|
|
@@ -35,7 +35,9 @@ const CustomErrorMessage = ({
|
|
|
35
35
|
});
|
|
36
36
|
}, SEARCH_DEBOUNCE_MS);
|
|
37
37
|
useEffect(debouncedAnalyticsCallback, [debouncedAnalyticsCallback]);
|
|
38
|
-
return /*#__PURE__*/React.createElement(CustomSelectMessage
|
|
38
|
+
return /*#__PURE__*/React.createElement(CustomSelectMessage
|
|
39
|
+
// eslint-disable-next-line @atlaskit/design-system/no-legacy-icons -- TODO - https://product-fabric.atlassian.net/browse/DSP-19579
|
|
40
|
+
, {
|
|
39
41
|
icon: /*#__PURE__*/React.createElement(ErrorIcon, {
|
|
40
42
|
primaryColor: `var(--ds-icon, ${N500})`,
|
|
41
43
|
label: "",
|
|
@@ -25,7 +25,9 @@ const CustomNoOptionsMessage = ({
|
|
|
25
25
|
});
|
|
26
26
|
}, SEARCH_DEBOUNCE_MS);
|
|
27
27
|
useEffect(debouncedAnalyticsCallback, [debouncedAnalyticsCallback]);
|
|
28
|
-
return /*#__PURE__*/React.createElement(CustomSelectMessage
|
|
28
|
+
return /*#__PURE__*/React.createElement(CustomSelectMessage
|
|
29
|
+
// eslint-disable-next-line @atlaskit/design-system/no-legacy-icons -- TODO - https://product-fabric.atlassian.net/browse/DSP-19578
|
|
30
|
+
, {
|
|
29
31
|
icon: /*#__PURE__*/React.createElement(QuestionCircleIcon, {
|
|
30
32
|
primaryColor: `var(--ds-icon, ${N500})`,
|
|
31
33
|
size: "xlarge",
|
|
@@ -26,7 +26,7 @@ const CustomSelectMessage = ({
|
|
|
26
26
|
alignItems: "center",
|
|
27
27
|
justifyContent: "center"
|
|
28
28
|
}, icon), /*#__PURE__*/React.createElement(Heading, {
|
|
29
|
-
|
|
29
|
+
size: "xsmall"
|
|
30
30
|
}, /*#__PURE__*/React.createElement(FormattedMessage, message)));
|
|
31
31
|
};
|
|
32
32
|
export default CustomSelectMessage;
|
|
@@ -4,7 +4,7 @@ import React, { forwardRef, useCallback } from 'react';
|
|
|
4
4
|
import styled from '@emotion/styled';
|
|
5
5
|
import Badge from '@atlaskit/badge';
|
|
6
6
|
import Button from '@atlaskit/button/standard-button';
|
|
7
|
-
import ChevronDownIcon from '@atlaskit/icon/
|
|
7
|
+
import ChevronDownIcon from '@atlaskit/icon/utility/migration/chevron-down';
|
|
8
8
|
import { Box, Flex, xcss } from '@atlaskit/primitives';
|
|
9
9
|
import Spinner from '@atlaskit/spinner';
|
|
10
10
|
const triggerButtonLabelStyles = xcss({
|
|
@@ -58,7 +58,8 @@ const PopupTrigger = /*#__PURE__*/forwardRef(({
|
|
|
58
58
|
isSelected: isSelected || hasOptions,
|
|
59
59
|
isDisabled: isDisabled,
|
|
60
60
|
iconAfter: /*#__PURE__*/React.createElement(ChevronDownIcon, {
|
|
61
|
-
label: ""
|
|
61
|
+
label: "",
|
|
62
|
+
color: "currentColor"
|
|
62
63
|
}),
|
|
63
64
|
testId: `${triggerButtonTestId}--button`
|
|
64
65
|
}, /*#__PURE__*/React.createElement(Flex, null, /*#__PURE__*/React.createElement(Box, {
|
package/dist/es2019/ui/confluence-search-modal/basic-filters/filters/date-range-picker/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { useCallback, useEffect, useMemo, useState } from 'react';
|
|
2
2
|
import { FormattedMessage, useIntl } from 'react-intl-next';
|
|
3
3
|
import { DatePicker } from '@atlaskit/datetime-picker';
|
|
4
|
-
import ErrorIcon from '@atlaskit/icon/
|
|
4
|
+
import ErrorIcon from '@atlaskit/icon/utility/migration/error';
|
|
5
5
|
import Popup from '@atlaskit/popup';
|
|
6
6
|
import { R400 } from '@atlaskit/theme/colors';
|
|
7
7
|
import { layers } from '@atlaskit/theme/constants';
|
|
@@ -131,8 +131,8 @@ export const DateRangePicker = ({
|
|
|
131
131
|
}
|
|
132
132
|
}
|
|
133
133
|
})), invalidDateRange && /*#__PURE__*/React.createElement(DateRangeErrorMessage, null, /*#__PURE__*/React.createElement(ErrorIcon, {
|
|
134
|
-
|
|
135
|
-
|
|
134
|
+
LEGACY_size: "small",
|
|
135
|
+
color: `var(--ds-icon-danger, ${R400})`,
|
|
136
136
|
label: "Date range error"
|
|
137
137
|
}), invalidDateRange), /*#__PURE__*/React.createElement(SelectDateRangeButton, {
|
|
138
138
|
"data-testId": "custom-date-range-update-button",
|
package/dist/es2019/ui/confluence-search-modal/basic-filters/filters/date-range-picker/trigger.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import Button from '@atlaskit/button/standard-button';
|
|
4
|
-
import ChevronDownIcon from '@atlaskit/icon/
|
|
4
|
+
import ChevronDownIcon from '@atlaskit/icon/utility/migration/chevron-down';
|
|
5
5
|
export const PopupTrigger = ({
|
|
6
6
|
triggerProps,
|
|
7
7
|
isSelected,
|
|
@@ -22,8 +22,9 @@ export const PopupTrigger = ({
|
|
|
22
22
|
alignItems: 'center'
|
|
23
23
|
}
|
|
24
24
|
}, /*#__PURE__*/React.createElement(ChevronDownIcon, {
|
|
25
|
-
|
|
26
|
-
label: ""
|
|
25
|
+
LEGACY_size: "medium",
|
|
26
|
+
label: "",
|
|
27
|
+
color: "currentColor"
|
|
27
28
|
}))
|
|
28
29
|
}), labelPrefix, selectedLabel ? `: ${selectedLabel}` : '');
|
|
29
30
|
};
|
|
@@ -20,26 +20,32 @@ export default (({
|
|
|
20
20
|
const TypeIcon = () => {
|
|
21
21
|
switch (type) {
|
|
22
22
|
case 'issue':
|
|
23
|
+
// eslint-disable-next-line @atlaskit/design-system/no-legacy-icons -- TODO - https://product-fabric.atlassian.net/browse/DSP-19548
|
|
23
24
|
return /*#__PURE__*/React.createElement(Issue16Icon, {
|
|
24
25
|
label: 'issue'
|
|
25
26
|
});
|
|
26
27
|
case 'commit':
|
|
28
|
+
// eslint-disable-next-line @atlaskit/design-system/no-legacy-icons -- TODO - https://product-fabric.atlassian.net/browse/DSP-19548
|
|
27
29
|
return /*#__PURE__*/React.createElement(Commit16Icon, {
|
|
28
30
|
label: 'commit'
|
|
29
31
|
});
|
|
30
32
|
case 'story':
|
|
33
|
+
// eslint-disable-next-line @atlaskit/design-system/no-legacy-icons -- TODO - https://product-fabric.atlassian.net/browse/DSP-19548
|
|
31
34
|
return /*#__PURE__*/React.createElement(Story16Icon, {
|
|
32
35
|
label: 'story'
|
|
33
36
|
});
|
|
34
37
|
case 'epic':
|
|
38
|
+
// eslint-disable-next-line @atlaskit/design-system/no-legacy-icons -- TODO - https://product-fabric.atlassian.net/browse/DSP-19548
|
|
35
39
|
return /*#__PURE__*/React.createElement(Epic16Icon, {
|
|
36
40
|
label: 'epic'
|
|
37
41
|
});
|
|
38
42
|
case 'bug':
|
|
43
|
+
// eslint-disable-next-line @atlaskit/design-system/no-legacy-icons -- TODO - https://product-fabric.atlassian.net/browse/DSP-19548
|
|
39
44
|
return /*#__PURE__*/React.createElement(Bug16Icon, {
|
|
40
45
|
label: 'bug'
|
|
41
46
|
});
|
|
42
47
|
case 'task':
|
|
48
|
+
// eslint-disable-next-line @atlaskit/design-system/no-legacy-icons -- TODO - https://product-fabric.atlassian.net/browse/DSP-19548
|
|
43
49
|
return /*#__PURE__*/React.createElement(Task16Icon, {
|
|
44
50
|
label: 'task'
|
|
45
51
|
});
|
|
@@ -87,7 +87,9 @@ export const TableFooter = ({
|
|
|
87
87
|
lastSyncTime: lastSyncTime
|
|
88
88
|
})), jsx(Button, {
|
|
89
89
|
onClick: onRefresh,
|
|
90
|
-
appearance: "subtle"
|
|
90
|
+
appearance: "subtle"
|
|
91
|
+
// eslint-disable-next-line @atlaskit/design-system/no-legacy-icons -- TODO - https://product-fabric.atlassian.net/browse/DSP-19585
|
|
92
|
+
,
|
|
91
93
|
iconBefore: jsx(RefreshIcon, {
|
|
92
94
|
label: intl.formatMessage(footerMessages.refreshLabel)
|
|
93
95
|
}),
|
|
@@ -10,10 +10,10 @@ import { css, jsx } from '@emotion/react';
|
|
|
10
10
|
import { useIntl } from 'react-intl-next';
|
|
11
11
|
import { LoadingButton } from '@atlaskit/button';
|
|
12
12
|
import { ErrorMessage, Field } from '@atlaskit/form';
|
|
13
|
-
import CheckCircleIcon from '@atlaskit/icon/
|
|
14
|
-
import CrossCircleIcon from '@atlaskit/icon/
|
|
15
|
-
import
|
|
16
|
-
import
|
|
13
|
+
import CheckCircleIcon from '@atlaskit/icon/core/migration/check-circle';
|
|
14
|
+
import CrossCircleIcon from '@atlaskit/icon/core/migration/cross-circle';
|
|
15
|
+
import QuestionCircleIcon from '@atlaskit/icon/core/migration/question-circle';
|
|
16
|
+
import SearchIcon from '@atlaskit/icon/core/migration/search--editor-search';
|
|
17
17
|
import Spinner from '@atlaskit/spinner';
|
|
18
18
|
import Textfield from '@atlaskit/textfield';
|
|
19
19
|
import { G300, N500, R400 } from '@atlaskit/theme/colors';
|
|
@@ -45,23 +45,27 @@ var renderValidatorIcon = function renderValidatorIcon(lastValidationResult) {
|
|
|
45
45
|
if (lastValidationResult.type === 'invalid') {
|
|
46
46
|
return jsx(CrossCircleIcon, {
|
|
47
47
|
label: "label",
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
testId: "assets-datasource-modal--aql-invalid"
|
|
48
|
+
color: "var(--ds-icon-danger, ".concat(R400, ")"),
|
|
49
|
+
LEGACY_size: "medium",
|
|
50
|
+
testId: "assets-datasource-modal--aql-invalid",
|
|
51
|
+
spacing: "spacious"
|
|
51
52
|
});
|
|
52
53
|
}
|
|
53
54
|
if (lastValidationResult.type === 'valid') {
|
|
54
55
|
return jsx(CheckCircleIcon, {
|
|
55
56
|
label: "label",
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
testId: "assets-datasource-modal--aql-valid"
|
|
57
|
+
color: "var(--ds-icon-success, ".concat(G300, ")"),
|
|
58
|
+
LEGACY_size: "medium",
|
|
59
|
+
testId: "assets-datasource-modal--aql-valid",
|
|
60
|
+
spacing: "spacious"
|
|
59
61
|
});
|
|
60
62
|
}
|
|
61
63
|
return jsx(SearchIcon, {
|
|
62
64
|
label: "label",
|
|
63
|
-
|
|
64
|
-
testId: "assets-datasource-modal--aql-idle"
|
|
65
|
+
LEGACY_size: "medium",
|
|
66
|
+
testId: "assets-datasource-modal--aql-idle",
|
|
67
|
+
color: "currentColor",
|
|
68
|
+
spacing: "spacious"
|
|
65
69
|
});
|
|
66
70
|
};
|
|
67
71
|
export var AqlSearchInput = function AqlSearchInput(_ref) {
|
|
@@ -86,7 +90,8 @@ export var AqlSearchInput = function AqlSearchInput(_ref) {
|
|
|
86
90
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
87
91
|
style: {
|
|
88
92
|
paddingLeft: "var(--ds-space-075, 6px)",
|
|
89
|
-
width: 24
|
|
93
|
+
width: 24,
|
|
94
|
+
display: 'flex'
|
|
90
95
|
}
|
|
91
96
|
}, renderValidatorIcon(lastValidationResult)),
|
|
92
97
|
elemAfterInput: jsx(Fragment, null, jsx(Tooltip, {
|
|
@@ -98,15 +103,18 @@ export var AqlSearchInput = function AqlSearchInput(_ref) {
|
|
|
98
103
|
css: buttonBaseStyles
|
|
99
104
|
}, jsx(QuestionCircleIcon, {
|
|
100
105
|
label: "label",
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
testId: "assets-datasource-modal-help"
|
|
106
|
+
color: "var(--ds-icon, ".concat(N500, ")"),
|
|
107
|
+
LEGACY_size: "medium",
|
|
108
|
+
testId: "assets-datasource-modal-help",
|
|
109
|
+
spacing: "spacious"
|
|
104
110
|
}))), jsx(LoadingButton, {
|
|
105
111
|
appearance: "primary",
|
|
106
112
|
css: searchButtonStyles,
|
|
107
113
|
iconBefore: jsx(SearchIcon, {
|
|
108
114
|
label: formatMessage(searchInputMessages.placeholder),
|
|
109
|
-
|
|
115
|
+
LEGACY_size: "medium",
|
|
116
|
+
color: "currentColor",
|
|
117
|
+
spacing: "spacious"
|
|
110
118
|
}),
|
|
111
119
|
isLoading: isSearching,
|
|
112
120
|
spacing: "none",
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
import { css, jsx } from '@emotion/react';
|
|
8
8
|
import { useIntl } from 'react-intl-next';
|
|
9
9
|
import { LoadingButton } from '@atlaskit/button';
|
|
10
|
-
import SearchIcon from '@atlaskit/icon/
|
|
10
|
+
import SearchIcon from '@atlaskit/icon/core/migration/search--editor-search';
|
|
11
11
|
import Textfield from '@atlaskit/textfield';
|
|
12
12
|
import { useDatasourceAnalyticsEvents } from '../../../../analytics';
|
|
13
13
|
import { basicSearchInputMessages } from './messages';
|
|
@@ -51,7 +51,9 @@ export var BasicSearchInput = function BasicSearchInput(_ref) {
|
|
|
51
51
|
css: searchButtonStyles,
|
|
52
52
|
iconBefore: jsx(SearchIcon, {
|
|
53
53
|
label: formatMessage(basicSearchInputMessages.basicTextSearchLabel),
|
|
54
|
-
|
|
54
|
+
LEGACY_size: "medium",
|
|
55
|
+
color: "currentColor",
|
|
56
|
+
spacing: "spacious"
|
|
55
57
|
}),
|
|
56
58
|
isDisabled: isDisabled,
|
|
57
59
|
isLoading: isSearching,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import CloseIcon from '@atlaskit/icon/
|
|
3
|
-
import SearchIcon from '@atlaskit/icon/
|
|
2
|
+
import CloseIcon from '@atlaskit/icon/core/migration/cross-circle';
|
|
3
|
+
import SearchIcon from '@atlaskit/icon/core/migration/search';
|
|
4
4
|
import { Box, xcss } from '@atlaskit/primitives';
|
|
5
5
|
import { components } from '@atlaskit/select';
|
|
6
6
|
var customDropdownIndicatorStyles = xcss({
|
|
@@ -22,11 +22,13 @@ var CustomDropdownIndicator = function CustomDropdownIndicator(props) {
|
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
24
|
}, selectProps.inputValue ? /*#__PURE__*/React.createElement(CloseIcon, {
|
|
25
|
-
|
|
26
|
-
label: ""
|
|
25
|
+
LEGACY_size: "small",
|
|
26
|
+
label: "",
|
|
27
|
+
color: "currentColor"
|
|
27
28
|
}) : /*#__PURE__*/React.createElement(SearchIcon, {
|
|
28
|
-
|
|
29
|
-
label: ""
|
|
29
|
+
LEGACY_size: "small",
|
|
30
|
+
label: "",
|
|
31
|
+
color: "currentColor"
|
|
30
32
|
})));
|
|
31
33
|
};
|
|
32
34
|
export default CustomDropdownIndicator;
|
|
@@ -38,7 +38,9 @@ var CustomErrorMessage = function CustomErrorMessage(_ref3) {
|
|
|
38
38
|
_useDebouncedCallback2 = _slicedToArray(_useDebouncedCallback, 1),
|
|
39
39
|
debouncedAnalyticsCallback = _useDebouncedCallback2[0];
|
|
40
40
|
useEffect(debouncedAnalyticsCallback, [debouncedAnalyticsCallback]);
|
|
41
|
-
return /*#__PURE__*/React.createElement(CustomSelectMessage
|
|
41
|
+
return /*#__PURE__*/React.createElement(CustomSelectMessage
|
|
42
|
+
// eslint-disable-next-line @atlaskit/design-system/no-legacy-icons -- TODO - https://product-fabric.atlassian.net/browse/DSP-19579
|
|
43
|
+
, {
|
|
42
44
|
icon: /*#__PURE__*/React.createElement(ErrorIcon, {
|
|
43
45
|
primaryColor: "var(--ds-icon, ".concat(N500, ")"),
|
|
44
46
|
label: "",
|
|
@@ -26,7 +26,9 @@ var CustomNoOptionsMessage = function CustomNoOptionsMessage(_ref) {
|
|
|
26
26
|
_useDebouncedCallback2 = _slicedToArray(_useDebouncedCallback, 1),
|
|
27
27
|
debouncedAnalyticsCallback = _useDebouncedCallback2[0];
|
|
28
28
|
useEffect(debouncedAnalyticsCallback, [debouncedAnalyticsCallback]);
|
|
29
|
-
return /*#__PURE__*/React.createElement(CustomSelectMessage
|
|
29
|
+
return /*#__PURE__*/React.createElement(CustomSelectMessage
|
|
30
|
+
// eslint-disable-next-line @atlaskit/design-system/no-legacy-icons -- TODO - https://product-fabric.atlassian.net/browse/DSP-19578
|
|
31
|
+
, {
|
|
30
32
|
icon: /*#__PURE__*/React.createElement(QuestionCircleIcon, {
|
|
31
33
|
primaryColor: "var(--ds-icon, ".concat(N500, ")"),
|
|
32
34
|
size: "xlarge",
|
|
@@ -25,7 +25,7 @@ var CustomSelectMessage = function CustomSelectMessage(_ref) {
|
|
|
25
25
|
alignItems: "center",
|
|
26
26
|
justifyContent: "center"
|
|
27
27
|
}, icon), /*#__PURE__*/React.createElement(Heading, {
|
|
28
|
-
|
|
28
|
+
size: "xsmall"
|
|
29
29
|
}, /*#__PURE__*/React.createElement(FormattedMessage, message)));
|
|
30
30
|
};
|
|
31
31
|
export default CustomSelectMessage;
|
|
@@ -5,7 +5,7 @@ import React, { forwardRef, useCallback } from 'react';
|
|
|
5
5
|
import styled from '@emotion/styled';
|
|
6
6
|
import Badge from '@atlaskit/badge';
|
|
7
7
|
import Button from '@atlaskit/button/standard-button';
|
|
8
|
-
import ChevronDownIcon from '@atlaskit/icon/
|
|
8
|
+
import ChevronDownIcon from '@atlaskit/icon/utility/migration/chevron-down';
|
|
9
9
|
import { Box, Flex, xcss } from '@atlaskit/primitives';
|
|
10
10
|
import Spinner from '@atlaskit/spinner';
|
|
11
11
|
var triggerButtonLabelStyles = xcss({
|
|
@@ -63,7 +63,8 @@ var PopupTrigger = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
63
63
|
isSelected: isSelected || hasOptions,
|
|
64
64
|
isDisabled: isDisabled,
|
|
65
65
|
iconAfter: /*#__PURE__*/React.createElement(ChevronDownIcon, {
|
|
66
|
-
label: ""
|
|
66
|
+
label: "",
|
|
67
|
+
color: "currentColor"
|
|
67
68
|
}),
|
|
68
69
|
testId: "".concat(triggerButtonTestId, "--button")
|
|
69
70
|
}, /*#__PURE__*/React.createElement(Flex, null, /*#__PURE__*/React.createElement(Box, {
|
package/dist/esm/ui/confluence-search-modal/basic-filters/filters/date-range-picker/index.js
CHANGED
|
@@ -5,7 +5,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
5
5
|
import React, { useCallback, useEffect, useMemo, useState } from 'react';
|
|
6
6
|
import { FormattedMessage, useIntl } from 'react-intl-next';
|
|
7
7
|
import { DatePicker } from '@atlaskit/datetime-picker';
|
|
8
|
-
import ErrorIcon from '@atlaskit/icon/
|
|
8
|
+
import ErrorIcon from '@atlaskit/icon/utility/migration/error';
|
|
9
9
|
import Popup from '@atlaskit/popup';
|
|
10
10
|
import { R400 } from '@atlaskit/theme/colors';
|
|
11
11
|
import { layers } from '@atlaskit/theme/constants';
|
|
@@ -152,8 +152,8 @@ export var DateRangePicker = function DateRangePicker(_ref) {
|
|
|
152
152
|
}
|
|
153
153
|
}
|
|
154
154
|
})), invalidDateRange && /*#__PURE__*/React.createElement(DateRangeErrorMessage, null, /*#__PURE__*/React.createElement(ErrorIcon, {
|
|
155
|
-
|
|
156
|
-
|
|
155
|
+
LEGACY_size: "small",
|
|
156
|
+
color: "var(--ds-icon-danger, ".concat(R400, ")"),
|
|
157
157
|
label: "Date range error"
|
|
158
158
|
}), invalidDateRange), /*#__PURE__*/React.createElement(SelectDateRangeButton, {
|
|
159
159
|
"data-testId": "custom-date-range-update-button",
|
package/dist/esm/ui/confluence-search-modal/basic-filters/filters/date-range-picker/styled.js
CHANGED
|
@@ -86,5 +86,6 @@ export var DateRangeErrorMessage = styled.div({
|
|
|
86
86
|
lineHeight: 1.3333,
|
|
87
87
|
marginTop: "var(--ds-space-050, 2px)",
|
|
88
88
|
fontSize: '12px',
|
|
89
|
-
color: "var(--ds-text-danger, ".concat(R400, ")")
|
|
89
|
+
color: "var(--ds-text-danger, ".concat(R400, ")"),
|
|
90
|
+
alignItems: 'center'
|
|
90
91
|
});
|
package/dist/esm/ui/confluence-search-modal/basic-filters/filters/date-range-picker/trigger.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import Button from '@atlaskit/button/standard-button';
|
|
4
|
-
import ChevronDownIcon from '@atlaskit/icon/
|
|
4
|
+
import ChevronDownIcon from '@atlaskit/icon/utility/migration/chevron-down';
|
|
5
5
|
export var PopupTrigger = function PopupTrigger(_ref) {
|
|
6
6
|
var triggerProps = _ref.triggerProps,
|
|
7
7
|
isSelected = _ref.isSelected,
|
|
@@ -21,8 +21,9 @@ export var PopupTrigger = function PopupTrigger(_ref) {
|
|
|
21
21
|
alignItems: 'center'
|
|
22
22
|
}
|
|
23
23
|
}, /*#__PURE__*/React.createElement(ChevronDownIcon, {
|
|
24
|
-
|
|
25
|
-
label: ""
|
|
24
|
+
LEGACY_size: "medium",
|
|
25
|
+
label: "",
|
|
26
|
+
color: "currentColor"
|
|
26
27
|
}))
|
|
27
28
|
}), labelPrefix, selectedLabel ? ": ".concat(selectedLabel) : '');
|
|
28
29
|
};
|
|
@@ -19,26 +19,32 @@ export default (function (_ref) {
|
|
|
19
19
|
var TypeIcon = function TypeIcon() {
|
|
20
20
|
switch (type) {
|
|
21
21
|
case 'issue':
|
|
22
|
+
// eslint-disable-next-line @atlaskit/design-system/no-legacy-icons -- TODO - https://product-fabric.atlassian.net/browse/DSP-19548
|
|
22
23
|
return /*#__PURE__*/React.createElement(Issue16Icon, {
|
|
23
24
|
label: 'issue'
|
|
24
25
|
});
|
|
25
26
|
case 'commit':
|
|
27
|
+
// eslint-disable-next-line @atlaskit/design-system/no-legacy-icons -- TODO - https://product-fabric.atlassian.net/browse/DSP-19548
|
|
26
28
|
return /*#__PURE__*/React.createElement(Commit16Icon, {
|
|
27
29
|
label: 'commit'
|
|
28
30
|
});
|
|
29
31
|
case 'story':
|
|
32
|
+
// eslint-disable-next-line @atlaskit/design-system/no-legacy-icons -- TODO - https://product-fabric.atlassian.net/browse/DSP-19548
|
|
30
33
|
return /*#__PURE__*/React.createElement(Story16Icon, {
|
|
31
34
|
label: 'story'
|
|
32
35
|
});
|
|
33
36
|
case 'epic':
|
|
37
|
+
// eslint-disable-next-line @atlaskit/design-system/no-legacy-icons -- TODO - https://product-fabric.atlassian.net/browse/DSP-19548
|
|
34
38
|
return /*#__PURE__*/React.createElement(Epic16Icon, {
|
|
35
39
|
label: 'epic'
|
|
36
40
|
});
|
|
37
41
|
case 'bug':
|
|
42
|
+
// eslint-disable-next-line @atlaskit/design-system/no-legacy-icons -- TODO - https://product-fabric.atlassian.net/browse/DSP-19548
|
|
38
43
|
return /*#__PURE__*/React.createElement(Bug16Icon, {
|
|
39
44
|
label: 'bug'
|
|
40
45
|
});
|
|
41
46
|
case 'task':
|
|
47
|
+
// eslint-disable-next-line @atlaskit/design-system/no-legacy-icons -- TODO - https://product-fabric.atlassian.net/browse/DSP-19548
|
|
42
48
|
return /*#__PURE__*/React.createElement(Task16Icon, {
|
|
43
49
|
label: 'task'
|
|
44
50
|
});
|
|
@@ -90,7 +90,9 @@ export var TableFooter = function TableFooter(_ref) {
|
|
|
90
90
|
lastSyncTime: lastSyncTime
|
|
91
91
|
})), jsx(Button, {
|
|
92
92
|
onClick: onRefresh,
|
|
93
|
-
appearance: "subtle"
|
|
93
|
+
appearance: "subtle"
|
|
94
|
+
// eslint-disable-next-line @atlaskit/design-system/no-legacy-icons -- TODO - https://product-fabric.atlassian.net/browse/DSP-19585
|
|
95
|
+
,
|
|
94
96
|
iconBefore: jsx(RefreshIcon, {
|
|
95
97
|
label: intl.formatMessage(footerMessages.refreshLabel)
|
|
96
98
|
}),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/link-datasource",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.7.1",
|
|
4
4
|
"description": "UI Components to support linking platform dataset feature",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -67,9 +67,9 @@
|
|
|
67
67
|
"@atlaskit/pragmatic-drag-and-drop-hitbox": "^1.0.0",
|
|
68
68
|
"@atlaskit/pragmatic-drag-and-drop-react-beautiful-dnd-autoscroll": "^1.2.0",
|
|
69
69
|
"@atlaskit/pragmatic-drag-and-drop-react-drop-indicator": "^1.1.0",
|
|
70
|
-
"@atlaskit/primitives": "^11.
|
|
70
|
+
"@atlaskit/primitives": "^11.1.0",
|
|
71
71
|
"@atlaskit/select": "^17.11.0",
|
|
72
|
-
"@atlaskit/smart-card": "^27.
|
|
72
|
+
"@atlaskit/smart-card": "^27.11.0",
|
|
73
73
|
"@atlaskit/smart-user-picker": "6.10.0",
|
|
74
74
|
"@atlaskit/spinner": "^16.2.0",
|
|
75
75
|
"@atlaskit/tag": "^12.4.0",
|