@atlaskit/link-datasource 3.2.1 → 3.4.0
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/confluence-search-modal/basic-filters/filters/date-range-picker/index.js +2 -1
- package/dist/cjs/ui/confluence-search-modal/basic-filters/filters/date-range-picker/styled.js +2 -0
- package/dist/cjs/ui/issue-like-table/column-picker/index.js +27 -13
- package/dist/es2019/ui/confluence-search-modal/basic-filters/filters/date-range-picker/index.js +2 -1
- package/dist/es2019/ui/confluence-search-modal/basic-filters/filters/date-range-picker/styled.js +2 -0
- package/dist/es2019/ui/issue-like-table/column-picker/index.js +23 -11
- package/dist/esm/ui/confluence-search-modal/basic-filters/filters/date-range-picker/index.js +2 -1
- package/dist/esm/ui/confluence-search-modal/basic-filters/filters/date-range-picker/styled.js +2 -0
- package/dist/esm/ui/issue-like-table/column-picker/index.js +26 -12
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,25 @@
|
|
|
1
1
|
# @atlaskit/link-datasource
|
|
2
2
|
|
|
3
|
+
## 3.4.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#142758](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/142758)
|
|
8
|
+
[`3d186abad34e4`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/3d186abad34e4) -
|
|
9
|
+
Enable new icons behind a feature flag.
|
|
10
|
+
|
|
11
|
+
## 3.3.0
|
|
12
|
+
|
|
13
|
+
### Minor Changes
|
|
14
|
+
|
|
15
|
+
- [#148132](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/148132)
|
|
16
|
+
[`48f3efa1e757b`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/48f3efa1e757b) -
|
|
17
|
+
[ux] New icon space fix (https://product-fabric.atlassian.net/browse/DSP-19884)
|
|
18
|
+
|
|
19
|
+
### Patch Changes
|
|
20
|
+
|
|
21
|
+
- Updated dependencies
|
|
22
|
+
|
|
3
23
|
## 3.2.1
|
|
4
24
|
|
|
5
25
|
### Patch Changes
|
package/dist/cjs/ui/confluence-search-modal/basic-filters/filters/date-range-picker/index.js
CHANGED
|
@@ -166,7 +166,8 @@ var DateRangePicker = exports.DateRangePicker = function DateRangePicker(_ref) {
|
|
|
166
166
|
})), invalidDateRange && /*#__PURE__*/_react.default.createElement(_styled.DateRangeErrorMessage, null, /*#__PURE__*/_react.default.createElement(_error.default, {
|
|
167
167
|
LEGACY_size: "small",
|
|
168
168
|
color: "var(--ds-icon-danger, ".concat(_colors.R400, ")"),
|
|
169
|
-
label: "Date range error"
|
|
169
|
+
label: "Date range error",
|
|
170
|
+
LEGACY_margin: "0 ".concat("var(--ds-space-negative-025, -2px)")
|
|
170
171
|
}), invalidDateRange), /*#__PURE__*/_react.default.createElement(_styled.SelectDateRangeButton, {
|
|
171
172
|
"data-testId": "custom-date-range-update-button",
|
|
172
173
|
disabled: Boolean(invalidDateRange),
|
package/dist/cjs/ui/confluence-search-modal/basic-filters/filters/date-range-picker/styled.js
CHANGED
|
@@ -93,6 +93,8 @@ var DateRangeErrorMessage = exports.DateRangeErrorMessage = _styled.default.div(
|
|
|
93
93
|
display: 'flex',
|
|
94
94
|
lineHeight: 1.3333,
|
|
95
95
|
marginTop: "var(--ds-space-050, 2px)",
|
|
96
|
+
gap: "var(--ds-space-025, 2px)",
|
|
97
|
+
paddingInlineStart: "var(--ds-space-025, 2px)",
|
|
96
98
|
fontSize: '12px',
|
|
97
99
|
color: "var(--ds-text-danger, ".concat(_colors.R400, ")"),
|
|
98
100
|
alignItems: 'center'
|
|
@@ -12,9 +12,10 @@ var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/sli
|
|
|
12
12
|
var _react = require("react");
|
|
13
13
|
var _react2 = require("@emotion/react");
|
|
14
14
|
var _reactIntlNext = require("react-intl-next");
|
|
15
|
-
var
|
|
16
|
-
var _board = _interopRequireDefault(require("@atlaskit/icon/
|
|
17
|
-
var _chevronDown = _interopRequireDefault(require("@atlaskit/icon/
|
|
15
|
+
var _new = _interopRequireDefault(require("@atlaskit/button/new"));
|
|
16
|
+
var _board = _interopRequireDefault(require("@atlaskit/icon/core/migration/board"));
|
|
17
|
+
var _chevronDown = _interopRequireDefault(require("@atlaskit/icon/utility/migration/chevron-down"));
|
|
18
|
+
var _primitives = require("@atlaskit/primitives");
|
|
18
19
|
var _select = require("@atlaskit/select");
|
|
19
20
|
var _tooltip = _interopRequireDefault(require("@atlaskit/tooltip"));
|
|
20
21
|
var _ufoExperiences = require("../../../analytics/ufoExperiences");
|
|
@@ -27,6 +28,10 @@ var _excluded = ["isOpen"];
|
|
|
27
28
|
* @jsx jsx
|
|
28
29
|
*/
|
|
29
30
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
31
|
+
var chevronIconStyles = (0, _primitives.xcss)({
|
|
32
|
+
display: 'flex',
|
|
33
|
+
alignItems: 'center'
|
|
34
|
+
});
|
|
30
35
|
var ColumnPicker = exports.ColumnPicker = function ColumnPicker(_ref) {
|
|
31
36
|
var columns = _ref.columns,
|
|
32
37
|
selectedColumnKeys = _ref.selectedColumnKeys,
|
|
@@ -149,19 +154,28 @@ var ColumnPicker = exports.ColumnPicker = function ColumnPicker(_ref) {
|
|
|
149
154
|
return (0, _react2.jsx)(_tooltip.default, {
|
|
150
155
|
content: intl.formatMessage(_messages.columnPickerMessages.tooltip)
|
|
151
156
|
}, function (tooltipProps) {
|
|
152
|
-
return (0, _react2.jsx)(
|
|
157
|
+
return (0, _react2.jsx)(_new.default, (0, _extends2.default)({}, tooltipProps, triggerProps, {
|
|
153
158
|
isSelected: isOpen,
|
|
154
|
-
iconBefore: (0, _react2.jsx)("div", null, (0, _react2.jsx)(_board.default, {
|
|
155
|
-
label: "board",
|
|
156
|
-
size: "medium"
|
|
157
|
-
}), (0, _react2.jsx)(_chevronDown.default, {
|
|
158
|
-
label: "down",
|
|
159
|
-
size: "medium"
|
|
160
|
-
})),
|
|
161
159
|
spacing: "compact",
|
|
162
160
|
appearance: "subtle",
|
|
163
|
-
testId: "column-picker-trigger-button"
|
|
164
|
-
|
|
161
|
+
testId: "column-picker-trigger-button",
|
|
162
|
+
iconBefore: function iconBefore() {
|
|
163
|
+
return (0, _react2.jsx)(_primitives.Box, {
|
|
164
|
+
as: "span",
|
|
165
|
+
xcss: chevronIconStyles
|
|
166
|
+
}, (0, _react2.jsx)(_board.default, {
|
|
167
|
+
color: "currentColor",
|
|
168
|
+
label: "board",
|
|
169
|
+
LEGACY_size: "medium",
|
|
170
|
+
spacing: "spacious",
|
|
171
|
+
LEGACY_margin: "0 0 0 4px"
|
|
172
|
+
}), (0, _react2.jsx)(_chevronDown.default, {
|
|
173
|
+
color: "currentColor",
|
|
174
|
+
label: "down",
|
|
175
|
+
LEGACY_size: "medium"
|
|
176
|
+
}));
|
|
177
|
+
}
|
|
178
|
+
}), '');
|
|
165
179
|
});
|
|
166
180
|
}
|
|
167
181
|
});
|
package/dist/es2019/ui/confluence-search-modal/basic-filters/filters/date-range-picker/index.js
CHANGED
|
@@ -135,7 +135,8 @@ export const DateRangePicker = ({
|
|
|
135
135
|
})), invalidDateRange && /*#__PURE__*/React.createElement(DateRangeErrorMessage, null, /*#__PURE__*/React.createElement(ErrorIcon, {
|
|
136
136
|
LEGACY_size: "small",
|
|
137
137
|
color: `var(--ds-icon-danger, ${R400})`,
|
|
138
|
-
label: "Date range error"
|
|
138
|
+
label: "Date range error",
|
|
139
|
+
LEGACY_margin: `0 ${"var(--ds-space-negative-025, -2px)"}`
|
|
139
140
|
}), invalidDateRange), /*#__PURE__*/React.createElement(SelectDateRangeButton, {
|
|
140
141
|
"data-testId": "custom-date-range-update-button",
|
|
141
142
|
disabled: Boolean(invalidDateRange),
|
package/dist/es2019/ui/confluence-search-modal/basic-filters/filters/date-range-picker/styled.js
CHANGED
|
@@ -83,6 +83,8 @@ export const DateRangeErrorMessage = styled.div({
|
|
|
83
83
|
display: 'flex',
|
|
84
84
|
lineHeight: 1.3333,
|
|
85
85
|
marginTop: "var(--ds-space-050, 2px)",
|
|
86
|
+
gap: "var(--ds-space-025, 2px)",
|
|
87
|
+
paddingInlineStart: "var(--ds-space-025, 2px)",
|
|
86
88
|
fontSize: '12px',
|
|
87
89
|
color: `var(--ds-text-danger, ${R400})`,
|
|
88
90
|
alignItems: 'center'
|
|
@@ -8,15 +8,20 @@ import { useCallback, useEffect, useRef, useState } from 'react';
|
|
|
8
8
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
9
9
|
import { jsx } from '@emotion/react';
|
|
10
10
|
import { useIntl } from 'react-intl-next';
|
|
11
|
-
import Button from '@atlaskit/button/
|
|
12
|
-
import BoardIcon from '@atlaskit/icon/
|
|
13
|
-
import ChevronDownIcon from '@atlaskit/icon/
|
|
11
|
+
import Button from '@atlaskit/button/new';
|
|
12
|
+
import BoardIcon from '@atlaskit/icon/core/migration/board';
|
|
13
|
+
import ChevronDownIcon from '@atlaskit/icon/utility/migration/chevron-down';
|
|
14
|
+
import { Box, xcss } from '@atlaskit/primitives';
|
|
14
15
|
import { CheckboxOption, createFilter, PopupSelect } from '@atlaskit/select';
|
|
15
16
|
import Tooltip from '@atlaskit/tooltip';
|
|
16
17
|
import { succeedUfoExperience } from '../../../analytics/ufoExperiences';
|
|
17
18
|
import { useDatasourceExperienceId } from '../../../contexts/datasource-experience-id';
|
|
18
19
|
import { ConcatenatedMenuList } from './concatenated-menu-list';
|
|
19
20
|
import { columnPickerMessages } from './messages';
|
|
21
|
+
const chevronIconStyles = xcss({
|
|
22
|
+
display: 'flex',
|
|
23
|
+
alignItems: 'center'
|
|
24
|
+
});
|
|
20
25
|
export const ColumnPicker = ({
|
|
21
26
|
columns,
|
|
22
27
|
selectedColumnKeys,
|
|
@@ -126,16 +131,23 @@ export const ColumnPicker = ({
|
|
|
126
131
|
content: intl.formatMessage(columnPickerMessages.tooltip)
|
|
127
132
|
}, tooltipProps => jsx(Button, _extends({}, tooltipProps, triggerProps, {
|
|
128
133
|
isSelected: isOpen,
|
|
129
|
-
|
|
134
|
+
spacing: "compact",
|
|
135
|
+
appearance: "subtle",
|
|
136
|
+
testId: "column-picker-trigger-button",
|
|
137
|
+
iconBefore: () => jsx(Box, {
|
|
138
|
+
as: "span",
|
|
139
|
+
xcss: chevronIconStyles
|
|
140
|
+
}, jsx(BoardIcon, {
|
|
141
|
+
color: "currentColor",
|
|
130
142
|
label: "board",
|
|
131
|
-
|
|
143
|
+
LEGACY_size: "medium",
|
|
144
|
+
spacing: "spacious",
|
|
145
|
+
LEGACY_margin: "0 0 0 4px"
|
|
132
146
|
}), jsx(ChevronDownIcon, {
|
|
147
|
+
color: "currentColor",
|
|
133
148
|
label: "down",
|
|
134
|
-
|
|
135
|
-
}))
|
|
136
|
-
|
|
137
|
-
appearance: "subtle",
|
|
138
|
-
testId: "column-picker-trigger-button"
|
|
139
|
-
})))
|
|
149
|
+
LEGACY_size: "medium"
|
|
150
|
+
}))
|
|
151
|
+
}), ''))
|
|
140
152
|
});
|
|
141
153
|
};
|
package/dist/esm/ui/confluence-search-modal/basic-filters/filters/date-range-picker/index.js
CHANGED
|
@@ -156,7 +156,8 @@ export var DateRangePicker = function DateRangePicker(_ref) {
|
|
|
156
156
|
})), invalidDateRange && /*#__PURE__*/React.createElement(DateRangeErrorMessage, null, /*#__PURE__*/React.createElement(ErrorIcon, {
|
|
157
157
|
LEGACY_size: "small",
|
|
158
158
|
color: "var(--ds-icon-danger, ".concat(R400, ")"),
|
|
159
|
-
label: "Date range error"
|
|
159
|
+
label: "Date range error",
|
|
160
|
+
LEGACY_margin: "0 ".concat("var(--ds-space-negative-025, -2px)")
|
|
160
161
|
}), invalidDateRange), /*#__PURE__*/React.createElement(SelectDateRangeButton, {
|
|
161
162
|
"data-testId": "custom-date-range-update-button",
|
|
162
163
|
disabled: Boolean(invalidDateRange),
|
package/dist/esm/ui/confluence-search-modal/basic-filters/filters/date-range-picker/styled.js
CHANGED
|
@@ -85,6 +85,8 @@ export var DateRangeErrorMessage = styled.div({
|
|
|
85
85
|
display: 'flex',
|
|
86
86
|
lineHeight: 1.3333,
|
|
87
87
|
marginTop: "var(--ds-space-050, 2px)",
|
|
88
|
+
gap: "var(--ds-space-025, 2px)",
|
|
89
|
+
paddingInlineStart: "var(--ds-space-025, 2px)",
|
|
88
90
|
fontSize: '12px',
|
|
89
91
|
color: "var(--ds-text-danger, ".concat(R400, ")"),
|
|
90
92
|
alignItems: 'center'
|
|
@@ -12,15 +12,20 @@ import { useCallback, useEffect, useRef, useState } from 'react';
|
|
|
12
12
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
13
13
|
import { jsx } from '@emotion/react';
|
|
14
14
|
import { useIntl } from 'react-intl-next';
|
|
15
|
-
import Button from '@atlaskit/button/
|
|
16
|
-
import BoardIcon from '@atlaskit/icon/
|
|
17
|
-
import ChevronDownIcon from '@atlaskit/icon/
|
|
15
|
+
import Button from '@atlaskit/button/new';
|
|
16
|
+
import BoardIcon from '@atlaskit/icon/core/migration/board';
|
|
17
|
+
import ChevronDownIcon from '@atlaskit/icon/utility/migration/chevron-down';
|
|
18
|
+
import { Box, xcss } from '@atlaskit/primitives';
|
|
18
19
|
import { CheckboxOption, createFilter, PopupSelect } from '@atlaskit/select';
|
|
19
20
|
import Tooltip from '@atlaskit/tooltip';
|
|
20
21
|
import { succeedUfoExperience } from '../../../analytics/ufoExperiences';
|
|
21
22
|
import { useDatasourceExperienceId } from '../../../contexts/datasource-experience-id';
|
|
22
23
|
import { ConcatenatedMenuList } from './concatenated-menu-list';
|
|
23
24
|
import { columnPickerMessages } from './messages';
|
|
25
|
+
var chevronIconStyles = xcss({
|
|
26
|
+
display: 'flex',
|
|
27
|
+
alignItems: 'center'
|
|
28
|
+
});
|
|
24
29
|
export var ColumnPicker = function ColumnPicker(_ref) {
|
|
25
30
|
var columns = _ref.columns,
|
|
26
31
|
selectedColumnKeys = _ref.selectedColumnKeys,
|
|
@@ -145,17 +150,26 @@ export var ColumnPicker = function ColumnPicker(_ref) {
|
|
|
145
150
|
}, function (tooltipProps) {
|
|
146
151
|
return jsx(Button, _extends({}, tooltipProps, triggerProps, {
|
|
147
152
|
isSelected: isOpen,
|
|
148
|
-
iconBefore: jsx("div", null, jsx(BoardIcon, {
|
|
149
|
-
label: "board",
|
|
150
|
-
size: "medium"
|
|
151
|
-
}), jsx(ChevronDownIcon, {
|
|
152
|
-
label: "down",
|
|
153
|
-
size: "medium"
|
|
154
|
-
})),
|
|
155
153
|
spacing: "compact",
|
|
156
154
|
appearance: "subtle",
|
|
157
|
-
testId: "column-picker-trigger-button"
|
|
158
|
-
|
|
155
|
+
testId: "column-picker-trigger-button",
|
|
156
|
+
iconBefore: function iconBefore() {
|
|
157
|
+
return jsx(Box, {
|
|
158
|
+
as: "span",
|
|
159
|
+
xcss: chevronIconStyles
|
|
160
|
+
}, jsx(BoardIcon, {
|
|
161
|
+
color: "currentColor",
|
|
162
|
+
label: "board",
|
|
163
|
+
LEGACY_size: "medium",
|
|
164
|
+
spacing: "spacious",
|
|
165
|
+
LEGACY_margin: "0 0 0 4px"
|
|
166
|
+
}), jsx(ChevronDownIcon, {
|
|
167
|
+
color: "currentColor",
|
|
168
|
+
label: "down",
|
|
169
|
+
LEGACY_size: "medium"
|
|
170
|
+
}));
|
|
171
|
+
}
|
|
172
|
+
}), '');
|
|
159
173
|
});
|
|
160
174
|
}
|
|
161
175
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/link-datasource",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.4.0",
|
|
4
4
|
"description": "UI Components to support linking platform dataset feature",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -79,7 +79,7 @@
|
|
|
79
79
|
"@atlaskit/textfield": "6.5.2",
|
|
80
80
|
"@atlaskit/theme": "^13.0.0",
|
|
81
81
|
"@atlaskit/tokens": "^2.0.0",
|
|
82
|
-
"@atlaskit/tooltip": "^18.
|
|
82
|
+
"@atlaskit/tooltip": "^18.8.0",
|
|
83
83
|
"@atlaskit/ufo": "^0.3.0",
|
|
84
84
|
"@atlaskit/width-detector": "^4.3.0",
|
|
85
85
|
"@babel/runtime": "^7.0.0",
|