@atlaskit/link-datasource 3.3.0 → 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
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
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
|
+
|
|
3
11
|
## 3.3.0
|
|
4
12
|
|
|
5
13
|
### Minor Changes
|
|
@@ -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
|
});
|
|
@@ -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
|
};
|
|
@@ -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
|
});
|