@atlaskit/link-datasource 4.4.0 → 4.6.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 +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/modal/render-assets-content/initial-state-view/index.compiled.css +10 -0
- package/dist/cjs/ui/assets-modal/modal/render-assets-content/initial-state-view/index.js +14 -5
- package/dist/cjs/ui/assets-modal/modal/render-assets-content/initial-state-view/messages.js +12 -2
- package/dist/cjs/ui/assets-modal/search-container/object-schema-select/index.js +7 -2
- package/dist/cjs/ui/common/error-state/access-required.compiled.css +3 -0
- package/dist/cjs/ui/common/error-state/access-required.js +5 -3
- package/dist/cjs/ui/common/error-state/messages.js +23 -3
- package/dist/cjs/ui/common/error-state/modal-loading-error.compiled.css +8 -1
- package/dist/cjs/ui/common/error-state/modal-loading-error.js +24 -7
- package/dist/cjs/ui/common/error-state/no-results.compiled.css +8 -1
- package/dist/cjs/ui/common/error-state/no-results.js +157 -6
- package/dist/cjs/ui/common/initial-state-view/index.compiled.css +7 -2
- package/dist/cjs/ui/common/initial-state-view/index.js +11 -4
- package/dist/cjs/ui/common/initial-state-view/messages.js +11 -1
- 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/content-container/index.compiled.css +1 -0
- package/dist/cjs/ui/common/modal/content-container/index.js +4 -2
- 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/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 +20 -1
- package/dist/cjs/ui/confluence-search-modal/modal/messages.js +5 -0
- 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 +27 -2
- package/dist/cjs/ui/jira-issues-modal/modal/messages.js +10 -0
- 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/modal/render-assets-content/initial-state-view/index.compiled.css +10 -0
- package/dist/es2019/ui/assets-modal/modal/render-assets-content/initial-state-view/index.js +13 -5
- package/dist/es2019/ui/assets-modal/modal/render-assets-content/initial-state-view/messages.js +12 -2
- package/dist/es2019/ui/assets-modal/search-container/object-schema-select/index.js +5 -2
- package/dist/es2019/ui/common/error-state/access-required.compiled.css +3 -0
- package/dist/es2019/ui/common/error-state/access-required.js +5 -3
- package/dist/es2019/ui/common/error-state/messages.js +23 -3
- package/dist/es2019/ui/common/error-state/modal-loading-error.compiled.css +8 -1
- package/dist/es2019/ui/common/error-state/modal-loading-error.js +23 -7
- package/dist/es2019/ui/common/error-state/no-results.compiled.css +8 -1
- package/dist/es2019/ui/common/error-state/no-results.js +157 -6
- package/dist/es2019/ui/common/initial-state-view/index.compiled.css +4 -0
- package/dist/es2019/ui/common/initial-state-view/index.js +11 -4
- package/dist/es2019/ui/common/initial-state-view/messages.js +11 -1
- 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/content-container/index.compiled.css +1 -0
- package/dist/es2019/ui/common/modal/content-container/index.js +4 -2
- 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/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 +16 -1
- package/dist/es2019/ui/confluence-search-modal/modal/messages.js +5 -0
- 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 +23 -2
- package/dist/es2019/ui/jira-issues-modal/modal/messages.js +10 -0
- 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/modal/render-assets-content/initial-state-view/index.compiled.css +10 -0
- package/dist/esm/ui/assets-modal/modal/render-assets-content/initial-state-view/index.js +13 -5
- package/dist/esm/ui/assets-modal/modal/render-assets-content/initial-state-view/messages.js +12 -2
- package/dist/esm/ui/assets-modal/search-container/object-schema-select/index.js +7 -2
- package/dist/esm/ui/common/error-state/access-required.compiled.css +3 -0
- package/dist/esm/ui/common/error-state/access-required.js +5 -3
- package/dist/esm/ui/common/error-state/messages.js +23 -3
- package/dist/esm/ui/common/error-state/modal-loading-error.compiled.css +8 -1
- package/dist/esm/ui/common/error-state/modal-loading-error.js +23 -7
- package/dist/esm/ui/common/error-state/no-results.compiled.css +8 -1
- package/dist/esm/ui/common/error-state/no-results.js +157 -6
- package/dist/esm/ui/common/initial-state-view/index.compiled.css +7 -2
- package/dist/esm/ui/common/initial-state-view/index.js +11 -4
- package/dist/esm/ui/common/initial-state-view/messages.js +11 -1
- 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/content-container/index.compiled.css +1 -0
- package/dist/esm/ui/common/modal/content-container/index.js +4 -2
- 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/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 +20 -1
- package/dist/esm/ui/confluence-search-modal/modal/messages.js +5 -0
- 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 +27 -2
- package/dist/esm/ui/jira-issues-modal/modal/messages.js +10 -0
- 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/assets-modal/modal/render-assets-content/initial-state-view/messages.d.ts +10 -0
- package/dist/types/ui/common/error-state/messages.d.ts +20 -0
- package/dist/types/ui/common/error-state/modal-loading-error.d.ts +6 -1
- package/dist/types/ui/common/initial-state-view/messages.d.ts +10 -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/confluence-search-modal/modal/messages.d.ts +5 -0
- package/dist/types/ui/jira-issues-modal/basic-filters/ui/async-popup-select/messages.d.ts +25 -0
- package/dist/types/ui/jira-issues-modal/modal/messages.d.ts +10 -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/assets-modal/modal/render-assets-content/initial-state-view/messages.d.ts +10 -0
- package/dist/types-ts4.5/ui/common/error-state/messages.d.ts +20 -0
- package/dist/types-ts4.5/ui/common/error-state/modal-loading-error.d.ts +6 -1
- package/dist/types-ts4.5/ui/common/initial-state-view/messages.d.ts +10 -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/confluence-search-modal/modal/messages.d.ts +5 -0
- package/dist/types-ts4.5/ui/jira-issues-modal/basic-filters/ui/async-popup-select/messages.d.ts +25 -0
- package/dist/types-ts4.5/ui/jira-issues-modal/modal/messages.d.ts +10 -0
- package/package.json +5 -5
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
/* display-view-drop-down.tsx generated by @compiled/babel-plugin v0.36.1 */
|
|
2
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
3
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
4
|
+
var _excluded = ["triggerRef"];
|
|
2
5
|
import "./display-view-drop-down.compiled.css";
|
|
3
6
|
import { ax, ix } from "@compiled/react/runtime";
|
|
4
7
|
import React from 'react';
|
|
5
|
-
import { cx } from '@compiled/react';
|
|
6
8
|
import { FormattedMessage, useIntl } from 'react-intl-next';
|
|
9
|
+
import Button from '@atlaskit/button/new';
|
|
7
10
|
import DropdownMenu, { DropdownItem, DropdownItemGroup } from '@atlaskit/dropdown-menu';
|
|
11
|
+
import ChevronDownIcon from '@atlaskit/icon/utility/chevron-down';
|
|
8
12
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
9
13
|
import { Box } from '@atlaskit/primitives/compiled';
|
|
10
14
|
import { displayViewDropDownMessages } from './messages';
|
|
@@ -67,26 +71,62 @@ export var DisplayViewDropDown = function DisplayViewDropDown(_ref) {
|
|
|
67
71
|
formatMessage = _useIntl.formatMessage;
|
|
68
72
|
var isTable = viewMode === 'table';
|
|
69
73
|
var triggerText = isTable ? formatMessage(displayViewDropDownMessages.viewModeListLabel) : formatMessage(displayViewDropDownMessages.viewModeInlineLinkLabel);
|
|
74
|
+
if (fg('platform-linking-visual-refresh-sllv')) {
|
|
75
|
+
return /*#__PURE__*/React.createElement(DropdownMenu, {
|
|
76
|
+
trigger: function trigger(_ref2) {
|
|
77
|
+
var triggerRef = _ref2.triggerRef,
|
|
78
|
+
triggerProps = _objectWithoutProperties(_ref2, _excluded);
|
|
79
|
+
return /*#__PURE__*/React.createElement(Button, _extends({}, triggerProps, {
|
|
80
|
+
ref: triggerRef,
|
|
81
|
+
iconAfter: function iconAfter() {
|
|
82
|
+
return /*#__PURE__*/React.createElement(ChevronDownIcon, {
|
|
83
|
+
label: "",
|
|
84
|
+
color: "currentColor"
|
|
85
|
+
});
|
|
86
|
+
}
|
|
87
|
+
}), triggerText);
|
|
88
|
+
},
|
|
89
|
+
testId: "datasource-modal--view-drop-down"
|
|
90
|
+
}, /*#__PURE__*/React.createElement(Box, {
|
|
91
|
+
xcss: styles.dropDownItemGroupStyles
|
|
92
|
+
}, /*#__PURE__*/React.createElement(DropdownItemGroup, null, /*#__PURE__*/React.createElement(DropdownItem, {
|
|
93
|
+
testId: "dropdown-item-table",
|
|
94
|
+
onClick: function onClick() {
|
|
95
|
+
return onViewModeChange('table');
|
|
96
|
+
},
|
|
97
|
+
isSelected: isTable,
|
|
98
|
+
description: formatMessage(displayViewDropDownMessages.viewModeListDescription),
|
|
99
|
+
elemBefore: ListIcon
|
|
100
|
+
}, /*#__PURE__*/React.createElement(FormattedMessage, displayViewDropDownMessages.viewModeListLabel)), /*#__PURE__*/React.createElement(DropdownItem, {
|
|
101
|
+
testId: "dropdown-item-inline-link",
|
|
102
|
+
onClick: function onClick() {
|
|
103
|
+
return onViewModeChange('inline');
|
|
104
|
+
},
|
|
105
|
+
isSelected: !isTable,
|
|
106
|
+
description: formatMessage(displayViewDropDownMessages.viewModeInlineLinkDescription),
|
|
107
|
+
elemBefore: InlineIcon
|
|
108
|
+
}, /*#__PURE__*/React.createElement(FormattedMessage, displayViewDropDownMessages.viewModeInlineLinkLabel)))));
|
|
109
|
+
}
|
|
70
110
|
return /*#__PURE__*/React.createElement(DropdownMenu, {
|
|
71
111
|
trigger: triggerText,
|
|
72
112
|
testId: "datasource-modal--view-drop-down"
|
|
73
113
|
}, /*#__PURE__*/React.createElement(Box, {
|
|
74
|
-
xcss:
|
|
114
|
+
xcss: styles.dropDownItemGroupStylesOld
|
|
75
115
|
}, /*#__PURE__*/React.createElement(DropdownItemGroup, null, /*#__PURE__*/React.createElement(DropdownItem, {
|
|
76
116
|
testId: "dropdown-item-table",
|
|
77
117
|
onClick: function onClick() {
|
|
78
118
|
return onViewModeChange('table');
|
|
79
119
|
},
|
|
80
120
|
isSelected: isTable,
|
|
81
|
-
description: formatMessage(
|
|
82
|
-
elemBefore:
|
|
121
|
+
description: formatMessage(displayViewDropDownMessages.viewModeListDescriptionOld),
|
|
122
|
+
elemBefore: ListIconOld
|
|
83
123
|
}, /*#__PURE__*/React.createElement(FormattedMessage, displayViewDropDownMessages.viewModeListLabel)), /*#__PURE__*/React.createElement(DropdownItem, {
|
|
84
124
|
testId: "dropdown-item-inline-link",
|
|
85
125
|
onClick: function onClick() {
|
|
86
126
|
return onViewModeChange('inline');
|
|
87
127
|
},
|
|
88
128
|
isSelected: !isTable,
|
|
89
|
-
description: formatMessage(
|
|
90
|
-
elemBefore:
|
|
129
|
+
description: formatMessage(displayViewDropDownMessages.viewModeInlineLinkDescriptionOld),
|
|
130
|
+
elemBefore: InlineIconOld
|
|
91
131
|
}, /*#__PURE__*/React.createElement(FormattedMessage, displayViewDropDownMessages.viewModeInlineLinkLabel)))));
|
|
92
132
|
};
|
|
@@ -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}
|
|
24
|
+
._bfhkfg4m{background-color:var(--ds-background-selected,#e9f2ff)}
|
|
13
25
|
._bfhkkwt5{background-color:var(--_t0vtv2)}
|
|
14
26
|
._bfhklslw{background-color:var(--_1jkcdu5)}
|
|
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
|
._syaz111d{color:var(--_uz32ib)}
|
|
34
|
+
._syazaqb7{color:var(--ds-text-selected,#0c66e4)}
|
|
21
35
|
._syaziwyp{color:var(--_k4gmmg)}
|
|
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
|
._irr3kwt5:hover{background-color:var(--_t0vtv2)}
|
|
28
44
|
._irr3u7au:hover{background-color:var(--_15egq0b)}
|
|
@@ -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
|
+
var modeSwitcherStylesOld = null;
|
|
12
14
|
var modeSwitcherStyles = null;
|
|
13
15
|
var compactModeSwitcherStyles = null;
|
|
14
16
|
var modeInputStyles = null;
|
|
17
|
+
var modeSwitcherLabelStylesOld = null;
|
|
15
18
|
var modeSwitcherLabelStyles = null;
|
|
19
|
+
var modeSwitcherLabelSelectedStylesOld = null;
|
|
16
20
|
var modeSwitcherLabelSelectedStyles = null;
|
|
17
21
|
var modeSwitcherLabelDisabledStyles = null;
|
|
18
22
|
var modeSwitcherDisabledStyles = null;
|
|
@@ -31,7 +35,7 @@ export var ModeSwitcher = function ModeSwitcher(props) {
|
|
|
31
35
|
return options.length > 0 ? /*#__PURE__*/React.createElement("fieldset", {
|
|
32
36
|
"data-testid": "mode-toggle-container",
|
|
33
37
|
disabled: isDisabled,
|
|
34
|
-
className: ax(["_2rko1b66 _zulp1b66 _4cvr1h6o _bfhklslw _vchhusvi _1e0c116y _ca0q1b66 _u5f31b66 _n3td1b66 _19bv1b66 _18u0v47k _1j55105o", isCompact && "_zulpv77o _ca0q1b66 _u5f31b66 _n3td1b66 _19bv1b66"]),
|
|
38
|
+
className: ax([fg('platform-linking-visual-refresh-sllv') ? "_2rko1b66 _1h6dmuej _189ee4h9 _1dqonqa1 _4cvr1h6o _vchhusvi _1e0c116y _u5f31b66 _19bv1b66 _18u0v47k _4t3izwfg _1j55105o" : "_2rko1b66 _zulp1b66 _4cvr1h6o _bfhklslw _vchhusvi _1e0c116y _ca0q1b66 _u5f31b66 _n3td1b66 _19bv1b66 _18u0v47k _1j55105o", isCompact && "_zulpv77o _ca0q1b66 _u5f31b66 _n3td1b66 _19bv1b66"]),
|
|
35
39
|
style: {
|
|
36
40
|
"--_1jkcdu5": ix("var(--ds-background-neutral, ".concat(N20, ")"))
|
|
37
41
|
}
|
|
@@ -45,7 +49,25 @@ export var ModeSwitcher = function ModeSwitcher(props) {
|
|
|
45
49
|
key: value,
|
|
46
50
|
content: tooltipText
|
|
47
51
|
}, function (tooltipProps) {
|
|
48
|
-
return /*#__PURE__*/React.createElement("label", _extends({}, tooltipProps, {
|
|
52
|
+
return fg('platform-linking-visual-refresh-sllv') ? /*#__PURE__*/React.createElement("label", _extends({}, tooltipProps, {
|
|
53
|
+
key: value,
|
|
54
|
+
"data-testid": "mode-toggle-".concat(value),
|
|
55
|
+
className: ax(["_11c82smr _2rko1b66 _1h6d1j28 _189ee4h9 _1dqonqa1 _syaziwyp _vchhusvi _k48p1wq8 _u5f3utpp _19bvutpp _1tke1tcg _1e0c1txw _4cvr1h6o _1bah1h6o _d0altlke _irr3u7au", isCompact && "_ca0qv77o _u5f31b66 _n3tdv77o _19bv1b66", isSelected && "_2rko1b66 _1h6d1yqz _bfhkfg4m _syazaqb7 _d0altlke _irr3fg4m", isDisabled && "_irr31j28 _d0al13gf", isOptionDisabled && "_syaz111d", isOptionDisabled && "_irr31j28 _d0al13gf"]),
|
|
56
|
+
style: {
|
|
57
|
+
"--_k4gmmg": ix("var(--ds-text-subtlest, ".concat(N700, ")")),
|
|
58
|
+
"--_15egq0b": ix("var(--ds-background-neutral-subtle-hovered, ".concat(N30A, ")")),
|
|
59
|
+
"--_uz32ib": ix("var(--ds-text-disabled, ".concat(N60, ")"))
|
|
60
|
+
}
|
|
61
|
+
}), label, /*#__PURE__*/React.createElement("input", {
|
|
62
|
+
"aria-checked": isSelected,
|
|
63
|
+
"aria-disabled": isOptionDisabled,
|
|
64
|
+
checked: isSelected,
|
|
65
|
+
disabled: isOptionDisabled,
|
|
66
|
+
onChange: handleModeChange,
|
|
67
|
+
type: "radio",
|
|
68
|
+
value: value,
|
|
69
|
+
className: ax(["_1e0cglyw"])
|
|
70
|
+
})) : /*#__PURE__*/React.createElement("label", _extends({}, tooltipProps, {
|
|
49
71
|
key: value,
|
|
50
72
|
"data-testid": "mode-toggle-".concat(value),
|
|
51
73
|
className: ax(["_11c8dcr7 _2rko1b66 _syaziwyp _k48p1pd9 _1p1dangw _ca0q1b66 _u5f31b66 _n3td1b66 _19bv1b66 _d0altlke _irr3u7au", isCompact && "_ca0qv77o _u5f31b66 _n3tdv77o _19bv1b66", isSelected && "_2rko1b66 _bfhkkwt5 _16qs1jze _d0altlke _irr3kwt5", isDisabled && "_irr31j28 _d0al13gf", isOptionDisabled && "_syaz111d", isOptionDisabled && "_irr31j28 _d0al13gf"]),
|
package/dist/esm/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,20 @@
|
|
|
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 _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
4
|
+
var _excluded = ["children"];
|
|
5
|
+
import "./checkbox-option-visual-refresh-sllv.compiled.css";
|
|
6
|
+
import * as React from 'react';
|
|
7
|
+
import { ax, ix } from "@compiled/react/runtime";
|
|
8
|
+
import { CheckboxOption } from '@atlaskit/select';
|
|
9
|
+
var checkboxStyles = null;
|
|
10
|
+
var checkboxSelectedStyles = null;
|
|
11
|
+
var checkboxFocusedStyles = null;
|
|
12
|
+
export var CheckboxOptionVisualRefreshSllv = function CheckboxOptionVisualRefreshSllv(_ref) {
|
|
13
|
+
var children = _ref.children,
|
|
14
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
15
|
+
return /*#__PURE__*/React.createElement(CheckboxOption
|
|
16
|
+
// eslint-disable-next-line @atlaskit/design-system/no-unsafe-style-overrides
|
|
17
|
+
, _extends({}, props, {
|
|
18
|
+
className: ax(["_189eyh40 _1dqonqa1 _1h6d1j28 _16qsglyw _bfhk1j9a _1q511b66 _85i51b66 _bozgpxbi _y4tipxbi _irr3166n _1di61dty", props.isSelected && "_bfhkfg4m _irr3i1yw _1di619ru", props.isFocused && "_1h6d1p6i"])
|
|
19
|
+
}), children);
|
|
20
|
+
};
|
|
@@ -1,10 +1,17 @@
|
|
|
1
|
+
/* control.tsx generated by @compiled/babel-plugin v0.36.1 */
|
|
1
2
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
3
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
|
-
var _excluded = ["children"]
|
|
4
|
+
var _excluded = ["children"],
|
|
5
|
+
_excluded2 = ["children"];
|
|
6
|
+
import "./control.compiled.css";
|
|
7
|
+
import { ax, ix } from "@compiled/react/runtime";
|
|
4
8
|
import React from 'react';
|
|
9
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
10
|
+
import { Box } from '@atlaskit/primitives/compiled';
|
|
5
11
|
import { components } from '@atlaskit/select';
|
|
6
12
|
import { N40 } from '@atlaskit/theme/colors';
|
|
7
|
-
|
|
13
|
+
import { withFeatureFlaggedComponent } from '../../../../common/utils/withFeatureFlaggedComponent';
|
|
14
|
+
var popupCustomControlStylesOld = function popupCustomControlStylesOld() {
|
|
8
15
|
return {
|
|
9
16
|
display: 'flex',
|
|
10
17
|
padding: "var(--ds-space-050, 4px)",
|
|
@@ -13,12 +20,32 @@ var popupCustomControlStyles = function popupCustomControlStyles() {
|
|
|
13
20
|
minHeight: 'auto'
|
|
14
21
|
};
|
|
15
22
|
};
|
|
16
|
-
|
|
23
|
+
var popupCustomControlStyles = function popupCustomControlStyles() {
|
|
24
|
+
return {
|
|
25
|
+
display: 'flex',
|
|
26
|
+
borderRadius: '3px',
|
|
27
|
+
border: "solid 1px ".concat("var(--ds-border-input, #8C8F97)")
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
var popupCustomControlVisualRefreshStyles = {
|
|
31
|
+
container: "_ca0q1b66 _n3td1b66 _19bvh9hh _u5f3h9hh"
|
|
32
|
+
};
|
|
33
|
+
export var CustomControlOld = function CustomControlOld(_ref) {
|
|
17
34
|
var children = _ref.children,
|
|
18
35
|
innerProps = _objectWithoutProperties(_ref, _excluded);
|
|
19
36
|
return /*#__PURE__*/React.createElement(components.Control, _extends({}, innerProps, {
|
|
20
|
-
getStyles:
|
|
21
|
-
appearance: "none"
|
|
37
|
+
getStyles: popupCustomControlStylesOld
|
|
22
38
|
}), children);
|
|
23
39
|
};
|
|
24
|
-
export
|
|
40
|
+
export var CustomControl = function CustomControl(_ref2) {
|
|
41
|
+
var children = _ref2.children,
|
|
42
|
+
innerProps = _objectWithoutProperties(_ref2, _excluded2);
|
|
43
|
+
return /*#__PURE__*/React.createElement(Box, {
|
|
44
|
+
xcss: popupCustomControlVisualRefreshStyles.container
|
|
45
|
+
}, /*#__PURE__*/React.createElement(components.Control, _extends({}, innerProps, {
|
|
46
|
+
getStyles: popupCustomControlStyles
|
|
47
|
+
}), children));
|
|
48
|
+
};
|
|
49
|
+
export default withFeatureFlaggedComponent(CustomControlOld, CustomControl, function () {
|
|
50
|
+
return fg('platform-linking-visual-refresh-sllv');
|
|
51
|
+
});
|
|
@@ -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
|
var styles = {
|
|
@@ -11,6 +14,20 @@ var styles = {
|
|
|
11
14
|
};
|
|
12
15
|
var CustomDropdownIndicator = function CustomDropdownIndicator(props) {
|
|
13
16
|
var selectProps = props.selectProps;
|
|
17
|
+
var closeIcon = fg('platform-linking-visual-refresh-sllv') ? /*#__PURE__*/React.createElement(CloseIcon, {
|
|
18
|
+
label: ""
|
|
19
|
+
}) : /*#__PURE__*/React.createElement(CloseIconOld, {
|
|
20
|
+
LEGACY_size: "small",
|
|
21
|
+
label: "",
|
|
22
|
+
color: "currentColor"
|
|
23
|
+
});
|
|
24
|
+
var searchIcon = fg('platform-linking-visual-refresh-sllv') ? /*#__PURE__*/React.createElement(SearchIcon, {
|
|
25
|
+
label: ""
|
|
26
|
+
}) : /*#__PURE__*/React.createElement(SearchIconOld, {
|
|
27
|
+
LEGACY_size: "small",
|
|
28
|
+
label: "",
|
|
29
|
+
color: "currentColor"
|
|
30
|
+
});
|
|
14
31
|
return /*#__PURE__*/React.createElement(components.DropdownIndicator, props, /*#__PURE__*/React.createElement(Box, {
|
|
15
32
|
xcss: styles.customDropdownIndicatorStyles,
|
|
16
33
|
onClick: function onClick() {
|
|
@@ -21,14 +38,6 @@ var CustomDropdownIndicator = function CustomDropdownIndicator(props) {
|
|
|
21
38
|
});
|
|
22
39
|
}
|
|
23
40
|
}
|
|
24
|
-
}, selectProps.inputValue ?
|
|
25
|
-
LEGACY_size: "small",
|
|
26
|
-
label: "",
|
|
27
|
-
color: "currentColor"
|
|
28
|
-
}) : /*#__PURE__*/React.createElement(SearchIcon, {
|
|
29
|
-
LEGACY_size: "small",
|
|
30
|
-
label: "",
|
|
31
|
-
color: "currentColor"
|
|
32
|
-
})));
|
|
41
|
+
}, selectProps.inputValue ? closeIcon : searchIcon));
|
|
33
42
|
};
|
|
34
43
|
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
|
var 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
|
var PopupFooter = function PopupFooter(_ref) {
|
|
15
19
|
var currentDisplayCount = _ref.currentDisplayCount,
|
|
@@ -20,9 +24,9 @@ var PopupFooter = function PopupFooter(_ref) {
|
|
|
20
24
|
direction: "row",
|
|
21
25
|
alignItems: "center",
|
|
22
26
|
justifyContent: "end",
|
|
23
|
-
xcss: styles.footerContainerStyles
|
|
27
|
+
xcss: cx(fg('platform-linking-visual-refresh-sllv') ? styles.footerContainerStyles : styles.footerContainerStylesOld)
|
|
24
28
|
}, /*#__PURE__*/React.createElement(Inline, {
|
|
25
|
-
xcss: styles.footerPaginationInfoStyles
|
|
29
|
+
xcss: cx(fg('platform-linking-visual-refresh-sllv') ? styles.footerPaginationInfoStyles : styles.footerPaginationInfoStylesOld)
|
|
26
30
|
}, /*#__PURE__*/React.createElement(FormattedMessage, _extends({}, asyncPopupSelectMessages.paginationDetails, {
|
|
27
31
|
values: {
|
|
28
32
|
currentDisplayCount: currentDisplayCount,
|
|
@@ -1,15 +1,20 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
|
+
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
3
4
|
import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
|
|
4
5
|
import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
|
|
5
6
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
6
7
|
var _excluded = ["isOpen"];
|
|
8
|
+
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; }
|
|
9
|
+
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) { _defineProperty(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; }
|
|
7
10
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
8
11
|
import React, { useCallback, useEffect, useRef, useState } from 'react';
|
|
9
12
|
import isEqual from 'lodash/isEqual';
|
|
10
13
|
import { useIntl } from 'react-intl-next';
|
|
14
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
11
15
|
import { CheckboxOption, PopupSelect } from '@atlaskit/select';
|
|
12
16
|
import { useDatasourceAnalyticsEvents } from '../../../../analytics';
|
|
17
|
+
import { CheckboxOptionVisualRefreshSllv } from './checkbox-option-visual-refresh-sllv';
|
|
13
18
|
import CustomControl from './control';
|
|
14
19
|
import CustomDropdownIndicator from './dropdownIndicator';
|
|
15
20
|
import PopupFooter from './footer';
|
|
@@ -27,6 +32,7 @@ export var FilterPopupSelect = function FilterPopupSelect(_ref) {
|
|
|
27
32
|
totalCount = _ref$totalCount === void 0 ? 0 : _ref$totalCount,
|
|
28
33
|
status = _ref.status,
|
|
29
34
|
buttonLabel = _ref.buttonLabel,
|
|
35
|
+
searchPlaceholder = _ref.searchPlaceholder,
|
|
30
36
|
_ref$showLoading = _ref.showLoading,
|
|
31
37
|
showLoading = _ref$showLoading === void 0 ? false : _ref$showLoading,
|
|
32
38
|
_ref$isDisabled = _ref.isDisabled,
|
|
@@ -174,17 +180,33 @@ export var FilterPopupSelect = function FilterPopupSelect(_ref) {
|
|
|
174
180
|
shouldCloseMenuOnTab: false,
|
|
175
181
|
hideSelectedOptions: false,
|
|
176
182
|
isLoading: showLoading,
|
|
177
|
-
placeholder: formatMessage(asyncPopupSelectMessages.selectPlaceholder)
|
|
183
|
+
placeholder: searchPlaceholder && fg('platform-linking-visual-refresh-sllv') ? searchPlaceholder : formatMessage(asyncPopupSelectMessages.selectPlaceholder)
|
|
178
184
|
// @ts-ignore - https://product-fabric.atlassian.net/browse/DSP-21000
|
|
179
185
|
,
|
|
180
186
|
menuListProps: menuListProps,
|
|
181
187
|
components: {
|
|
182
|
-
Option: CheckboxOption,
|
|
188
|
+
Option: fg('platform-linking-visual-refresh-sllv') ? CheckboxOptionVisualRefreshSllv : CheckboxOption,
|
|
183
189
|
Control: CustomControl,
|
|
184
190
|
MenuList: CustomMenuList,
|
|
185
191
|
DropdownIndicator: CustomDropdownIndicator,
|
|
186
192
|
LoadingIndicator: undefined // disables the three ... indicator in the searchbox when picker is loading
|
|
187
|
-
}
|
|
193
|
+
}
|
|
194
|
+
// eslint-disable-next-line @atlaskit/design-system/no-unsafe-style-overrides
|
|
195
|
+
,
|
|
196
|
+
styles: fg('platform-linking-visual-refresh-sllv') ? {
|
|
197
|
+
container: function container(base) {
|
|
198
|
+
return _objectSpread(_objectSpread({}, base), {}, {
|
|
199
|
+
paddingTop: "var(--ds-space-075, 6px)",
|
|
200
|
+
paddingBottom: 0
|
|
201
|
+
});
|
|
202
|
+
},
|
|
203
|
+
menuList: function menuList(base) {
|
|
204
|
+
return _objectSpread(_objectSpread({}, base), {}, {
|
|
205
|
+
paddingTop: "var(--ds-space-050, 4px)",
|
|
206
|
+
paddingBottom: 0
|
|
207
|
+
});
|
|
208
|
+
}
|
|
209
|
+
} : undefined,
|
|
188
210
|
options: sortedOptions,
|
|
189
211
|
value: selectedOptions,
|
|
190
212
|
filterOption: noFilterOptions,
|
|
@@ -7,6 +7,7 @@ import { fg } from '@atlaskit/platform-feature-flags';
|
|
|
7
7
|
import { N500 } from '@atlaskit/theme/colors';
|
|
8
8
|
import { useDatasourceAnalyticsEvents } from '../../../../../analytics';
|
|
9
9
|
import { SpotError } from '../../../../../common/ui/spot/error-state/error';
|
|
10
|
+
import { SpotErrorOld } from '../../../../../common/ui/spot/error-state/error-old';
|
|
10
11
|
import { SEARCH_DEBOUNCE_MS } from '../constants';
|
|
11
12
|
import { asyncPopupSelectMessages } from './messages';
|
|
12
13
|
import CustomSelectMessage from './selectMessage';
|
|
@@ -51,15 +52,19 @@ var CustomErrorMessage = function CustomErrorMessage(_ref3) {
|
|
|
51
52
|
},
|
|
52
53
|
formatMessage = _ref4.formatMessage;
|
|
53
54
|
return /*#__PURE__*/React.createElement(CustomSelectMessage, {
|
|
54
|
-
icon: fg('
|
|
55
|
-
size:
|
|
55
|
+
icon: fg('platform-linking-visual-refresh-sllv') ? /*#__PURE__*/React.createElement(SpotError, {
|
|
56
|
+
size: "large",
|
|
56
57
|
alt: formatMessage(asyncPopupSelectMessages.errorMessage)
|
|
58
|
+
}) : fg('bandicoots-update-sllv-icons') ? /*#__PURE__*/React.createElement(SpotErrorOld, {
|
|
59
|
+
size: 'medium',
|
|
60
|
+
alt: formatMessage(asyncPopupSelectMessages.errorMessageOld)
|
|
57
61
|
}) : /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(ErrorIcon, {
|
|
58
62
|
primaryColor: "var(--ds-icon, ".concat(N500, ")"),
|
|
59
63
|
label: "",
|
|
60
64
|
size: "xlarge"
|
|
61
65
|
})),
|
|
62
|
-
message: asyncPopupSelectMessages.errorMessage,
|
|
66
|
+
message: fg('platform-linking-visual-refresh-sllv') ? asyncPopupSelectMessages.errorMessage : asyncPopupSelectMessages.errorMessageOld,
|
|
67
|
+
description: fg('platform-linking-visual-refresh-sllv') ? asyncPopupSelectMessages.errorDescription : undefined,
|
|
63
68
|
testId: "".concat(filterName, "--error-message")
|
|
64
69
|
});
|
|
65
70
|
};
|
|
@@ -1,3 +1,6 @@
|
|
|
1
1
|
._19bv12x7{padding-left:var(--ds-space-075,6px)}
|
|
2
|
+
._19bvpxbi{padding-left:var(--ds-space-200,1pc)}
|
|
2
3
|
._ca0q12x7{padding-top:var(--ds-space-075,6px)}
|
|
3
|
-
._ca0qu2gc{padding-top:var(--ds-space-100,8px)}
|
|
4
|
+
._ca0qu2gc{padding-top:var(--ds-space-100,8px)}
|
|
5
|
+
._n3tdu2gc{padding-bottom:var(--ds-space-100,8px)}
|
|
6
|
+
._u5f3u2gc{padding-right:var(--ds-space-100,8px)}
|
|
@@ -4,6 +4,8 @@ var _excluded = ["children"];
|
|
|
4
4
|
import "./index.compiled.css";
|
|
5
5
|
import { ax, ix } from "@compiled/react/runtime";
|
|
6
6
|
import React from 'react';
|
|
7
|
+
import { cx } from '@compiled/react';
|
|
8
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
7
9
|
import { Box, Flex } from '@atlaskit/primitives/compiled';
|
|
8
10
|
import { components } from '@atlaskit/select';
|
|
9
11
|
import Spinner from '@atlaskit/spinner';
|
|
@@ -13,7 +15,8 @@ import CustomNoOptionsMessage from './noOptionsMessage';
|
|
|
13
15
|
import ShowMoreButton from './showMoreButton';
|
|
14
16
|
var styles = {
|
|
15
17
|
inlineSpinnerStyles: "_ca0q12x7",
|
|
16
|
-
|
|
18
|
+
showMoreButtonBoxStylesOld: "_19bv12x7 _ca0qu2gc",
|
|
19
|
+
showMoreButtonBoxStyles: "_ca0qu2gc _u5f3u2gc _n3tdu2gc _19bvpxbi"
|
|
17
20
|
};
|
|
18
21
|
var CustomMenuList = function CustomMenuList(_ref) {
|
|
19
22
|
var children = _ref.children,
|
|
@@ -57,7 +60,7 @@ var CustomMenuList = function CustomMenuList(_ref) {
|
|
|
57
60
|
});
|
|
58
61
|
}
|
|
59
62
|
return /*#__PURE__*/React.createElement(React.Fragment, null, children, shouldDisplayShowMore && handleShowMore && /*#__PURE__*/React.createElement(Box, {
|
|
60
|
-
xcss: styles.showMoreButtonBoxStyles
|
|
63
|
+
xcss: cx(fg('platform-linking-visual-refresh-sllv') ? styles.showMoreButtonBoxStyles : styles.showMoreButtonBoxStylesOld)
|
|
61
64
|
}, /*#__PURE__*/React.createElement(ShowMoreButton, {
|
|
62
65
|
onShowMore: handleShowMore,
|
|
63
66
|
filterName: filterName
|
|
@@ -7,14 +7,34 @@ export var asyncPopupSelectMessages = defineMessages({
|
|
|
7
7
|
},
|
|
8
8
|
noOptionsMessage: {
|
|
9
9
|
id: 'linkDataSource.basic-filter.no-options-message',
|
|
10
|
+
defaultMessage: "We couldn't find anything matching your search",
|
|
11
|
+
description: 'The text for when no matches are found in dropdown'
|
|
12
|
+
},
|
|
13
|
+
noOptionsMessageOld: {
|
|
14
|
+
id: 'linkDataSource.basic-filter.no-options-message-old',
|
|
10
15
|
defaultMessage: 'No matches found',
|
|
11
16
|
description: 'The text for when no matches are found in dropdown'
|
|
12
17
|
},
|
|
18
|
+
noOptionsDescription: {
|
|
19
|
+
id: 'linkDataSource.basic-filter.no-options-description',
|
|
20
|
+
defaultMessage: 'Try again with a different term.',
|
|
21
|
+
description: 'The helper text for when no matches are found in dropdown'
|
|
22
|
+
},
|
|
13
23
|
errorMessage: {
|
|
14
|
-
id: 'linkDataSource.basic-filter.
|
|
24
|
+
id: 'linkDataSource.basic-filter.errorMessage',
|
|
25
|
+
defaultMessage: 'We ran into an issue trying to load results',
|
|
26
|
+
description: 'The text for when an error occurs when loading options'
|
|
27
|
+
},
|
|
28
|
+
errorMessageOld: {
|
|
29
|
+
id: 'linkDataSource.basic-filter.errorMessageOld',
|
|
15
30
|
defaultMessage: 'Something went wrong',
|
|
16
31
|
description: 'The text for when an error occurs when loading options'
|
|
17
32
|
},
|
|
33
|
+
errorDescription: {
|
|
34
|
+
id: 'linkDataSource.basic-filter.error-description',
|
|
35
|
+
defaultMessage: 'Check your connection and refresh',
|
|
36
|
+
description: 'The helper text for when no matches are found in dropdown'
|
|
37
|
+
},
|
|
18
38
|
showMoreMessage: {
|
|
19
39
|
id: 'linkDataSource.basic-filter.showMoreButton',
|
|
20
40
|
defaultMessage: 'Show more',
|
|
@@ -40,14 +40,15 @@ var CustomNoOptionsMessage = function CustomNoOptionsMessage(_ref) {
|
|
|
40
40
|
formatMessage = _ref2.formatMessage;
|
|
41
41
|
return /*#__PURE__*/React.createElement(CustomSelectMessage, {
|
|
42
42
|
icon: fg('bandicoots-update-sllv-icons') ? /*#__PURE__*/React.createElement(SpotSearchNoResult, {
|
|
43
|
-
size: 'medium',
|
|
44
|
-
alt: formatMessage(asyncPopupSelectMessages.noOptionsMessage)
|
|
43
|
+
size: fg('platform-linking-visual-refresh-sllv') ? 'large' : 'medium',
|
|
44
|
+
alt: formatMessage(fg('platform-linking-visual-refresh-sllv') ? asyncPopupSelectMessages.noOptionsMessage : asyncPopupSelectMessages.noOptionsMessageOld)
|
|
45
45
|
}) : /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(QuestionCircleIcon, {
|
|
46
46
|
primaryColor: "var(--ds-icon, ".concat(N500, ")"),
|
|
47
47
|
size: "xlarge",
|
|
48
48
|
label: ""
|
|
49
49
|
})),
|
|
50
|
-
message: asyncPopupSelectMessages.noOptionsMessage,
|
|
50
|
+
message: fg('platform-linking-visual-refresh-sllv') ? asyncPopupSelectMessages.noOptionsMessage : asyncPopupSelectMessages.noOptionsMessageOld,
|
|
51
|
+
description: fg('platform-linking-visual-refresh-sllv') ? asyncPopupSelectMessages.noOptionsDescription : undefined,
|
|
51
52
|
testId: "".concat(filterName, "--no-options-message")
|
|
52
53
|
});
|
|
53
54
|
};
|
|
@@ -1,6 +1,13 @@
|
|
|
1
|
+
|
|
2
|
+
._zulppxbi{gap:var(--ds-space-200,1pc)}._19bvoahv{padding-left:var(--ds-space-600,3pc)}
|
|
1
3
|
._19bvutpp{padding-left:var(--ds-space-150,9pt)}
|
|
4
|
+
._4t3i16xz{height:6pc}
|
|
2
5
|
._4t3ivbgk{height:4pc}
|
|
6
|
+
._ca0q1jfw{padding-top:var(--ds-space-500,40px)}
|
|
3
7
|
._ca0qu2gc{padding-top:var(--ds-space-100,8px)}
|
|
8
|
+
._n3td1jfw{padding-bottom:var(--ds-space-500,40px)}
|
|
4
9
|
._n3tdu2gc{padding-bottom:var(--ds-space-100,8px)}
|
|
5
10
|
._otyrpxbi{margin-bottom:var(--ds-space-200,1pc)}
|
|
6
|
-
.
|
|
11
|
+
._u5f3oahv{padding-right:var(--ds-space-600,3pc)}
|
|
12
|
+
._u5f3utpp{padding-right:var(--ds-space-150,9pt)}
|
|
13
|
+
._y3gn1h6o{text-align:center}
|
|
@@ -4,21 +4,40 @@ import { ax, ix } from "@compiled/react/runtime";
|
|
|
4
4
|
import React from 'react';
|
|
5
5
|
import { FormattedMessage } from 'react-intl-next';
|
|
6
6
|
import Heading from '@atlaskit/heading';
|
|
7
|
-
import {
|
|
7
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
8
|
+
import { Flex, Stack, Text } from '@atlaskit/primitives/compiled';
|
|
8
9
|
var styles = {
|
|
9
|
-
|
|
10
|
-
|
|
10
|
+
boxStylesOld: "_4t3ivbgk _otyrpxbi",
|
|
11
|
+
boxStyles: "_4t3i16xz",
|
|
12
|
+
stackStylesOld: "_ca0qu2gc _n3tdu2gc _19bvutpp _u5f3utpp",
|
|
13
|
+
stackStyles: "_zulppxbi _ca0q1jfw _n3td1jfw _19bvoahv _u5f3oahv _y3gn1h6o"
|
|
11
14
|
};
|
|
12
15
|
var CustomSelectMessage = function CustomSelectMessage(_ref) {
|
|
13
16
|
var icon = _ref.icon,
|
|
14
17
|
message = _ref.message,
|
|
18
|
+
description = _ref.description,
|
|
15
19
|
testId = _ref.testId;
|
|
20
|
+
if (fg('platform-linking-visual-refresh-sllv')) {
|
|
21
|
+
return /*#__PURE__*/React.createElement(Stack, {
|
|
22
|
+
xcss: styles.stackStyles,
|
|
23
|
+
testId: testId,
|
|
24
|
+
alignInline: "center"
|
|
25
|
+
}, /*#__PURE__*/React.createElement(Flex, {
|
|
26
|
+
xcss: styles.boxStyles,
|
|
27
|
+
alignItems: "center",
|
|
28
|
+
justifyContent: "center"
|
|
29
|
+
}, icon), /*#__PURE__*/React.createElement(Heading, {
|
|
30
|
+
size: "small"
|
|
31
|
+
}, /*#__PURE__*/React.createElement(FormattedMessage, message)), description && /*#__PURE__*/React.createElement(Text, {
|
|
32
|
+
size: "medium"
|
|
33
|
+
}, /*#__PURE__*/React.createElement(FormattedMessage, description)));
|
|
34
|
+
}
|
|
16
35
|
return /*#__PURE__*/React.createElement(Stack, {
|
|
17
|
-
xcss: styles.
|
|
36
|
+
xcss: styles.stackStylesOld,
|
|
18
37
|
testId: testId,
|
|
19
38
|
alignInline: "center"
|
|
20
39
|
}, /*#__PURE__*/React.createElement(Flex, {
|
|
21
|
-
xcss: styles.
|
|
40
|
+
xcss: styles.boxStylesOld,
|
|
22
41
|
alignItems: "center",
|
|
23
42
|
justifyContent: "center"
|
|
24
43
|
}, icon), /*#__PURE__*/React.createElement(Heading, {
|