@atlaskit/link-picker 1.1.2 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +18 -0
- package/dist/cjs/index.js +2 -2
- package/dist/cjs/ui/error-boundary-fallback/generic-error-svg/index.js +67 -0
- package/dist/cjs/ui/error-boundary-fallback/generic-error-svg/styled.js +20 -0
- package/dist/cjs/ui/error-boundary-fallback/index.js +50 -0
- package/dist/cjs/ui/index.js +38 -0
- package/dist/cjs/ui/{announcer.js → link-picker/announcer.js} +0 -0
- package/dist/cjs/{browser.js → ui/link-picker/browser.js} +0 -0
- package/dist/cjs/ui/{link-picker.js → link-picker/index.js} +10 -13
- package/dist/cjs/ui/{link-search-list → link-picker/link-search-list}/index.js +0 -0
- package/dist/cjs/ui/{link-search-list → link-picker/link-search-list}/styled.js +0 -0
- package/dist/cjs/ui/{link-search-no-results → link-picker/link-search-no-results}/index.js +4 -4
- package/dist/cjs/ui/link-picker/link-search-no-results/no-results-svg/index.js +69 -0
- package/dist/cjs/ui/link-picker/link-search-no-results/no-results-svg/styled.js +20 -0
- package/dist/cjs/ui/{list-item → link-picker/list-item}/index.js +1 -1
- package/dist/cjs/ui/{list-item → link-picker/list-item}/styled.js +0 -0
- package/dist/cjs/{messages.js → ui/link-picker/messages.js} +5 -0
- package/dist/cjs/ui/link-picker/styled.js +31 -0
- package/dist/cjs/ui/{text-input → link-picker/text-input}/index.js +1 -1
- package/dist/cjs/ui/{text-input → link-picker/text-input}/styled.js +0 -0
- package/dist/cjs/{transformTimeStamp.js → ui/link-picker/transformTimeStamp.js} +0 -0
- package/dist/cjs/{url.js → ui/link-picker/url.js} +0 -0
- package/dist/cjs/{utils.js → ui/link-picker/utils.js} +0 -0
- package/dist/cjs/{types.js → ui/types.js} +0 -0
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/index.js +1 -1
- package/dist/es2019/ui/error-boundary-fallback/generic-error-svg/index.js +56 -0
- package/dist/es2019/ui/error-boundary-fallback/generic-error-svg/styled.js +8 -0
- package/dist/es2019/ui/error-boundary-fallback/index.js +31 -0
- package/dist/es2019/ui/index.js +17 -0
- package/dist/es2019/ui/{announcer.js → link-picker/announcer.js} +0 -0
- package/dist/es2019/{browser.js → ui/link-picker/browser.js} +0 -0
- package/dist/es2019/ui/{link-picker.js → link-picker/index.js} +11 -15
- package/dist/es2019/ui/{link-search-list → link-picker/link-search-list}/index.js +0 -0
- package/dist/es2019/ui/{link-search-list → link-picker/link-search-list}/styled.js +0 -0
- package/dist/es2019/ui/{link-search-no-results → link-picker/link-search-no-results}/index.js +2 -4
- package/dist/es2019/ui/link-picker/link-search-no-results/no-results-svg/index.js +60 -0
- package/dist/es2019/ui/link-picker/link-search-no-results/no-results-svg/styled.js +8 -0
- package/dist/es2019/ui/{list-item → link-picker/list-item}/index.js +1 -1
- package/dist/es2019/ui/{list-item → link-picker/list-item}/styled.js +0 -0
- package/dist/es2019/{messages.js → ui/link-picker/messages.js} +5 -0
- package/dist/es2019/ui/{styled.js → link-picker/styled.js} +4 -6
- package/dist/es2019/ui/{text-input → link-picker/text-input}/index.js +1 -1
- package/dist/es2019/ui/{text-input → link-picker/text-input}/styled.js +0 -0
- package/dist/es2019/{transformTimeStamp.js → ui/link-picker/transformTimeStamp.js} +0 -0
- package/dist/es2019/{url.js → ui/link-picker/url.js} +0 -0
- package/dist/es2019/{utils.js → ui/link-picker/utils.js} +0 -0
- package/dist/es2019/{types.js → ui/types.js} +0 -0
- package/dist/es2019/version.json +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/ui/error-boundary-fallback/generic-error-svg/index.js +56 -0
- package/dist/esm/ui/error-boundary-fallback/generic-error-svg/styled.js +8 -0
- package/dist/esm/ui/error-boundary-fallback/index.js +33 -0
- package/dist/esm/ui/index.js +19 -0
- package/dist/esm/ui/{announcer.js → link-picker/announcer.js} +0 -0
- package/dist/esm/{browser.js → ui/link-picker/browser.js} +0 -0
- package/dist/esm/ui/{link-picker.js → link-picker/index.js} +11 -15
- package/dist/esm/ui/{link-search-list → link-picker/link-search-list}/index.js +0 -0
- package/dist/esm/ui/{link-search-list → link-picker/link-search-list}/styled.js +0 -0
- package/dist/esm/ui/{link-search-no-results → link-picker/link-search-no-results}/index.js +4 -4
- package/dist/esm/ui/link-picker/link-search-no-results/no-results-svg/index.js +60 -0
- package/dist/esm/ui/link-picker/link-search-no-results/no-results-svg/styled.js +8 -0
- package/dist/esm/ui/{list-item → link-picker/list-item}/index.js +1 -1
- package/dist/esm/ui/{list-item → link-picker/list-item}/styled.js +0 -0
- package/dist/esm/{messages.js → ui/link-picker/messages.js} +5 -0
- package/dist/esm/ui/link-picker/styled.js +16 -0
- package/dist/esm/ui/{text-input → link-picker/text-input}/index.js +1 -1
- package/dist/esm/ui/{text-input → link-picker/text-input}/styled.js +0 -0
- package/dist/esm/{transformTimeStamp.js → ui/link-picker/transformTimeStamp.js} +0 -0
- package/dist/esm/{url.js → ui/link-picker/url.js} +0 -0
- package/dist/esm/{utils.js → ui/link-picker/utils.js} +0 -0
- package/dist/esm/{types.js → ui/types.js} +0 -0
- package/dist/esm/version.json +1 -1
- package/dist/types/index.d.ts +2 -2
- package/dist/types/ui/error-boundary-fallback/generic-error-svg/index.d.ts +4 -0
- package/dist/types/ui/error-boundary-fallback/generic-error-svg/styled.d.ts +1 -0
- package/dist/types/ui/error-boundary-fallback/index.d.ts +3 -0
- package/dist/types/ui/index.d.ts +3 -0
- package/dist/types/ui/{announcer.d.ts → link-picker/announcer.d.ts} +0 -0
- package/dist/types/{browser.d.ts → ui/link-picker/browser.d.ts} +0 -0
- package/dist/types/ui/{link-picker.d.ts → link-picker/index.d.ts} +4 -4
- package/dist/types/ui/{link-search-list → link-picker/link-search-list}/index.d.ts +0 -0
- package/dist/types/ui/{link-search-list → link-picker/link-search-list}/styled.d.ts +0 -0
- package/dist/types/ui/{link-search-no-results → link-picker/link-search-no-results}/index.d.ts +0 -0
- package/dist/types/ui/link-picker/link-search-no-results/no-results-svg/index.d.ts +4 -0
- package/dist/types/ui/link-picker/link-search-no-results/no-results-svg/styled.d.ts +1 -0
- package/dist/types/ui/{list-item → link-picker/list-item}/index.d.ts +0 -0
- package/dist/types/ui/{list-item → link-picker/list-item}/styled.d.ts +0 -0
- package/dist/types/{messages.d.ts → ui/link-picker/messages.d.ts} +5 -0
- package/dist/types/ui/{styled.d.ts → link-picker/styled.d.ts} +1 -2
- package/dist/types/ui/{text-input → link-picker/text-input}/index.d.ts +0 -0
- package/dist/types/ui/{text-input → link-picker/text-input}/styled.d.ts +0 -0
- package/dist/types/{transformTimeStamp.d.ts → ui/link-picker/transformTimeStamp.d.ts} +1 -1
- package/dist/types/{url.d.ts → ui/link-picker/url.d.ts} +0 -0
- package/dist/types/{utils.d.ts → ui/link-picker/utils.d.ts} +0 -0
- package/dist/types/{types.d.ts → ui/types.d.ts} +0 -0
- package/package.json +3 -2
- package/report.api.md +56 -21
- package/dist/cjs/ui/link-search-no-results/no-results.svg +0 -38
- package/dist/cjs/ui/styled.js +0 -32
- package/dist/es2019/ui/link-search-no-results/no-results.svg +0 -38
- package/dist/esm/ui/link-search-no-results/no-results.svg +0 -38
- package/dist/esm/ui/styled.js +0 -16
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
2
|
|
|
3
3
|
/** @jsx jsx */
|
|
4
|
-
import
|
|
4
|
+
import { PureComponent } from 'react';
|
|
5
5
|
import { jsx } from '@emotion/react';
|
|
6
6
|
import { injectIntl } from 'react-intl-next';
|
|
7
|
-
import { messages } from '
|
|
7
|
+
import { messages } from './messages';
|
|
8
8
|
import PanelTextInput from './text-input';
|
|
9
9
|
import LinkSearchList from './link-search-list';
|
|
10
|
-
import { normalizeUrl, isSafeUrl } from '
|
|
11
|
-
import {
|
|
12
|
-
import { browser } from '
|
|
13
|
-
import { transformTimeStamp } from '
|
|
14
|
-
import Announcer from '
|
|
10
|
+
import { normalizeUrl, isSafeUrl } from './url';
|
|
11
|
+
import { rootContainerStyles, searchIconStyles, listTitleStyles } from './styled';
|
|
12
|
+
import { browser } from './browser';
|
|
13
|
+
import { transformTimeStamp } from './transformTimeStamp';
|
|
14
|
+
import Announcer from './/announcer';
|
|
15
15
|
import Button, { ButtonGroup } from '@atlaskit/button';
|
|
16
16
|
import { FormFooter } from '@atlaskit/form';
|
|
17
17
|
import EditorSearchIcon from '@atlaskit/icon/glyph/editor/search';
|
|
@@ -23,8 +23,6 @@ class LinkPicker extends PureComponent {
|
|
|
23
23
|
constructor(props) {
|
|
24
24
|
super(props);
|
|
25
25
|
|
|
26
|
-
_defineProperty(this, "wrapperRef", /*#__PURE__*/React.createRef());
|
|
27
|
-
|
|
28
26
|
_defineProperty(this, "queryVersion", 0);
|
|
29
27
|
|
|
30
28
|
_defineProperty(this, "updateInput", async input => {
|
|
@@ -265,6 +263,7 @@ class LinkPicker extends PureComponent {
|
|
|
265
263
|
selectedIndex: -1,
|
|
266
264
|
activeIndex: -1,
|
|
267
265
|
isLoading: false,
|
|
266
|
+
isEditing: !!props.url,
|
|
268
267
|
url: normalizeUrl(props.url) || '',
|
|
269
268
|
displayText: props.displayText || '',
|
|
270
269
|
items: [],
|
|
@@ -358,6 +357,7 @@ class LinkPicker extends PureComponent {
|
|
|
358
357
|
const {
|
|
359
358
|
items,
|
|
360
359
|
isLoading,
|
|
360
|
+
isEditing,
|
|
361
361
|
activeIndex,
|
|
362
362
|
selectedIndex,
|
|
363
363
|
url,
|
|
@@ -390,11 +390,7 @@ class LinkPicker extends PureComponent {
|
|
|
390
390
|
const noResults = activePlugin && !isLoading && !items.length && !isSafeUrl(url);
|
|
391
391
|
return jsx("div", {
|
|
392
392
|
"data-testid": "link-picker",
|
|
393
|
-
|
|
394
|
-
css: recentListStyles
|
|
395
|
-
}, jsx("div", {
|
|
396
|
-
css: containerStyles,
|
|
397
|
-
ref: this.wrapperRef
|
|
393
|
+
css: rootContainerStyles
|
|
398
394
|
}, screenReaderText && jsx(Announcer, {
|
|
399
395
|
ariaLive: "assertive",
|
|
400
396
|
text: screenReaderText,
|
|
@@ -474,7 +470,7 @@ class LinkPicker extends PureComponent {
|
|
|
474
470
|
appearance: "primary",
|
|
475
471
|
onClick: this.handleSubmit,
|
|
476
472
|
testId: "link-picker-insert-button"
|
|
477
|
-
}, formatMessage(messages.insertButton)))))
|
|
473
|
+
}, formatMessage(isEditing ? messages.saveButton : messages.insertButton)))));
|
|
478
474
|
}
|
|
479
475
|
|
|
480
476
|
}
|
|
File without changes
|
|
File without changes
|
package/dist/es2019/ui/{link-search-no-results → link-picker/link-search-no-results}/index.js
RENAMED
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import EmptyState from '@atlaskit/empty-state';
|
|
4
|
-
import
|
|
4
|
+
import NoResultsSVG from './no-results-svg';
|
|
5
5
|
|
|
6
6
|
const NoResults = props => /*#__PURE__*/React.createElement(EmptyState, _extends({}, props, {
|
|
7
|
-
|
|
8
|
-
maxImageWidth: 130,
|
|
9
|
-
maxImageHeight: 130
|
|
7
|
+
renderImage: () => /*#__PURE__*/React.createElement(NoResultsSVG, null)
|
|
10
8
|
}));
|
|
11
9
|
|
|
12
10
|
export default NoResults;
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
/* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
|
|
2
|
+
|
|
3
|
+
/** @jsx jsx */
|
|
4
|
+
import { jsx } from '@emotion/react';
|
|
5
|
+
import { noResultsSVGStyles } from './styled';
|
|
6
|
+
|
|
7
|
+
const NoResultsSVG = () => {
|
|
8
|
+
const id = 'link-picker-ui-no-results-svg';
|
|
9
|
+
return jsx("svg", {
|
|
10
|
+
css: noResultsSVGStyles,
|
|
11
|
+
height: "120",
|
|
12
|
+
viewBox: "0 0 208 191",
|
|
13
|
+
fill: "none",
|
|
14
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
15
|
+
}, jsx("g", {
|
|
16
|
+
clipPath: `url(#${id}-a)`
|
|
17
|
+
}, jsx("path", {
|
|
18
|
+
opacity: ".3",
|
|
19
|
+
d: "M105.28 190.44c-.93.03-1.86.05-2.79.06-1.3.01-2.36-1.04-2.36-2.34-.01-1.27 1-2.32 2.27-2.36h.07c5.93-.03 11.95-.67 17.74-1.9a2.352 2.352 0 0 1 .98 4.6 94.236 94.236 0 0 1-15.91 1.94ZM89.77 189.649c-.13 0-.27 0-.41-.02a91.17 91.17 0 0 1-18.27-4.49 2.353 2.353 0 1 1 1.59-4.43 85.94 85.94 0 0 0 17.32 4.25c1.29.18 2.19 1.36 2.01 2.65-.15 1.16-1.12 2-2.24 2.04ZM133.08 184.98c-.99.03-1.93-.56-2.29-1.54-.45-1.22.17-2.57 1.39-3.02a87.114 87.114 0 0 0 16.01-7.87 2.35 2.35 0 1 1 2.5 3.98c-5.32 3.33-11 6.13-16.87 8.3-.25.1-.49.14-.74.15ZM60.25 180.089c-.4.01-.81-.07-1.18-.27a92.004 92.004 0 0 1-15.61-10.48 2.35 2.35 0 0 1-.31-3.31c.83-1 2.31-1.14 3.31-.31a87.13 87.13 0 0 0 14.81 9.94c1.15.61 1.58 2.03.97 3.18a2.31 2.31 0 0 1-1.99 1.25ZM35.79 161.01c-.67.02-1.35-.24-1.83-.77a91.583 91.583 0 0 1-11.11-15.17 2.353 2.353 0 1 1 4.06-2.38c3 5.13 6.55 9.97 10.54 14.39.87.96.8 2.45-.17 3.32-.43.39-.96.59-1.49.61ZM179.7 145.469c-.42.01-.86-.08-1.25-.31a2.346 2.346 0 0 1-.87-3.21 86.618 86.618 0 0 0 7.22-16.31c.4-1.24 1.73-1.91 2.96-1.51 1.24.4 1.91 1.73 1.51 2.96a91.279 91.279 0 0 1-7.62 17.19c-.41.74-1.16 1.16-1.95 1.19ZM19.3 134.749c-.96.03-1.88-.53-2.26-1.47a90.64 90.64 0 0 1-5.23-18.06 2.35 2.35 0 0 1 1.9-2.73c1.28-.23 2.5.62 2.73 1.9a87.04 87.04 0 0 0 4.96 17.13c.49 1.2-.09 2.58-1.3 3.06-.26.1-.53.16-.8.17ZM190.19 116.26a2.346 2.346 0 0 1-2.4-2.74c1-5.84 1.39-11.83 1.18-17.8l-.01-.2c-.05-1.3.97-2.39 2.27-2.43 1.3-.05 2.39.97 2.43 2.27l.01.2c.22 6.29-.2 12.6-1.25 18.76a2.345 2.345 0 0 1-2.23 1.94ZM12.82 104.36c-1.3.05-2.39-.92-2.43-2.22v-.1c-.22-6.26.19-12.54 1.23-18.66a2.36 2.36 0 0 1 2.71-1.93 2.36 2.36 0 0 1 1.93 2.71 87.974 87.974 0 0 0-1.17 17.7c.05 1.31-.97 2.45-2.27 2.5ZM190 85.05a2.35 2.35 0 0 1-2.39-1.93A86.803 86.803 0 0 0 182.63 66a2.36 2.36 0 0 1 1.29-3.07c1.2-.49 2.58.09 3.07 1.29 2.36 5.8 4.13 11.88 5.25 18.06.23 1.28-.61 2.5-1.89 2.74l-.35.03ZM17.07 73.668c-.27.01-.54-.03-.81-.11a2.347 2.347 0 0 1-1.51-2.96 91.288 91.288 0 0 1 7.6-17.2 2.355 2.355 0 0 1 3.21-.88c1.13.64 1.52 2.08.88 3.21a87.027 87.027 0 0 0-7.21 16.32c-.32.96-1.2 1.59-2.16 1.62ZM179.22 55.98a2.34 2.34 0 0 1-2.11-1.16 87.748 87.748 0 0 0-10.56-14.38c-.87-.96-.8-2.45.17-3.32.96-.87 2.45-.8 3.32.17 4.22 4.66 7.96 9.75 11.13 15.15.66 1.12.28 2.56-.84 3.22-.35.2-.73.3-1.11.32ZM31.61 46.26c-.53.02-1.07-.14-1.53-.5a2.354 2.354 0 0 1-.41-3.3 92.27 92.27 0 0 1 13.01-13.57 2.36 2.36 0 0 1 3.32.27c.84.99.72 2.47-.27 3.32a87.993 87.993 0 0 0-12.35 12.88c-.44.57-1.1.88-1.77.9ZM159.12 32.35c-.56.02-1.12-.16-1.58-.54-4.59-3.8-9.57-7.14-14.83-9.93a2.35 2.35 0 0 1-.98-3.18 2.359 2.359 0 0 1 3.18-.98 91.78 91.78 0 0 1 15.62 10.46c1 .83 1.14 2.31.31 3.31-.44.54-1.08.83-1.72.86ZM54.62 25.45c-.81.03-1.61-.36-2.08-1.1a2.35 2.35 0 0 1 .74-3.24 91.806 91.806 0 0 1 16.87-8.32c1.22-.45 2.57.17 3.02 1.39.45 1.22-.17 2.57-1.39 3.02a86.792 86.792 0 0 0-16 7.89c-.36.23-.76.35-1.16.36ZM132.16 16.979c-.29.01-.59-.03-.87-.14-5.6-2-11.43-3.42-17.33-4.23a2.353 2.353 0 0 1 .64-4.66c6.22.85 12.36 2.35 18.27 4.46 1.22.44 1.86 1.78 1.42 3.01-.33.93-1.2 1.53-2.13 1.56ZM83.36 13.78a2.352 2.352 0 0 1-.57-4.65 93.98 93.98 0 0 1 18.69-2.03 2.356 2.356 0 0 1 .1 4.71h-.07c-5.93.03-11.95.69-17.74 1.92-.14.03-.28.04-.41.05Z",
|
|
20
|
+
fill: "#B3BAC5"
|
|
21
|
+
}), jsx("path", {
|
|
22
|
+
opacity: ".3",
|
|
23
|
+
d: "M190.8 34.81a.522.522 0 0 1-.39-.56l.06-.45c.05-.29.11-.6.19-.92.3-1.15.85-2.18 1.64-3.09.79-.91 1.93-1.67 3.4-2.26l2.48-1.01c1.48-.59 2.39-1.57 2.75-2.92.13-.49.17-.99.12-1.51a3.44 3.44 0 0 0-.47-1.46c-.27-.45-.64-.86-1.13-1.22-.49-.36-1.09-.63-1.81-.82-.78-.2-1.47-.23-2.09-.09-.62.14-1.17.39-1.65.74s-.88.8-1.2 1.34c-.33.54-.57 1.12-.73 1.72-.05.18-.09.36-.12.52-.09.47-.56.75-1.02.61L187 22.26c-.36-.11-.61-.46-.57-.83.01-.12.03-.24.05-.36.06-.34.13-.66.21-.98.3-1.15.81-2.22 1.53-3.21.72-.99 1.61-1.8 2.67-2.43 1.06-.63 2.26-1.04 3.62-1.24 1.36-.2 2.84-.08 4.45.34 1.67.44 3.07 1.07 4.2 1.89 1.14.82 2.03 1.74 2.68 2.75.65 1.02 1.06 2.1 1.22 3.25.16 1.15.1 2.27-.19 3.36-.45 1.72-1.23 3.09-2.32 4.11-1.1 1.02-2.41 1.82-3.95 2.39l-2.09.79c-.59.19-1.47.58-2.2 1.38-.07.08-.37.41-.67.92-.22.38-.38.75-.49 1.07-.09.26-.37.4-.63.33l-3.72-.98Zm-3.06 5.87c.25-.95.79-1.67 1.63-2.17.84-.5 1.73-.63 2.68-.38.95.25 1.67.8 2.17 1.65.5.85.62 1.75.37 2.7-.25.95-.8 1.66-1.65 2.15-.85.48-1.75.6-2.69.35-.95-.25-1.67-.79-2.15-1.62-.49-.84-.61-1.73-.36-2.68ZM18.51 21.94a.518.518 0 0 1-.35-.58l.09-.45c.07-.29.15-.59.26-.9.38-1.13.99-2.12 1.85-2.97.85-.86 2.03-1.53 3.55-2.03l2.54-.84c1.51-.49 2.49-1.4 2.94-2.73.16-.48.24-.98.22-1.5-.01-.52-.14-1.02-.37-1.49-.23-.47-.58-.9-1.05-1.29-.46-.39-1.05-.7-1.75-.94-.76-.26-1.46-.33-2.08-.23-.63.1-1.19.31-1.69.63s-.93.74-1.29 1.26a6.16 6.16 0 0 0-.86 1.67c-.06.18-.11.35-.15.51-.12.46-.61.71-1.06.54l-3.74-1.42a.803.803 0 0 1-.51-.87c.02-.12.05-.24.08-.36.08-.33.17-.65.28-.96.38-1.13.96-2.16 1.75-3.1s1.73-1.69 2.82-2.25c1.1-.56 2.33-.89 3.69-.99 1.37-.1 2.84.11 4.41.64 1.63.55 2.99 1.27 4.07 2.17 1.08.9 1.91 1.87 2.49 2.93.58 1.06.92 2.16 1 3.32a8.52 8.52 0 0 1-.42 3.34c-.57 1.69-1.43 3-2.6 3.94-1.16.94-2.53 1.65-4.1 2.12l-2.14.64c-.6.15-1.51.48-2.29 1.23-.08.08-.4.39-.73.87-.25.37-.43.72-.56 1.03a.52.52 0 0 1-.65.29l-3.65-1.23Zm-3.45 5.65c.31-.93.9-1.62 1.77-2.06.87-.44 1.77-.51 2.7-.2.93.31 1.61.91 2.05 1.79.44.88.5 1.79.19 2.72-.31.93-.91 1.61-1.79 2.03-.88.42-1.78.48-2.71.17-.93-.31-1.61-.9-2.04-1.77-.42-.85-.48-1.75-.17-2.68ZM12.39 180.998c-.24.09-.52 0-.64-.23-.07-.13-.14-.27-.21-.41-.13-.27-.25-.56-.37-.86a7.553 7.553 0 0 1-.43-3.47c.13-1.2.62-2.47 1.49-3.81l1.45-2.25c.87-1.33 1.06-2.66.57-3.97a4.47 4.47 0 0 0-.77-1.31c-.34-.4-.74-.71-1.22-.93-.48-.22-1.02-.33-1.63-.35-.61-.01-1.26.11-1.95.37-.75.28-1.34.65-1.77 1.13-.43.47-.73.99-.92 1.55-.19.56-.26 1.16-.22 1.79.04.63.17 1.24.39 1.83.07.18.13.34.2.49a.8.8 0 0 1-.48 1.09l-3.8 1.24a.788.788 0 0 1-.94-.36c-.06-.11-.11-.22-.17-.33-.15-.31-.28-.62-.39-.92a9.594 9.594 0 0 1-.59-3.51c.02-1.23.28-2.4.79-3.52.5-1.12 1.25-2.15 2.25-3.09s2.28-1.7 3.84-2.27c1.62-.6 3.12-.89 4.52-.87 1.4.02 2.66.26 3.78.71 1.12.46 2.07 1.11 2.86 1.96.79.85 1.38 1.8 1.77 2.86.62 1.67.77 3.24.46 4.7s-.93 2.87-1.86 4.23l-1.26 1.85c-.37.5-.87 1.32-1.01 2.39-.01.11-.07.55-.02 1.13.04.44.12.83.22 1.15a.53.53 0 0 1-.33.64l-3.61 1.35Zm.87 6.56c-.34-.92-.31-1.82.09-2.72.4-.89 1.06-1.51 1.98-1.85.92-.34 1.83-.3 2.72.11.9.41 1.52 1.08 1.86 2 .34.92.3 1.82-.12 2.7-.42.88-1.09 1.49-2 1.83-.92.34-1.82.31-2.7-.09-.88-.4-1.49-1.06-1.83-1.98Z",
|
|
24
|
+
fill: "#C1C7D0"
|
|
25
|
+
}), jsx("path", {
|
|
26
|
+
d: "m149.36 134.209-7.15-6.93-9.63 9.95 7.15 6.93c1.83 1.77 3.11 4.02 3.71 6.49.6 2.47 1.89 4.72 3.71 6.49l29.03 28.1c4.4 4.26 11.41 4.14 15.67-.25 4.26-4.4 4.14-11.41-.25-15.67l-29.03-28.1a13.457 13.457 0 0 0-6.61-3.5 13.65 13.65 0 0 1-6.6-3.51Z",
|
|
27
|
+
fill: "#CFD4DB"
|
|
28
|
+
}), jsx("path", {
|
|
29
|
+
d: "M155.68 137.628c-2.37-.55-4.56-1.73-6.31-3.43l-2.18-2.11a6.92 6.92 0 0 0-9.79.16 6.92 6.92 0 0 0 .16 9.79l2.18 2.11c1.75 1.7 3 3.84 3.63 6.19 2.35-1.78 4.57-3.75 6.66-5.91 2.07-2.13 3.95-4.41 5.65-6.8Z",
|
|
30
|
+
fill: "#B3BAC5"
|
|
31
|
+
}), jsx("path", {
|
|
32
|
+
d: "M101.95 156.619c-15.47.25-30.11-5.54-41.22-16.3-22.95-22.21-23.54-58.95-1.33-81.9 10.76-11.11 25.21-17.37 40.67-17.63 15.47-.25 30.11 5.54 41.22 16.3 11.12 10.76 17.37 25.21 17.63 40.67.25 15.47-5.54 30.11-16.3 41.22-10.75 11.13-25.2 17.39-40.67 17.64Zm-1.65-102c-11.78.19-22.77 4.96-30.97 13.42-16.91 17.47-16.46 45.44 1.01 62.35 8.46 8.19 19.61 12.6 31.39 12.41 11.78-.19 22.77-4.96 30.97-13.42 8.19-8.46 12.6-19.61 12.41-31.39-.19-11.78-4.96-22.77-13.42-30.97-8.47-8.18-19.61-12.59-31.39-12.4Z",
|
|
33
|
+
fill: `url(#${id}-b)`
|
|
34
|
+
}), jsx("path", {
|
|
35
|
+
d: "m118.92 85.84-5.34-5.25c-.79-.77-2.05-.76-2.83.03l-9.79 9.97-9.97-9.79c-.79-.77-2.05-.76-2.83.03l-5.25 5.34c-.77.79-.76 2.05.03 2.83l9.97 9.79-9.79 9.97c-.77.79-.76 2.05.03 2.83l5.34 5.25c.79.77 2.05.76 2.83-.03l9.79-9.97 9.97 9.79c.79.77 2.05.76 2.83-.03l5.25-5.34c.77-.79.76-2.05-.03-2.83l-9.97-9.79 9.79-9.97c.77-.79.76-2.06-.03-2.83Z",
|
|
36
|
+
fill: "#C1C7D0"
|
|
37
|
+
})), jsx("defs", null, jsx("linearGradient", {
|
|
38
|
+
id: `${id}-b`,
|
|
39
|
+
x1: "60.062",
|
|
40
|
+
y1: "139.664",
|
|
41
|
+
x2: "141.969",
|
|
42
|
+
y2: "57.757",
|
|
43
|
+
gradientUnits: "userSpaceOnUse"
|
|
44
|
+
}, jsx("stop", {
|
|
45
|
+
offset: ".557",
|
|
46
|
+
stopColor: "#C1C7D0"
|
|
47
|
+
}), jsx("stop", {
|
|
48
|
+
offset: ".966",
|
|
49
|
+
stopColor: "#E9EBEF",
|
|
50
|
+
stopOpacity: ".5"
|
|
51
|
+
})), jsx("clipPath", {
|
|
52
|
+
id: `${id}-a`
|
|
53
|
+
}, jsx("path", {
|
|
54
|
+
fill: "#fff",
|
|
55
|
+
transform: "translate(0 .62)",
|
|
56
|
+
d: "M0 0h207.16v189.87H0z"
|
|
57
|
+
}))));
|
|
58
|
+
};
|
|
59
|
+
|
|
60
|
+
export default NoResultsSVG;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { Fragment } from 'react';
|
|
3
3
|
import { jsx } from '@emotion/react';
|
|
4
4
|
import { injectIntl } from 'react-intl-next';
|
|
5
|
-
import { transformTimeStamp } from '
|
|
5
|
+
import { transformTimeStamp } from '../transformTimeStamp';
|
|
6
6
|
import { itemNameStyles, itemIconStyles, listItemContextStyles, listItemNameStyles, composeListItemStyles, imgStyles } from './styled';
|
|
7
7
|
|
|
8
8
|
const LinkSearchListItem = ({
|
|
File without changes
|
|
@@ -99,5 +99,10 @@ export const messages = defineMessages({
|
|
|
99
99
|
id: 'fabric.linkPicker.search.noResults.description',
|
|
100
100
|
defaultMessage: 'Try again with a different term.',
|
|
101
101
|
description: 'Describes possible action when a search returns no results'
|
|
102
|
+
},
|
|
103
|
+
saveButton: {
|
|
104
|
+
id: 'fabric.linkPicker.button.save',
|
|
105
|
+
defaultMessage: 'Save',
|
|
106
|
+
description: 'Button to save edited link'
|
|
102
107
|
}
|
|
103
108
|
});
|
|
@@ -6,15 +6,13 @@ import { N500 } from '@atlaskit/theme/colors'; // AFP-2532 TODO: Fix automatic s
|
|
|
6
6
|
import { typography } from '@atlaskit/theme';
|
|
7
7
|
import { gridSize } from '@atlaskit/theme/constants';
|
|
8
8
|
const LINK_PICKER_WIDTH_IN_PX = 342;
|
|
9
|
-
|
|
9
|
+
const LINK_PICKER_MIN_HEIGHT_IN_PX = 234;
|
|
10
|
+
export const rootContainerStyles = css`
|
|
10
11
|
width: ${LINK_PICKER_WIDTH_IN_PX}px;
|
|
11
|
-
`;
|
|
12
|
-
export const containerStyles = css`
|
|
13
12
|
padding: ${gridSize() * 2}px;
|
|
14
|
-
width: 100%;
|
|
15
|
-
overflow: hidden;
|
|
16
|
-
line-height: initial;
|
|
17
13
|
box-sizing: border-box;
|
|
14
|
+
line-height: initial;
|
|
15
|
+
min-height: ${LINK_PICKER_MIN_HEIGHT_IN_PX}px;
|
|
18
16
|
`;
|
|
19
17
|
export const searchIconStyles = css`
|
|
20
18
|
margin-left: ${gridSize() / 2}px;
|
|
@@ -7,7 +7,7 @@ import { ErrorMessage, Field } from '@atlaskit/form';
|
|
|
7
7
|
import Tooltip from '@atlaskit/tooltip';
|
|
8
8
|
import Textfield from '@atlaskit/textfield';
|
|
9
9
|
import Selectclear from '@atlaskit/icon/glyph/select-clear';
|
|
10
|
-
import { isRedoEvent, isUndoEvent } from '
|
|
10
|
+
import { isRedoEvent, isUndoEvent } from '../utils';
|
|
11
11
|
import { clearTextButtonStyles, fieldStyles } from './styled';
|
|
12
12
|
|
|
13
13
|
const PanelTextInput = props => {
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/dist/es2019/version.json
CHANGED
package/dist/esm/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { ComposedLinkPicker as LinkPicker } from './ui';
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
+
|
|
3
|
+
/* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
|
|
4
|
+
|
|
5
|
+
/** @jsx jsx */
|
|
6
|
+
import { jsx } from '@emotion/react';
|
|
7
|
+
import { genericErrorStyles } from './styled';
|
|
8
|
+
|
|
9
|
+
var GenericErrorSVG = function GenericErrorSVG(props) {
|
|
10
|
+
var id = 'link-picker-ui-generic-error-svg';
|
|
11
|
+
return jsx("svg", _extends({
|
|
12
|
+
height: "90",
|
|
13
|
+
viewBox: "0 0 164 212",
|
|
14
|
+
fill: "none",
|
|
15
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
16
|
+
css: genericErrorStyles
|
|
17
|
+
}, props), jsx("path", {
|
|
18
|
+
d: "m95.43 74.16 66.44 115.08c5.84 10.12-1.46 22.76-13.14 22.76H15.85c-11.68 0-18.98-12.65-13.14-22.76L69.15 74.16c5.84-10.12 20.44-10.12 26.28 0Zm-7.56 83.55 2.88-44.35c.34-5.29-3.86-9.78-9.16-9.78-5.31 0-9.51 4.48-9.16 9.78l2.88 44.35a6.3 6.3 0 0 0 6.28 5.89c3.31 0 6.06-2.58 6.28-5.89Zm-15.84 23.54c0 5.66 4.76 10.1 10.39 9.58 4.85-.45 8.73-4.5 8.83-9.37.11-5.45-4.31-9.94-9.73-9.94-5.23-.01-9.49 4.37-9.49 9.73Z",
|
|
19
|
+
fill: "url(#".concat(id, ")")
|
|
20
|
+
}), jsx("path", {
|
|
21
|
+
opacity: ".6",
|
|
22
|
+
d: "M93.35 27.17 85.94.45c-.17-.62-1.07-.58-1.19.05l-4.66 25.1-5.8-1.08a.612.612 0 0 0-.7.76L81 52c.17.62 1.07.58 1.19-.05l4.66-25.1 5.8 1.08c.45.08.82-.33.7-.76ZM66.77 41.81 55.9 33.26c-.22-.18-.53.07-.41.33l5.53 11.43-2.66 1.29c-.18.09-.2.33-.05.45l10.87 8.55c.22.18.53-.07.41-.33l-5.53-11.43 2.66-1.29c.17-.08.2-.33.05-.45Z",
|
|
23
|
+
fill: "#C1C7D0"
|
|
24
|
+
}), jsx("path", {
|
|
25
|
+
opacity: ".6",
|
|
26
|
+
d: "M102.78 56.75a.993.993 0 0 1-.92-1.38c-.24-.77-2.29-2.85-3.54-4.11-2.97-3.01-4.93-5-3.84-6.49 1.09-1.48 3.58-.22 7.35 1.7 1.32.67 3.35 1.7 4.45 2.03-.64-.95-2.24-2.58-3.28-3.63-2.97-3.01-4.93-5-3.84-6.49 1.08-1.48 3.58-.22 7.34 1.7 1.32.67 3.34 1.7 4.45 2.03-.64-.95-2.24-2.57-3.28-3.62-2.97-3.01-4.93-5-3.84-6.49 1.08-1.48 3.57-.22 7.34 1.7 1.58.8 4.18 2.13 4.98 2.13a1.005 1.005 0 0 1 1.46 1.36c-1.09 1.48-3.57.22-7.34-1.7-1.32-.67-3.34-1.7-4.44-2.03.64.95 2.24 2.57 3.28 3.62 2.97 3.01 4.93 5 3.84 6.49-1.08 1.48-3.57.22-7.34-1.7-1.32-.67-3.35-1.7-4.45-2.03.64.95 2.24 2.57 3.28 3.63 2.97 3.01 4.93 5 3.84 6.49-1.09 1.48-3.58.22-7.35-1.7-1.32-.67-3.35-1.71-4.45-2.03.64.95 2.24 2.58 3.28 3.63 2.97 3.01 4.93 5 3.84 6.49-.21.26-.51.4-.82.4Zm5.56 14.32c-.35 0-.69-.19-.88-.52-1.04-1.88-2.22-4.02-.91-5.21 1.31-1.2 3.34.18 5.49 1.63.87.59 2.26 1.53 2.93 1.71-.12-.68-.93-2.15-1.45-3.07-1.26-2.27-2.45-4.41-1.14-5.61 1.31-1.2 3.34.18 5.49 1.63.96.65 2.54 1.72 3.1 1.74a1 1 0 0 1 1.27 1.54c-1.31 1.2-3.34-.17-5.49-1.63-.87-.59-2.26-1.53-2.93-1.71.12.68.93 2.15 1.45 3.07 1.26 2.27 2.45 4.41 1.14 5.61-1.31 1.2-3.34-.18-5.49-1.63-.87-.59-2.26-1.53-2.93-1.71.12.68.93 2.14 1.22 2.67.27.48.09 1.09-.39 1.36-.15.09-.32.13-.48.13Zm-54.32-2.89c-.22 0-.44-.04-.67-.14-1.64-.69-1.24-3.11-.81-5.67.17-1.04.45-2.7.33-3.38-.57.39-1.56 1.75-2.18 2.6-1.53 2.09-2.99 4.07-4.62 3.38a.991.991 0 0 1-.53-1.31c.2-.48.73-.72 1.21-.57.52-.21 1.65-1.75 2.34-2.68 1.53-2.09 2.98-4.08 4.62-3.38 1.64.69 1.24 3.11.81 5.67-.17 1.04-.45 2.7-.33 3.38.57-.39 1.56-1.75 2.18-2.6 1.53-2.09 2.98-4.08 4.62-3.38 1.63.69 1.24 3.09.89 5.21-.09.54-.6.91-1.15.83-.54-.09-.92-.6-.83-1.15.1-.59.37-2.24.26-2.92-.57.39-1.56 1.75-2.18 2.6-1.33 1.79-2.59 3.51-3.96 3.51Z",
|
|
27
|
+
fill: "#B3BAC5"
|
|
28
|
+
}), jsx("defs", null, jsx("linearGradient", {
|
|
29
|
+
id: id,
|
|
30
|
+
x1: "26.169",
|
|
31
|
+
y1: "228.621",
|
|
32
|
+
x2: "138.408",
|
|
33
|
+
y2: "116.382",
|
|
34
|
+
gradientUnits: "userSpaceOnUse"
|
|
35
|
+
}, jsx("stop", {
|
|
36
|
+
stopColor: "#C1C7D0"
|
|
37
|
+
}), jsx("stop", {
|
|
38
|
+
offset: ".297",
|
|
39
|
+
stopColor: "#C6CBD4",
|
|
40
|
+
stopOpacity: ".881"
|
|
41
|
+
}), jsx("stop", {
|
|
42
|
+
offset: ".63",
|
|
43
|
+
stopColor: "#D3D7DE",
|
|
44
|
+
stopOpacity: ".748"
|
|
45
|
+
}), jsx("stop", {
|
|
46
|
+
offset: ".98",
|
|
47
|
+
stopColor: "#E9EBEF",
|
|
48
|
+
stopOpacity: ".608"
|
|
49
|
+
}), jsx("stop", {
|
|
50
|
+
offset: "1",
|
|
51
|
+
stopColor: "#EBECF0",
|
|
52
|
+
stopOpacity: ".6"
|
|
53
|
+
}))));
|
|
54
|
+
};
|
|
55
|
+
|
|
56
|
+
export default GenericErrorSVG;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
|
2
|
+
|
|
3
|
+
var _templateObject;
|
|
4
|
+
|
|
5
|
+
import { gridSize as getGridSize } from '@atlaskit/theme/constants';
|
|
6
|
+
import { css } from '@emotion/react';
|
|
7
|
+
var HEIGHT = 90;
|
|
8
|
+
export var genericErrorStyles = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n height: ", "px;\n margin: 0 auto ", "px;\n display: block;\n"])), HEIGHT, getGridSize() * 3);
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/** @jsx jsx */
|
|
2
|
+
import { jsx } from '@emotion/react';
|
|
3
|
+
import EmptyState from '@atlaskit/empty-state';
|
|
4
|
+
import { defineMessages, useIntl } from 'react-intl-next';
|
|
5
|
+
import GenericErrorSVG from './generic-error-svg';
|
|
6
|
+
import { rootContainerStyles } from '../link-picker/styled';
|
|
7
|
+
var messages = defineMessages({
|
|
8
|
+
heading: {
|
|
9
|
+
defaultMessage: 'Something went wrong!',
|
|
10
|
+
description: 'Heading displayed when an unhandled error occurs.',
|
|
11
|
+
id: 'fabric.linkPicker.unhandledError.heading'
|
|
12
|
+
},
|
|
13
|
+
description: {
|
|
14
|
+
defaultMessage: 'Try reloading the page.',
|
|
15
|
+
description: 'Body message shown underneath the heading when an unhandled error occurs.',
|
|
16
|
+
id: 'fabric.linkPicker.unhandledError.description'
|
|
17
|
+
}
|
|
18
|
+
});
|
|
19
|
+
export var ErrorBoundaryFallback = function ErrorBoundaryFallback() {
|
|
20
|
+
var intl = useIntl();
|
|
21
|
+
var header = intl.formatMessage(messages.heading);
|
|
22
|
+
var description = intl.formatMessage(messages.description);
|
|
23
|
+
return jsx("div", {
|
|
24
|
+
css: rootContainerStyles,
|
|
25
|
+
"data-testid": "link-picker-root-error-boundary-ui"
|
|
26
|
+
}, jsx(EmptyState, {
|
|
27
|
+
header: header,
|
|
28
|
+
renderImage: function renderImage() {
|
|
29
|
+
return jsx(GenericErrorSVG, null);
|
|
30
|
+
},
|
|
31
|
+
description: description
|
|
32
|
+
}));
|
|
33
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React, { memo } from 'react';
|
|
2
|
+
import { AnalyticsErrorBoundary } from '@atlaskit/analytics-next';
|
|
3
|
+
import { name as packageName, version as packageVersion } from '../version.json';
|
|
4
|
+
import { ErrorBoundaryFallback } from './error-boundary-fallback';
|
|
5
|
+
import { LinkPickerWithIntl } from './link-picker';
|
|
6
|
+
var COMPONENT_NAME = 'LinkPicker';
|
|
7
|
+
var ANALYTICS_CHANNEL = 'media';
|
|
8
|
+
var PACKAGE_DATA = {
|
|
9
|
+
packageName: packageName,
|
|
10
|
+
packageVersion: packageVersion,
|
|
11
|
+
componentName: COMPONENT_NAME
|
|
12
|
+
};
|
|
13
|
+
export var ComposedLinkPicker = /*#__PURE__*/memo(function (props) {
|
|
14
|
+
return /*#__PURE__*/React.createElement(AnalyticsErrorBoundary, {
|
|
15
|
+
channel: ANALYTICS_CHANNEL,
|
|
16
|
+
data: PACKAGE_DATA,
|
|
17
|
+
ErrorComponent: ErrorBoundaryFallback
|
|
18
|
+
}, /*#__PURE__*/React.createElement(LinkPickerWithIntl, props));
|
|
19
|
+
});
|
|
File without changes
|
|
File without changes
|
|
@@ -18,17 +18,17 @@ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflec
|
|
|
18
18
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
19
19
|
|
|
20
20
|
/** @jsx jsx */
|
|
21
|
-
import
|
|
21
|
+
import { PureComponent } from 'react';
|
|
22
22
|
import { jsx } from '@emotion/react';
|
|
23
23
|
import { injectIntl } from 'react-intl-next';
|
|
24
|
-
import { messages } from '
|
|
24
|
+
import { messages } from './messages';
|
|
25
25
|
import PanelTextInput from './text-input';
|
|
26
26
|
import LinkSearchList from './link-search-list';
|
|
27
|
-
import { normalizeUrl, isSafeUrl } from '
|
|
28
|
-
import {
|
|
29
|
-
import { browser } from '
|
|
30
|
-
import { transformTimeStamp } from '
|
|
31
|
-
import Announcer from '
|
|
27
|
+
import { normalizeUrl, isSafeUrl } from './url';
|
|
28
|
+
import { rootContainerStyles, searchIconStyles, listTitleStyles } from './styled';
|
|
29
|
+
import { browser } from './browser';
|
|
30
|
+
import { transformTimeStamp } from './transformTimeStamp';
|
|
31
|
+
import Announcer from './/announcer';
|
|
32
32
|
import Button, { ButtonGroup } from '@atlaskit/button';
|
|
33
33
|
import { FormFooter } from '@atlaskit/form';
|
|
34
34
|
import EditorSearchIcon from '@atlaskit/icon/glyph/editor/search';
|
|
@@ -48,8 +48,6 @@ var LinkPicker = /*#__PURE__*/function (_PureComponent) {
|
|
|
48
48
|
|
|
49
49
|
_this = _super.call(this, props);
|
|
50
50
|
|
|
51
|
-
_defineProperty(_assertThisInitialized(_this), "wrapperRef", /*#__PURE__*/React.createRef());
|
|
52
|
-
|
|
53
51
|
_defineProperty(_assertThisInitialized(_this), "queryVersion", 0);
|
|
54
52
|
|
|
55
53
|
_defineProperty(_assertThisInitialized(_this), "updateInput", /*#__PURE__*/function () {
|
|
@@ -294,6 +292,7 @@ var LinkPicker = /*#__PURE__*/function (_PureComponent) {
|
|
|
294
292
|
selectedIndex: -1,
|
|
295
293
|
activeIndex: -1,
|
|
296
294
|
isLoading: false,
|
|
295
|
+
isEditing: !!props.url,
|
|
297
296
|
url: normalizeUrl(props.url) || '',
|
|
298
297
|
displayText: props.displayText || '',
|
|
299
298
|
items: [],
|
|
@@ -451,6 +450,7 @@ var LinkPicker = /*#__PURE__*/function (_PureComponent) {
|
|
|
451
450
|
var _this$state7 = this.state,
|
|
452
451
|
items = _this$state7.items,
|
|
453
452
|
isLoading = _this$state7.isLoading,
|
|
453
|
+
isEditing = _this$state7.isEditing,
|
|
454
454
|
activeIndex = _this$state7.activeIndex,
|
|
455
455
|
selectedIndex = _this$state7.selectedIndex,
|
|
456
456
|
url = _this$state7.url,
|
|
@@ -478,11 +478,7 @@ var LinkPicker = /*#__PURE__*/function (_PureComponent) {
|
|
|
478
478
|
var noResults = activePlugin && !isLoading && !items.length && !isSafeUrl(url);
|
|
479
479
|
return jsx("div", {
|
|
480
480
|
"data-testid": "link-picker",
|
|
481
|
-
|
|
482
|
-
css: recentListStyles
|
|
483
|
-
}, jsx("div", {
|
|
484
|
-
css: containerStyles,
|
|
485
|
-
ref: this.wrapperRef
|
|
481
|
+
css: rootContainerStyles
|
|
486
482
|
}, screenReaderText && jsx(Announcer, {
|
|
487
483
|
ariaLive: "assertive",
|
|
488
484
|
text: screenReaderText,
|
|
@@ -562,7 +558,7 @@ var LinkPicker = /*#__PURE__*/function (_PureComponent) {
|
|
|
562
558
|
appearance: "primary",
|
|
563
559
|
onClick: this.handleSubmit,
|
|
564
560
|
testId: "link-picker-insert-button"
|
|
565
|
-
}, formatMessage(messages.insertButton)))))
|
|
561
|
+
}, formatMessage(isEditing ? messages.saveButton : messages.insertButton)))));
|
|
566
562
|
}
|
|
567
563
|
}]);
|
|
568
564
|
|
|
File without changes
|
|
File without changes
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import EmptyState from '@atlaskit/empty-state';
|
|
4
|
-
import
|
|
4
|
+
import NoResultsSVG from './no-results-svg';
|
|
5
5
|
|
|
6
6
|
var NoResults = function NoResults(props) {
|
|
7
7
|
return /*#__PURE__*/React.createElement(EmptyState, _extends({}, props, {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
renderImage: function renderImage() {
|
|
9
|
+
return /*#__PURE__*/React.createElement(NoResultsSVG, null);
|
|
10
|
+
}
|
|
11
11
|
}));
|
|
12
12
|
};
|
|
13
13
|
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
/* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
|
|
2
|
+
|
|
3
|
+
/** @jsx jsx */
|
|
4
|
+
import { jsx } from '@emotion/react';
|
|
5
|
+
import { noResultsSVGStyles } from './styled';
|
|
6
|
+
|
|
7
|
+
var NoResultsSVG = function NoResultsSVG() {
|
|
8
|
+
var id = 'link-picker-ui-no-results-svg';
|
|
9
|
+
return jsx("svg", {
|
|
10
|
+
css: noResultsSVGStyles,
|
|
11
|
+
height: "120",
|
|
12
|
+
viewBox: "0 0 208 191",
|
|
13
|
+
fill: "none",
|
|
14
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
15
|
+
}, jsx("g", {
|
|
16
|
+
clipPath: "url(#".concat(id, "-a)")
|
|
17
|
+
}, jsx("path", {
|
|
18
|
+
opacity: ".3",
|
|
19
|
+
d: "M105.28 190.44c-.93.03-1.86.05-2.79.06-1.3.01-2.36-1.04-2.36-2.34-.01-1.27 1-2.32 2.27-2.36h.07c5.93-.03 11.95-.67 17.74-1.9a2.352 2.352 0 0 1 .98 4.6 94.236 94.236 0 0 1-15.91 1.94ZM89.77 189.649c-.13 0-.27 0-.41-.02a91.17 91.17 0 0 1-18.27-4.49 2.353 2.353 0 1 1 1.59-4.43 85.94 85.94 0 0 0 17.32 4.25c1.29.18 2.19 1.36 2.01 2.65-.15 1.16-1.12 2-2.24 2.04ZM133.08 184.98c-.99.03-1.93-.56-2.29-1.54-.45-1.22.17-2.57 1.39-3.02a87.114 87.114 0 0 0 16.01-7.87 2.35 2.35 0 1 1 2.5 3.98c-5.32 3.33-11 6.13-16.87 8.3-.25.1-.49.14-.74.15ZM60.25 180.089c-.4.01-.81-.07-1.18-.27a92.004 92.004 0 0 1-15.61-10.48 2.35 2.35 0 0 1-.31-3.31c.83-1 2.31-1.14 3.31-.31a87.13 87.13 0 0 0 14.81 9.94c1.15.61 1.58 2.03.97 3.18a2.31 2.31 0 0 1-1.99 1.25ZM35.79 161.01c-.67.02-1.35-.24-1.83-.77a91.583 91.583 0 0 1-11.11-15.17 2.353 2.353 0 1 1 4.06-2.38c3 5.13 6.55 9.97 10.54 14.39.87.96.8 2.45-.17 3.32-.43.39-.96.59-1.49.61ZM179.7 145.469c-.42.01-.86-.08-1.25-.31a2.346 2.346 0 0 1-.87-3.21 86.618 86.618 0 0 0 7.22-16.31c.4-1.24 1.73-1.91 2.96-1.51 1.24.4 1.91 1.73 1.51 2.96a91.279 91.279 0 0 1-7.62 17.19c-.41.74-1.16 1.16-1.95 1.19ZM19.3 134.749c-.96.03-1.88-.53-2.26-1.47a90.64 90.64 0 0 1-5.23-18.06 2.35 2.35 0 0 1 1.9-2.73c1.28-.23 2.5.62 2.73 1.9a87.04 87.04 0 0 0 4.96 17.13c.49 1.2-.09 2.58-1.3 3.06-.26.1-.53.16-.8.17ZM190.19 116.26a2.346 2.346 0 0 1-2.4-2.74c1-5.84 1.39-11.83 1.18-17.8l-.01-.2c-.05-1.3.97-2.39 2.27-2.43 1.3-.05 2.39.97 2.43 2.27l.01.2c.22 6.29-.2 12.6-1.25 18.76a2.345 2.345 0 0 1-2.23 1.94ZM12.82 104.36c-1.3.05-2.39-.92-2.43-2.22v-.1c-.22-6.26.19-12.54 1.23-18.66a2.36 2.36 0 0 1 2.71-1.93 2.36 2.36 0 0 1 1.93 2.71 87.974 87.974 0 0 0-1.17 17.7c.05 1.31-.97 2.45-2.27 2.5ZM190 85.05a2.35 2.35 0 0 1-2.39-1.93A86.803 86.803 0 0 0 182.63 66a2.36 2.36 0 0 1 1.29-3.07c1.2-.49 2.58.09 3.07 1.29 2.36 5.8 4.13 11.88 5.25 18.06.23 1.28-.61 2.5-1.89 2.74l-.35.03ZM17.07 73.668c-.27.01-.54-.03-.81-.11a2.347 2.347 0 0 1-1.51-2.96 91.288 91.288 0 0 1 7.6-17.2 2.355 2.355 0 0 1 3.21-.88c1.13.64 1.52 2.08.88 3.21a87.027 87.027 0 0 0-7.21 16.32c-.32.96-1.2 1.59-2.16 1.62ZM179.22 55.98a2.34 2.34 0 0 1-2.11-1.16 87.748 87.748 0 0 0-10.56-14.38c-.87-.96-.8-2.45.17-3.32.96-.87 2.45-.8 3.32.17 4.22 4.66 7.96 9.75 11.13 15.15.66 1.12.28 2.56-.84 3.22-.35.2-.73.3-1.11.32ZM31.61 46.26c-.53.02-1.07-.14-1.53-.5a2.354 2.354 0 0 1-.41-3.3 92.27 92.27 0 0 1 13.01-13.57 2.36 2.36 0 0 1 3.32.27c.84.99.72 2.47-.27 3.32a87.993 87.993 0 0 0-12.35 12.88c-.44.57-1.1.88-1.77.9ZM159.12 32.35c-.56.02-1.12-.16-1.58-.54-4.59-3.8-9.57-7.14-14.83-9.93a2.35 2.35 0 0 1-.98-3.18 2.359 2.359 0 0 1 3.18-.98 91.78 91.78 0 0 1 15.62 10.46c1 .83 1.14 2.31.31 3.31-.44.54-1.08.83-1.72.86ZM54.62 25.45c-.81.03-1.61-.36-2.08-1.1a2.35 2.35 0 0 1 .74-3.24 91.806 91.806 0 0 1 16.87-8.32c1.22-.45 2.57.17 3.02 1.39.45 1.22-.17 2.57-1.39 3.02a86.792 86.792 0 0 0-16 7.89c-.36.23-.76.35-1.16.36ZM132.16 16.979c-.29.01-.59-.03-.87-.14-5.6-2-11.43-3.42-17.33-4.23a2.353 2.353 0 0 1 .64-4.66c6.22.85 12.36 2.35 18.27 4.46 1.22.44 1.86 1.78 1.42 3.01-.33.93-1.2 1.53-2.13 1.56ZM83.36 13.78a2.352 2.352 0 0 1-.57-4.65 93.98 93.98 0 0 1 18.69-2.03 2.356 2.356 0 0 1 .1 4.71h-.07c-5.93.03-11.95.69-17.74 1.92-.14.03-.28.04-.41.05Z",
|
|
20
|
+
fill: "#B3BAC5"
|
|
21
|
+
}), jsx("path", {
|
|
22
|
+
opacity: ".3",
|
|
23
|
+
d: "M190.8 34.81a.522.522 0 0 1-.39-.56l.06-.45c.05-.29.11-.6.19-.92.3-1.15.85-2.18 1.64-3.09.79-.91 1.93-1.67 3.4-2.26l2.48-1.01c1.48-.59 2.39-1.57 2.75-2.92.13-.49.17-.99.12-1.51a3.44 3.44 0 0 0-.47-1.46c-.27-.45-.64-.86-1.13-1.22-.49-.36-1.09-.63-1.81-.82-.78-.2-1.47-.23-2.09-.09-.62.14-1.17.39-1.65.74s-.88.8-1.2 1.34c-.33.54-.57 1.12-.73 1.72-.05.18-.09.36-.12.52-.09.47-.56.75-1.02.61L187 22.26c-.36-.11-.61-.46-.57-.83.01-.12.03-.24.05-.36.06-.34.13-.66.21-.98.3-1.15.81-2.22 1.53-3.21.72-.99 1.61-1.8 2.67-2.43 1.06-.63 2.26-1.04 3.62-1.24 1.36-.2 2.84-.08 4.45.34 1.67.44 3.07 1.07 4.2 1.89 1.14.82 2.03 1.74 2.68 2.75.65 1.02 1.06 2.1 1.22 3.25.16 1.15.1 2.27-.19 3.36-.45 1.72-1.23 3.09-2.32 4.11-1.1 1.02-2.41 1.82-3.95 2.39l-2.09.79c-.59.19-1.47.58-2.2 1.38-.07.08-.37.41-.67.92-.22.38-.38.75-.49 1.07-.09.26-.37.4-.63.33l-3.72-.98Zm-3.06 5.87c.25-.95.79-1.67 1.63-2.17.84-.5 1.73-.63 2.68-.38.95.25 1.67.8 2.17 1.65.5.85.62 1.75.37 2.7-.25.95-.8 1.66-1.65 2.15-.85.48-1.75.6-2.69.35-.95-.25-1.67-.79-2.15-1.62-.49-.84-.61-1.73-.36-2.68ZM18.51 21.94a.518.518 0 0 1-.35-.58l.09-.45c.07-.29.15-.59.26-.9.38-1.13.99-2.12 1.85-2.97.85-.86 2.03-1.53 3.55-2.03l2.54-.84c1.51-.49 2.49-1.4 2.94-2.73.16-.48.24-.98.22-1.5-.01-.52-.14-1.02-.37-1.49-.23-.47-.58-.9-1.05-1.29-.46-.39-1.05-.7-1.75-.94-.76-.26-1.46-.33-2.08-.23-.63.1-1.19.31-1.69.63s-.93.74-1.29 1.26a6.16 6.16 0 0 0-.86 1.67c-.06.18-.11.35-.15.51-.12.46-.61.71-1.06.54l-3.74-1.42a.803.803 0 0 1-.51-.87c.02-.12.05-.24.08-.36.08-.33.17-.65.28-.96.38-1.13.96-2.16 1.75-3.1s1.73-1.69 2.82-2.25c1.1-.56 2.33-.89 3.69-.99 1.37-.1 2.84.11 4.41.64 1.63.55 2.99 1.27 4.07 2.17 1.08.9 1.91 1.87 2.49 2.93.58 1.06.92 2.16 1 3.32a8.52 8.52 0 0 1-.42 3.34c-.57 1.69-1.43 3-2.6 3.94-1.16.94-2.53 1.65-4.1 2.12l-2.14.64c-.6.15-1.51.48-2.29 1.23-.08.08-.4.39-.73.87-.25.37-.43.72-.56 1.03a.52.52 0 0 1-.65.29l-3.65-1.23Zm-3.45 5.65c.31-.93.9-1.62 1.77-2.06.87-.44 1.77-.51 2.7-.2.93.31 1.61.91 2.05 1.79.44.88.5 1.79.19 2.72-.31.93-.91 1.61-1.79 2.03-.88.42-1.78.48-2.71.17-.93-.31-1.61-.9-2.04-1.77-.42-.85-.48-1.75-.17-2.68ZM12.39 180.998c-.24.09-.52 0-.64-.23-.07-.13-.14-.27-.21-.41-.13-.27-.25-.56-.37-.86a7.553 7.553 0 0 1-.43-3.47c.13-1.2.62-2.47 1.49-3.81l1.45-2.25c.87-1.33 1.06-2.66.57-3.97a4.47 4.47 0 0 0-.77-1.31c-.34-.4-.74-.71-1.22-.93-.48-.22-1.02-.33-1.63-.35-.61-.01-1.26.11-1.95.37-.75.28-1.34.65-1.77 1.13-.43.47-.73.99-.92 1.55-.19.56-.26 1.16-.22 1.79.04.63.17 1.24.39 1.83.07.18.13.34.2.49a.8.8 0 0 1-.48 1.09l-3.8 1.24a.788.788 0 0 1-.94-.36c-.06-.11-.11-.22-.17-.33-.15-.31-.28-.62-.39-.92a9.594 9.594 0 0 1-.59-3.51c.02-1.23.28-2.4.79-3.52.5-1.12 1.25-2.15 2.25-3.09s2.28-1.7 3.84-2.27c1.62-.6 3.12-.89 4.52-.87 1.4.02 2.66.26 3.78.71 1.12.46 2.07 1.11 2.86 1.96.79.85 1.38 1.8 1.77 2.86.62 1.67.77 3.24.46 4.7s-.93 2.87-1.86 4.23l-1.26 1.85c-.37.5-.87 1.32-1.01 2.39-.01.11-.07.55-.02 1.13.04.44.12.83.22 1.15a.53.53 0 0 1-.33.64l-3.61 1.35Zm.87 6.56c-.34-.92-.31-1.82.09-2.72.4-.89 1.06-1.51 1.98-1.85.92-.34 1.83-.3 2.72.11.9.41 1.52 1.08 1.86 2 .34.92.3 1.82-.12 2.7-.42.88-1.09 1.49-2 1.83-.92.34-1.82.31-2.7-.09-.88-.4-1.49-1.06-1.83-1.98Z",
|
|
24
|
+
fill: "#C1C7D0"
|
|
25
|
+
}), jsx("path", {
|
|
26
|
+
d: "m149.36 134.209-7.15-6.93-9.63 9.95 7.15 6.93c1.83 1.77 3.11 4.02 3.71 6.49.6 2.47 1.89 4.72 3.71 6.49l29.03 28.1c4.4 4.26 11.41 4.14 15.67-.25 4.26-4.4 4.14-11.41-.25-15.67l-29.03-28.1a13.457 13.457 0 0 0-6.61-3.5 13.65 13.65 0 0 1-6.6-3.51Z",
|
|
27
|
+
fill: "#CFD4DB"
|
|
28
|
+
}), jsx("path", {
|
|
29
|
+
d: "M155.68 137.628c-2.37-.55-4.56-1.73-6.31-3.43l-2.18-2.11a6.92 6.92 0 0 0-9.79.16 6.92 6.92 0 0 0 .16 9.79l2.18 2.11c1.75 1.7 3 3.84 3.63 6.19 2.35-1.78 4.57-3.75 6.66-5.91 2.07-2.13 3.95-4.41 5.65-6.8Z",
|
|
30
|
+
fill: "#B3BAC5"
|
|
31
|
+
}), jsx("path", {
|
|
32
|
+
d: "M101.95 156.619c-15.47.25-30.11-5.54-41.22-16.3-22.95-22.21-23.54-58.95-1.33-81.9 10.76-11.11 25.21-17.37 40.67-17.63 15.47-.25 30.11 5.54 41.22 16.3 11.12 10.76 17.37 25.21 17.63 40.67.25 15.47-5.54 30.11-16.3 41.22-10.75 11.13-25.2 17.39-40.67 17.64Zm-1.65-102c-11.78.19-22.77 4.96-30.97 13.42-16.91 17.47-16.46 45.44 1.01 62.35 8.46 8.19 19.61 12.6 31.39 12.41 11.78-.19 22.77-4.96 30.97-13.42 8.19-8.46 12.6-19.61 12.41-31.39-.19-11.78-4.96-22.77-13.42-30.97-8.47-8.18-19.61-12.59-31.39-12.4Z",
|
|
33
|
+
fill: "url(#".concat(id, "-b)")
|
|
34
|
+
}), jsx("path", {
|
|
35
|
+
d: "m118.92 85.84-5.34-5.25c-.79-.77-2.05-.76-2.83.03l-9.79 9.97-9.97-9.79c-.79-.77-2.05-.76-2.83.03l-5.25 5.34c-.77.79-.76 2.05.03 2.83l9.97 9.79-9.79 9.97c-.77.79-.76 2.05.03 2.83l5.34 5.25c.79.77 2.05.76 2.83-.03l9.79-9.97 9.97 9.79c.79.77 2.05.76 2.83-.03l5.25-5.34c.77-.79.76-2.05-.03-2.83l-9.97-9.79 9.79-9.97c.77-.79.76-2.06-.03-2.83Z",
|
|
36
|
+
fill: "#C1C7D0"
|
|
37
|
+
})), jsx("defs", null, jsx("linearGradient", {
|
|
38
|
+
id: "".concat(id, "-b"),
|
|
39
|
+
x1: "60.062",
|
|
40
|
+
y1: "139.664",
|
|
41
|
+
x2: "141.969",
|
|
42
|
+
y2: "57.757",
|
|
43
|
+
gradientUnits: "userSpaceOnUse"
|
|
44
|
+
}, jsx("stop", {
|
|
45
|
+
offset: ".557",
|
|
46
|
+
stopColor: "#C1C7D0"
|
|
47
|
+
}), jsx("stop", {
|
|
48
|
+
offset: ".966",
|
|
49
|
+
stopColor: "#E9EBEF",
|
|
50
|
+
stopOpacity: ".5"
|
|
51
|
+
})), jsx("clipPath", {
|
|
52
|
+
id: "".concat(id, "-a")
|
|
53
|
+
}, jsx("path", {
|
|
54
|
+
fill: "#fff",
|
|
55
|
+
transform: "translate(0 .62)",
|
|
56
|
+
d: "M0 0h207.16v189.87H0z"
|
|
57
|
+
}))));
|
|
58
|
+
};
|
|
59
|
+
|
|
60
|
+
export default NoResultsSVG;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
|
2
|
+
|
|
3
|
+
var _templateObject;
|
|
4
|
+
|
|
5
|
+
import { gridSize as getGridSize } from '@atlaskit/theme/constants';
|
|
6
|
+
import { css } from '@emotion/react';
|
|
7
|
+
var HEIGHT = 120;
|
|
8
|
+
export var noResultsSVGStyles = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n height: ", "px;\n margin: 0 auto ", "px;\n display: block;\n"])), HEIGHT, getGridSize() * 3);
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { Fragment } from 'react';
|
|
3
3
|
import { jsx } from '@emotion/react';
|
|
4
4
|
import { injectIntl } from 'react-intl-next';
|
|
5
|
-
import { transformTimeStamp } from '
|
|
5
|
+
import { transformTimeStamp } from '../transformTimeStamp';
|
|
6
6
|
import { itemNameStyles, itemIconStyles, listItemContextStyles, listItemNameStyles, composeListItemStyles, imgStyles } from './styled';
|
|
7
7
|
|
|
8
8
|
var LinkSearchListItem = function LinkSearchListItem(_ref) {
|
|
File without changes
|
|
@@ -99,5 +99,10 @@ export var messages = defineMessages({
|
|
|
99
99
|
id: 'fabric.linkPicker.search.noResults.description',
|
|
100
100
|
defaultMessage: 'Try again with a different term.',
|
|
101
101
|
description: 'Describes possible action when a search returns no results'
|
|
102
|
+
},
|
|
103
|
+
saveButton: {
|
|
104
|
+
id: 'fabric.linkPicker.button.save',
|
|
105
|
+
defaultMessage: 'Save',
|
|
106
|
+
description: 'Button to save edited link'
|
|
102
107
|
}
|
|
103
108
|
});
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
|
2
|
+
|
|
3
|
+
var _templateObject, _templateObject2, _templateObject3;
|
|
4
|
+
|
|
5
|
+
import { token } from '@atlaskit/tokens';
|
|
6
|
+
import { css } from '@emotion/react';
|
|
7
|
+
import { N500 } from '@atlaskit/theme/colors'; // AFP-2532 TODO: Fix automatic suppressions below
|
|
8
|
+
// eslint-disable-next-line @atlassian/tangerine/import/entry-points
|
|
9
|
+
|
|
10
|
+
import { typography } from '@atlaskit/theme';
|
|
11
|
+
import { gridSize } from '@atlaskit/theme/constants';
|
|
12
|
+
var LINK_PICKER_WIDTH_IN_PX = 342;
|
|
13
|
+
var LINK_PICKER_MIN_HEIGHT_IN_PX = 234;
|
|
14
|
+
export var rootContainerStyles = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n width: ", "px;\n padding: ", "px;\n box-sizing: border-box;\n line-height: initial;\n min-height: ", "px;\n"])), LINK_PICKER_WIDTH_IN_PX, gridSize() * 2, LINK_PICKER_MIN_HEIGHT_IN_PX);
|
|
15
|
+
export var searchIconStyles = css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n margin-left: ", "px;\n color: ", ";\n cursor: default;\n"])), gridSize() / 2, token('color.icon', N500));
|
|
16
|
+
export var listTitleStyles = css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n ", "\n text-transform: uppercase;\n margin-bottom: ", "px;\n"])), typography.h100(), gridSize() / 2);
|
|
@@ -9,7 +9,7 @@ import { ErrorMessage, Field } from '@atlaskit/form';
|
|
|
9
9
|
import Tooltip from '@atlaskit/tooltip';
|
|
10
10
|
import Textfield from '@atlaskit/textfield';
|
|
11
11
|
import Selectclear from '@atlaskit/icon/glyph/select-clear';
|
|
12
|
-
import { isRedoEvent, isUndoEvent } from '
|
|
12
|
+
import { isRedoEvent, isUndoEvent } from '../utils';
|
|
13
13
|
import { clearTextButtonStyles, fieldStyles } from './styled';
|
|
14
14
|
|
|
15
15
|
var PanelTextInput = function PanelTextInput(props) {
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|