@atlaskit/link-datasource 4.5.0 → 4.7.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 +33 -0
- package/dist/cjs/common/ui/spot/error-state/error/assets/dark.svg +7 -4
- package/dist/cjs/common/ui/spot/error-state/error/assets/light.svg +7 -4
- package/dist/cjs/common/ui/spot/error-state/error-old/assets/dark.svg +5 -0
- package/dist/cjs/common/ui/spot/error-state/error-old/assets/light.svg +5 -0
- package/dist/cjs/common/ui/spot/error-state/error-old/index.js +18 -0
- package/dist/cjs/common/utils/withFeatureFlaggedComponent.js +23 -0
- package/dist/cjs/ui/assets-modal/search-container/object-schema-select/index.js +7 -2
- package/dist/cjs/ui/common/modal/basic-search-input/index.compiled.css +1 -0
- package/dist/cjs/ui/common/modal/basic-search-input/index.js +6 -4
- package/dist/cjs/ui/common/modal/display-view-dropdown/display-view-drop-down.js +46 -6
- package/dist/cjs/ui/common/modal/mode-switcher/index.compiled.css +16 -0
- package/dist/cjs/ui/common/modal/mode-switcher/index.js +24 -2
- package/dist/cjs/ui/common/modal/popup-select/checkbox-option-visual-refresh-sllv.compiled.css +15 -0
- package/dist/cjs/ui/common/modal/popup-select/checkbox-option-visual-refresh-sllv.js +30 -0
- package/dist/cjs/ui/common/modal/popup-select/control.compiled.css +4 -0
- package/dist/cjs/ui/common/modal/popup-select/control.js +34 -7
- package/dist/cjs/ui/common/modal/popup-select/dropdownIndicator.js +19 -10
- package/dist/cjs/ui/common/modal/popup-select/footer.compiled.css +4 -0
- package/dist/cjs/ui/common/modal/popup-select/footer.js +8 -4
- package/dist/cjs/ui/common/modal/popup-select/index.js +25 -3
- package/dist/cjs/ui/common/modal/popup-select/menu-list/errorMessage.js +8 -3
- package/dist/cjs/ui/common/modal/popup-select/menu-list/index.compiled.css +4 -1
- package/dist/cjs/ui/common/modal/popup-select/menu-list/index.js +5 -2
- package/dist/cjs/ui/common/modal/popup-select/menu-list/messages.js +21 -1
- package/dist/cjs/ui/common/modal/popup-select/menu-list/noOptionsMessage.js +4 -3
- package/dist/cjs/ui/common/modal/popup-select/menu-list/selectMessage.compiled.css +8 -1
- package/dist/cjs/ui/common/modal/popup-select/menu-list/selectMessage.js +23 -4
- package/dist/cjs/ui/common/modal/popup-select/menu-list/showMoreButton.js +10 -0
- package/dist/cjs/ui/common/modal/popup-select/trigger.compiled.css +1 -0
- package/dist/cjs/ui/common/modal/popup-select/trigger.js +26 -5
- package/dist/cjs/ui/common/modal/search-count/index.js +9 -3
- package/dist/cjs/ui/common/modal/site-selector/index.js +7 -2
- package/dist/cjs/ui/confluence-search-modal/basic-filters/filters/date-range-picker/trigger.js +18 -2
- package/dist/cjs/ui/confluence-search-modal/confluence-search-container/index.compiled.css +2 -1
- package/dist/cjs/ui/confluence-search-modal/confluence-search-container/index.js +14 -2
- package/dist/cjs/ui/confluence-search-modal/modal/index.js +5 -1
- package/dist/cjs/ui/jira-issues-modal/basic-filters/ui/async-popup-select/index.js +3 -1
- package/dist/cjs/ui/jira-issues-modal/basic-filters/ui/async-popup-select/messages.js +25 -0
- package/dist/cjs/ui/jira-issues-modal/jira-search-container/index.compiled.css +4 -1
- package/dist/cjs/ui/jira-issues-modal/jira-search-container/index.js +49 -2
- package/dist/cjs/ui/jira-issues-modal/modal/index.js +5 -1
- package/dist/es2019/common/ui/spot/error-state/error/assets/dark.svg +7 -4
- package/dist/es2019/common/ui/spot/error-state/error/assets/light.svg +7 -4
- package/dist/es2019/common/ui/spot/error-state/error-old/assets/dark.svg +5 -0
- package/dist/es2019/common/ui/spot/error-state/error-old/assets/light.svg +5 -0
- package/dist/es2019/common/ui/spot/error-state/error-old/index.js +11 -0
- package/dist/es2019/common/utils/withFeatureFlaggedComponent.js +17 -0
- package/dist/es2019/ui/assets-modal/search-container/object-schema-select/index.js +5 -2
- package/dist/es2019/ui/common/modal/basic-search-input/index.compiled.css +1 -0
- package/dist/es2019/ui/common/modal/basic-search-input/index.js +6 -4
- package/dist/es2019/ui/common/modal/display-view-dropdown/display-view-drop-down.js +37 -6
- package/dist/es2019/ui/common/modal/mode-switcher/index.compiled.css +16 -0
- package/dist/es2019/ui/common/modal/mode-switcher/index.js +19 -2
- package/dist/es2019/ui/common/modal/popup-select/checkbox-option-visual-refresh-sllv.compiled.css +15 -0
- package/dist/es2019/ui/common/modal/popup-select/checkbox-option-visual-refresh-sllv.js +19 -0
- package/dist/es2019/ui/common/modal/popup-select/control.compiled.css +4 -0
- package/dist/es2019/ui/common/modal/popup-select/control.js +26 -5
- package/dist/es2019/ui/common/modal/popup-select/dropdownIndicator.js +20 -11
- package/dist/es2019/ui/common/modal/popup-select/footer.compiled.css +4 -0
- package/dist/es2019/ui/common/modal/popup-select/footer.js +8 -4
- package/dist/es2019/ui/common/modal/popup-select/index.js +20 -3
- package/dist/es2019/ui/common/modal/popup-select/menu-list/errorMessage.js +8 -3
- package/dist/es2019/ui/common/modal/popup-select/menu-list/index.compiled.css +4 -1
- package/dist/es2019/ui/common/modal/popup-select/menu-list/index.js +5 -2
- package/dist/es2019/ui/common/modal/popup-select/menu-list/messages.js +21 -1
- package/dist/es2019/ui/common/modal/popup-select/menu-list/noOptionsMessage.js +4 -3
- package/dist/es2019/ui/common/modal/popup-select/menu-list/selectMessage.compiled.css +8 -1
- package/dist/es2019/ui/common/modal/popup-select/menu-list/selectMessage.js +24 -5
- package/dist/es2019/ui/common/modal/popup-select/menu-list/showMoreButton.js +12 -2
- package/dist/es2019/ui/common/modal/popup-select/trigger.compiled.css +1 -0
- package/dist/es2019/ui/common/modal/popup-select/trigger.js +24 -5
- package/dist/es2019/ui/common/modal/search-count/index.js +7 -2
- package/dist/es2019/ui/common/modal/site-selector/index.js +5 -2
- package/dist/es2019/ui/confluence-search-modal/basic-filters/filters/date-range-picker/trigger.js +16 -2
- package/dist/es2019/ui/confluence-search-modal/confluence-search-container/index.compiled.css +2 -1
- package/dist/es2019/ui/confluence-search-modal/confluence-search-container/index.js +16 -3
- package/dist/es2019/ui/confluence-search-modal/modal/index.js +5 -1
- package/dist/es2019/ui/jira-issues-modal/basic-filters/ui/async-popup-select/index.js +3 -1
- package/dist/es2019/ui/jira-issues-modal/basic-filters/ui/async-popup-select/messages.js +25 -0
- package/dist/es2019/ui/jira-issues-modal/jira-search-container/index.compiled.css +4 -1
- package/dist/es2019/ui/jira-issues-modal/jira-search-container/index.js +50 -3
- package/dist/es2019/ui/jira-issues-modal/modal/index.js +5 -1
- package/dist/esm/common/ui/spot/error-state/error/assets/dark.svg +7 -4
- package/dist/esm/common/ui/spot/error-state/error/assets/light.svg +7 -4
- package/dist/esm/common/ui/spot/error-state/error-old/assets/dark.svg +5 -0
- package/dist/esm/common/ui/spot/error-state/error-old/assets/light.svg +5 -0
- package/dist/esm/common/ui/spot/error-state/error-old/index.js +11 -0
- package/dist/esm/common/utils/withFeatureFlaggedComponent.js +17 -0
- package/dist/esm/ui/assets-modal/search-container/object-schema-select/index.js +7 -2
- package/dist/esm/ui/common/modal/basic-search-input/index.compiled.css +1 -0
- package/dist/esm/ui/common/modal/basic-search-input/index.js +6 -4
- package/dist/esm/ui/common/modal/display-view-dropdown/display-view-drop-down.js +46 -6
- package/dist/esm/ui/common/modal/mode-switcher/index.compiled.css +16 -0
- package/dist/esm/ui/common/modal/mode-switcher/index.js +24 -2
- package/dist/esm/ui/common/modal/popup-select/checkbox-option-visual-refresh-sllv.compiled.css +15 -0
- package/dist/esm/ui/common/modal/popup-select/checkbox-option-visual-refresh-sllv.js +20 -0
- package/dist/esm/ui/common/modal/popup-select/control.compiled.css +4 -0
- package/dist/esm/ui/common/modal/popup-select/control.js +33 -6
- package/dist/esm/ui/common/modal/popup-select/dropdownIndicator.js +20 -11
- package/dist/esm/ui/common/modal/popup-select/footer.compiled.css +4 -0
- package/dist/esm/ui/common/modal/popup-select/footer.js +8 -4
- package/dist/esm/ui/common/modal/popup-select/index.js +25 -3
- package/dist/esm/ui/common/modal/popup-select/menu-list/errorMessage.js +8 -3
- package/dist/esm/ui/common/modal/popup-select/menu-list/index.compiled.css +4 -1
- package/dist/esm/ui/common/modal/popup-select/menu-list/index.js +5 -2
- package/dist/esm/ui/common/modal/popup-select/menu-list/messages.js +21 -1
- package/dist/esm/ui/common/modal/popup-select/menu-list/noOptionsMessage.js +4 -3
- package/dist/esm/ui/common/modal/popup-select/menu-list/selectMessage.compiled.css +8 -1
- package/dist/esm/ui/common/modal/popup-select/menu-list/selectMessage.js +24 -5
- package/dist/esm/ui/common/modal/popup-select/menu-list/showMoreButton.js +12 -2
- package/dist/esm/ui/common/modal/popup-select/trigger.compiled.css +1 -0
- package/dist/esm/ui/common/modal/popup-select/trigger.js +26 -5
- package/dist/esm/ui/common/modal/search-count/index.js +9 -3
- package/dist/esm/ui/common/modal/site-selector/index.js +7 -2
- package/dist/esm/ui/confluence-search-modal/basic-filters/filters/date-range-picker/trigger.js +18 -2
- package/dist/esm/ui/confluence-search-modal/confluence-search-container/index.compiled.css +2 -1
- package/dist/esm/ui/confluence-search-modal/confluence-search-container/index.js +15 -3
- package/dist/esm/ui/confluence-search-modal/modal/index.js +5 -1
- package/dist/esm/ui/jira-issues-modal/basic-filters/ui/async-popup-select/index.js +3 -1
- package/dist/esm/ui/jira-issues-modal/basic-filters/ui/async-popup-select/messages.js +25 -0
- package/dist/esm/ui/jira-issues-modal/jira-search-container/index.compiled.css +4 -1
- package/dist/esm/ui/jira-issues-modal/jira-search-container/index.js +50 -3
- package/dist/esm/ui/jira-issues-modal/modal/index.js +5 -1
- package/dist/types/common/ui/spot/error-state/error-old/index.d.ts +3 -0
- package/dist/types/common/utils/withFeatureFlaggedComponent.d.ts +9 -0
- package/dist/types/ui/common/modal/basic-search-input/index.d.ts +6 -1
- package/dist/types/ui/common/modal/popup-select/checkbox-option-visual-refresh-sllv.d.ts +4 -0
- package/dist/types/ui/common/modal/popup-select/control.d.ts +3 -1
- package/dist/types/ui/common/modal/popup-select/index.d.ts +6 -1
- package/dist/types/ui/common/modal/popup-select/menu-list/messages.d.ts +20 -0
- package/dist/types/ui/common/modal/popup-select/menu-list/selectMessage.d.ts +6 -1
- package/dist/types/ui/common/modal/search-count/index.d.ts +6 -1
- package/dist/types/ui/jira-issues-modal/basic-filters/ui/async-popup-select/messages.d.ts +25 -0
- package/dist/types-ts4.5/common/ui/spot/error-state/error-old/index.d.ts +3 -0
- package/dist/types-ts4.5/common/utils/withFeatureFlaggedComponent.d.ts +9 -0
- package/dist/types-ts4.5/ui/common/modal/basic-search-input/index.d.ts +6 -1
- package/dist/types-ts4.5/ui/common/modal/popup-select/checkbox-option-visual-refresh-sllv.d.ts +4 -0
- package/dist/types-ts4.5/ui/common/modal/popup-select/control.d.ts +3 -1
- package/dist/types-ts4.5/ui/common/modal/popup-select/index.d.ts +6 -1
- package/dist/types-ts4.5/ui/common/modal/popup-select/menu-list/messages.d.ts +20 -0
- package/dist/types-ts4.5/ui/common/modal/popup-select/menu-list/selectMessage.d.ts +6 -1
- package/dist/types-ts4.5/ui/common/modal/search-count/index.d.ts +6 -1
- package/dist/types-ts4.5/ui/jira-issues-modal/basic-filters/ui/async-popup-select/messages.d.ts +25 -0
- package/package.json +5 -5
|
@@ -15,6 +15,7 @@ var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/sli
|
|
|
15
15
|
var _react = _interopRequireWildcard(require("react"));
|
|
16
16
|
var _reactIntlNext = require("react-intl-next");
|
|
17
17
|
var _useDebounce = require("use-debounce");
|
|
18
|
+
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
18
19
|
var _compiled = require("@atlaskit/primitives/compiled");
|
|
19
20
|
var _analytics = require("../../../analytics");
|
|
20
21
|
var _basicSearchInput = require("../../common/modal/basic-search-input");
|
|
@@ -33,8 +34,11 @@ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e;
|
|
|
33
34
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
34
35
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
35
36
|
var styles = {
|
|
37
|
+
basicSearchInputBoxStyles: "_1bsb1osq",
|
|
36
38
|
basicSearchInputContainerStyles: "_16jlkb7n",
|
|
37
|
-
|
|
39
|
+
inputContainerStylesOld: "_4cvr1q9y _1e0c1txw _1tket9kd",
|
|
40
|
+
inputContainerStyles: "_4cvr1y6m _1e0c1txw _1tket9kd",
|
|
41
|
+
modeSwitcherContainerStyles: "_19pk1b66"
|
|
38
42
|
};
|
|
39
43
|
var DEFAULT_JQL_QUERY = exports.DEFAULT_JQL_QUERY = 'ORDER BY created DESC';
|
|
40
44
|
var ALLOWED_ORDER_BY_KEYS = exports.ALLOWED_ORDER_BY_KEYS = ['key', 'summary', 'assignee', 'status', 'created'];
|
|
@@ -206,9 +210,51 @@ var JiraSearchContainer = exports.JiraSearchContainer = function JiraSearchConta
|
|
|
206
210
|
setCloudId(currentCloudId);
|
|
207
211
|
}
|
|
208
212
|
}, [currentCloudId, cloudId, setSearchBarJql]);
|
|
213
|
+
if ((0, _platformFeatureFlags.fg)('platform-linking-visual-refresh-sllv')) {
|
|
214
|
+
return /*#__PURE__*/_react.default.createElement("div", {
|
|
215
|
+
"data-testid": "jira-search-container",
|
|
216
|
+
className: (0, _runtime.ax)([styles.inputContainerStyles])
|
|
217
|
+
}, currentSearchMethod === 'basic' && /*#__PURE__*/_react.default.createElement(_compiled.Box, {
|
|
218
|
+
xcss: styles.basicSearchInputBoxStyles
|
|
219
|
+
}, /*#__PURE__*/_react.default.createElement(_compiled.Flex, {
|
|
220
|
+
alignItems: "center",
|
|
221
|
+
xcss: styles.basicSearchInputContainerStyles
|
|
222
|
+
}, /*#__PURE__*/_react.default.createElement(_basicSearchInput.BasicSearchInput, {
|
|
223
|
+
isSearching: isSearching,
|
|
224
|
+
onChange: handleBasicSearchChange,
|
|
225
|
+
onSearch: handleSearch,
|
|
226
|
+
searchTerm: basicSearchTerm,
|
|
227
|
+
placeholder: _messages.basicSearchInputMessages.basicTextSearchLabel,
|
|
228
|
+
ariaLabel: _messages.basicSearchInputMessages.basicTextSearchLabel,
|
|
229
|
+
testId: "jira-datasource-modal",
|
|
230
|
+
fullWidth: false
|
|
231
|
+
}), /*#__PURE__*/_react.default.createElement(_basicFilters.BasicFilters, {
|
|
232
|
+
jql: searchBarJql,
|
|
233
|
+
site: site,
|
|
234
|
+
onChange: handleBasicFilterSelectionChange,
|
|
235
|
+
selections: filterSelections,
|
|
236
|
+
isJQLHydrating: basicFilterHydrationStatus === 'loading'
|
|
237
|
+
})), currentSearchMethod === 'basic' && /*#__PURE__*/_react.default.createElement(_compiled.Text, {
|
|
238
|
+
size: "small",
|
|
239
|
+
color: "color.text.subtlest",
|
|
240
|
+
testId: "jira-search-placeholder"
|
|
241
|
+
}, formatMessage(_messages.basicSearchInputMessages.basicTextSearchLabel))), currentSearchMethod === 'jql' && /*#__PURE__*/_react.default.createElement(_jqlEditor.JiraJQLEditor, {
|
|
242
|
+
cloudId: cloudId || '',
|
|
243
|
+
isSearching: isSearching,
|
|
244
|
+
onChange: onQueryChange,
|
|
245
|
+
onSearch: handleSearch,
|
|
246
|
+
query: searchBarJql
|
|
247
|
+
}), /*#__PURE__*/_react.default.createElement(_compiled.Box, {
|
|
248
|
+
xcss: styles.modeSwitcherContainerStyles
|
|
249
|
+
}, /*#__PURE__*/_react.default.createElement(_modeSwitcher.ModeSwitcher, {
|
|
250
|
+
onOptionValueChange: onSearchMethodChange,
|
|
251
|
+
selectedOptionValue: currentSearchMethod,
|
|
252
|
+
options: modeSwitcherOptions
|
|
253
|
+
})));
|
|
254
|
+
}
|
|
209
255
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
210
256
|
"data-testid": "jira-search-container",
|
|
211
|
-
className: (0, _runtime.ax)([styles.
|
|
257
|
+
className: (0, _runtime.ax)([styles.inputContainerStylesOld])
|
|
212
258
|
}, currentSearchMethod === 'basic' && /*#__PURE__*/_react.default.createElement(_compiled.Flex, {
|
|
213
259
|
alignItems: "center",
|
|
214
260
|
xcss: styles.basicSearchInputContainerStyles
|
|
@@ -218,6 +264,7 @@ var JiraSearchContainer = exports.JiraSearchContainer = function JiraSearchConta
|
|
|
218
264
|
onSearch: handleSearch,
|
|
219
265
|
searchTerm: basicSearchTerm,
|
|
220
266
|
placeholder: _messages.basicSearchInputMessages.basicTextSearchLabel,
|
|
267
|
+
ariaLabel: _messages.basicSearchInputMessages.basicTextSearchLabel,
|
|
221
268
|
testId: "jira-datasource-modal",
|
|
222
269
|
fullWidth: false
|
|
223
270
|
}), /*#__PURE__*/_react.default.createElement(_basicFilters.BasicFilters, {
|
|
@@ -414,7 +414,11 @@ var PlainJiraIssuesConfigModal = function PlainJiraIssuesConfigModal(props) {
|
|
|
414
414
|
searchCount: totalCount,
|
|
415
415
|
url: jqlUrl,
|
|
416
416
|
prefixTextType: "issue",
|
|
417
|
-
testId: "jira-datasource-modal-total-issues-count"
|
|
417
|
+
testId: "jira-datasource-modal-total-issues-count",
|
|
418
|
+
styles: (0, _platformFeatureFlags.fg)('platform-linking-visual-refresh-sllv') ? {
|
|
419
|
+
color: "var(--ds-text, #172B4D)",
|
|
420
|
+
font: "var(--ds-font-heading-xxsmall, normal 600 12px/16px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif)"
|
|
421
|
+
} : undefined
|
|
418
422
|
}), /*#__PURE__*/_react.default.createElement(_cancelButton.CancelButton, {
|
|
419
423
|
onCancel: onCancel,
|
|
420
424
|
getAnalyticsPayload: getCancelButtonAnalyticsPayload,
|
|
@@ -1,5 +1,8 @@
|
|
|
1
|
-
<svg
|
|
2
|
-
<path d="
|
|
3
|
-
<path fill
|
|
4
|
-
<path fill
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 275 275">
|
|
2
|
+
<path fill="#4B4D51" d="M191.87 88.67c-2.28-4.36-5.07-8.68-8.3-12.86-3.27-4.23-6.8-8.07-10.5-11.4-21.6-19.51-49.11-22.5-75.49-8.19a93.066 93.066 0 0 0-12.54 8.22 94.563 94.563 0 0 0-11.53 10.51c-20.39 22.01-24.43 49.35-11.09 75.03 2.3 4.42 5.12 8.81 8.39 13.04 3.23 4.18 6.72 7.96 10.37 11.26 12.5 11.29 27.05 17.01 42.25 17.01 10.9 0 22.13-2.94 33.18-8.88 4.46-2.4 8.86-5.26 13.07-8.52 4.06-3.14 7.79-6.53 11.11-10.07 20.52-21.96 24.56-49.35 11.08-75.14v-.01Zm-30.56 74.37c-3.61 2.79-7.37 5.25-11.17 7.29-21.38 11.48-42.6 9.27-59.76-6.23-3.05-2.76-5.98-5.94-8.72-9.48-2.77-3.59-5.16-7.28-7.08-10.97-10.67-20.53-7.48-41.63 8.98-59.4 2.93-3.17 6.25-6.19 9.86-8.98 3.47-2.69 7.07-5.04 10.7-7.01 8.96-4.86 17.91-7.28 26.57-7.28 11.89 0 23.21 4.56 33.2 13.59 3.09 2.79 6.07 6.03 8.84 9.62 2.73 3.54 5.09 7.18 6.99 10.82 10.77 20.62 7.6 41.73-8.95 59.44-2.81 3.01-6 5.9-9.48 8.59h.02Z"/>
|
|
3
|
+
<path fill="#4B4D51" d="M179.96 171c-3.54-4.93-7.34-4.9-11.05-2.03-3.48 2.69-4.41 6.33-.7 11.12l4.24 5.48 11.75-9.09-4.24-5.48Z"/>
|
|
4
|
+
<path fill="#4B4D51" d="m187.155 174.199-17.642 13.64 33.152 42.878 17.642-13.64-33.152-42.878Z"/>
|
|
5
|
+
<path fill="#7E8188" d="m184.32 176.391-11.97 9.255 11.243 14.54 11.969-9.254-11.242-14.541Z"/>
|
|
6
|
+
<path fill="#4B4D51" fill-rule="evenodd" d="m157.715 95.826-53.98 53.979-7.07-7.071 53.979-53.98 7.071 7.072Z" clip-rule="evenodd"/>
|
|
7
|
+
<path fill="#4B4D51" fill-rule="evenodd" d="m150.644 149.805-53.98-53.98 7.071-7.07 53.98 53.979-7.071 7.071Z" clip-rule="evenodd"/>
|
|
5
8
|
</svg>
|
|
@@ -1,5 +1,8 @@
|
|
|
1
|
-
<svg
|
|
2
|
-
<path d="
|
|
3
|
-
<path fill
|
|
4
|
-
<path fill
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 275 275">
|
|
2
|
+
<path fill="#fff" d="M185.8 91.84c-2.07-3.97-4.61-7.92-7.64-11.84-3.07-3.97-6.31-7.47-9.67-10.51-20.01-18.08-44.6-19.74-67.63-7.25-3.93 2.13-7.81 4.67-11.62 7.61-3.97 3.07-7.54 6.33-10.7 9.74C60.71 98.83 56.14 123 68.5 146.8c2.09 4.02 4.66 8.03 7.73 12.01 3.03 3.92 6.22 7.37 9.54 10.37 19.88 17.95 44.45 19.62 67.59 7.18 4.1-2.2 8.15-4.83 12.12-7.9 3.81-2.94 7.24-6.07 10.29-9.33 17.91-19.17 22.48-43.43 10.01-67.29h.02Z"/>
|
|
3
|
+
<path fill="#DDDEE1" d="M123.44 191.28c-15.2 0-29.74-5.72-42.25-17.01-3.65-3.3-7.14-7.09-10.37-11.26-3.27-4.23-6.1-8.62-8.39-13.04-13.34-25.67-9.3-53.02 11.09-75.03 3.45-3.72 7.33-7.26 11.53-10.51 4.05-3.13 8.27-5.9 12.54-8.22 26.38-14.31 53.9-11.32 75.49 8.19 3.69 3.34 7.22 7.17 10.5 11.4 3.23 4.17 6.02 8.5 8.3 12.86 13.48 25.79 9.44 53.18-11.08 75.14-3.31 3.55-7.05 6.94-11.11 10.07-4.21 3.25-8.61 6.12-13.07 8.52-11.05 5.94-22.29 8.88-33.18 8.88v.01Zm7.25-130.3c-8.65 0-17.61 2.41-26.57 7.28-3.62 1.97-7.22 4.33-10.7 7.01-3.61 2.79-6.93 5.81-9.86 8.98-16.46 17.77-19.65 38.86-8.98 59.4 1.92 3.69 4.3 7.39 7.08 10.97 2.73 3.53 5.66 6.72 8.72 9.48 17.16 15.5 38.38 17.71 59.76 6.23 3.8-2.04 7.56-4.49 11.17-7.29 3.48-2.69 6.66-5.58 9.48-8.59 16.55-17.71 19.72-38.82 8.95-59.44-1.9-3.64-4.26-7.29-6.99-10.82-2.78-3.59-5.75-6.83-8.84-9.62-10-9.03-21.32-13.59-33.2-13.59h-.02Z"/><path fill="#DDDEE1" d="M179.96 171c-3.54-4.93-7.34-4.9-11.05-2.03-3.48 2.69-4.41 6.33-.7 11.12l4.24 5.48 11.75-9.09-4.24-5.48Z"/>
|
|
4
|
+
<path fill="#DDDEE1" d="m187.155 174.199-17.642 13.64 33.152 42.878 17.642-13.64-33.152-42.878Z"/>
|
|
5
|
+
<path fill="#B7B9BE" d="m184.32 176.391-11.97 9.255 11.243 14.54 11.969-9.254-11.242-14.541Z"/>
|
|
6
|
+
<path fill="#DDDEE1" fill-rule="evenodd" d="m157.715 95.826-53.98 53.979-7.07-7.071 53.979-53.98 7.071 7.072Z" clip-rule="evenodd"/>
|
|
7
|
+
<path fill="#DDDEE1" fill-rule="evenodd" d="m150.644 149.805-53.98-53.98 7.071-7.07 53.98 53.979-7.071 7.071Z" clip-rule="evenodd"/>
|
|
5
8
|
</svg>
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
<svg width="275" height="275" viewBox="0 0 275 275" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M55.99 215.63L56.08 215.81H218.91L219.01 215.63L137.5 64.9902L55.99 215.63Z" fill="#4B4D51"/>
|
|
3
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M134.115 173.95V118.94H141.445V173.95H134.115Z" fill="#101214"/>
|
|
4
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M136.432 183.039C136.965 182.943 137.474 182.915 137.91 182.915C138.371 182.915 138.828 182.947 139.287 183.018L139.304 183.02L139.321 183.023C142.228 183.498 144.648 185.521 145.234 188.753C145.337 189.301 145.365 189.827 145.365 190.26C145.365 190.596 145.348 190.974 145.295 191.375V191.436L145.237 191.758C144.659 194.981 142.245 197.029 139.321 197.507L139.304 197.51L139.287 197.512C138.828 197.583 138.371 197.615 137.91 197.615C137.471 197.615 136.958 197.586 136.42 197.489C133.551 196.992 131.143 194.987 130.557 191.769C130.455 191.23 130.425 190.726 130.425 190.27C130.425 189.819 130.454 189.299 130.559 188.749C131.152 185.581 133.51 183.531 136.432 183.039ZM137.755 190.251C137.755 190.257 137.755 190.263 137.755 190.27C137.755 190.273 137.755 190.276 137.755 190.279C137.758 190.28 137.762 190.28 137.766 190.28C137.8 190.283 137.848 190.285 137.91 190.285C137.957 190.285 137.998 190.284 138.035 190.282C138.035 190.275 138.035 190.268 138.035 190.26C138.035 190.256 138.035 190.252 138.035 190.248C137.998 190.246 137.957 190.245 137.91 190.245C137.848 190.245 137.8 190.247 137.766 190.25C137.762 190.25 137.758 190.251 137.755 190.251Z" fill="#101214"/>
|
|
5
|
+
</svg>
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
<svg width="275" height="275" viewBox="0 0 275 275" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M55.99 215.63L56.08 215.81H218.91L219.01 215.63L137.5 64.9902L55.99 215.63Z" fill="#DDDEE1"/>
|
|
3
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M134.115 173.95V118.94H141.445V173.95H134.115Z" fill="white"/>
|
|
4
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M136.432 183.039C136.965 182.943 137.474 182.915 137.91 182.915C138.371 182.915 138.828 182.947 139.287 183.018L139.304 183.02L139.321 183.023C142.228 183.498 144.648 185.521 145.234 188.753C145.337 189.301 145.365 189.827 145.365 190.26C145.365 190.596 145.348 190.974 145.295 191.375V191.436L145.237 191.758C144.659 194.981 142.245 197.029 139.321 197.507L139.304 197.51L139.287 197.512C138.828 197.583 138.371 197.615 137.91 197.615C137.471 197.615 136.958 197.586 136.42 197.489C133.551 196.992 131.143 194.987 130.556 191.769C130.455 191.23 130.425 190.726 130.425 190.27C130.425 189.819 130.454 189.299 130.559 188.749C131.152 185.581 133.51 183.531 136.432 183.039ZM137.755 190.251C137.755 190.257 137.755 190.263 137.755 190.27C137.755 190.273 137.755 190.276 137.755 190.279C137.758 190.28 137.762 190.28 137.766 190.28C137.8 190.283 137.848 190.285 137.91 190.285C137.957 190.285 137.998 190.284 138.035 190.282C138.035 190.275 138.035 190.268 138.035 190.26C138.035 190.256 138.035 190.252 138.035 190.248C137.998 190.246 137.957 190.245 137.91 190.245C137.848 190.245 137.8 190.247 137.766 190.25C137.762 190.25 137.758 190.251 137.755 190.251Z" fill="white"/>
|
|
5
|
+
</svg>
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { RenderSVG } from '../../../common/render-svg';
|
|
4
|
+
import Dark from './assets/dark.svg';
|
|
5
|
+
import Light from './assets/light.svg';
|
|
6
|
+
export const SpotErrorOld = props => {
|
|
7
|
+
return /*#__PURE__*/React.createElement(RenderSVG, _extends({
|
|
8
|
+
src: Light,
|
|
9
|
+
srcDark: Dark
|
|
10
|
+
}, props));
|
|
11
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* This function is used to switch between two components based on a feature flag
|
|
5
|
+
* @param ComponentOld
|
|
6
|
+
* @param ComponentNext
|
|
7
|
+
* @param featureFlagFn function that returns a boolean value to switch to the next component, e.g. () => fg('my_flag_name')
|
|
8
|
+
* @returns
|
|
9
|
+
*/
|
|
10
|
+
export const withFeatureFlaggedComponent = (ComponentOld, ComponentNext, featureFlagFn) => {
|
|
11
|
+
return props => {
|
|
12
|
+
// copied from packages/editor/editor-common/src/utils/withFeatureFlaggedComponent.tsx
|
|
13
|
+
// Ignored via go/ees005
|
|
14
|
+
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
15
|
+
return featureFlagFn() ? /*#__PURE__*/React.createElement(ComponentNext, props) : /*#__PURE__*/React.createElement(ComponentOld, props);
|
|
16
|
+
};
|
|
17
|
+
};
|
|
@@ -8,7 +8,7 @@ import debounce from 'debounce-promise';
|
|
|
8
8
|
import { useIntl } from 'react-intl-next';
|
|
9
9
|
import Button from '@atlaskit/button/new';
|
|
10
10
|
import { Field } from '@atlaskit/form';
|
|
11
|
-
import ChevronDownIcon from '@atlaskit/icon/utility/
|
|
11
|
+
import ChevronDownIcon from '@atlaskit/icon/utility/chevron-down';
|
|
12
12
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
13
13
|
import { AsyncSelect, PopupSelect } from '@atlaskit/select';
|
|
14
14
|
import { layers } from '@atlaskit/theme/constants';
|
|
@@ -104,7 +104,10 @@ export const AssetsObjectSchemaSelect = ({
|
|
|
104
104
|
var _restFieldProps$value;
|
|
105
105
|
return /*#__PURE__*/React.createElement(Button, _extends({}, triggerProps, {
|
|
106
106
|
isSelected: isOpen,
|
|
107
|
-
iconAfter: ChevronDownIcon
|
|
107
|
+
iconAfter: () => /*#__PURE__*/React.createElement(ChevronDownIcon, {
|
|
108
|
+
label: "",
|
|
109
|
+
color: "currentColor"
|
|
110
|
+
})
|
|
108
111
|
}), ((_restFieldProps$value = restFieldProps.value) === null || _restFieldProps$value === void 0 ? void 0 : _restFieldProps$value.label) || formatMessage(objectSchemaSelectMessages.placeholder));
|
|
109
112
|
}
|
|
110
113
|
})) : /*#__PURE__*/React.createElement(AsyncSelect, _extends({
|
|
@@ -11,6 +11,7 @@ import { useDatasourceAnalyticsEvents } from '../../../../analytics';
|
|
|
11
11
|
import { basicSearchInputMessages } from './messages';
|
|
12
12
|
const searchButtonStyles = null;
|
|
13
13
|
const formStyles = null;
|
|
14
|
+
const formWithMaxWidthStylesOld = null;
|
|
14
15
|
const formWithMaxWidthStyles = null;
|
|
15
16
|
export const BasicSearchInput = ({
|
|
16
17
|
isDisabled,
|
|
@@ -20,7 +21,8 @@ export const BasicSearchInput = ({
|
|
|
20
21
|
searchTerm,
|
|
21
22
|
fullWidth,
|
|
22
23
|
testId,
|
|
23
|
-
placeholder
|
|
24
|
+
placeholder,
|
|
25
|
+
ariaLabel
|
|
24
26
|
}) => {
|
|
25
27
|
const {
|
|
26
28
|
formatMessage
|
|
@@ -38,7 +40,7 @@ export const BasicSearchInput = ({
|
|
|
38
40
|
};
|
|
39
41
|
return /*#__PURE__*/React.createElement("form", {
|
|
40
42
|
onSubmit: handleFormSubmit,
|
|
41
|
-
className: ax([fullWidth ? "_16jlkb7n _1o9zkb7n _i0dlf1ug" : "_16jlkb7n _1o9zkb7n _i0dlf1ug _p12fr0r7"])
|
|
43
|
+
className: ax([fullWidth ? "_16jlkb7n _1o9zkb7n _i0dlf1ug" : fg('platform-linking-visual-refresh-sllv') ? "_16jlkb7n _1o9zkb7n _i0dlf1ug _p12f1mjv" : "_16jlkb7n _1o9zkb7n _i0dlf1ug _p12fr0r7"])
|
|
42
44
|
}, /*#__PURE__*/React.createElement(Textfield, {
|
|
43
45
|
elemAfterInput: /*#__PURE__*/React.createElement(LoadingButton, {
|
|
44
46
|
appearance: "primary",
|
|
@@ -57,9 +59,9 @@ export const BasicSearchInput = ({
|
|
|
57
59
|
}),
|
|
58
60
|
autoFocus: true,
|
|
59
61
|
onChange: onChange,
|
|
60
|
-
placeholder: formatMessage(placeholder),
|
|
62
|
+
placeholder: fg('platform-linking-visual-refresh-sllv') ? undefined : formatMessage(placeholder),
|
|
61
63
|
testId: `${testId}--basic-search-input`,
|
|
62
64
|
value: searchTerm,
|
|
63
|
-
"aria-label": formatMessage(placeholder)
|
|
65
|
+
"aria-label": formatMessage(fg('platform-linking-visual-refresh-sllv') ? ariaLabel : placeholder)
|
|
64
66
|
}));
|
|
65
67
|
};
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
/* display-view-drop-down.tsx generated by @compiled/babel-plugin v0.36.1 */
|
|
2
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
2
3
|
import "./display-view-drop-down.compiled.css";
|
|
3
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
4
5
|
import React from 'react';
|
|
5
|
-
import { cx } from '@compiled/react';
|
|
6
6
|
import { FormattedMessage, useIntl } from 'react-intl-next';
|
|
7
|
+
import Button from '@atlaskit/button/new';
|
|
7
8
|
import DropdownMenu, { DropdownItem, DropdownItemGroup } from '@atlaskit/dropdown-menu';
|
|
9
|
+
import ChevronDownIcon from '@atlaskit/icon/utility/chevron-down';
|
|
8
10
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
9
11
|
import { Box } from '@atlaskit/primitives/compiled';
|
|
10
12
|
import { displayViewDropDownMessages } from './messages';
|
|
@@ -69,22 +71,51 @@ export const DisplayViewDropDown = ({
|
|
|
69
71
|
} = useIntl();
|
|
70
72
|
const isTable = viewMode === 'table';
|
|
71
73
|
const triggerText = isTable ? formatMessage(displayViewDropDownMessages.viewModeListLabel) : formatMessage(displayViewDropDownMessages.viewModeInlineLinkLabel);
|
|
74
|
+
if (fg('platform-linking-visual-refresh-sllv')) {
|
|
75
|
+
return /*#__PURE__*/React.createElement(DropdownMenu, {
|
|
76
|
+
trigger: ({
|
|
77
|
+
triggerRef,
|
|
78
|
+
...triggerProps
|
|
79
|
+
}) => /*#__PURE__*/React.createElement(Button, _extends({}, triggerProps, {
|
|
80
|
+
ref: triggerRef,
|
|
81
|
+
iconAfter: () => /*#__PURE__*/React.createElement(ChevronDownIcon, {
|
|
82
|
+
label: "",
|
|
83
|
+
color: "currentColor"
|
|
84
|
+
})
|
|
85
|
+
}), triggerText),
|
|
86
|
+
testId: "datasource-modal--view-drop-down"
|
|
87
|
+
}, /*#__PURE__*/React.createElement(Box, {
|
|
88
|
+
xcss: styles.dropDownItemGroupStyles
|
|
89
|
+
}, /*#__PURE__*/React.createElement(DropdownItemGroup, null, /*#__PURE__*/React.createElement(DropdownItem, {
|
|
90
|
+
testId: "dropdown-item-table",
|
|
91
|
+
onClick: () => onViewModeChange('table'),
|
|
92
|
+
isSelected: isTable,
|
|
93
|
+
description: formatMessage(displayViewDropDownMessages.viewModeListDescription),
|
|
94
|
+
elemBefore: ListIcon
|
|
95
|
+
}, /*#__PURE__*/React.createElement(FormattedMessage, displayViewDropDownMessages.viewModeListLabel)), /*#__PURE__*/React.createElement(DropdownItem, {
|
|
96
|
+
testId: "dropdown-item-inline-link",
|
|
97
|
+
onClick: () => onViewModeChange('inline'),
|
|
98
|
+
isSelected: !isTable,
|
|
99
|
+
description: formatMessage(displayViewDropDownMessages.viewModeInlineLinkDescription),
|
|
100
|
+
elemBefore: InlineIcon
|
|
101
|
+
}, /*#__PURE__*/React.createElement(FormattedMessage, displayViewDropDownMessages.viewModeInlineLinkLabel)))));
|
|
102
|
+
}
|
|
72
103
|
return /*#__PURE__*/React.createElement(DropdownMenu, {
|
|
73
104
|
trigger: triggerText,
|
|
74
105
|
testId: "datasource-modal--view-drop-down"
|
|
75
106
|
}, /*#__PURE__*/React.createElement(Box, {
|
|
76
|
-
xcss:
|
|
107
|
+
xcss: styles.dropDownItemGroupStylesOld
|
|
77
108
|
}, /*#__PURE__*/React.createElement(DropdownItemGroup, null, /*#__PURE__*/React.createElement(DropdownItem, {
|
|
78
109
|
testId: "dropdown-item-table",
|
|
79
110
|
onClick: () => onViewModeChange('table'),
|
|
80
111
|
isSelected: isTable,
|
|
81
|
-
description: formatMessage(
|
|
82
|
-
elemBefore:
|
|
112
|
+
description: formatMessage(displayViewDropDownMessages.viewModeListDescriptionOld),
|
|
113
|
+
elemBefore: ListIconOld
|
|
83
114
|
}, /*#__PURE__*/React.createElement(FormattedMessage, displayViewDropDownMessages.viewModeListLabel)), /*#__PURE__*/React.createElement(DropdownItem, {
|
|
84
115
|
testId: "dropdown-item-inline-link",
|
|
85
116
|
onClick: () => onViewModeChange('inline'),
|
|
86
117
|
isSelected: !isTable,
|
|
87
|
-
description: formatMessage(
|
|
88
|
-
elemBefore:
|
|
118
|
+
description: formatMessage(displayViewDropDownMessages.viewModeInlineLinkDescriptionOld),
|
|
119
|
+
elemBefore: InlineIconOld
|
|
89
120
|
}, /*#__PURE__*/React.createElement(FormattedMessage, displayViewDropDownMessages.viewModeInlineLinkLabel)))));
|
|
90
121
|
};
|
|
@@ -1,28 +1,44 @@
|
|
|
1
|
+
._11c82smr{font:var(--ds-font-body,normal 400 14px/20px ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
|
|
1
2
|
._11c8dcr7{font:var(--ds-font-body-UNSAFE_small,normal 400 9pt/1pc ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
|
|
2
3
|
._2rko1b66{border-radius:var(--ds-space-050,4px)}
|
|
3
4
|
._zulp1b66{gap:var(--ds-space-050,4px)}
|
|
4
5
|
._zulpv77o{gap:var(--ds-space-025,2px)}
|
|
6
|
+
._189ee4h9{border-width:var(--ds-border-width,1px)}
|
|
7
|
+
._1dqonqa1{border-style:solid}
|
|
8
|
+
._1h6d1j28{border-color:transparent}
|
|
9
|
+
._1h6d1yqz{border-color:var(--ds-border-selected,#0c66e4)}
|
|
10
|
+
._1h6dmuej{border-color:var(--ds-border,#091e4224)}
|
|
5
11
|
._16qs1jze{box-shadow:var(--ds-shadow-overflow,0 0 1px rgba(9,30,66,.12),0 0 8px rgba(9,30,66,.16))}
|
|
6
12
|
._18u0v47k{margin-left:var(--ds-space-250,20px)}
|
|
7
13
|
._19bv1b66{padding-left:var(--ds-space-050,4px)}
|
|
14
|
+
._19bvutpp{padding-left:var(--ds-space-150,9pt)}
|
|
15
|
+
._1bah1h6o{justify-content:center}
|
|
8
16
|
._1e0c116y{display:inline-flex}
|
|
17
|
+
._1e0c1txw{display:flex}
|
|
9
18
|
._1e0cglyw{display:none}
|
|
10
19
|
._1j55105o:disabled{opacity:.5}
|
|
11
20
|
._1p1dangw{text-transform:uppercase}
|
|
21
|
+
._1tke1tcg{min-height:24px}
|
|
12
22
|
._4cvr1h6o{align-items:center}
|
|
23
|
+
._4t3izwfg{height:2pc}
|
|
13
24
|
._bfhk1s4m{background-color:var(--ds-background-neutral,#f4f5f7)}
|
|
25
|
+
._bfhkfg4m{background-color:var(--ds-background-selected,#e9f2ff)}
|
|
14
26
|
._bfhkr01l{background-color:var(--ds-background-input-pressed,#fff)}
|
|
15
27
|
._ca0q1b66{padding-top:var(--ds-space-050,4px)}
|
|
16
28
|
._ca0qv77o{padding-top:var(--ds-space-025,2px)}
|
|
17
29
|
._k48p1pd9{font-weight:var(--ds-font-weight-semibold,600)}
|
|
30
|
+
._k48p1wq8{font-weight:var(--ds-font-weight-medium,500)}
|
|
18
31
|
._n3td1b66{padding-bottom:var(--ds-space-050,4px)}
|
|
19
32
|
._n3tdv77o{padding-bottom:var(--ds-space-025,2px)}
|
|
20
33
|
._syaz1be1{color:var(--ds-text-subtlest,#253858)}
|
|
21
34
|
._syaz8q0r{color:var(--ds-text-disabled,#b3bac5)}
|
|
35
|
+
._syazaqb7{color:var(--ds-text-selected,#0c66e4)}
|
|
22
36
|
._u5f31b66{padding-right:var(--ds-space-050,4px)}
|
|
37
|
+
._u5f3utpp{padding-right:var(--ds-space-150,9pt)}
|
|
23
38
|
._vchhusvi{box-sizing:border-box}
|
|
24
39
|
._d0al13gf:hover{cursor:not-allowed}
|
|
25
40
|
._d0altlke:hover{cursor:pointer}
|
|
26
41
|
._irr31j28:hover{background-color:transparent}
|
|
42
|
+
._irr3fg4m:hover{background-color:var(--ds-background-selected,#e9f2ff)}
|
|
27
43
|
._irr3g4tq:hover{background-color:var(--ds-background-neutral-subtle-hovered,rgba(9,30,66,.08))}
|
|
28
44
|
._irr3r01l:hover{background-color:var(--ds-background-input-pressed,#fff)}
|
|
@@ -3,16 +3,20 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
3
3
|
import "./index.compiled.css";
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
5
5
|
import React from 'react';
|
|
6
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
6
7
|
import { N0, N20, N30A, N60, N700 } from '@atlaskit/theme/colors';
|
|
7
8
|
import Tooltip from '@atlaskit/tooltip';
|
|
8
9
|
import { DatasourceAction } from '../../../../analytics/types';
|
|
9
10
|
import { useUserInteractions } from '../../../../contexts/user-interactions';
|
|
10
11
|
import { DisplayViewDropDown } from '../display-view-dropdown/display-view-drop-down';
|
|
11
12
|
import { useViewModeContext } from './useViewModeContext';
|
|
13
|
+
const modeSwitcherStylesOld = null;
|
|
12
14
|
const modeSwitcherStyles = null;
|
|
13
15
|
const compactModeSwitcherStyles = null;
|
|
14
16
|
const modeInputStyles = null;
|
|
17
|
+
const modeSwitcherLabelStylesOld = null;
|
|
15
18
|
const modeSwitcherLabelStyles = null;
|
|
19
|
+
const modeSwitcherLabelSelectedStylesOld = null;
|
|
16
20
|
const modeSwitcherLabelSelectedStyles = null;
|
|
17
21
|
const modeSwitcherLabelDisabledStyles = null;
|
|
18
22
|
const modeSwitcherDisabledStyles = null;
|
|
@@ -32,7 +36,7 @@ export const ModeSwitcher = props => {
|
|
|
32
36
|
return options.length > 0 ? /*#__PURE__*/React.createElement("fieldset", {
|
|
33
37
|
"data-testid": "mode-toggle-container",
|
|
34
38
|
disabled: isDisabled,
|
|
35
|
-
className: ax(["_2rko1b66 _zulp1b66 _4cvr1h6o _bfhk1s4m _vchhusvi _1e0c116y _ca0q1b66 _u5f31b66 _n3td1b66 _19bv1b66 _18u0v47k _1j55105o", isCompact && "_zulpv77o _ca0q1b66 _u5f31b66 _n3td1b66 _19bv1b66"])
|
|
39
|
+
className: ax([fg('platform-linking-visual-refresh-sllv') ? "_2rko1b66 _1h6dmuej _189ee4h9 _1dqonqa1 _4cvr1h6o _vchhusvi _1e0c116y _u5f31b66 _19bv1b66 _18u0v47k _4t3izwfg _1j55105o" : "_2rko1b66 _zulp1b66 _4cvr1h6o _bfhk1s4m _vchhusvi _1e0c116y _ca0q1b66 _u5f31b66 _n3td1b66 _19bv1b66 _18u0v47k _1j55105o", isCompact && "_zulpv77o _ca0q1b66 _u5f31b66 _n3td1b66 _19bv1b66"])
|
|
36
40
|
}, options.map(({
|
|
37
41
|
value,
|
|
38
42
|
label,
|
|
@@ -43,7 +47,20 @@ export const ModeSwitcher = props => {
|
|
|
43
47
|
return /*#__PURE__*/React.createElement(Tooltip, {
|
|
44
48
|
key: value,
|
|
45
49
|
content: tooltipText
|
|
46
|
-
}, tooltipProps => /*#__PURE__*/React.createElement("label", _extends({}, tooltipProps, {
|
|
50
|
+
}, tooltipProps => fg('platform-linking-visual-refresh-sllv') ? /*#__PURE__*/React.createElement("label", _extends({}, tooltipProps, {
|
|
51
|
+
key: value,
|
|
52
|
+
"data-testid": `mode-toggle-${value}`,
|
|
53
|
+
className: ax(["_11c82smr _2rko1b66 _1h6d1j28 _189ee4h9 _1dqonqa1 _syaz1be1 _vchhusvi _k48p1wq8 _u5f3utpp _19bvutpp _1tke1tcg _1e0c1txw _4cvr1h6o _1bah1h6o _d0altlke _irr3g4tq", isCompact && "_ca0qv77o _u5f31b66 _n3tdv77o _19bv1b66", isSelected && "_2rko1b66 _1h6d1yqz _bfhkfg4m _syazaqb7 _d0altlke _irr3fg4m", isDisabled && "_irr31j28 _d0al13gf", isOptionDisabled && "_syaz8q0r", isOptionDisabled && "_irr31j28 _d0al13gf"])
|
|
54
|
+
}), label, /*#__PURE__*/React.createElement("input", {
|
|
55
|
+
"aria-checked": isSelected,
|
|
56
|
+
"aria-disabled": isOptionDisabled,
|
|
57
|
+
checked: isSelected,
|
|
58
|
+
disabled: isOptionDisabled,
|
|
59
|
+
onChange: handleModeChange,
|
|
60
|
+
type: "radio",
|
|
61
|
+
value: value,
|
|
62
|
+
className: ax(["_1e0cglyw"])
|
|
63
|
+
})) : /*#__PURE__*/React.createElement("label", _extends({}, tooltipProps, {
|
|
47
64
|
key: value,
|
|
48
65
|
"data-testid": `mode-toggle-${value}`,
|
|
49
66
|
className: ax(["_11c8dcr7 _2rko1b66 _syaz1be1 _k48p1pd9 _1p1dangw _ca0q1b66 _u5f31b66 _n3td1b66 _19bv1b66 _d0altlke _irr3g4tq", isCompact && "_ca0qv77o _u5f31b66 _n3tdv77o _19bv1b66", isSelected && "_2rko1b66 _bfhkr01l _16qs1jze _d0altlke _irr3r01l", isDisabled && "_irr31j28 _d0al13gf", isOptionDisabled && "_syaz8q0r", isOptionDisabled && "_irr31j28 _d0al13gf"])
|
package/dist/es2019/ui/common/modal/popup-select/checkbox-option-visual-refresh-sllv.compiled.css
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
|
|
2
|
+
._189eyh40{border-width:2px}
|
|
3
|
+
._1dqonqa1{border-style:solid}
|
|
4
|
+
._1h6d1j28{border-color:transparent}
|
|
5
|
+
._1h6d1p6i{border-color:var(--ds-border-focused,#388bff)}._16qsglyw{box-shadow:none}
|
|
6
|
+
._1q511b66{padding-block-start:var(--ds-space-050,4px)}
|
|
7
|
+
._85i51b66{padding-block-end:var(--ds-space-050,4px)}
|
|
8
|
+
._bfhk1j9a{background-color:var(--ds-background-input,#fff)}
|
|
9
|
+
._bfhkfg4m{background-color:var(--ds-background-selected,#e9f2ff)}
|
|
10
|
+
._bozgpxbi{padding-inline-start:var(--ds-space-200,1pc)}
|
|
11
|
+
._y4tipxbi{padding-inline-end:var(--ds-space-200,1pc)}
|
|
12
|
+
._irr3166n:hover{background-color:var(--ds-background-neutral-subtle-hovered,#091e420f)}
|
|
13
|
+
._irr3i1yw:hover{background-color:var(--ds-background-selected-hovered,#cce0ff)}
|
|
14
|
+
._1di619ru:active{background-color:var(--ds-background-selected-pressed,#85b8ff)}
|
|
15
|
+
._1di61dty:active{background-color:var(--ds-background-neutral-subtle-pressed,#091e4224)}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/* checkbox-option-visual-refresh-sllv.tsx generated by @compiled/babel-plugin v0.36.1 */
|
|
2
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
3
|
+
import "./checkbox-option-visual-refresh-sllv.compiled.css";
|
|
4
|
+
import * as React from 'react';
|
|
5
|
+
import { ax, ix } from "@compiled/react/runtime";
|
|
6
|
+
import { CheckboxOption } from '@atlaskit/select';
|
|
7
|
+
const checkboxStyles = null;
|
|
8
|
+
const checkboxSelectedStyles = null;
|
|
9
|
+
const checkboxFocusedStyles = null;
|
|
10
|
+
export const CheckboxOptionVisualRefreshSllv = ({
|
|
11
|
+
children,
|
|
12
|
+
...props
|
|
13
|
+
}) => {
|
|
14
|
+
return /*#__PURE__*/React.createElement(CheckboxOption
|
|
15
|
+
// eslint-disable-next-line @atlaskit/design-system/no-unsafe-style-overrides
|
|
16
|
+
, _extends({}, props, {
|
|
17
|
+
className: ax(["_189eyh40 _1dqonqa1 _1h6d1j28 _16qsglyw _bfhk1j9a _1q511b66 _85i51b66 _bozgpxbi _y4tipxbi _irr3166n _1di61dty", props.isSelected && "_bfhkfg4m _irr3i1yw _1di619ru", props.isFocused && "_1h6d1p6i"])
|
|
18
|
+
}), children);
|
|
19
|
+
};
|
|
@@ -1,19 +1,40 @@
|
|
|
1
|
+
/* control.tsx generated by @compiled/babel-plugin v0.36.1 */
|
|
1
2
|
import _extends from "@babel/runtime/helpers/extends";
|
|
3
|
+
import "./control.compiled.css";
|
|
4
|
+
import { ax, ix } from "@compiled/react/runtime";
|
|
2
5
|
import React from 'react';
|
|
6
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
7
|
+
import { Box } from '@atlaskit/primitives/compiled';
|
|
3
8
|
import { components } from '@atlaskit/select';
|
|
4
9
|
import { N40 } from '@atlaskit/theme/colors';
|
|
5
|
-
|
|
10
|
+
import { withFeatureFlaggedComponent } from '../../../../common/utils/withFeatureFlaggedComponent';
|
|
11
|
+
const popupCustomControlStylesOld = () => ({
|
|
6
12
|
display: 'flex',
|
|
7
13
|
padding: "var(--ds-space-050, 4px)",
|
|
8
14
|
border: 'none',
|
|
9
15
|
borderBottom: `solid 1px ${`var(--ds-border, ${N40})`}`,
|
|
10
16
|
minHeight: 'auto'
|
|
11
17
|
});
|
|
12
|
-
|
|
18
|
+
const popupCustomControlStyles = () => ({
|
|
19
|
+
display: 'flex',
|
|
20
|
+
borderRadius: '3px',
|
|
21
|
+
border: `solid 1px ${"var(--ds-border-input, #8C8F97)"}`
|
|
22
|
+
});
|
|
23
|
+
const popupCustomControlVisualRefreshStyles = {
|
|
24
|
+
container: "_ca0q1b66 _n3td1b66 _19bvh9hh _u5f3h9hh"
|
|
25
|
+
};
|
|
26
|
+
export const CustomControlOld = ({
|
|
13
27
|
children,
|
|
14
28
|
...innerProps
|
|
15
29
|
}) => /*#__PURE__*/React.createElement(components.Control, _extends({}, innerProps, {
|
|
16
|
-
getStyles:
|
|
17
|
-
appearance: "none"
|
|
30
|
+
getStyles: popupCustomControlStylesOld
|
|
18
31
|
}), children);
|
|
19
|
-
export
|
|
32
|
+
export const CustomControl = ({
|
|
33
|
+
children,
|
|
34
|
+
...innerProps
|
|
35
|
+
}) => /*#__PURE__*/React.createElement(Box, {
|
|
36
|
+
xcss: popupCustomControlVisualRefreshStyles.container
|
|
37
|
+
}, /*#__PURE__*/React.createElement(components.Control, _extends({}, innerProps, {
|
|
38
|
+
getStyles: popupCustomControlStyles
|
|
39
|
+
}), children));
|
|
40
|
+
export default withFeatureFlaggedComponent(CustomControlOld, CustomControl, () => fg('platform-linking-visual-refresh-sllv'));
|
|
@@ -2,8 +2,11 @@
|
|
|
2
2
|
import "./dropdownIndicator.compiled.css";
|
|
3
3
|
import { ax, ix } from "@compiled/react/runtime";
|
|
4
4
|
import React from 'react';
|
|
5
|
-
import CloseIcon from '@atlaskit/icon/core/
|
|
6
|
-
import
|
|
5
|
+
import CloseIcon from '@atlaskit/icon/core/cross-circle';
|
|
6
|
+
import CloseIconOld from '@atlaskit/icon/core/migration/cross-circle';
|
|
7
|
+
import SearchIconOld from '@atlaskit/icon/core/migration/search';
|
|
8
|
+
import SearchIcon from '@atlaskit/icon/core/search';
|
|
9
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
7
10
|
import { Box } from '@atlaskit/primitives/compiled';
|
|
8
11
|
import { components } from '@atlaskit/select';
|
|
9
12
|
const styles = {
|
|
@@ -13,6 +16,20 @@ const CustomDropdownIndicator = props => {
|
|
|
13
16
|
const {
|
|
14
17
|
selectProps
|
|
15
18
|
} = props;
|
|
19
|
+
const closeIcon = fg('platform-linking-visual-refresh-sllv') ? /*#__PURE__*/React.createElement(CloseIcon, {
|
|
20
|
+
label: ""
|
|
21
|
+
}) : /*#__PURE__*/React.createElement(CloseIconOld, {
|
|
22
|
+
LEGACY_size: "small",
|
|
23
|
+
label: "",
|
|
24
|
+
color: "currentColor"
|
|
25
|
+
});
|
|
26
|
+
const searchIcon = fg('platform-linking-visual-refresh-sllv') ? /*#__PURE__*/React.createElement(SearchIcon, {
|
|
27
|
+
label: ""
|
|
28
|
+
}) : /*#__PURE__*/React.createElement(SearchIconOld, {
|
|
29
|
+
LEGACY_size: "small",
|
|
30
|
+
label: "",
|
|
31
|
+
color: "currentColor"
|
|
32
|
+
});
|
|
16
33
|
return /*#__PURE__*/React.createElement(components.DropdownIndicator, props, /*#__PURE__*/React.createElement(Box, {
|
|
17
34
|
xcss: styles.customDropdownIndicatorStyles,
|
|
18
35
|
onClick: () => {
|
|
@@ -23,14 +40,6 @@ const CustomDropdownIndicator = props => {
|
|
|
23
40
|
});
|
|
24
41
|
}
|
|
25
42
|
}
|
|
26
|
-
}, selectProps.inputValue ?
|
|
27
|
-
LEGACY_size: "small",
|
|
28
|
-
label: "",
|
|
29
|
-
color: "currentColor"
|
|
30
|
-
}) : /*#__PURE__*/React.createElement(SearchIcon, {
|
|
31
|
-
LEGACY_size: "small",
|
|
32
|
-
label: "",
|
|
33
|
-
color: "currentColor"
|
|
34
|
-
})));
|
|
43
|
+
}, selectProps.inputValue ? closeIcon : searchIcon));
|
|
35
44
|
};
|
|
36
45
|
export default CustomDropdownIndicator;
|
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
|
|
2
2
|
._195gutpp{margin-inline:var(--ds-space-150,9pt)}
|
|
3
3
|
._1mouu2gc{margin-block:var(--ds-space-100,8px)}._15a5nqa1{border-top-style:solid}
|
|
4
|
+
._19bvpxbi{padding-left:var(--ds-space-200,1pc)}
|
|
4
5
|
._1i53b5v6{border-top-color:var(--ds-border,#dfe1e6)}
|
|
5
6
|
._ca0q1b66{padding-top:var(--ds-space-050,4px)}
|
|
7
|
+
._ca0qutpp{padding-top:var(--ds-space-150,9pt)}
|
|
6
8
|
._n3td1b66{padding-bottom:var(--ds-space-050,4px)}
|
|
9
|
+
._n3tdutpp{padding-bottom:var(--ds-space-150,9pt)}
|
|
7
10
|
._syaz131l{color:var(--ds-text-subtlest,#626f86)}
|
|
11
|
+
._u5f3pxbi{padding-right:var(--ds-space-200,1pc)}
|
|
8
12
|
._uwhke4h9{border-top-width:var(--ds-border-width,1px)}
|
|
@@ -3,13 +3,17 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
3
3
|
import "./footer.compiled.css";
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
5
5
|
import React from 'react';
|
|
6
|
+
import { cx } from '@compiled/react';
|
|
6
7
|
import { FormattedMessage } from 'react-intl-next';
|
|
8
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
7
9
|
import { Flex, Inline } from '@atlaskit/primitives/compiled';
|
|
8
10
|
import { N40 } from '@atlaskit/theme/colors';
|
|
9
11
|
import { asyncPopupSelectMessages } from './messages';
|
|
10
12
|
const styles = {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
+
footerContainerStylesOld: "_ca0q1b66 _n3td1b66 _uwhke4h9 _15a5nqa1 _1i53b5v6",
|
|
14
|
+
footerContainerStyles: "_ca0qutpp _n3tdutpp _19bvpxbi _u5f3pxbi _uwhke4h9 _15a5nqa1 _1i53b5v6",
|
|
15
|
+
footerPaginationInfoStylesOld: "_1mouu2gc _195gutpp _syaz131l",
|
|
16
|
+
footerPaginationInfoStyles: "_syaz131l"
|
|
13
17
|
};
|
|
14
18
|
const PopupFooter = ({
|
|
15
19
|
currentDisplayCount,
|
|
@@ -21,9 +25,9 @@ const PopupFooter = ({
|
|
|
21
25
|
direction: "row",
|
|
22
26
|
alignItems: "center",
|
|
23
27
|
justifyContent: "end",
|
|
24
|
-
xcss: styles.footerContainerStyles
|
|
28
|
+
xcss: cx(fg('platform-linking-visual-refresh-sllv') ? styles.footerContainerStyles : styles.footerContainerStylesOld)
|
|
25
29
|
}, /*#__PURE__*/React.createElement(Inline, {
|
|
26
|
-
xcss: styles.footerPaginationInfoStyles
|
|
30
|
+
xcss: cx(fg('platform-linking-visual-refresh-sllv') ? styles.footerPaginationInfoStyles : styles.footerPaginationInfoStylesOld)
|
|
27
31
|
}, /*#__PURE__*/React.createElement(FormattedMessage, _extends({}, asyncPopupSelectMessages.paginationDetails, {
|
|
28
32
|
values: {
|
|
29
33
|
currentDisplayCount,
|