@atlaskit/link-create 3.1.1 → 4.0.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 +18 -0
- package/dist/cjs/common/constants.js +1 -1
- package/dist/cjs/common/ui/error-boundary-modal/index.js +1 -9
- package/dist/cjs/common/ui/error-boundary-ui/error-svg/index.js +1 -10
- package/dist/cjs/common/ui/icon/index.js +1 -9
- package/dist/cjs/common/ui/message/index.compiled.css +1 -1
- package/dist/cjs/common/ui/message/index.js +2 -10
- package/dist/cjs/common/ui/modal-hero/index.js +1 -9
- package/dist/cjs/controllers/create-field/main.js +1 -9
- package/dist/cjs/i18n/en.js +2 -0
- package/dist/cjs/i18n/en_GB.js +2 -0
- package/dist/cjs/i18n/en_ZZ.js +2 -0
- package/dist/cjs/ui/create-form/async-select/main.js +1 -9
- package/dist/cjs/ui/create-form/form-footer/main.js +1 -9
- package/dist/cjs/ui/create-form/form-loader/main.js +1 -9
- package/dist/cjs/ui/create-form/main.js +1 -9
- package/dist/cjs/ui/create-form/select/main.js +7 -33
- package/dist/cjs/ui/create-form/textfield/main.js +3 -10
- package/dist/cjs/ui/create-form/user-picker/main.js +1 -9
- package/dist/cjs/ui/inline-create/index.js +1 -9
- package/dist/cjs/ui/inline-create/main.js +1 -9
- package/dist/cjs/ui/modal-create/index.js +1 -9
- package/dist/cjs/ui/modal-create/main.js +1 -9
- package/dist/es2019/common/constants.js +1 -1
- package/dist/es2019/common/ui/error-boundary-modal/index.js +1 -9
- package/dist/es2019/common/ui/error-boundary-ui/error-svg/index.js +1 -9
- package/dist/es2019/common/ui/icon/index.js +1 -9
- package/dist/es2019/common/ui/message/index.compiled.css +1 -1
- package/dist/es2019/common/ui/message/index.js +2 -10
- package/dist/es2019/common/ui/modal-hero/index.js +1 -9
- package/dist/es2019/controllers/create-field/main.js +1 -9
- package/dist/es2019/i18n/en.js +2 -0
- package/dist/es2019/i18n/en_GB.js +2 -0
- package/dist/es2019/i18n/en_ZZ.js +2 -0
- package/dist/es2019/ui/create-form/async-select/main.js +1 -9
- package/dist/es2019/ui/create-form/form-footer/main.js +1 -9
- package/dist/es2019/ui/create-form/form-loader/main.js +1 -9
- package/dist/es2019/ui/create-form/main.js +1 -9
- package/dist/es2019/ui/create-form/select/main.js +8 -34
- package/dist/es2019/ui/create-form/textfield/main.js +3 -10
- package/dist/es2019/ui/create-form/user-picker/main.js +1 -9
- package/dist/es2019/ui/inline-create/index.js +1 -9
- package/dist/es2019/ui/inline-create/main.js +1 -9
- package/dist/es2019/ui/modal-create/index.js +1 -9
- package/dist/es2019/ui/modal-create/main.js +1 -9
- package/dist/esm/common/constants.js +1 -1
- package/dist/esm/common/ui/error-boundary-modal/index.js +1 -9
- package/dist/esm/common/ui/error-boundary-ui/error-svg/index.js +1 -9
- package/dist/esm/common/ui/icon/index.js +1 -9
- package/dist/esm/common/ui/message/index.compiled.css +1 -1
- package/dist/esm/common/ui/message/index.js +2 -10
- package/dist/esm/common/ui/modal-hero/index.js +1 -9
- package/dist/esm/controllers/create-field/main.js +1 -9
- package/dist/esm/i18n/en.js +2 -0
- package/dist/esm/i18n/en_GB.js +2 -0
- package/dist/esm/i18n/en_ZZ.js +2 -0
- package/dist/esm/ui/create-form/async-select/main.js +1 -9
- package/dist/esm/ui/create-form/form-footer/main.js +1 -9
- package/dist/esm/ui/create-form/form-loader/main.js +1 -9
- package/dist/esm/ui/create-form/main.js +1 -9
- package/dist/esm/ui/create-form/select/main.js +7 -33
- package/dist/esm/ui/create-form/textfield/main.js +3 -10
- package/dist/esm/ui/create-form/user-picker/main.js +1 -9
- package/dist/esm/ui/inline-create/index.js +1 -9
- package/dist/esm/ui/inline-create/main.js +1 -9
- package/dist/esm/ui/modal-create/index.js +1 -9
- package/dist/esm/ui/modal-create/main.js +1 -9
- package/dist/types/common/ui/error-boundary-modal/index.d.ts +2 -2
- package/dist/types/common/ui/icon/index.d.ts +1 -1
- package/dist/types/common/ui/message/index.d.ts +1 -1
- package/dist/types/common/ui/modal-hero/index.d.ts +1 -1
- package/dist/types/controllers/create-field/main.d.ts +1 -1
- package/dist/types/i18n/en.d.ts +2 -0
- package/dist/types/i18n/en_GB.d.ts +2 -0
- package/dist/types/i18n/en_ZZ.d.ts +2 -0
- package/dist/types/ui/create-form/async-select/main.d.ts +8 -2
- package/dist/types/ui/create-form/form-footer/main.d.ts +6 -1
- package/dist/types/ui/create-form/form-loader/main.d.ts +5 -1
- package/dist/types/ui/create-form/main.d.ts +1 -1
- package/dist/types/ui/create-form/select/main.d.ts +11 -5
- package/dist/types/ui/create-form/textfield/main.d.ts +8 -2
- package/dist/types/ui/create-form/user-picker/main.d.ts +5 -2
- package/dist/types-ts4.5/common/ui/error-boundary-modal/index.d.ts +2 -2
- package/dist/types-ts4.5/common/ui/icon/index.d.ts +1 -1
- package/dist/types-ts4.5/common/ui/message/index.d.ts +1 -1
- package/dist/types-ts4.5/common/ui/modal-hero/index.d.ts +1 -1
- package/dist/types-ts4.5/controllers/create-field/main.d.ts +1 -1
- package/dist/types-ts4.5/i18n/en.d.ts +2 -0
- package/dist/types-ts4.5/i18n/en_GB.d.ts +2 -0
- package/dist/types-ts4.5/i18n/en_ZZ.d.ts +2 -0
- package/dist/types-ts4.5/ui/create-form/async-select/main.d.ts +8 -2
- package/dist/types-ts4.5/ui/create-form/form-footer/main.d.ts +6 -1
- package/dist/types-ts4.5/ui/create-form/form-loader/main.d.ts +5 -1
- package/dist/types-ts4.5/ui/create-form/main.d.ts +1 -1
- package/dist/types-ts4.5/ui/create-form/select/main.d.ts +11 -5
- package/dist/types-ts4.5/ui/create-form/textfield/main.d.ts +8 -2
- package/dist/types-ts4.5/ui/create-form/user-picker/main.d.ts +5 -2
- package/package.json +3 -11
- package/report.api.md +1 -1
- package/dist/cjs/common/ui/error-boundary-modal/old/index.js +0 -34
- package/dist/cjs/common/ui/error-boundary-ui/error-svg/old/index.js +0 -67
- package/dist/cjs/common/ui/icon/old/index.js +0 -26
- package/dist/cjs/common/ui/message/old/index.js +0 -81
- package/dist/cjs/common/ui/modal-hero/old/index.js +0 -27
- package/dist/cjs/controllers/create-field/old/main.js +0 -76
- package/dist/cjs/ui/create-form/async-select/old/main.js +0 -195
- package/dist/cjs/ui/create-form/form-footer/old/main.js +0 -64
- package/dist/cjs/ui/create-form/form-loader/old/main.js +0 -39
- package/dist/cjs/ui/create-form/old/main.js +0 -177
- package/dist/cjs/ui/create-form/select/old/main.js +0 -127
- package/dist/cjs/ui/create-form/textfield/old/main.js +0 -55
- package/dist/cjs/ui/create-form/user-picker/old/main.js +0 -72
- package/dist/cjs/ui/inline-create/old/index.js +0 -38
- package/dist/cjs/ui/inline-create/old/main.js +0 -120
- package/dist/cjs/ui/modal-create/old/index.js +0 -44
- package/dist/cjs/ui/modal-create/old/main.js +0 -164
- package/dist/es2019/common/ui/error-boundary-modal/old/index.js +0 -26
- package/dist/es2019/common/ui/error-boundary-ui/error-svg/old/index.js +0 -58
- package/dist/es2019/common/ui/icon/old/index.js +0 -18
- package/dist/es2019/common/ui/message/old/index.js +0 -74
- package/dist/es2019/common/ui/modal-hero/old/index.js +0 -19
- package/dist/es2019/controllers/create-field/old/main.js +0 -74
- package/dist/es2019/ui/create-form/async-select/old/main.js +0 -137
- package/dist/es2019/ui/create-form/form-footer/old/main.js +0 -57
- package/dist/es2019/ui/create-form/form-loader/old/main.js +0 -31
- package/dist/es2019/ui/create-form/old/main.js +0 -145
- package/dist/es2019/ui/create-form/select/old/main.js +0 -106
- package/dist/es2019/ui/create-form/textfield/old/main.js +0 -45
- package/dist/es2019/ui/create-form/user-picker/old/main.js +0 -59
- package/dist/es2019/ui/inline-create/old/index.js +0 -30
- package/dist/es2019/ui/inline-create/old/main.js +0 -96
- package/dist/es2019/ui/modal-create/old/index.js +0 -36
- package/dist/es2019/ui/modal-create/old/main.js +0 -137
- package/dist/esm/common/ui/error-boundary-modal/old/index.js +0 -25
- package/dist/esm/common/ui/error-boundary-ui/error-svg/old/index.js +0 -60
- package/dist/esm/common/ui/icon/old/index.js +0 -18
- package/dist/esm/common/ui/message/old/index.js +0 -73
- package/dist/esm/common/ui/modal-hero/old/index.js +0 -18
- package/dist/esm/controllers/create-field/old/main.js +0 -72
- package/dist/esm/ui/create-form/async-select/old/main.js +0 -188
- package/dist/esm/ui/create-form/form-footer/old/main.js +0 -56
- package/dist/esm/ui/create-form/form-loader/old/main.js +0 -31
- package/dist/esm/ui/create-form/old/main.js +0 -174
- package/dist/esm/ui/create-form/select/old/main.js +0 -117
- package/dist/esm/ui/create-form/textfield/old/main.js +0 -47
- package/dist/esm/ui/create-form/user-picker/old/main.js +0 -64
- package/dist/esm/ui/inline-create/old/index.js +0 -30
- package/dist/esm/ui/inline-create/old/main.js +0 -112
- package/dist/esm/ui/modal-create/old/index.js +0 -36
- package/dist/esm/ui/modal-create/old/main.js +0 -156
- package/dist/types/common/ui/error-boundary-modal/old/index.d.ts +0 -11
- package/dist/types/common/ui/error-boundary-ui/error-svg/old/index.d.ts +0 -7
- package/dist/types/common/ui/icon/old/index.d.ts +0 -7
- package/dist/types/common/ui/message/old/index.d.ts +0 -15
- package/dist/types/common/ui/modal-hero/old/index.d.ts +0 -4
- package/dist/types/controllers/create-field/old/main.d.ts +0 -7
- package/dist/types/ui/create-form/async-select/old/main.d.ts +0 -11
- package/dist/types/ui/create-form/form-footer/old/main.d.ts +0 -16
- package/dist/types/ui/create-form/form-loader/old/main.d.ts +0 -11
- package/dist/types/ui/create-form/old/main.d.ts +0 -54
- package/dist/types/ui/create-form/select/old/main.d.ts +0 -24
- package/dist/types/ui/create-form/textfield/old/main.d.ts +0 -14
- package/dist/types/ui/create-form/user-picker/old/main.d.ts +0 -11
- package/dist/types/ui/inline-create/old/index.d.ts +0 -5
- package/dist/types/ui/inline-create/old/main.d.ts +0 -8
- package/dist/types/ui/modal-create/old/index.d.ts +0 -5
- package/dist/types/ui/modal-create/old/main.d.ts +0 -4
- package/dist/types-ts4.5/common/ui/error-boundary-modal/old/index.d.ts +0 -11
- package/dist/types-ts4.5/common/ui/error-boundary-ui/error-svg/old/index.d.ts +0 -7
- package/dist/types-ts4.5/common/ui/icon/old/index.d.ts +0 -7
- package/dist/types-ts4.5/common/ui/message/old/index.d.ts +0 -15
- package/dist/types-ts4.5/common/ui/modal-hero/old/index.d.ts +0 -4
- package/dist/types-ts4.5/controllers/create-field/old/main.d.ts +0 -7
- package/dist/types-ts4.5/ui/create-form/async-select/old/main.d.ts +0 -11
- package/dist/types-ts4.5/ui/create-form/form-footer/old/main.d.ts +0 -16
- package/dist/types-ts4.5/ui/create-form/form-loader/old/main.d.ts +0 -11
- package/dist/types-ts4.5/ui/create-form/old/main.d.ts +0 -56
- package/dist/types-ts4.5/ui/create-form/select/old/main.d.ts +0 -24
- package/dist/types-ts4.5/ui/create-form/textfield/old/main.d.ts +0 -14
- package/dist/types-ts4.5/ui/create-form/user-picker/old/main.d.ts +0 -11
- package/dist/types-ts4.5/ui/inline-create/old/index.d.ts +0 -5
- package/dist/types-ts4.5/ui/inline-create/old/main.d.ts +0 -8
- package/dist/types-ts4.5/ui/modal-create/old/index.d.ts +0 -5
- package/dist/types-ts4.5/ui/modal-create/old/main.d.ts +0 -4
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
/* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
|
|
2
|
-
/**
|
|
3
|
-
* @jsxRuntime classic
|
|
4
|
-
* @jsx jsx
|
|
5
|
-
*/
|
|
6
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
7
|
-
import { css, jsx } from '@emotion/react';
|
|
8
|
-
var WIDTH = 82;
|
|
9
|
-
var errorStyles = css({
|
|
10
|
-
width: "".concat(WIDTH, "px"),
|
|
11
|
-
margin: "0 auto ".concat("var(--ds-space-300, 24px)"),
|
|
12
|
-
display: "block"
|
|
13
|
-
});
|
|
14
|
-
var id = 'link-create-error-svg';
|
|
15
|
-
var ErrorSVGOld = function ErrorSVGOld() {
|
|
16
|
-
return jsx("svg", {
|
|
17
|
-
height: "90",
|
|
18
|
-
viewBox: "0 0 164 212",
|
|
19
|
-
fill: "none",
|
|
20
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
21
|
-
css: errorStyles
|
|
22
|
-
}, jsx("path", {
|
|
23
|
-
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",
|
|
24
|
-
fill: "url(#".concat(id, ")")
|
|
25
|
-
}), jsx("path", {
|
|
26
|
-
opacity: ".6",
|
|
27
|
-
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",
|
|
28
|
-
fill: "#C1C7D0"
|
|
29
|
-
}), jsx("path", {
|
|
30
|
-
opacity: ".6",
|
|
31
|
-
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",
|
|
32
|
-
fill: "#B3BAC5"
|
|
33
|
-
}), jsx("defs", null, jsx("linearGradient", {
|
|
34
|
-
id: id,
|
|
35
|
-
x1: "26.169",
|
|
36
|
-
y1: "228.621",
|
|
37
|
-
x2: "138.408",
|
|
38
|
-
y2: "116.382",
|
|
39
|
-
gradientUnits: "userSpaceOnUse"
|
|
40
|
-
}, jsx("stop", {
|
|
41
|
-
stopColor: "#C1C7D0"
|
|
42
|
-
}), jsx("stop", {
|
|
43
|
-
offset: ".297",
|
|
44
|
-
stopColor: "#C6CBD4",
|
|
45
|
-
stopOpacity: ".881"
|
|
46
|
-
}), jsx("stop", {
|
|
47
|
-
offset: ".63",
|
|
48
|
-
stopColor: "#D3D7DE",
|
|
49
|
-
stopOpacity: ".748"
|
|
50
|
-
}), jsx("stop", {
|
|
51
|
-
offset: ".98",
|
|
52
|
-
stopColor: "#E9EBEF",
|
|
53
|
-
stopOpacity: ".608"
|
|
54
|
-
}), jsx("stop", {
|
|
55
|
-
offset: "1",
|
|
56
|
-
stopColor: "#EBECF0",
|
|
57
|
-
stopOpacity: ".6"
|
|
58
|
-
}))));
|
|
59
|
-
};
|
|
60
|
-
export default ErrorSVGOld;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
2
|
-
import styled from '@emotion/styled';
|
|
3
|
-
import { N20A } from '@atlaskit/theme/colors';
|
|
4
|
-
// eslint-disable-next-line @atlaskit/design-system/prefer-primitives, @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/ui-styling-standard/no-dynamic-styles -- Ignored via go/DSP-18766
|
|
5
|
-
export var UrlIconOld = styled.div(function (props) {
|
|
6
|
-
var _props$url;
|
|
7
|
-
return {
|
|
8
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
9
|
-
backgroundImage: "url(".concat((_props$url = props.url) !== null && _props$url !== void 0 ? _props$url : '', ")"),
|
|
10
|
-
backgroundColor: "var(--ds-skeleton, ".concat(N20A, ")"),
|
|
11
|
-
backgroundSize: 'contain',
|
|
12
|
-
backgroundRepeat: 'no-repeat',
|
|
13
|
-
height: "var(--ds-space-200, 16px)",
|
|
14
|
-
width: "var(--ds-space-200, 16px)",
|
|
15
|
-
borderRadius: "var(--ds-border-radius, 3px)",
|
|
16
|
-
flexShrink: 0
|
|
17
|
-
};
|
|
18
|
-
});
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @jsxRuntime classic
|
|
3
|
-
* @jsx jsx
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
7
|
-
import { css, jsx } from '@emotion/react';
|
|
8
|
-
import SuccessIcon from '@atlaskit/icon/utility/check-circle';
|
|
9
|
-
import ErrorIcon from '@atlaskit/icon/utility/error';
|
|
10
|
-
import { Box, xcss } from '@atlaskit/primitives';
|
|
11
|
-
var messageStyles = xcss({
|
|
12
|
-
display: 'flex',
|
|
13
|
-
justifyContent: 'baseline',
|
|
14
|
-
gap: 'space.050',
|
|
15
|
-
font: "var(--ds-font-body-UNSAFE_small, normal 400 12px/16px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)",
|
|
16
|
-
marginBlockStart: 'space.050'
|
|
17
|
-
});
|
|
18
|
-
var messageAppearanceStyles = {
|
|
19
|
-
default: xcss({
|
|
20
|
-
color: 'color.text.subtlest'
|
|
21
|
-
}),
|
|
22
|
-
error: xcss({
|
|
23
|
-
color: 'color.text.danger'
|
|
24
|
-
}),
|
|
25
|
-
valid: xcss({
|
|
26
|
-
color: 'color.text.success'
|
|
27
|
-
})
|
|
28
|
-
};
|
|
29
|
-
var iconWrapperStyles = css({
|
|
30
|
-
display: 'flex',
|
|
31
|
-
alignItems: 'center',
|
|
32
|
-
marginInlineStart: "var(--ds-space-025, 2px)",
|
|
33
|
-
marginInlineEnd: "var(--ds-space-025, 2px)"
|
|
34
|
-
});
|
|
35
|
-
var IconWrapper = function IconWrapper(_ref) {
|
|
36
|
-
var children = _ref.children;
|
|
37
|
-
return jsx("span", {
|
|
38
|
-
css: iconWrapperStyles
|
|
39
|
-
}, children);
|
|
40
|
-
};
|
|
41
|
-
var messageIcons = {
|
|
42
|
-
error: jsx(ErrorIcon, {
|
|
43
|
-
color: "var(--ds-text-danger, #AE2A19)",
|
|
44
|
-
label: "error"
|
|
45
|
-
}),
|
|
46
|
-
valid: jsx(SuccessIcon, {
|
|
47
|
-
color: "var(--ds-text-success, #216E4E)",
|
|
48
|
-
label: "success"
|
|
49
|
-
})
|
|
50
|
-
};
|
|
51
|
-
export var MessageOld = function MessageOld(_ref2) {
|
|
52
|
-
var children = _ref2.children,
|
|
53
|
-
_ref2$appearance = _ref2.appearance,
|
|
54
|
-
appearance = _ref2$appearance === void 0 ? 'default' : _ref2$appearance,
|
|
55
|
-
id = _ref2.id,
|
|
56
|
-
testId = _ref2.testId;
|
|
57
|
-
var icon = messageIcons[appearance];
|
|
58
|
-
|
|
59
|
-
/**
|
|
60
|
-
* The wrapping span is necessary to preserve spaces between children.
|
|
61
|
-
* Otherwise the flex layout of the message will remove any whitespace
|
|
62
|
-
* between children.
|
|
63
|
-
*
|
|
64
|
-
* If the child is just a string, this is not required and we can use one
|
|
65
|
-
* less DOM element.
|
|
66
|
-
*/
|
|
67
|
-
var content = typeof children === 'string' ? children : jsx("span", null, children);
|
|
68
|
-
return jsx(Box, {
|
|
69
|
-
xcss: [messageStyles, messageAppearanceStyles[appearance]],
|
|
70
|
-
testId: testId,
|
|
71
|
-
id: id
|
|
72
|
-
}, icon && jsx(IconWrapper, null, icon), content);
|
|
73
|
-
};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import React, { Fragment } from 'react';
|
|
2
|
-
import { Stack } from '@atlaskit/primitives';
|
|
3
|
-
import { ErrorBoundary } from '../../../../common/ui/error-boundary';
|
|
4
|
-
var ErrorComponent = function ErrorComponent() {
|
|
5
|
-
// when there's an error, render nothing but report the issue
|
|
6
|
-
return /*#__PURE__*/React.createElement(Fragment, null, null);
|
|
7
|
-
};
|
|
8
|
-
export var ModalHeroOld = function ModalHeroOld(_ref) {
|
|
9
|
-
var hero = _ref.hero;
|
|
10
|
-
if (!hero) {
|
|
11
|
-
return null;
|
|
12
|
-
}
|
|
13
|
-
return /*#__PURE__*/React.createElement(Stack, {
|
|
14
|
-
testId: "link-create-modal-hero"
|
|
15
|
-
}, /*#__PURE__*/React.createElement(ErrorBoundary, {
|
|
16
|
-
errorComponent: /*#__PURE__*/React.createElement(ErrorComponent, null)
|
|
17
|
-
}, hero));
|
|
18
|
-
};
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
|
-
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; }
|
|
3
|
-
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; }
|
|
4
|
-
/**
|
|
5
|
-
* @jsxRuntime classic
|
|
6
|
-
* @jsx jsx
|
|
7
|
-
*/
|
|
8
|
-
|
|
9
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled
|
|
10
|
-
import { css, jsx } from '@emotion/react';
|
|
11
|
-
import { Field } from 'react-final-form';
|
|
12
|
-
import { Label, RequiredAsterisk } from '@atlaskit/form';
|
|
13
|
-
import { Message } from '../../../common/ui/message';
|
|
14
|
-
import { shouldShowValidationErrors } from '../../../common/utils/form';
|
|
15
|
-
var fieldWrapperStyles = css({
|
|
16
|
-
marginTop: "var(--ds-space-100, 8px)"
|
|
17
|
-
});
|
|
18
|
-
export function CreateFieldOld(_ref) {
|
|
19
|
-
var id = _ref.id,
|
|
20
|
-
name = _ref.name,
|
|
21
|
-
label = _ref.label,
|
|
22
|
-
isRequired = _ref.isRequired,
|
|
23
|
-
validators = _ref.validators,
|
|
24
|
-
validationHelpText = _ref.validationHelpText,
|
|
25
|
-
testId = _ref.testId,
|
|
26
|
-
children = _ref.children;
|
|
27
|
-
var fieldId = id ? id : "link-create-field-".concat(name);
|
|
28
|
-
return jsx(Field, {
|
|
29
|
-
name: name,
|
|
30
|
-
validate: function validate(value) {
|
|
31
|
-
var _find;
|
|
32
|
-
return (_find = (validators !== null && validators !== void 0 ? validators : []).find(function (validator) {
|
|
33
|
-
return !validator.isValid(value);
|
|
34
|
-
})) === null || _find === void 0 ? void 0 : _find.errorMessage;
|
|
35
|
-
}
|
|
36
|
-
}, function (_ref2) {
|
|
37
|
-
var input = _ref2.input,
|
|
38
|
-
meta = _ref2.meta;
|
|
39
|
-
var isInvalid = shouldShowValidationErrors(meta);
|
|
40
|
-
var submitError = meta.submitError,
|
|
41
|
-
error = meta.error;
|
|
42
|
-
var hasError = !!submitError || !!error;
|
|
43
|
-
var showErrorMessage = hasError && isInvalid;
|
|
44
|
-
var describedById = "".concat(fieldId, "-description");
|
|
45
|
-
var errorMessageId = "".concat(fieldId, "-error");
|
|
46
|
-
var ariaErrorMessage = showErrorMessage ? errorMessageId : undefined;
|
|
47
|
-
return jsx("div", {
|
|
48
|
-
css: fieldWrapperStyles,
|
|
49
|
-
"data-testid": testId
|
|
50
|
-
}, label && jsx(Label, {
|
|
51
|
-
htmlFor: fieldId,
|
|
52
|
-
id: "".concat(fieldId, "-label"),
|
|
53
|
-
testId: "".concat(testId, "-label")
|
|
54
|
-
}, label, isRequired && jsx(RequiredAsterisk, null)), children(_objectSpread(_objectSpread({}, input), {}, {
|
|
55
|
-
fieldId: fieldId,
|
|
56
|
-
isInvalid: isInvalid,
|
|
57
|
-
isRequired: isRequired,
|
|
58
|
-
'aria-errormessage': ariaErrorMessage,
|
|
59
|
-
'aria-describedby': describedById
|
|
60
|
-
})), jsx("div", {
|
|
61
|
-
id: describedById
|
|
62
|
-
}, !hasError && validationHelpText && jsx(Message, {
|
|
63
|
-
testId: "".concat(testId, "-helper-message")
|
|
64
|
-
}, validationHelpText), jsx("div", {
|
|
65
|
-
"aria-live": "polite"
|
|
66
|
-
}, showErrorMessage && jsx(Message, {
|
|
67
|
-
id: errorMessageId,
|
|
68
|
-
appearance: "error",
|
|
69
|
-
testId: "".concat(testId, "-error-message")
|
|
70
|
-
}, submitError || error))));
|
|
71
|
-
});
|
|
72
|
-
}
|
|
@@ -1,188 +0,0 @@
|
|
|
1
|
-
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
-
import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
|
|
3
|
-
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
4
|
-
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
5
|
-
var _excluded = ["id", "name", "label", "isRequired", "validators", "validationHelpText", "testId", "defaultOption", "loadOptions"],
|
|
6
|
-
_excluded2 = ["fieldId", "isRequired"];
|
|
7
|
-
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
8
|
-
/* eslint-disable @atlassian/tangerine/import/no-parent-imports */
|
|
9
|
-
/**
|
|
10
|
-
* @jsxRuntime classic
|
|
11
|
-
* @jsx jsx
|
|
12
|
-
*/
|
|
13
|
-
import { useEffect, useMemo, useState } from 'react';
|
|
14
|
-
|
|
15
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
16
|
-
import { jsx } from '@emotion/react';
|
|
17
|
-
import debounce from 'debounce-promise';
|
|
18
|
-
import { useForm } from 'react-final-form';
|
|
19
|
-
import { useIntl } from 'react-intl-next';
|
|
20
|
-
import { AsyncSelect as AkAsyncSelect } from '@atlaskit/select';
|
|
21
|
-
import messages from '../../../../common/messages';
|
|
22
|
-
import { useLinkCreateCallback } from '../../../../controllers/callback-context';
|
|
23
|
-
import { CreateField } from '../../../../controllers/create-field';
|
|
24
|
-
import { useFormContext } from '../../../../controllers/form-context';
|
|
25
|
-
export var TEST_ID = 'link-create-async-select';
|
|
26
|
-
|
|
27
|
-
/**
|
|
28
|
-
* An async select utilising the Atlaskit AsyncSelect and CreateField.
|
|
29
|
-
* Validation is handled by the form on form submission. Any
|
|
30
|
-
* errors returned by the handleSubmit function passed to the form <Form> that
|
|
31
|
-
* have a key matching the `name` of this field are shown below the field.
|
|
32
|
-
*/
|
|
33
|
-
export function AsyncSelectOld(_ref) {
|
|
34
|
-
var id = _ref.id,
|
|
35
|
-
name = _ref.name,
|
|
36
|
-
label = _ref.label,
|
|
37
|
-
isRequired = _ref.isRequired,
|
|
38
|
-
validators = _ref.validators,
|
|
39
|
-
validationHelpText = _ref.validationHelpText,
|
|
40
|
-
_ref$testId = _ref.testId,
|
|
41
|
-
testId = _ref$testId === void 0 ? TEST_ID : _ref$testId,
|
|
42
|
-
propsDefaultValue = _ref.defaultOption,
|
|
43
|
-
loadOptionsFn = _ref.loadOptions,
|
|
44
|
-
restProps = _objectWithoutProperties(_ref, _excluded);
|
|
45
|
-
var _useForm = useForm(),
|
|
46
|
-
mutators = _useForm.mutators;
|
|
47
|
-
var _useLinkCreateCallbac = useLinkCreateCallback(),
|
|
48
|
-
onFailure = _useLinkCreateCallbac.onFailure;
|
|
49
|
-
var _useFormContext = useFormContext(),
|
|
50
|
-
setFormErrorMessage = _useFormContext.setFormErrorMessage;
|
|
51
|
-
var intl = useIntl();
|
|
52
|
-
var _useState = useState(propsDefaultValue),
|
|
53
|
-
_useState2 = _slicedToArray(_useState, 2),
|
|
54
|
-
defaultValue = _useState2[0],
|
|
55
|
-
setDefaultValue = _useState2[1];
|
|
56
|
-
var _useState3 = useState(false),
|
|
57
|
-
_useState4 = _slicedToArray(_useState3, 2),
|
|
58
|
-
isLoadingDefaultOptions = _useState4[0],
|
|
59
|
-
setIsLoadingDefaultOptions = _useState4[1];
|
|
60
|
-
var _useState5 = useState([]),
|
|
61
|
-
_useState6 = _slicedToArray(_useState5, 2),
|
|
62
|
-
defaultOptions = _useState6[0],
|
|
63
|
-
setDefaultOptions = _useState6[1];
|
|
64
|
-
|
|
65
|
-
/**
|
|
66
|
-
* This binds experience to fail if async fetch ever fails to load
|
|
67
|
-
*/
|
|
68
|
-
var loadOptions = useMemo(function () {
|
|
69
|
-
if (loadOptionsFn) {
|
|
70
|
-
return /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
|
|
71
|
-
var _args = arguments;
|
|
72
|
-
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
73
|
-
while (1) switch (_context.prev = _context.next) {
|
|
74
|
-
case 0:
|
|
75
|
-
_context.prev = 0;
|
|
76
|
-
_context.next = 3;
|
|
77
|
-
return loadOptionsFn.apply(void 0, _args);
|
|
78
|
-
case 3:
|
|
79
|
-
return _context.abrupt("return", _context.sent);
|
|
80
|
-
case 6:
|
|
81
|
-
_context.prev = 6;
|
|
82
|
-
_context.t0 = _context["catch"](0);
|
|
83
|
-
onFailure === null || onFailure === void 0 || onFailure(_context.t0);
|
|
84
|
-
setFormErrorMessage(intl.formatMessage(messages.genericErrorMessage));
|
|
85
|
-
return _context.abrupt("return", []);
|
|
86
|
-
case 11:
|
|
87
|
-
case "end":
|
|
88
|
-
return _context.stop();
|
|
89
|
-
}
|
|
90
|
-
}, _callee, null, [[0, 6]]);
|
|
91
|
-
}));
|
|
92
|
-
}
|
|
93
|
-
}, [intl, onFailure, loadOptionsFn, setFormErrorMessage]);
|
|
94
|
-
useEffect(function () {
|
|
95
|
-
var current = true;
|
|
96
|
-
var fetch = /*#__PURE__*/function () {
|
|
97
|
-
var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {
|
|
98
|
-
var query,
|
|
99
|
-
options,
|
|
100
|
-
_args2 = arguments;
|
|
101
|
-
return _regeneratorRuntime.wrap(function _callee2$(_context2) {
|
|
102
|
-
while (1) switch (_context2.prev = _context2.next) {
|
|
103
|
-
case 0:
|
|
104
|
-
query = _args2.length > 0 && _args2[0] !== undefined ? _args2[0] : '';
|
|
105
|
-
if (loadOptions) {
|
|
106
|
-
_context2.next = 3;
|
|
107
|
-
break;
|
|
108
|
-
}
|
|
109
|
-
return _context2.abrupt("return");
|
|
110
|
-
case 3:
|
|
111
|
-
_context2.prev = 3;
|
|
112
|
-
/**
|
|
113
|
-
* If we are fetching default options, clear the
|
|
114
|
-
* value the user has set
|
|
115
|
-
*/
|
|
116
|
-
if (mutators.setField) {
|
|
117
|
-
mutators.setField(name, null);
|
|
118
|
-
}
|
|
119
|
-
setIsLoadingDefaultOptions(true);
|
|
120
|
-
setDefaultOptions([]);
|
|
121
|
-
_context2.next = 9;
|
|
122
|
-
return loadOptions(query);
|
|
123
|
-
case 9:
|
|
124
|
-
options = _context2.sent;
|
|
125
|
-
if (current) {
|
|
126
|
-
setDefaultOptions(options);
|
|
127
|
-
setIsLoadingDefaultOptions(false);
|
|
128
|
-
}
|
|
129
|
-
_context2.next = 16;
|
|
130
|
-
break;
|
|
131
|
-
case 13:
|
|
132
|
-
_context2.prev = 13;
|
|
133
|
-
_context2.t0 = _context2["catch"](3);
|
|
134
|
-
if (current) {
|
|
135
|
-
setIsLoadingDefaultOptions(false);
|
|
136
|
-
}
|
|
137
|
-
case 16:
|
|
138
|
-
case "end":
|
|
139
|
-
return _context2.stop();
|
|
140
|
-
}
|
|
141
|
-
}, _callee2, null, [[3, 13]]);
|
|
142
|
-
}));
|
|
143
|
-
return function fetch() {
|
|
144
|
-
return _ref3.apply(this, arguments);
|
|
145
|
-
};
|
|
146
|
-
}();
|
|
147
|
-
fetch();
|
|
148
|
-
return function () {
|
|
149
|
-
current = false;
|
|
150
|
-
};
|
|
151
|
-
}, [loadOptions, setIsLoadingDefaultOptions, setDefaultOptions, mutators, name]);
|
|
152
|
-
useEffect(function () {
|
|
153
|
-
/**
|
|
154
|
-
* Mutate the form state to set a default value for this field
|
|
155
|
-
* if `defaultOption` is a prop and we have not set a value for it yet
|
|
156
|
-
*/
|
|
157
|
-
if (!defaultValue && propsDefaultValue) {
|
|
158
|
-
setDefaultValue(propsDefaultValue);
|
|
159
|
-
if (mutators.setField) {
|
|
160
|
-
mutators.setField(name, propsDefaultValue);
|
|
161
|
-
}
|
|
162
|
-
}
|
|
163
|
-
}, [defaultValue, propsDefaultValue, name, mutators]);
|
|
164
|
-
var debouncedLoadOptions = useMemo(function () {
|
|
165
|
-
return loadOptions ? debounce(loadOptions, 300) : undefined;
|
|
166
|
-
}, [loadOptions]);
|
|
167
|
-
return jsx(CreateField, {
|
|
168
|
-
id: id,
|
|
169
|
-
name: name,
|
|
170
|
-
label: label,
|
|
171
|
-
isRequired: isRequired,
|
|
172
|
-
validators: validators,
|
|
173
|
-
validationHelpText: validationHelpText,
|
|
174
|
-
testId: testId
|
|
175
|
-
}, function (_ref4) {
|
|
176
|
-
var fieldId = _ref4.fieldId,
|
|
177
|
-
isRequired = _ref4.isRequired,
|
|
178
|
-
fieldProps = _objectWithoutProperties(_ref4, _excluded2);
|
|
179
|
-
return jsx(AkAsyncSelect, _extends({
|
|
180
|
-
inputId: fieldId
|
|
181
|
-
}, fieldProps, restProps, {
|
|
182
|
-
required: isRequired,
|
|
183
|
-
loadOptions: debouncedLoadOptions,
|
|
184
|
-
defaultOptions: defaultOptions,
|
|
185
|
-
isLoading: isLoadingDefaultOptions
|
|
186
|
-
}));
|
|
187
|
-
});
|
|
188
|
-
}
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
/* eslint-disable @atlassian/tangerine/import/no-parent-imports */
|
|
2
|
-
/**
|
|
3
|
-
* @jsxRuntime classic
|
|
4
|
-
* @jsx jsx
|
|
5
|
-
*/
|
|
6
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
7
|
-
import { css, jsx } from '@emotion/react';
|
|
8
|
-
import { useIntl } from 'react-intl-next';
|
|
9
|
-
import { ButtonGroup } from '@atlaskit/button';
|
|
10
|
-
import ErrorIcon from '@atlaskit/icon/core/migration/error';
|
|
11
|
-
import { Button } from '../../../../common/ui/Button';
|
|
12
|
-
import { EditButton } from '../edit-button';
|
|
13
|
-
import { messages } from '../messages';
|
|
14
|
-
import { SubmitButton } from '../submit-button';
|
|
15
|
-
var formFooterWrapperStyles = css({
|
|
16
|
-
display: 'flex',
|
|
17
|
-
marginTop: "var(--ds-space-300, 24px)",
|
|
18
|
-
justifyContent: 'flex-end'
|
|
19
|
-
});
|
|
20
|
-
var errorStyles = css({
|
|
21
|
-
display: 'flex',
|
|
22
|
-
alignItems: 'center',
|
|
23
|
-
marginRight: 'auto'
|
|
24
|
-
});
|
|
25
|
-
/**
|
|
26
|
-
* Footer for the Create Form, used as a wrapper for action buttons
|
|
27
|
-
* and form error messages. This component is unmounted if
|
|
28
|
-
* hideFooter is true in the Create Form.
|
|
29
|
-
*/
|
|
30
|
-
export function CreateFormFooterOld(_ref) {
|
|
31
|
-
var formErrorMessage = _ref.formErrorMessage,
|
|
32
|
-
handleCancel = _ref.handleCancel,
|
|
33
|
-
testId = _ref.testId;
|
|
34
|
-
var intl = useIntl();
|
|
35
|
-
return jsx("footer", {
|
|
36
|
-
"data-testid": "".concat(testId, "-footer"),
|
|
37
|
-
css: formFooterWrapperStyles
|
|
38
|
-
}, formErrorMessage && jsx("div", {
|
|
39
|
-
role: "alert",
|
|
40
|
-
css: errorStyles,
|
|
41
|
-
"data-testid": "".concat(testId, "-error")
|
|
42
|
-
}, jsx(ErrorIcon, {
|
|
43
|
-
label: formErrorMessage,
|
|
44
|
-
color: "var(--ds-icon-danger, #E34935)",
|
|
45
|
-
spacing: "spacious"
|
|
46
|
-
}), formErrorMessage), jsx(ButtonGroup, null, jsx(Button, {
|
|
47
|
-
type: "button",
|
|
48
|
-
actionSubjectId: "cancel",
|
|
49
|
-
appearance: "subtle",
|
|
50
|
-
onClick: function onClick(e) {
|
|
51
|
-
e.stopPropagation();
|
|
52
|
-
handleCancel();
|
|
53
|
-
},
|
|
54
|
-
testId: "".concat(testId, "-button-cancel")
|
|
55
|
-
}, intl.formatMessage(messages.close)), jsx(EditButton, null), jsx(SubmitButton, null)));
|
|
56
|
-
}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @jsxRuntime classic
|
|
3
|
-
* @jsx jsx
|
|
4
|
-
*/
|
|
5
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
6
|
-
import { css, jsx } from '@emotion/react';
|
|
7
|
-
import Spinner from '@atlaskit/spinner';
|
|
8
|
-
import { CREATE_FORM_MIN_HEIGHT_IN_PX } from '../../../../common/constants';
|
|
9
|
-
var formLoaderStyles = css({
|
|
10
|
-
display: "flex",
|
|
11
|
-
alignItems: "center",
|
|
12
|
-
justifyContent: "center",
|
|
13
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
14
|
-
minHeight: "".concat(CREATE_FORM_MIN_HEIGHT_IN_PX, "px")
|
|
15
|
-
});
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
* Wrapper component for the Spinner, shows while the form
|
|
19
|
-
* performs async functions on load.
|
|
20
|
-
*/
|
|
21
|
-
export function CreateFormLoaderOld(_ref) {
|
|
22
|
-
var _ref$size = _ref.size,
|
|
23
|
-
size = _ref$size === void 0 ? 'large' : _ref$size;
|
|
24
|
-
return jsx("div", {
|
|
25
|
-
css: formLoaderStyles
|
|
26
|
-
}, jsx(Spinner, {
|
|
27
|
-
size: size,
|
|
28
|
-
interactionName: "load",
|
|
29
|
-
testId: "link-create-form-loader"
|
|
30
|
-
}));
|
|
31
|
-
}
|