@atlaskit/link-create 2.14.0 → 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.
Files changed (233) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist/cjs/common/constants.js +4 -1
  3. package/dist/cjs/common/ui/error-boundary-modal/index.js +13 -10
  4. package/dist/cjs/common/ui/error-boundary-modal/old/index.js +34 -0
  5. package/dist/cjs/common/ui/error-boundary-ui/error-svg/index.compiled.css +6 -0
  6. package/dist/cjs/common/ui/error-boundary-ui/error-svg/index.js +32 -25
  7. package/dist/cjs/common/ui/error-boundary-ui/error-svg/old/index.js +67 -0
  8. package/dist/cjs/common/ui/icon/index.compiled.css +7 -0
  9. package/dist/cjs/common/ui/icon/index.js +25 -20
  10. package/dist/cjs/common/ui/icon/old/index.js +26 -0
  11. package/dist/cjs/common/ui/message/index.compiled.css +11 -0
  12. package/dist/cjs/common/ui/message/index.js +33 -40
  13. package/dist/cjs/common/ui/message/old/index.js +81 -0
  14. package/dist/cjs/common/ui/modal-hero/index.js +11 -3
  15. package/dist/cjs/common/ui/modal-hero/old/index.js +27 -0
  16. package/dist/cjs/controllers/create-field/main.compiled.css +1 -0
  17. package/dist/cjs/controllers/create-field/main.js +30 -21
  18. package/dist/cjs/controllers/create-field/old/main.js +76 -0
  19. package/dist/cjs/ui/create-form/async-select/main.js +15 -10
  20. package/dist/cjs/ui/create-form/async-select/old/main.js +195 -0
  21. package/dist/cjs/ui/create-form/form-footer/main.compiled.css +5 -0
  22. package/dist/cjs/ui/create-form/form-footer/main.js +28 -28
  23. package/dist/cjs/ui/create-form/form-footer/old/main.js +64 -0
  24. package/dist/cjs/ui/create-form/form-loader/main.compiled.css +4 -0
  25. package/dist/cjs/ui/create-form/form-loader/main.js +22 -21
  26. package/dist/cjs/ui/create-form/form-loader/old/main.js +39 -0
  27. package/dist/cjs/ui/create-form/main.compiled.css +9 -0
  28. package/dist/cjs/ui/create-form/main.js +26 -21
  29. package/dist/cjs/ui/create-form/old/main.js +177 -0
  30. package/dist/cjs/ui/create-form/select/main.js +41 -20
  31. package/dist/cjs/ui/create-form/select/old/main.js +127 -0
  32. package/dist/cjs/ui/create-form/textfield/main.js +14 -13
  33. package/dist/cjs/ui/create-form/textfield/old/main.js +55 -0
  34. package/dist/cjs/ui/create-form/user-picker/main.js +14 -13
  35. package/dist/cjs/ui/create-form/user-picker/old/main.js +72 -0
  36. package/dist/cjs/ui/inline-create/index.js +17 -14
  37. package/dist/cjs/ui/inline-create/main.js +21 -19
  38. package/dist/cjs/ui/inline-create/old/index.js +38 -0
  39. package/dist/cjs/ui/inline-create/old/main.js +120 -0
  40. package/dist/cjs/ui/modal-create/index.js +19 -16
  41. package/dist/cjs/ui/modal-create/main.js +26 -23
  42. package/dist/cjs/ui/modal-create/old/index.js +44 -0
  43. package/dist/cjs/ui/modal-create/old/main.js +164 -0
  44. package/dist/es2019/common/constants.js +4 -1
  45. package/dist/es2019/common/ui/error-boundary-modal/index.js +12 -9
  46. package/dist/es2019/common/ui/error-boundary-modal/old/index.js +26 -0
  47. package/dist/es2019/common/ui/error-boundary-ui/error-svg/index.compiled.css +6 -0
  48. package/dist/es2019/common/ui/error-boundary-ui/error-svg/index.js +24 -23
  49. package/dist/es2019/common/ui/error-boundary-ui/error-svg/old/index.js +58 -0
  50. package/dist/es2019/common/ui/icon/index.compiled.css +7 -0
  51. package/dist/es2019/common/ui/icon/index.js +23 -18
  52. package/dist/es2019/common/ui/icon/old/index.js +18 -0
  53. package/dist/es2019/common/ui/message/index.compiled.css +11 -0
  54. package/dist/es2019/common/ui/message/index.js +30 -39
  55. package/dist/es2019/common/ui/message/old/index.js +74 -0
  56. package/dist/es2019/common/ui/modal-hero/index.js +10 -2
  57. package/dist/es2019/common/ui/modal-hero/old/index.js +19 -0
  58. package/dist/es2019/controllers/create-field/main.compiled.css +1 -0
  59. package/dist/es2019/controllers/create-field/main.js +26 -23
  60. package/dist/es2019/controllers/create-field/old/main.js +74 -0
  61. package/dist/es2019/ui/create-form/async-select/main.js +12 -11
  62. package/dist/es2019/ui/create-form/async-select/old/main.js +137 -0
  63. package/dist/es2019/ui/create-form/form-footer/main.compiled.css +5 -0
  64. package/dist/es2019/ui/create-form/form-footer/main.js +25 -27
  65. package/dist/es2019/ui/create-form/form-footer/old/main.js +57 -0
  66. package/dist/es2019/ui/create-form/form-loader/main.compiled.css +4 -0
  67. package/dist/es2019/ui/create-form/form-loader/main.js +19 -20
  68. package/dist/es2019/ui/create-form/form-loader/old/main.js +31 -0
  69. package/dist/es2019/ui/create-form/main.compiled.css +9 -0
  70. package/dist/es2019/ui/create-form/main.js +23 -23
  71. package/dist/es2019/ui/create-form/old/main.js +145 -0
  72. package/dist/es2019/ui/create-form/select/main.js +42 -22
  73. package/dist/es2019/ui/create-form/select/old/main.js +106 -0
  74. package/dist/es2019/ui/create-form/textfield/main.js +14 -12
  75. package/dist/es2019/ui/create-form/textfield/old/main.js +45 -0
  76. package/dist/es2019/ui/create-form/user-picker/main.js +14 -12
  77. package/dist/es2019/ui/create-form/user-picker/old/main.js +59 -0
  78. package/dist/es2019/ui/inline-create/index.js +14 -13
  79. package/dist/es2019/ui/inline-create/main.js +21 -18
  80. package/dist/es2019/ui/inline-create/old/index.js +30 -0
  81. package/dist/es2019/ui/inline-create/old/main.js +96 -0
  82. package/dist/es2019/ui/modal-create/index.js +16 -15
  83. package/dist/es2019/ui/modal-create/main.js +23 -22
  84. package/dist/es2019/ui/modal-create/old/index.js +36 -0
  85. package/dist/es2019/ui/modal-create/old/main.js +137 -0
  86. package/dist/esm/common/constants.js +4 -1
  87. package/dist/esm/common/ui/error-boundary-modal/index.js +12 -9
  88. package/dist/esm/common/ui/error-boundary-modal/old/index.js +25 -0
  89. package/dist/esm/common/ui/error-boundary-ui/error-svg/index.compiled.css +6 -0
  90. package/dist/esm/common/ui/error-boundary-ui/error-svg/index.js +28 -24
  91. package/dist/esm/common/ui/error-boundary-ui/error-svg/old/index.js +60 -0
  92. package/dist/esm/common/ui/icon/index.compiled.css +7 -0
  93. package/dist/esm/common/ui/icon/index.js +23 -18
  94. package/dist/esm/common/ui/icon/old/index.js +18 -0
  95. package/dist/esm/common/ui/message/index.compiled.css +11 -0
  96. package/dist/esm/common/ui/message/index.js +30 -39
  97. package/dist/esm/common/ui/message/old/index.js +73 -0
  98. package/dist/esm/common/ui/modal-hero/index.js +10 -2
  99. package/dist/esm/common/ui/modal-hero/old/index.js +18 -0
  100. package/dist/esm/controllers/create-field/main.compiled.css +1 -0
  101. package/dist/esm/controllers/create-field/main.js +25 -22
  102. package/dist/esm/controllers/create-field/old/main.js +72 -0
  103. package/dist/esm/ui/create-form/async-select/main.js +12 -11
  104. package/dist/esm/ui/create-form/async-select/old/main.js +188 -0
  105. package/dist/esm/ui/create-form/form-footer/main.compiled.css +5 -0
  106. package/dist/esm/ui/create-form/form-footer/main.js +24 -26
  107. package/dist/esm/ui/create-form/form-footer/old/main.js +56 -0
  108. package/dist/esm/ui/create-form/form-loader/main.compiled.css +4 -0
  109. package/dist/esm/ui/create-form/form-loader/main.js +18 -19
  110. package/dist/esm/ui/create-form/form-loader/old/main.js +31 -0
  111. package/dist/esm/ui/create-form/main.compiled.css +9 -0
  112. package/dist/esm/ui/create-form/main.js +23 -23
  113. package/dist/esm/ui/create-form/old/main.js +174 -0
  114. package/dist/esm/ui/create-form/select/main.js +41 -21
  115. package/dist/esm/ui/create-form/select/old/main.js +117 -0
  116. package/dist/esm/ui/create-form/textfield/main.js +13 -11
  117. package/dist/esm/ui/create-form/textfield/old/main.js +47 -0
  118. package/dist/esm/ui/create-form/user-picker/main.js +13 -11
  119. package/dist/esm/ui/create-form/user-picker/old/main.js +64 -0
  120. package/dist/esm/ui/inline-create/index.js +14 -13
  121. package/dist/esm/ui/inline-create/main.js +21 -18
  122. package/dist/esm/ui/inline-create/old/index.js +30 -0
  123. package/dist/esm/ui/inline-create/old/main.js +112 -0
  124. package/dist/esm/ui/modal-create/index.js +16 -15
  125. package/dist/esm/ui/modal-create/main.js +23 -22
  126. package/dist/esm/ui/modal-create/old/index.js +36 -0
  127. package/dist/esm/ui/modal-create/old/main.js +156 -0
  128. package/dist/types/common/constants.d.ts +3 -0
  129. package/dist/types/common/ui/ModalDialog/index.d.ts +1 -1
  130. package/dist/types/common/ui/confirm-dismiss-dialog/main.d.ts +2 -2
  131. package/dist/types/common/ui/edit-modal/index.d.ts +1 -1
  132. package/dist/types/common/ui/error-boundary/error-boundary-base/index.d.ts +1 -1
  133. package/dist/types/common/ui/error-boundary/index.d.ts +2 -2
  134. package/dist/types/common/ui/error-boundary-modal/index.d.ts +2 -2
  135. package/dist/types/common/ui/error-boundary-modal/old/index.d.ts +11 -0
  136. package/dist/types/common/ui/error-boundary-ui/error-svg/index.d.ts +2 -6
  137. package/dist/types/common/ui/error-boundary-ui/error-svg/old/index.d.ts +7 -0
  138. package/dist/types/common/ui/error-boundary-ui/index.d.ts +2 -2
  139. package/dist/types/common/ui/experience-tracker/index.d.ts +1 -1
  140. package/dist/types/common/ui/icon/index.d.ts +10 -6
  141. package/dist/types/common/ui/icon/old/index.d.ts +7 -0
  142. package/dist/types/common/ui/link-create-content/index.d.ts +2 -2
  143. package/dist/types/common/ui/message/index.d.ts +1 -2
  144. package/dist/types/common/ui/message/old/index.d.ts +15 -0
  145. package/dist/types/common/ui/modal-hero/index.d.ts +4 -2
  146. package/dist/types/common/ui/modal-hero/old/index.d.ts +4 -0
  147. package/dist/types/controllers/callback-context/main.d.ts +2 -2
  148. package/dist/types/controllers/create-field/main.d.ts +2 -2
  149. package/dist/types/controllers/create-field/old/main.d.ts +7 -0
  150. package/dist/types/controllers/edit-post-create-context/index.d.ts +1 -1
  151. package/dist/types/controllers/exit-warning-modal-context/index.d.ts +1 -1
  152. package/dist/types/controllers/form-context/main.d.ts +2 -2
  153. package/dist/types/controllers/plugin-context/index.d.ts +1 -1
  154. package/dist/types/ui/create-form/async-select/main.d.ts +2 -8
  155. package/dist/types/ui/create-form/async-select/old/main.d.ts +11 -0
  156. package/dist/types/ui/create-form/form-footer/edit-button/index.d.ts +2 -2
  157. package/dist/types/ui/create-form/form-footer/main.d.ts +2 -11
  158. package/dist/types/ui/create-form/form-footer/old/main.d.ts +16 -0
  159. package/dist/types/ui/create-form/form-footer/submit-button/index.d.ts +2 -2
  160. package/dist/types/ui/create-form/form-loader/main.d.ts +2 -10
  161. package/dist/types/ui/create-form/form-loader/old/main.d.ts +11 -0
  162. package/dist/types/ui/create-form/form-spy/index.d.ts +1 -1
  163. package/dist/types/ui/create-form/main.d.ts +1 -2
  164. package/dist/types/ui/create-form/old/main.d.ts +54 -0
  165. package/dist/types/ui/create-form/select/main.d.ts +5 -16
  166. package/dist/types/ui/create-form/select/old/main.d.ts +24 -0
  167. package/dist/types/ui/create-form/textfield/main.d.ts +2 -12
  168. package/dist/types/ui/create-form/textfield/old/main.d.ts +14 -0
  169. package/dist/types/ui/create-form/user-picker/main.d.ts +2 -9
  170. package/dist/types/ui/create-form/user-picker/old/main.d.ts +11 -0
  171. package/dist/types/ui/inline-create/index.d.ts +2 -3
  172. package/dist/types/ui/inline-create/inline-analytics/index.d.ts +2 -2
  173. package/dist/types/ui/inline-create/main.d.ts +2 -6
  174. package/dist/types/ui/inline-create/old/index.d.ts +5 -0
  175. package/dist/types/ui/inline-create/old/main.d.ts +8 -0
  176. package/dist/types/ui/modal-create/index.d.ts +2 -3
  177. package/dist/types/ui/modal-create/main.d.ts +2 -2
  178. package/dist/types/ui/modal-create/old/index.d.ts +5 -0
  179. package/dist/types/ui/modal-create/old/main.d.ts +4 -0
  180. package/dist/types-ts4.5/common/constants.d.ts +3 -0
  181. package/dist/types-ts4.5/common/ui/ModalDialog/index.d.ts +1 -1
  182. package/dist/types-ts4.5/common/ui/confirm-dismiss-dialog/main.d.ts +2 -2
  183. package/dist/types-ts4.5/common/ui/edit-modal/index.d.ts +1 -1
  184. package/dist/types-ts4.5/common/ui/error-boundary/error-boundary-base/index.d.ts +1 -1
  185. package/dist/types-ts4.5/common/ui/error-boundary/index.d.ts +2 -2
  186. package/dist/types-ts4.5/common/ui/error-boundary-modal/index.d.ts +2 -2
  187. package/dist/types-ts4.5/common/ui/error-boundary-modal/old/index.d.ts +11 -0
  188. package/dist/types-ts4.5/common/ui/error-boundary-ui/error-svg/index.d.ts +2 -6
  189. package/dist/types-ts4.5/common/ui/error-boundary-ui/error-svg/old/index.d.ts +7 -0
  190. package/dist/types-ts4.5/common/ui/error-boundary-ui/index.d.ts +2 -2
  191. package/dist/types-ts4.5/common/ui/experience-tracker/index.d.ts +1 -1
  192. package/dist/types-ts4.5/common/ui/icon/index.d.ts +10 -6
  193. package/dist/types-ts4.5/common/ui/icon/old/index.d.ts +7 -0
  194. package/dist/types-ts4.5/common/ui/link-create-content/index.d.ts +2 -2
  195. package/dist/types-ts4.5/common/ui/message/index.d.ts +1 -2
  196. package/dist/types-ts4.5/common/ui/message/old/index.d.ts +15 -0
  197. package/dist/types-ts4.5/common/ui/modal-hero/index.d.ts +4 -2
  198. package/dist/types-ts4.5/common/ui/modal-hero/old/index.d.ts +4 -0
  199. package/dist/types-ts4.5/controllers/callback-context/main.d.ts +2 -2
  200. package/dist/types-ts4.5/controllers/create-field/main.d.ts +2 -2
  201. package/dist/types-ts4.5/controllers/create-field/old/main.d.ts +7 -0
  202. package/dist/types-ts4.5/controllers/edit-post-create-context/index.d.ts +1 -1
  203. package/dist/types-ts4.5/controllers/exit-warning-modal-context/index.d.ts +1 -1
  204. package/dist/types-ts4.5/controllers/form-context/main.d.ts +2 -2
  205. package/dist/types-ts4.5/controllers/plugin-context/index.d.ts +1 -1
  206. package/dist/types-ts4.5/ui/create-form/async-select/main.d.ts +2 -8
  207. package/dist/types-ts4.5/ui/create-form/async-select/old/main.d.ts +11 -0
  208. package/dist/types-ts4.5/ui/create-form/form-footer/edit-button/index.d.ts +2 -2
  209. package/dist/types-ts4.5/ui/create-form/form-footer/main.d.ts +2 -11
  210. package/dist/types-ts4.5/ui/create-form/form-footer/old/main.d.ts +16 -0
  211. package/dist/types-ts4.5/ui/create-form/form-footer/submit-button/index.d.ts +2 -2
  212. package/dist/types-ts4.5/ui/create-form/form-loader/main.d.ts +2 -10
  213. package/dist/types-ts4.5/ui/create-form/form-loader/old/main.d.ts +11 -0
  214. package/dist/types-ts4.5/ui/create-form/form-spy/index.d.ts +1 -1
  215. package/dist/types-ts4.5/ui/create-form/main.d.ts +1 -2
  216. package/dist/types-ts4.5/ui/create-form/old/main.d.ts +56 -0
  217. package/dist/types-ts4.5/ui/create-form/select/main.d.ts +5 -16
  218. package/dist/types-ts4.5/ui/create-form/select/old/main.d.ts +24 -0
  219. package/dist/types-ts4.5/ui/create-form/textfield/main.d.ts +2 -12
  220. package/dist/types-ts4.5/ui/create-form/textfield/old/main.d.ts +14 -0
  221. package/dist/types-ts4.5/ui/create-form/user-picker/main.d.ts +2 -9
  222. package/dist/types-ts4.5/ui/create-form/user-picker/old/main.d.ts +11 -0
  223. package/dist/types-ts4.5/ui/inline-create/index.d.ts +2 -3
  224. package/dist/types-ts4.5/ui/inline-create/inline-analytics/index.d.ts +2 -2
  225. package/dist/types-ts4.5/ui/inline-create/main.d.ts +2 -6
  226. package/dist/types-ts4.5/ui/inline-create/old/index.d.ts +5 -0
  227. package/dist/types-ts4.5/ui/inline-create/old/main.d.ts +8 -0
  228. package/dist/types-ts4.5/ui/modal-create/index.d.ts +2 -3
  229. package/dist/types-ts4.5/ui/modal-create/main.d.ts +2 -2
  230. package/dist/types-ts4.5/ui/modal-create/old/index.d.ts +5 -0
  231. package/dist/types-ts4.5/ui/modal-create/old/main.d.ts +4 -0
  232. package/example-helpers/mock-disclaimer.tsx +1 -1
  233. package/package.json +17 -6
@@ -1,58 +1,59 @@
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';
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
  const WIDTH = 82;
9
- const errorStyles = css({
10
- width: `${WIDTH}px`,
11
- margin: `0 auto ${"var(--ds-space-300, 24px)"}`,
12
- display: `block`
13
- });
8
+ const errorStyles = null;
14
9
  const id = 'link-create-error-svg';
15
- const ErrorSVG = () => jsx("svg", {
10
+ const ErrorSVGNew = () => /*#__PURE__*/React.createElement("svg", {
16
11
  height: "90",
17
12
  viewBox: "0 0 164 212",
18
13
  fill: "none",
19
14
  xmlns: "http://www.w3.org/2000/svg",
20
- css: errorStyles
21
- }, jsx("path", {
15
+ className: ax(["_1bsb12cx _19pkidpf _2hwx1wug _otyr1ejb _18u01wug _1e0c1ule"])
16
+ }, /*#__PURE__*/React.createElement("path", {
22
17
  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",
23
18
  fill: `url(#${id})`
24
- }), jsx("path", {
19
+ }), /*#__PURE__*/React.createElement("path", {
25
20
  opacity: ".6",
26
21
  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",
27
22
  fill: "#C1C7D0"
28
- }), jsx("path", {
23
+ }), /*#__PURE__*/React.createElement("path", {
29
24
  opacity: ".6",
30
25
  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",
31
26
  fill: "#B3BAC5"
32
- }), jsx("defs", null, jsx("linearGradient", {
27
+ }), /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("linearGradient", {
33
28
  id: id,
34
29
  x1: "26.169",
35
30
  y1: "228.621",
36
31
  x2: "138.408",
37
32
  y2: "116.382",
38
33
  gradientUnits: "userSpaceOnUse"
39
- }, jsx("stop", {
34
+ }, /*#__PURE__*/React.createElement("stop", {
40
35
  stopColor: "#C1C7D0"
41
- }), jsx("stop", {
36
+ }), /*#__PURE__*/React.createElement("stop", {
42
37
  offset: ".297",
43
38
  stopColor: "#C6CBD4",
44
39
  stopOpacity: ".881"
45
- }), jsx("stop", {
40
+ }), /*#__PURE__*/React.createElement("stop", {
46
41
  offset: ".63",
47
42
  stopColor: "#D3D7DE",
48
43
  stopOpacity: ".748"
49
- }), jsx("stop", {
44
+ }), /*#__PURE__*/React.createElement("stop", {
50
45
  offset: ".98",
51
46
  stopColor: "#E9EBEF",
52
47
  stopOpacity: ".608"
53
- }), jsx("stop", {
48
+ }), /*#__PURE__*/React.createElement("stop", {
54
49
  offset: "1",
55
50
  stopColor: "#EBECF0",
56
51
  stopOpacity: ".6"
57
52
  }))));
53
+ const ErrorSVG = () => {
54
+ if (fg('platform_bandicoots-link-create-css')) {
55
+ return /*#__PURE__*/React.createElement(ErrorSVGNew, null);
56
+ }
57
+ return /*#__PURE__*/React.createElement(ErrorSVGOld, null);
58
+ };
58
59
  export default ErrorSVG;
@@ -0,0 +1,58 @@
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
+ const WIDTH = 82;
9
+ const errorStyles = css({
10
+ width: `${WIDTH}px`,
11
+ margin: `0 auto ${"var(--ds-space-300, 24px)"}`,
12
+ display: `block`
13
+ });
14
+ const id = 'link-create-error-svg';
15
+ const ErrorSVGOld = () => jsx("svg", {
16
+ height: "90",
17
+ viewBox: "0 0 164 212",
18
+ fill: "none",
19
+ xmlns: "http://www.w3.org/2000/svg",
20
+ css: errorStyles
21
+ }, jsx("path", {
22
+ 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",
23
+ fill: `url(#${id})`
24
+ }), jsx("path", {
25
+ opacity: ".6",
26
+ 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",
27
+ fill: "#C1C7D0"
28
+ }), jsx("path", {
29
+ opacity: ".6",
30
+ 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",
31
+ fill: "#B3BAC5"
32
+ }), jsx("defs", null, jsx("linearGradient", {
33
+ id: id,
34
+ x1: "26.169",
35
+ y1: "228.621",
36
+ x2: "138.408",
37
+ y2: "116.382",
38
+ gradientUnits: "userSpaceOnUse"
39
+ }, jsx("stop", {
40
+ stopColor: "#C1C7D0"
41
+ }), jsx("stop", {
42
+ offset: ".297",
43
+ stopColor: "#C6CBD4",
44
+ stopOpacity: ".881"
45
+ }), jsx("stop", {
46
+ offset: ".63",
47
+ stopColor: "#D3D7DE",
48
+ stopOpacity: ".748"
49
+ }), jsx("stop", {
50
+ offset: ".98",
51
+ stopColor: "#E9EBEF",
52
+ stopOpacity: ".608"
53
+ }), jsx("stop", {
54
+ offset: "1",
55
+ stopColor: "#EBECF0",
56
+ stopOpacity: ".6"
57
+ }))));
58
+ 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
+ ._bfhklbf8{background-color:var(--ds-skeleton,rgba(9,30,66,.04))}
@@ -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
- // 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
8
- export const UrlIcon = styled.div(props => {
9
- var _props$url;
10
- return {
11
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
12
- backgroundImage: `url(${(_props$url = props.url) !== null && _props$url !== void 0 ? _props$url : ''})`,
13
- backgroundColor: `var(--ds-skeleton, ${N20A})`,
14
- backgroundSize: 'contain',
15
- backgroundRepeat: 'no-repeat',
16
- height: "var(--ds-space-200, 16px)",
17
- width: "var(--ds-space-200, 16px)",
18
- borderRadius: "var(--ds-border-radius, 3px)",
19
- flexShrink: 0
20
- };
21
- });
8
+ import { UrlIconOld } from './old';
9
+ const baseStyles = null;
10
+ const UrlIconNew = ({
11
+ url,
12
+ children
13
+ }) => {
14
+ return /*#__PURE__*/React.createElement("div", {
15
+ style: {
16
+ backgroundImage: `url(${url !== null && url !== void 0 ? url : ''})`
17
+ },
18
+ className: ax(["_2rko1sit _bfhklbf8 _1lrw1f51 _12vemgnk _4t3ipxbi _1bsbpxbi _1o9zidpf"])
19
+ }, children);
20
+ };
21
+ export const 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 const PageIcon = () => /*#__PURE__*/React.createElement(Document16Icon, {
23
28
  label: "Page"
24
29
  });
@@ -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 const UrlIconOld = styled.div(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(${(_props$url = props.url) !== null && _props$url !== void 0 ? _props$url : ''})`,
10
+ backgroundColor: `var(--ds-skeleton, ${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,55 +1,40 @@
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';
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 { Box, xcss } from '@atlaskit/primitives';
11
- const 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
- });
8
+ import { fg } from '@atlaskit/platform-feature-flags';
9
+ import { Box } from '@atlaskit/primitives/compiled';
10
+ import { MessageOld } from './old';
11
+ const styles = {
12
+ message: "_zulp1b66 _11c8qk37 _1e0c1txw _1bah1q9y _1pfh1b66"
13
+ };
18
14
  const 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
- })
15
+ default: "_syaz131l",
16
+ error: "_syaz1tmw",
17
+ valid: "_syazy73q"
28
18
  };
29
- const iconWrapperStyles = css({
30
- display: 'flex',
31
- alignItems: 'center',
32
- marginInlineStart: "var(--ds-space-025, 2px)",
33
- marginInlineEnd: "var(--ds-space-025, 2px)"
34
- });
19
+ const iconWrapperStyles = null;
35
20
  const IconWrapper = ({
36
21
  children
37
22
  }) => {
38
- return jsx("span", {
39
- css: iconWrapperStyles
23
+ return /*#__PURE__*/React.createElement("span", {
24
+ className: ax(["_1e0c1txw _4cvr1h6o _ahbqv77o _12l2v77o"])
40
25
  }, children);
41
26
  };
42
27
  const messageIcons = {
43
- error: jsx(ErrorIcon, {
28
+ error: /*#__PURE__*/React.createElement(ErrorIcon, {
44
29
  color: "var(--ds-text-danger, #AE2A19)",
45
30
  label: "error"
46
31
  }),
47
- valid: jsx(SuccessIcon, {
32
+ valid: /*#__PURE__*/React.createElement(SuccessIcon, {
48
33
  color: "var(--ds-text-success, #216E4E)",
49
34
  label: "success"
50
35
  })
51
36
  };
52
- export const Message = ({
37
+ const MessageNew = ({
53
38
  children,
54
39
  appearance = 'default',
55
40
  id,
@@ -65,10 +50,16 @@ export const Message = ({
65
50
  * If the child is just a string, this is not required and we can use one
66
51
  * less DOM element.
67
52
  */
68
- const content = typeof children === 'string' ? children : jsx("span", null, children);
69
- return jsx(Box, {
70
- xcss: [messageStyles, messageAppearanceStyles[appearance]],
53
+ const content = typeof children === 'string' ? children : /*#__PURE__*/React.createElement("span", null, children);
54
+ return /*#__PURE__*/React.createElement(Box, {
55
+ xcss: cx(styles.message, messageAppearanceStyles[appearance]),
71
56
  testId: testId,
72
57
  id: id
73
- }, icon && jsx(IconWrapper, null, icon), content);
58
+ }, icon && /*#__PURE__*/React.createElement(IconWrapper, null, icon), content);
59
+ };
60
+ export const Message = props => {
61
+ if (fg('platform_bandicoots-link-create-css')) {
62
+ return /*#__PURE__*/React.createElement(MessageNew, props);
63
+ }
64
+ return /*#__PURE__*/React.createElement(MessageOld, props);
74
65
  };
@@ -0,0 +1,74 @@
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
+ const 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
+ const 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
+ const iconWrapperStyles = css({
30
+ display: 'flex',
31
+ alignItems: 'center',
32
+ marginInlineStart: "var(--ds-space-025, 2px)",
33
+ marginInlineEnd: "var(--ds-space-025, 2px)"
34
+ });
35
+ const IconWrapper = ({
36
+ children
37
+ }) => {
38
+ return jsx("span", {
39
+ css: iconWrapperStyles
40
+ }, children);
41
+ };
42
+ const messageIcons = {
43
+ error: jsx(ErrorIcon, {
44
+ color: "var(--ds-text-danger, #AE2A19)",
45
+ label: "error"
46
+ }),
47
+ valid: jsx(SuccessIcon, {
48
+ color: "var(--ds-text-success, #216E4E)",
49
+ label: "success"
50
+ })
51
+ };
52
+ export const MessageOld = ({
53
+ children,
54
+ appearance = 'default',
55
+ id,
56
+ testId
57
+ }) => {
58
+ const icon = messageIcons[appearance];
59
+
60
+ /**
61
+ * The wrapping span is necessary to preserve spaces between children.
62
+ * Otherwise the flex layout of the message will remove any whitespace
63
+ * between children.
64
+ *
65
+ * If the child is just a string, this is not required and we can use one
66
+ * less DOM element.
67
+ */
68
+ const content = typeof children === 'string' ? children : jsx("span", null, children);
69
+ return jsx(Box, {
70
+ xcss: [messageStyles, messageAppearanceStyles[appearance]],
71
+ testId: testId,
72
+ id: id
73
+ }, icon && jsx(IconWrapper, null, icon), content);
74
+ };
@@ -1,11 +1,13 @@
1
1
  import React, { Fragment } from 'react';
2
- import { Stack } from '@atlaskit/primitives';
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
  const 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
- export const ModalHero = ({
10
+ const ModalHeroNew = ({
9
11
  hero
10
12
  }) => {
11
13
  if (!hero) {
@@ -16,4 +18,10 @@ export const ModalHero = ({
16
18
  }, /*#__PURE__*/React.createElement(ErrorBoundary, {
17
19
  errorComponent: /*#__PURE__*/React.createElement(ErrorComponent, null)
18
20
  }, hero));
21
+ };
22
+ export const ModalHero = props => {
23
+ if (fg('platform_bandicoots-link-create-css')) {
24
+ return /*#__PURE__*/React.createElement(ModalHeroNew, props);
25
+ }
26
+ return /*#__PURE__*/React.createElement(ModalHeroOld, props);
19
27
  };
@@ -0,0 +1,19 @@
1
+ import React, { Fragment } from 'react';
2
+ import { Stack } from '@atlaskit/primitives';
3
+ import { ErrorBoundary } from '../../../../common/ui/error-boundary';
4
+ const ErrorComponent = () => {
5
+ // when there's an error, render nothing but report the issue
6
+ return /*#__PURE__*/React.createElement(Fragment, null, null);
7
+ };
8
+ export const ModalHeroOld = ({
9
+ hero
10
+ }) => {
11
+ if (!hero) {
12
+ return null;
13
+ }
14
+ return /*#__PURE__*/React.createElement(Stack, {
15
+ testId: "link-create-modal-hero"
16
+ }, /*#__PURE__*/React.createElement(ErrorBoundary, {
17
+ errorComponent: /*#__PURE__*/React.createElement(ErrorComponent, null)
18
+ }, hero));
19
+ };
@@ -0,0 +1 @@
1
+ ._19pku2gc{margin-top:var(--ds-space-100,8px)}
@@ -1,18 +1,15 @@
1
- /**
2
- * @jsxRuntime classic
3
- * @jsx jsx
4
- */
5
-
6
- // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled
7
- import { css, jsx } from '@emotion/react';
1
+ /* main.tsx generated by @compiled/babel-plugin v0.36.0 */
2
+ import "./main.compiled.css";
3
+ import * as React from 'react';
4
+ import { ax, ix } from "@compiled/react/runtime";
8
5
  import { Field } from 'react-final-form';
9
6
  import { Label, RequiredAsterisk } from '@atlaskit/form';
7
+ import { fg } from '@atlaskit/platform-feature-flags';
10
8
  import { Message } from '../../common/ui/message';
11
9
  import { shouldShowValidationErrors } from '../../common/utils/form';
12
- const fieldWrapperStyles = css({
13
- marginTop: "var(--ds-space-100, 8px)"
14
- });
15
- export function CreateField({
10
+ import { CreateFieldOld } from './old/main';
11
+ const fieldWrapperStyles = null;
12
+ const CreateFieldNew = ({
16
13
  id,
17
14
  name,
18
15
  label,
@@ -21,9 +18,9 @@ export function CreateField({
21
18
  validationHelpText,
22
19
  testId,
23
20
  children
24
- }) {
21
+ }) => {
25
22
  const fieldId = id ? id : `link-create-field-${name}`;
26
- return jsx(Field, {
23
+ return /*#__PURE__*/React.createElement(Field, {
27
24
  name: name,
28
25
  validate: value => {
29
26
  var _find;
@@ -45,30 +42,36 @@ export function CreateField({
45
42
  const describedById = `${fieldId}-description`;
46
43
  const errorMessageId = `${fieldId}-error`;
47
44
  const ariaErrorMessage = showErrorMessage ? errorMessageId : undefined;
48
- return jsx("div", {
49
- css: fieldWrapperStyles,
50
- "data-testid": testId
51
- }, label && jsx(Label, {
45
+ return /*#__PURE__*/React.createElement("div", {
46
+ "data-testid": testId,
47
+ className: ax(["_19pku2gc"])
48
+ }, label && /*#__PURE__*/React.createElement(Label, {
52
49
  htmlFor: fieldId,
53
50
  id: `${fieldId}-label`,
54
51
  testId: `${testId}-label`
55
- }, label, isRequired && jsx(RequiredAsterisk, null)), children({
52
+ }, label, isRequired && /*#__PURE__*/React.createElement(RequiredAsterisk, null)), children({
56
53
  ...input,
57
54
  fieldId,
58
55
  isInvalid,
59
56
  isRequired,
60
57
  'aria-errormessage': ariaErrorMessage,
61
58
  'aria-describedby': describedById
62
- }), jsx("div", {
59
+ }), /*#__PURE__*/React.createElement("div", {
63
60
  id: describedById
64
- }, !hasError && validationHelpText && jsx(Message, {
61
+ }, !hasError && validationHelpText && /*#__PURE__*/React.createElement(Message, {
65
62
  testId: `${testId}-helper-message`
66
- }, validationHelpText), jsx("div", {
63
+ }, validationHelpText), /*#__PURE__*/React.createElement("div", {
67
64
  "aria-live": "polite"
68
- }, showErrorMessage && jsx(Message, {
65
+ }, showErrorMessage && /*#__PURE__*/React.createElement(Message, {
69
66
  id: errorMessageId,
70
67
  appearance: "error",
71
68
  testId: `${testId}-error-message`
72
69
  }, submitError || error))));
73
70
  });
74
- }
71
+ };
72
+ export const CreateField = props => {
73
+ if (fg('platform_bandicoots-link-create-css')) {
74
+ return /*#__PURE__*/React.createElement(CreateFieldNew, props);
75
+ }
76
+ return /*#__PURE__*/React.createElement(CreateFieldOld, props);
77
+ };
@@ -0,0 +1,74 @@
1
+ /**
2
+ * @jsxRuntime classic
3
+ * @jsx jsx
4
+ */
5
+
6
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled
7
+ import { css, jsx } from '@emotion/react';
8
+ import { Field } from 'react-final-form';
9
+ import { Label, RequiredAsterisk } from '@atlaskit/form';
10
+ import { Message } from '../../../common/ui/message';
11
+ import { shouldShowValidationErrors } from '../../../common/utils/form';
12
+ const fieldWrapperStyles = css({
13
+ marginTop: "var(--ds-space-100, 8px)"
14
+ });
15
+ export function CreateFieldOld({
16
+ id,
17
+ name,
18
+ label,
19
+ isRequired,
20
+ validators,
21
+ validationHelpText,
22
+ testId,
23
+ children
24
+ }) {
25
+ const fieldId = id ? id : `link-create-field-${name}`;
26
+ return jsx(Field, {
27
+ name: name,
28
+ validate: value => {
29
+ var _find;
30
+ return (_find = (validators !== null && validators !== void 0 ? validators : []).find(validator => {
31
+ return !validator.isValid(value);
32
+ })) === null || _find === void 0 ? void 0 : _find.errorMessage;
33
+ }
34
+ }, ({
35
+ input,
36
+ meta
37
+ }) => {
38
+ const isInvalid = shouldShowValidationErrors(meta);
39
+ const {
40
+ submitError,
41
+ error
42
+ } = meta;
43
+ const hasError = !!submitError || !!error;
44
+ const showErrorMessage = hasError && isInvalid;
45
+ const describedById = `${fieldId}-description`;
46
+ const errorMessageId = `${fieldId}-error`;
47
+ const ariaErrorMessage = showErrorMessage ? errorMessageId : undefined;
48
+ return jsx("div", {
49
+ css: fieldWrapperStyles,
50
+ "data-testid": testId
51
+ }, label && jsx(Label, {
52
+ htmlFor: fieldId,
53
+ id: `${fieldId}-label`,
54
+ testId: `${testId}-label`
55
+ }, label, isRequired && jsx(RequiredAsterisk, null)), children({
56
+ ...input,
57
+ fieldId,
58
+ isInvalid,
59
+ isRequired,
60
+ 'aria-errormessage': ariaErrorMessage,
61
+ 'aria-describedby': describedById
62
+ }), jsx("div", {
63
+ id: describedById
64
+ }, !hasError && validationHelpText && jsx(Message, {
65
+ testId: `${testId}-helper-message`
66
+ }, validationHelpText), jsx("div", {
67
+ "aria-live": "polite"
68
+ }, showErrorMessage && jsx(Message, {
69
+ id: errorMessageId,
70
+ appearance: "error",
71
+ testId: `${testId}-error-message`
72
+ }, submitError || error))));
73
+ });
74
+ }