@atlaskit/link-create 2.13.20 → 2.15.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 +20 -0
- package/dist/cjs/common/constants.js +4 -1
- package/dist/cjs/common/ui/error-boundary-modal/index.js +13 -10
- package/dist/cjs/common/ui/error-boundary-modal/old/index.js +34 -0
- package/dist/cjs/common/ui/error-boundary-ui/error-svg/index.compiled.css +6 -0
- package/dist/cjs/common/ui/error-boundary-ui/error-svg/index.js +32 -25
- package/dist/cjs/common/ui/error-boundary-ui/error-svg/old/index.js +67 -0
- package/dist/cjs/common/ui/icon/index.compiled.css +7 -0
- package/dist/cjs/common/ui/icon/index.js +25 -20
- package/dist/cjs/common/ui/icon/old/index.js +26 -0
- package/dist/cjs/common/ui/message/index.compiled.css +11 -0
- package/dist/cjs/common/ui/message/index.js +33 -40
- package/dist/cjs/common/ui/message/old/index.js +81 -0
- package/dist/cjs/common/ui/modal-hero/index.js +11 -3
- package/dist/cjs/common/ui/modal-hero/old/index.js +27 -0
- package/dist/cjs/controllers/create-field/main.compiled.css +1 -0
- package/dist/cjs/controllers/create-field/main.js +30 -21
- package/dist/cjs/controllers/create-field/old/main.js +76 -0
- package/dist/cjs/ui/create-form/async-select/main.js +15 -10
- package/dist/cjs/ui/create-form/async-select/old/main.js +195 -0
- package/dist/cjs/ui/create-form/form-footer/main.compiled.css +5 -0
- package/dist/cjs/ui/create-form/form-footer/main.js +28 -28
- package/dist/cjs/ui/create-form/form-footer/old/main.js +64 -0
- package/dist/cjs/ui/create-form/form-loader/main.compiled.css +4 -0
- package/dist/cjs/ui/create-form/form-loader/main.js +22 -21
- package/dist/cjs/ui/create-form/form-loader/old/main.js +39 -0
- package/dist/cjs/ui/create-form/main.compiled.css +9 -0
- package/dist/cjs/ui/create-form/main.js +26 -21
- package/dist/cjs/ui/create-form/old/main.js +177 -0
- package/dist/cjs/ui/create-form/select/main.js +41 -20
- package/dist/cjs/ui/create-form/select/old/main.js +127 -0
- package/dist/cjs/ui/create-form/textfield/main.js +14 -13
- package/dist/cjs/ui/create-form/textfield/old/main.js +55 -0
- package/dist/cjs/ui/create-form/user-picker/main.js +14 -13
- package/dist/cjs/ui/create-form/user-picker/old/main.js +72 -0
- package/dist/cjs/ui/inline-create/index.js +17 -14
- package/dist/cjs/ui/inline-create/main.js +21 -19
- package/dist/cjs/ui/inline-create/old/index.js +38 -0
- package/dist/cjs/ui/inline-create/old/main.js +120 -0
- package/dist/cjs/ui/modal-create/index.js +19 -16
- package/dist/cjs/ui/modal-create/main.js +26 -23
- package/dist/cjs/ui/modal-create/old/index.js +44 -0
- package/dist/cjs/ui/modal-create/old/main.js +164 -0
- package/dist/es2019/common/constants.js +4 -1
- package/dist/es2019/common/ui/error-boundary-modal/index.js +12 -9
- package/dist/es2019/common/ui/error-boundary-modal/old/index.js +26 -0
- package/dist/es2019/common/ui/error-boundary-ui/error-svg/index.compiled.css +6 -0
- package/dist/es2019/common/ui/error-boundary-ui/error-svg/index.js +24 -23
- package/dist/es2019/common/ui/error-boundary-ui/error-svg/old/index.js +58 -0
- package/dist/es2019/common/ui/icon/index.compiled.css +7 -0
- package/dist/es2019/common/ui/icon/index.js +23 -18
- package/dist/es2019/common/ui/icon/old/index.js +18 -0
- package/dist/es2019/common/ui/message/index.compiled.css +11 -0
- package/dist/es2019/common/ui/message/index.js +30 -39
- package/dist/es2019/common/ui/message/old/index.js +74 -0
- package/dist/es2019/common/ui/modal-hero/index.js +10 -2
- package/dist/es2019/common/ui/modal-hero/old/index.js +19 -0
- package/dist/es2019/controllers/create-field/main.compiled.css +1 -0
- package/dist/es2019/controllers/create-field/main.js +26 -23
- package/dist/es2019/controllers/create-field/old/main.js +74 -0
- package/dist/es2019/ui/create-form/async-select/main.js +12 -11
- package/dist/es2019/ui/create-form/async-select/old/main.js +137 -0
- package/dist/es2019/ui/create-form/form-footer/main.compiled.css +5 -0
- package/dist/es2019/ui/create-form/form-footer/main.js +25 -27
- package/dist/es2019/ui/create-form/form-footer/old/main.js +57 -0
- package/dist/es2019/ui/create-form/form-loader/main.compiled.css +4 -0
- package/dist/es2019/ui/create-form/form-loader/main.js +19 -20
- package/dist/es2019/ui/create-form/form-loader/old/main.js +31 -0
- package/dist/es2019/ui/create-form/main.compiled.css +9 -0
- package/dist/es2019/ui/create-form/main.js +23 -23
- package/dist/es2019/ui/create-form/old/main.js +145 -0
- package/dist/es2019/ui/create-form/select/main.js +42 -22
- package/dist/es2019/ui/create-form/select/old/main.js +106 -0
- package/dist/es2019/ui/create-form/textfield/main.js +14 -12
- package/dist/es2019/ui/create-form/textfield/old/main.js +45 -0
- package/dist/es2019/ui/create-form/user-picker/main.js +14 -12
- package/dist/es2019/ui/create-form/user-picker/old/main.js +59 -0
- package/dist/es2019/ui/inline-create/index.js +14 -13
- package/dist/es2019/ui/inline-create/main.js +21 -18
- package/dist/es2019/ui/inline-create/old/index.js +30 -0
- package/dist/es2019/ui/inline-create/old/main.js +96 -0
- package/dist/es2019/ui/modal-create/index.js +16 -15
- package/dist/es2019/ui/modal-create/main.js +23 -22
- package/dist/es2019/ui/modal-create/old/index.js +36 -0
- package/dist/es2019/ui/modal-create/old/main.js +137 -0
- package/dist/esm/common/constants.js +4 -1
- package/dist/esm/common/ui/error-boundary-modal/index.js +12 -9
- package/dist/esm/common/ui/error-boundary-modal/old/index.js +25 -0
- package/dist/esm/common/ui/error-boundary-ui/error-svg/index.compiled.css +6 -0
- package/dist/esm/common/ui/error-boundary-ui/error-svg/index.js +28 -24
- package/dist/esm/common/ui/error-boundary-ui/error-svg/old/index.js +60 -0
- package/dist/esm/common/ui/icon/index.compiled.css +7 -0
- package/dist/esm/common/ui/icon/index.js +23 -18
- package/dist/esm/common/ui/icon/old/index.js +18 -0
- package/dist/esm/common/ui/message/index.compiled.css +11 -0
- package/dist/esm/common/ui/message/index.js +30 -39
- package/dist/esm/common/ui/message/old/index.js +73 -0
- package/dist/esm/common/ui/modal-hero/index.js +10 -2
- package/dist/esm/common/ui/modal-hero/old/index.js +18 -0
- package/dist/esm/controllers/create-field/main.compiled.css +1 -0
- package/dist/esm/controllers/create-field/main.js +25 -22
- package/dist/esm/controllers/create-field/old/main.js +72 -0
- package/dist/esm/ui/create-form/async-select/main.js +12 -11
- package/dist/esm/ui/create-form/async-select/old/main.js +188 -0
- package/dist/esm/ui/create-form/form-footer/main.compiled.css +5 -0
- package/dist/esm/ui/create-form/form-footer/main.js +24 -26
- package/dist/esm/ui/create-form/form-footer/old/main.js +56 -0
- package/dist/esm/ui/create-form/form-loader/main.compiled.css +4 -0
- package/dist/esm/ui/create-form/form-loader/main.js +18 -19
- package/dist/esm/ui/create-form/form-loader/old/main.js +31 -0
- package/dist/esm/ui/create-form/main.compiled.css +9 -0
- package/dist/esm/ui/create-form/main.js +23 -23
- package/dist/esm/ui/create-form/old/main.js +174 -0
- package/dist/esm/ui/create-form/select/main.js +41 -21
- package/dist/esm/ui/create-form/select/old/main.js +117 -0
- package/dist/esm/ui/create-form/textfield/main.js +13 -11
- package/dist/esm/ui/create-form/textfield/old/main.js +47 -0
- package/dist/esm/ui/create-form/user-picker/main.js +13 -11
- package/dist/esm/ui/create-form/user-picker/old/main.js +64 -0
- package/dist/esm/ui/inline-create/index.js +14 -13
- package/dist/esm/ui/inline-create/main.js +21 -18
- package/dist/esm/ui/inline-create/old/index.js +30 -0
- package/dist/esm/ui/inline-create/old/main.js +112 -0
- package/dist/esm/ui/modal-create/index.js +16 -15
- package/dist/esm/ui/modal-create/main.js +23 -22
- package/dist/esm/ui/modal-create/old/index.js +36 -0
- package/dist/esm/ui/modal-create/old/main.js +156 -0
- package/dist/types/common/constants.d.ts +3 -0
- package/dist/types/common/ui/Button/index.d.ts +8 -3
- package/dist/types/common/ui/ModalDialog/index.d.ts +1 -1
- package/dist/types/common/ui/confirm-dismiss-dialog/main.d.ts +2 -2
- package/dist/types/common/ui/edit-modal/index.d.ts +1 -1
- package/dist/types/common/ui/error-boundary/error-boundary-base/index.d.ts +1 -1
- package/dist/types/common/ui/error-boundary/index.d.ts +2 -2
- package/dist/types/common/ui/error-boundary-modal/index.d.ts +2 -2
- package/dist/types/common/ui/error-boundary-modal/old/index.d.ts +11 -0
- package/dist/types/common/ui/error-boundary-ui/error-svg/index.d.ts +2 -6
- package/dist/types/common/ui/error-boundary-ui/error-svg/old/index.d.ts +7 -0
- package/dist/types/common/ui/error-boundary-ui/index.d.ts +2 -2
- package/dist/types/common/ui/experience-tracker/index.d.ts +1 -1
- package/dist/types/common/ui/icon/index.d.ts +10 -6
- package/dist/types/common/ui/icon/old/index.d.ts +7 -0
- package/dist/types/common/ui/link-create-content/index.d.ts +2 -2
- package/dist/types/common/ui/message/index.d.ts +1 -2
- package/dist/types/common/ui/message/old/index.d.ts +15 -0
- package/dist/types/common/ui/modal-hero/index.d.ts +4 -2
- package/dist/types/common/ui/modal-hero/old/index.d.ts +4 -0
- package/dist/types/controllers/callback-context/main.d.ts +2 -2
- package/dist/types/controllers/create-field/main.d.ts +2 -2
- package/dist/types/controllers/create-field/old/main.d.ts +7 -0
- package/dist/types/controllers/edit-post-create-context/index.d.ts +1 -1
- package/dist/types/controllers/exit-warning-modal-context/index.d.ts +1 -1
- package/dist/types/controllers/form-context/main.d.ts +2 -2
- package/dist/types/controllers/plugin-context/index.d.ts +1 -1
- package/dist/types/ui/create-form/async-select/main.d.ts +2 -8
- package/dist/types/ui/create-form/async-select/old/main.d.ts +11 -0
- package/dist/types/ui/create-form/form-footer/edit-button/index.d.ts +2 -2
- package/dist/types/ui/create-form/form-footer/main.d.ts +2 -11
- package/dist/types/ui/create-form/form-footer/old/main.d.ts +16 -0
- package/dist/types/ui/create-form/form-footer/submit-button/index.d.ts +2 -2
- package/dist/types/ui/create-form/form-loader/main.d.ts +2 -10
- package/dist/types/ui/create-form/form-loader/old/main.d.ts +11 -0
- package/dist/types/ui/create-form/form-spy/index.d.ts +1 -1
- package/dist/types/ui/create-form/main.d.ts +1 -2
- package/dist/types/ui/create-form/old/main.d.ts +54 -0
- package/dist/types/ui/create-form/select/main.d.ts +5 -16
- package/dist/types/ui/create-form/select/old/main.d.ts +24 -0
- package/dist/types/ui/create-form/textfield/main.d.ts +2 -12
- package/dist/types/ui/create-form/textfield/old/main.d.ts +14 -0
- package/dist/types/ui/create-form/user-picker/main.d.ts +2 -9
- package/dist/types/ui/create-form/user-picker/old/main.d.ts +11 -0
- package/dist/types/ui/inline-create/index.d.ts +2 -3
- package/dist/types/ui/inline-create/inline-analytics/index.d.ts +2 -2
- package/dist/types/ui/inline-create/main.d.ts +2 -6
- package/dist/types/ui/inline-create/old/index.d.ts +5 -0
- package/dist/types/ui/inline-create/old/main.d.ts +8 -0
- package/dist/types/ui/modal-create/index.d.ts +2 -3
- package/dist/types/ui/modal-create/main.d.ts +2 -2
- package/dist/types/ui/modal-create/old/index.d.ts +5 -0
- package/dist/types/ui/modal-create/old/main.d.ts +4 -0
- package/dist/types-ts4.5/common/constants.d.ts +3 -0
- package/dist/types-ts4.5/common/ui/Button/index.d.ts +8 -3
- package/dist/types-ts4.5/common/ui/ModalDialog/index.d.ts +1 -1
- package/dist/types-ts4.5/common/ui/confirm-dismiss-dialog/main.d.ts +2 -2
- package/dist/types-ts4.5/common/ui/edit-modal/index.d.ts +1 -1
- package/dist/types-ts4.5/common/ui/error-boundary/error-boundary-base/index.d.ts +1 -1
- package/dist/types-ts4.5/common/ui/error-boundary/index.d.ts +2 -2
- package/dist/types-ts4.5/common/ui/error-boundary-modal/index.d.ts +2 -2
- package/dist/types-ts4.5/common/ui/error-boundary-modal/old/index.d.ts +11 -0
- package/dist/types-ts4.5/common/ui/error-boundary-ui/error-svg/index.d.ts +2 -6
- package/dist/types-ts4.5/common/ui/error-boundary-ui/error-svg/old/index.d.ts +7 -0
- package/dist/types-ts4.5/common/ui/error-boundary-ui/index.d.ts +2 -2
- package/dist/types-ts4.5/common/ui/experience-tracker/index.d.ts +1 -1
- package/dist/types-ts4.5/common/ui/icon/index.d.ts +10 -6
- package/dist/types-ts4.5/common/ui/icon/old/index.d.ts +7 -0
- package/dist/types-ts4.5/common/ui/link-create-content/index.d.ts +2 -2
- package/dist/types-ts4.5/common/ui/message/index.d.ts +1 -2
- package/dist/types-ts4.5/common/ui/message/old/index.d.ts +15 -0
- package/dist/types-ts4.5/common/ui/modal-hero/index.d.ts +4 -2
- package/dist/types-ts4.5/common/ui/modal-hero/old/index.d.ts +4 -0
- package/dist/types-ts4.5/controllers/callback-context/main.d.ts +2 -2
- package/dist/types-ts4.5/controllers/create-field/main.d.ts +2 -2
- package/dist/types-ts4.5/controllers/create-field/old/main.d.ts +7 -0
- package/dist/types-ts4.5/controllers/edit-post-create-context/index.d.ts +1 -1
- package/dist/types-ts4.5/controllers/exit-warning-modal-context/index.d.ts +1 -1
- package/dist/types-ts4.5/controllers/form-context/main.d.ts +2 -2
- package/dist/types-ts4.5/controllers/plugin-context/index.d.ts +1 -1
- package/dist/types-ts4.5/ui/create-form/async-select/main.d.ts +2 -8
- package/dist/types-ts4.5/ui/create-form/async-select/old/main.d.ts +11 -0
- package/dist/types-ts4.5/ui/create-form/form-footer/edit-button/index.d.ts +2 -2
- package/dist/types-ts4.5/ui/create-form/form-footer/main.d.ts +2 -11
- package/dist/types-ts4.5/ui/create-form/form-footer/old/main.d.ts +16 -0
- package/dist/types-ts4.5/ui/create-form/form-footer/submit-button/index.d.ts +2 -2
- package/dist/types-ts4.5/ui/create-form/form-loader/main.d.ts +2 -10
- package/dist/types-ts4.5/ui/create-form/form-loader/old/main.d.ts +11 -0
- package/dist/types-ts4.5/ui/create-form/form-spy/index.d.ts +1 -1
- package/dist/types-ts4.5/ui/create-form/main.d.ts +1 -2
- package/dist/types-ts4.5/ui/create-form/old/main.d.ts +56 -0
- package/dist/types-ts4.5/ui/create-form/select/main.d.ts +5 -16
- package/dist/types-ts4.5/ui/create-form/select/old/main.d.ts +24 -0
- package/dist/types-ts4.5/ui/create-form/textfield/main.d.ts +2 -12
- package/dist/types-ts4.5/ui/create-form/textfield/old/main.d.ts +14 -0
- package/dist/types-ts4.5/ui/create-form/user-picker/main.d.ts +2 -9
- package/dist/types-ts4.5/ui/create-form/user-picker/old/main.d.ts +11 -0
- package/dist/types-ts4.5/ui/inline-create/index.d.ts +2 -3
- package/dist/types-ts4.5/ui/inline-create/inline-analytics/index.d.ts +2 -2
- package/dist/types-ts4.5/ui/inline-create/main.d.ts +2 -6
- package/dist/types-ts4.5/ui/inline-create/old/index.d.ts +5 -0
- package/dist/types-ts4.5/ui/inline-create/old/main.d.ts +8 -0
- package/dist/types-ts4.5/ui/modal-create/index.d.ts +2 -3
- package/dist/types-ts4.5/ui/modal-create/main.d.ts +2 -2
- package/dist/types-ts4.5/ui/modal-create/old/index.d.ts +5 -0
- package/dist/types-ts4.5/ui/modal-create/old/main.d.ts +4 -0
- package/example-helpers/mock-disclaimer.tsx +1 -1
- package/package.json +37 -26
|
@@ -1,60 +1,64 @@
|
|
|
1
|
-
/*
|
|
2
|
-
|
|
3
|
-
*
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
import { css, jsx } from '@emotion/react';
|
|
1
|
+
/* index.tsx generated by @compiled/babel-plugin v0.36.0 */
|
|
2
|
+
import "./index.compiled.css";
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
import { ax, ix } from "@compiled/react/runtime";
|
|
5
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
6
|
+
import ErrorSVGOld from './old';
|
|
8
7
|
var WIDTH = 82;
|
|
9
|
-
var errorStyles =
|
|
10
|
-
width: "".concat(WIDTH, "px"),
|
|
11
|
-
margin: "0 auto ".concat("var(--ds-space-300, 24px)"),
|
|
12
|
-
display: "block"
|
|
13
|
-
});
|
|
8
|
+
var errorStyles = null;
|
|
14
9
|
var id = 'link-create-error-svg';
|
|
15
|
-
var
|
|
16
|
-
return
|
|
10
|
+
var ErrorSVGNew = function ErrorSVGNew() {
|
|
11
|
+
return /*#__PURE__*/React.createElement("svg", {
|
|
17
12
|
height: "90",
|
|
18
13
|
viewBox: "0 0 164 212",
|
|
19
14
|
fill: "none",
|
|
20
15
|
xmlns: "http://www.w3.org/2000/svg",
|
|
21
|
-
|
|
22
|
-
|
|
16
|
+
className: ax(["_1bsb1883 _19pkidpf _2hwx1wug _otyr1ejb _18u01wug _1e0c1ule"]),
|
|
17
|
+
style: {
|
|
18
|
+
"--_fegmhw": ix("".concat(WIDTH, "px"))
|
|
19
|
+
}
|
|
20
|
+
}, /*#__PURE__*/React.createElement("path", {
|
|
23
21
|
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
22
|
fill: "url(#".concat(id, ")")
|
|
25
|
-
}),
|
|
23
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
26
24
|
opacity: ".6",
|
|
27
25
|
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
26
|
fill: "#C1C7D0"
|
|
29
|
-
}),
|
|
27
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
30
28
|
opacity: ".6",
|
|
31
29
|
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
30
|
fill: "#B3BAC5"
|
|
33
|
-
}),
|
|
31
|
+
}), /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("linearGradient", {
|
|
34
32
|
id: id,
|
|
35
33
|
x1: "26.169",
|
|
36
34
|
y1: "228.621",
|
|
37
35
|
x2: "138.408",
|
|
38
36
|
y2: "116.382",
|
|
39
37
|
gradientUnits: "userSpaceOnUse"
|
|
40
|
-
},
|
|
38
|
+
}, /*#__PURE__*/React.createElement("stop", {
|
|
41
39
|
stopColor: "#C1C7D0"
|
|
42
|
-
}),
|
|
40
|
+
}), /*#__PURE__*/React.createElement("stop", {
|
|
43
41
|
offset: ".297",
|
|
44
42
|
stopColor: "#C6CBD4",
|
|
45
43
|
stopOpacity: ".881"
|
|
46
|
-
}),
|
|
44
|
+
}), /*#__PURE__*/React.createElement("stop", {
|
|
47
45
|
offset: ".63",
|
|
48
46
|
stopColor: "#D3D7DE",
|
|
49
47
|
stopOpacity: ".748"
|
|
50
|
-
}),
|
|
48
|
+
}), /*#__PURE__*/React.createElement("stop", {
|
|
51
49
|
offset: ".98",
|
|
52
50
|
stopColor: "#E9EBEF",
|
|
53
51
|
stopOpacity: ".608"
|
|
54
|
-
}),
|
|
52
|
+
}), /*#__PURE__*/React.createElement("stop", {
|
|
55
53
|
offset: "1",
|
|
56
54
|
stopColor: "#EBECF0",
|
|
57
55
|
stopOpacity: ".6"
|
|
58
56
|
}))));
|
|
59
57
|
};
|
|
58
|
+
var ErrorSVG = function ErrorSVG() {
|
|
59
|
+
if (fg('platform_bandicoots-link-create-css')) {
|
|
60
|
+
return /*#__PURE__*/React.createElement(ErrorSVGNew, null);
|
|
61
|
+
}
|
|
62
|
+
return /*#__PURE__*/React.createElement(ErrorSVGOld, null);
|
|
63
|
+
};
|
|
60
64
|
export default ErrorSVG;
|
|
@@ -0,0 +1,60 @@
|
|
|
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;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
|
|
2
|
+
._2rko1sit{border-radius:var(--ds-border-radius,3px)}._12vemgnk{background-repeat:no-repeat}
|
|
3
|
+
._1bsbpxbi{width:var(--ds-space-200,1pc)}
|
|
4
|
+
._1lrw1f51{background-size:contain}
|
|
5
|
+
._1o9zidpf{flex-shrink:0}
|
|
6
|
+
._4t3ipxbi{height:var(--ds-space-200,1pc)}
|
|
7
|
+
._bfhk3yfp{background-color:var(--_1j9jaml)}
|
|
@@ -1,24 +1,29 @@
|
|
|
1
|
+
/* index.tsx generated by @compiled/babel-plugin v0.36.0 */
|
|
2
|
+
import "./index.compiled.css";
|
|
3
|
+
import { ax, ix } from "@compiled/react/runtime";
|
|
1
4
|
import React from 'react';
|
|
2
|
-
|
|
3
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
4
|
-
import styled from '@emotion/styled';
|
|
5
5
|
import Document16Icon from '@atlaskit/icon-file-type/glyph/document/16';
|
|
6
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
6
7
|
import { N20A } from '@atlaskit/theme/colors';
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
8
|
+
import { UrlIconOld } from './old';
|
|
9
|
+
var baseStyles = null;
|
|
10
|
+
var UrlIconNew = function UrlIconNew(_ref) {
|
|
11
|
+
var url = _ref.url,
|
|
12
|
+
children = _ref.children;
|
|
13
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
14
|
+
className: ax(["_2rko1sit _bfhk3yfp _1lrw1f51 _12vemgnk _4t3ipxbi _1bsbpxbi _1o9zidpf"]),
|
|
15
|
+
style: {
|
|
16
|
+
backgroundImage: "url(".concat(url !== null && url !== void 0 ? url : '', ")"),
|
|
17
|
+
"--_1j9jaml": ix("var(--ds-skeleton, ".concat(N20A, ")"))
|
|
18
|
+
}
|
|
19
|
+
}, children);
|
|
20
|
+
};
|
|
21
|
+
export var UrlIcon = function UrlIcon(props) {
|
|
22
|
+
if (fg('platform_bandicoots-link-create-css')) {
|
|
23
|
+
return /*#__PURE__*/React.createElement(UrlIconNew, props);
|
|
24
|
+
}
|
|
25
|
+
return /*#__PURE__*/React.createElement(UrlIconOld, props);
|
|
26
|
+
};
|
|
22
27
|
export var PageIcon = function PageIcon() {
|
|
23
28
|
return /*#__PURE__*/React.createElement(Document16Icon, {
|
|
24
29
|
label: "Page"
|
|
@@ -0,0 +1,18 @@
|
|
|
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
|
+
});
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
._11c8qk37{font:var(--ds-font-body-UNSAFE_small,normal 400 9pt/1pc ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,system-ui,"Helvetica Neue",sans-serif)}
|
|
2
|
+
._zulp1b66{gap:var(--ds-space-050,4px)}
|
|
3
|
+
._12l2v77o{margin-inline-end:var(--ds-space-025,2px)}
|
|
4
|
+
._1bah1q9y{justify-content:baseline}
|
|
5
|
+
._1e0c1txw{display:flex}
|
|
6
|
+
._1pfh1b66{margin-block-start:var(--ds-space-050,4px)}
|
|
7
|
+
._4cvr1h6o{align-items:center}
|
|
8
|
+
._ahbqv77o{margin-inline-start:var(--ds-space-025,2px)}
|
|
9
|
+
._syaz131l{color:var(--ds-text-subtlest,#626f86)}
|
|
10
|
+
._syaz1tmw{color:var(--ds-text-danger,#ae2e24)}
|
|
11
|
+
._syazy73q{color:var(--ds-text-success,#216e4e)}
|
|
@@ -1,54 +1,39 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
*
|
|
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';
|
|
1
|
+
/* index.tsx generated by @compiled/babel-plugin v0.36.0 */
|
|
2
|
+
import "./index.compiled.css";
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
import { ax, ix } from "@compiled/react/runtime";
|
|
5
|
+
import { cx } from '@atlaskit/css';
|
|
8
6
|
import SuccessIcon from '@atlaskit/icon/utility/check-circle';
|
|
9
7
|
import ErrorIcon from '@atlaskit/icon/utility/error';
|
|
10
|
-
import {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
marginBlockStart: 'space.050'
|
|
17
|
-
});
|
|
8
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
9
|
+
import { Box } from '@atlaskit/primitives/compiled';
|
|
10
|
+
import { MessageOld } from './old';
|
|
11
|
+
var styles = {
|
|
12
|
+
message: "_zulp1b66 _11c8qk37 _1e0c1txw _1bah1q9y _1pfh1b66"
|
|
13
|
+
};
|
|
18
14
|
var messageAppearanceStyles = {
|
|
19
|
-
default:
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
error: xcss({
|
|
23
|
-
color: 'color.text.danger'
|
|
24
|
-
}),
|
|
25
|
-
valid: xcss({
|
|
26
|
-
color: 'color.text.success'
|
|
27
|
-
})
|
|
15
|
+
default: "_syaz131l",
|
|
16
|
+
error: "_syaz1tmw",
|
|
17
|
+
valid: "_syazy73q"
|
|
28
18
|
};
|
|
29
|
-
var iconWrapperStyles =
|
|
30
|
-
display: 'flex',
|
|
31
|
-
alignItems: 'center',
|
|
32
|
-
marginInlineStart: "var(--ds-space-025, 2px)",
|
|
33
|
-
marginInlineEnd: "var(--ds-space-025, 2px)"
|
|
34
|
-
});
|
|
19
|
+
var iconWrapperStyles = null;
|
|
35
20
|
var IconWrapper = function IconWrapper(_ref) {
|
|
36
21
|
var children = _ref.children;
|
|
37
|
-
return
|
|
38
|
-
|
|
22
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
23
|
+
className: ax(["_1e0c1txw _4cvr1h6o _ahbqv77o _12l2v77o"])
|
|
39
24
|
}, children);
|
|
40
25
|
};
|
|
41
26
|
var messageIcons = {
|
|
42
|
-
error:
|
|
27
|
+
error: /*#__PURE__*/React.createElement(ErrorIcon, {
|
|
43
28
|
color: "var(--ds-text-danger, #AE2A19)",
|
|
44
29
|
label: "error"
|
|
45
30
|
}),
|
|
46
|
-
valid:
|
|
31
|
+
valid: /*#__PURE__*/React.createElement(SuccessIcon, {
|
|
47
32
|
color: "var(--ds-text-success, #216E4E)",
|
|
48
33
|
label: "success"
|
|
49
34
|
})
|
|
50
35
|
};
|
|
51
|
-
|
|
36
|
+
var MessageNew = function MessageNew(_ref2) {
|
|
52
37
|
var children = _ref2.children,
|
|
53
38
|
_ref2$appearance = _ref2.appearance,
|
|
54
39
|
appearance = _ref2$appearance === void 0 ? 'default' : _ref2$appearance,
|
|
@@ -64,10 +49,16 @@ export var Message = function Message(_ref2) {
|
|
|
64
49
|
* If the child is just a string, this is not required and we can use one
|
|
65
50
|
* less DOM element.
|
|
66
51
|
*/
|
|
67
|
-
var content = typeof children === 'string' ? children :
|
|
68
|
-
return
|
|
69
|
-
xcss:
|
|
52
|
+
var content = typeof children === 'string' ? children : /*#__PURE__*/React.createElement("span", null, children);
|
|
53
|
+
return /*#__PURE__*/React.createElement(Box, {
|
|
54
|
+
xcss: cx(styles.message, messageAppearanceStyles[appearance]),
|
|
70
55
|
testId: testId,
|
|
71
56
|
id: id
|
|
72
|
-
}, icon &&
|
|
57
|
+
}, icon && /*#__PURE__*/React.createElement(IconWrapper, null, icon), content);
|
|
58
|
+
};
|
|
59
|
+
export var Message = function Message(props) {
|
|
60
|
+
if (fg('platform_bandicoots-link-create-css')) {
|
|
61
|
+
return /*#__PURE__*/React.createElement(MessageNew, props);
|
|
62
|
+
}
|
|
63
|
+
return /*#__PURE__*/React.createElement(MessageOld, props);
|
|
73
64
|
};
|
|
@@ -0,0 +1,73 @@
|
|
|
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,11 +1,13 @@
|
|
|
1
1
|
import React, { Fragment } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
3
|
+
import { Stack } from '@atlaskit/primitives/compiled';
|
|
3
4
|
import { ErrorBoundary } from '../../../common/ui/error-boundary';
|
|
5
|
+
import { ModalHeroOld } from './old';
|
|
4
6
|
var ErrorComponent = function ErrorComponent() {
|
|
5
7
|
// when there's an error, render nothing but report the issue
|
|
6
8
|
return /*#__PURE__*/React.createElement(Fragment, null, null);
|
|
7
9
|
};
|
|
8
|
-
|
|
10
|
+
var ModalHeroNew = function ModalHeroNew(_ref) {
|
|
9
11
|
var hero = _ref.hero;
|
|
10
12
|
if (!hero) {
|
|
11
13
|
return null;
|
|
@@ -15,4 +17,10 @@ export var ModalHero = function ModalHero(_ref) {
|
|
|
15
17
|
}, /*#__PURE__*/React.createElement(ErrorBoundary, {
|
|
16
18
|
errorComponent: /*#__PURE__*/React.createElement(ErrorComponent, null)
|
|
17
19
|
}, hero));
|
|
20
|
+
};
|
|
21
|
+
export var ModalHero = function ModalHero(props) {
|
|
22
|
+
if (fg('platform_bandicoots-link-create-css')) {
|
|
23
|
+
return /*#__PURE__*/React.createElement(ModalHeroNew, props);
|
|
24
|
+
}
|
|
25
|
+
return /*#__PURE__*/React.createElement(ModalHeroOld, props);
|
|
18
26
|
};
|
|
@@ -0,0 +1,18 @@
|
|
|
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
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
._19pku2gc{margin-top:var(--ds-space-100,8px)}
|
|
@@ -1,21 +1,18 @@
|
|
|
1
|
+
/* main.tsx generated by @compiled/babel-plugin v0.36.0 */
|
|
1
2
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
3
|
+
import "./main.compiled.css";
|
|
4
|
+
import * as React from 'react';
|
|
5
|
+
import { ax, ix } from "@compiled/react/runtime";
|
|
2
6
|
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
7
|
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
8
|
import { Field } from 'react-final-form';
|
|
12
9
|
import { Label, RequiredAsterisk } from '@atlaskit/form';
|
|
10
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
13
11
|
import { Message } from '../../common/ui/message';
|
|
14
12
|
import { shouldShowValidationErrors } from '../../common/utils/form';
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
export function CreateField(_ref) {
|
|
13
|
+
import { CreateFieldOld } from './old/main';
|
|
14
|
+
var fieldWrapperStyles = null;
|
|
15
|
+
var CreateFieldNew = function CreateFieldNew(_ref) {
|
|
19
16
|
var id = _ref.id,
|
|
20
17
|
name = _ref.name,
|
|
21
18
|
label = _ref.label,
|
|
@@ -25,7 +22,7 @@ export function CreateField(_ref) {
|
|
|
25
22
|
testId = _ref.testId,
|
|
26
23
|
children = _ref.children;
|
|
27
24
|
var fieldId = id ? id : "link-create-field-".concat(name);
|
|
28
|
-
return
|
|
25
|
+
return /*#__PURE__*/React.createElement(Field, {
|
|
29
26
|
name: name,
|
|
30
27
|
validate: function validate(value) {
|
|
31
28
|
var _find;
|
|
@@ -44,29 +41,35 @@ export function CreateField(_ref) {
|
|
|
44
41
|
var describedById = "".concat(fieldId, "-description");
|
|
45
42
|
var errorMessageId = "".concat(fieldId, "-error");
|
|
46
43
|
var ariaErrorMessage = showErrorMessage ? errorMessageId : undefined;
|
|
47
|
-
return
|
|
48
|
-
|
|
49
|
-
"
|
|
50
|
-
}, label &&
|
|
44
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
45
|
+
"data-testid": testId,
|
|
46
|
+
className: ax(["_19pku2gc"])
|
|
47
|
+
}, label && /*#__PURE__*/React.createElement(Label, {
|
|
51
48
|
htmlFor: fieldId,
|
|
52
49
|
id: "".concat(fieldId, "-label"),
|
|
53
50
|
testId: "".concat(testId, "-label")
|
|
54
|
-
}, label, isRequired &&
|
|
51
|
+
}, label, isRequired && /*#__PURE__*/React.createElement(RequiredAsterisk, null)), children(_objectSpread(_objectSpread({}, input), {}, {
|
|
55
52
|
fieldId: fieldId,
|
|
56
53
|
isInvalid: isInvalid,
|
|
57
54
|
isRequired: isRequired,
|
|
58
55
|
'aria-errormessage': ariaErrorMessage,
|
|
59
56
|
'aria-describedby': describedById
|
|
60
|
-
})),
|
|
57
|
+
})), /*#__PURE__*/React.createElement("div", {
|
|
61
58
|
id: describedById
|
|
62
|
-
}, !hasError && validationHelpText &&
|
|
59
|
+
}, !hasError && validationHelpText && /*#__PURE__*/React.createElement(Message, {
|
|
63
60
|
testId: "".concat(testId, "-helper-message")
|
|
64
|
-
}, validationHelpText),
|
|
61
|
+
}, validationHelpText), /*#__PURE__*/React.createElement("div", {
|
|
65
62
|
"aria-live": "polite"
|
|
66
|
-
}, showErrorMessage &&
|
|
63
|
+
}, showErrorMessage && /*#__PURE__*/React.createElement(Message, {
|
|
67
64
|
id: errorMessageId,
|
|
68
65
|
appearance: "error",
|
|
69
66
|
testId: "".concat(testId, "-error-message")
|
|
70
67
|
}, submitError || error))));
|
|
71
68
|
});
|
|
72
|
-
}
|
|
69
|
+
};
|
|
70
|
+
export var CreateField = function CreateField(props) {
|
|
71
|
+
if (fg('platform_bandicoots-link-create-css')) {
|
|
72
|
+
return /*#__PURE__*/React.createElement(CreateFieldNew, props);
|
|
73
|
+
}
|
|
74
|
+
return /*#__PURE__*/React.createElement(CreateFieldOld, props);
|
|
75
|
+
};
|
|
@@ -0,0 +1,72 @@
|
|
|
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
|
+
}
|