@atlaskit/link-datasource 4.5.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 +21 -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/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/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/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/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/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/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/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/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/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/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/jira-issues-modal/basic-filters/ui/async-popup-select/messages.d.ts +25 -0
- package/package.json +5 -5
|
@@ -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 var SpotErrorOld = function 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 var withFeatureFlaggedComponent = function withFeatureFlaggedComponent(ComponentOld, ComponentNext, featureFlagFn) {
|
|
11
|
+
return function (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
|
+
};
|
|
@@ -17,7 +17,7 @@ import debounce from 'debounce-promise';
|
|
|
17
17
|
import { useIntl } from 'react-intl-next';
|
|
18
18
|
import Button from '@atlaskit/button/new';
|
|
19
19
|
import { Field } from '@atlaskit/form';
|
|
20
|
-
import ChevronDownIcon from '@atlaskit/icon/utility/
|
|
20
|
+
import ChevronDownIcon from '@atlaskit/icon/utility/chevron-down';
|
|
21
21
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
22
22
|
import { AsyncSelect, PopupSelect } from '@atlaskit/select';
|
|
23
23
|
import { layers } from '@atlaskit/theme/constants';
|
|
@@ -132,7 +132,12 @@ export var AssetsObjectSchemaSelect = function AssetsObjectSchemaSelect(_ref2) {
|
|
|
132
132
|
triggerProps = _objectWithoutProperties(_ref5, _excluded3);
|
|
133
133
|
return /*#__PURE__*/React.createElement(Button, _extends({}, triggerProps, {
|
|
134
134
|
isSelected: isOpen,
|
|
135
|
-
iconAfter:
|
|
135
|
+
iconAfter: function iconAfter() {
|
|
136
|
+
return /*#__PURE__*/React.createElement(ChevronDownIcon, {
|
|
137
|
+
label: "",
|
|
138
|
+
color: "currentColor"
|
|
139
|
+
});
|
|
140
|
+
}
|
|
136
141
|
}), ((_restFieldProps$value = restFieldProps.value) === null || _restFieldProps$value === void 0 ? void 0 : _restFieldProps$value.label) || formatMessage(objectSchemaSelectMessages.placeholder));
|
|
137
142
|
}
|
|
138
143
|
})) : /*#__PURE__*/React.createElement(AsyncSelect, _extends({
|
|
@@ -11,6 +11,7 @@ import { useDatasourceAnalyticsEvents } from '../../../../analytics';
|
|
|
11
11
|
import { basicSearchInputMessages } from './messages';
|
|
12
12
|
var searchButtonStyles = null;
|
|
13
13
|
var formStyles = null;
|
|
14
|
+
var formWithMaxWidthStylesOld = null;
|
|
14
15
|
var formWithMaxWidthStyles = null;
|
|
15
16
|
export var BasicSearchInput = function BasicSearchInput(_ref) {
|
|
16
17
|
var isDisabled = _ref.isDisabled,
|
|
@@ -20,7 +21,8 @@ export var BasicSearchInput = function BasicSearchInput(_ref) {
|
|
|
20
21
|
searchTerm = _ref.searchTerm,
|
|
21
22
|
fullWidth = _ref.fullWidth,
|
|
22
23
|
testId = _ref.testId,
|
|
23
|
-
placeholder = _ref.placeholder
|
|
24
|
+
placeholder = _ref.placeholder,
|
|
25
|
+
ariaLabel = _ref.ariaLabel;
|
|
24
26
|
var _useIntl = useIntl(),
|
|
25
27
|
formatMessage = _useIntl.formatMessage;
|
|
26
28
|
var _useDatasourceAnalyti = useDatasourceAnalyticsEvents(),
|
|
@@ -35,7 +37,7 @@ export var BasicSearchInput = function BasicSearchInput(_ref) {
|
|
|
35
37
|
};
|
|
36
38
|
return /*#__PURE__*/React.createElement("form", {
|
|
37
39
|
onSubmit: handleFormSubmit,
|
|
38
|
-
className: ax([fullWidth ? "_16jlkb7n _1o9zkb7n _i0dlf1ug" : "_16jlkb7n _1o9zkb7n _i0dlf1ug _p12fr0r7"])
|
|
40
|
+
className: ax([fullWidth ? "_16jlkb7n _1o9zkb7n _i0dlf1ug" : fg('platform-linking-visual-refresh-sllv') ? "_16jlkb7n _1o9zkb7n _i0dlf1ug _p12f1mjv" : "_16jlkb7n _1o9zkb7n _i0dlf1ug _p12fr0r7"])
|
|
39
41
|
}, /*#__PURE__*/React.createElement(Textfield, {
|
|
40
42
|
elemAfterInput: /*#__PURE__*/React.createElement(LoadingButton, {
|
|
41
43
|
appearance: "primary",
|
|
@@ -54,9 +56,9 @@ export var BasicSearchInput = function BasicSearchInput(_ref) {
|
|
|
54
56
|
}),
|
|
55
57
|
autoFocus: true,
|
|
56
58
|
onChange: onChange,
|
|
57
|
-
placeholder: formatMessage(placeholder),
|
|
59
|
+
placeholder: fg('platform-linking-visual-refresh-sllv') ? undefined : formatMessage(placeholder),
|
|
58
60
|
testId: "".concat(testId, "--basic-search-input"),
|
|
59
61
|
value: searchTerm,
|
|
60
|
-
"aria-label": formatMessage(placeholder)
|
|
62
|
+
"aria-label": formatMessage(fg('platform-linking-visual-refresh-sllv') ? ariaLabel : placeholder)
|
|
61
63
|
}));
|
|
62
64
|
};
|
|
@@ -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)}
|