@atlaskit/contextual-survey 3.1.2 → 4.0.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 (122) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/dist/cjs/components/FeedbackAcknowledgement.js +2 -7
  3. package/dist/cjs/components/FeedbackScoreButtons.js +21 -45
  4. package/dist/cjs/components/SignUpPrompt.js +24 -29
  5. package/dist/cjs/components/SignUpSuccess.js +5 -10
  6. package/dist/cjs/components/SuccessContainer.js +14 -19
  7. package/dist/cjs/components/SurveyContainer.js +23 -33
  8. package/dist/cjs/components/SurveyForm.js +26 -31
  9. package/dist/cjs/components/SurveyMarshal.js +16 -23
  10. package/dist/cjs/index.js +8 -4
  11. package/dist/es2019/components/FeedbackAcknowledgement.js +2 -7
  12. package/dist/es2019/components/FeedbackScoreButtons.js +18 -44
  13. package/dist/es2019/components/SignUpPrompt.js +20 -29
  14. package/dist/es2019/components/SignUpSuccess.js +5 -10
  15. package/dist/es2019/components/SuccessContainer.js +11 -19
  16. package/dist/es2019/components/SurveyContainer.js +16 -33
  17. package/dist/es2019/components/SurveyForm.js +25 -29
  18. package/dist/es2019/components/SurveyMarshal.js +12 -22
  19. package/dist/es2019/index.js +2 -3
  20. package/dist/esm/components/FeedbackAcknowledgement.js +2 -7
  21. package/dist/esm/components/FeedbackScoreButtons.js +18 -44
  22. package/dist/esm/components/SignUpPrompt.js +20 -29
  23. package/dist/esm/components/SignUpSuccess.js +5 -10
  24. package/dist/esm/components/SuccessContainer.js +11 -19
  25. package/dist/esm/components/SurveyContainer.js +20 -33
  26. package/dist/esm/components/SurveyForm.js +25 -29
  27. package/dist/esm/components/SurveyMarshal.js +13 -22
  28. package/dist/esm/index.js +2 -3
  29. package/dist/types/components/ContextualSurvey.d.ts +1 -1
  30. package/dist/types/components/FeedbackAcknowledgement.d.ts +2 -6
  31. package/dist/types/components/FeedbackScoreButtons.d.ts +2 -2
  32. package/dist/types/components/SignUpPrompt.d.ts +6 -2
  33. package/dist/types/components/SignUpSuccess.d.ts +2 -6
  34. package/dist/types/components/SuccessContainer.d.ts +1 -6
  35. package/dist/types/components/SurveyContainer.d.ts +2 -3
  36. package/dist/types/components/SurveyForm.d.ts +2 -2
  37. package/dist/types/components/SurveyMarshal.d.ts +3 -3
  38. package/dist/types/index.d.ts +2 -3
  39. package/dist/types-ts4.5/components/ContextualSurvey.d.ts +1 -1
  40. package/dist/types-ts4.5/components/FeedbackAcknowledgement.d.ts +2 -6
  41. package/dist/types-ts4.5/components/FeedbackScoreButtons.d.ts +2 -2
  42. package/dist/types-ts4.5/components/SignUpPrompt.d.ts +6 -2
  43. package/dist/types-ts4.5/components/SignUpSuccess.d.ts +2 -6
  44. package/dist/types-ts4.5/components/SuccessContainer.d.ts +1 -6
  45. package/dist/types-ts4.5/components/SurveyContainer.d.ts +1 -2
  46. package/dist/types-ts4.5/components/SurveyForm.d.ts +2 -2
  47. package/dist/types-ts4.5/components/SurveyMarshal.d.ts +3 -3
  48. package/dist/types-ts4.5/index.d.ts +2 -3
  49. package/package.json +7 -12
  50. package/dist/cjs/compiled/ContextualSurvey.js +0 -231
  51. package/dist/cjs/compiled/FeedbackAcknowledgement.js +0 -15
  52. package/dist/cjs/compiled/FeedbackScoreButtons.js +0 -64
  53. package/dist/cjs/compiled/SignUpPrompt.js +0 -80
  54. package/dist/cjs/compiled/SignUpSuccess.js +0 -22
  55. package/dist/cjs/compiled/SuccessContainer.js +0 -32
  56. package/dist/cjs/compiled/SurveyContainer.js +0 -39
  57. package/dist/cjs/compiled/SurveyForm.js +0 -141
  58. package/dist/cjs/compiled/SurveyMarshal.js +0 -63
  59. package/dist/cjs/compiled/useEscapeToDismiss.js +0 -71
  60. package/dist/cjs/fg-components.js +0 -27
  61. package/dist/es2019/compiled/ContextualSurvey.js +0 -176
  62. package/dist/es2019/compiled/FeedbackAcknowledgement.js +0 -6
  63. package/dist/es2019/compiled/FeedbackScoreButtons.js +0 -51
  64. package/dist/es2019/compiled/SignUpPrompt.js +0 -47
  65. package/dist/es2019/compiled/SignUpSuccess.js +0 -11
  66. package/dist/es2019/compiled/SuccessContainer.js +0 -21
  67. package/dist/es2019/compiled/SurveyContainer.js +0 -26
  68. package/dist/es2019/compiled/SurveyForm.js +0 -119
  69. package/dist/es2019/compiled/SurveyMarshal.js +0 -56
  70. package/dist/es2019/compiled/useEscapeToDismiss.js +0 -65
  71. package/dist/es2019/fg-components.js +0 -13
  72. package/dist/esm/compiled/ContextualSurvey.js +0 -221
  73. package/dist/esm/compiled/FeedbackAcknowledgement.js +0 -8
  74. package/dist/esm/compiled/FeedbackScoreButtons.js +0 -54
  75. package/dist/esm/compiled/SignUpPrompt.js +0 -70
  76. package/dist/esm/compiled/SignUpSuccess.js +0 -15
  77. package/dist/esm/compiled/SuccessContainer.js +0 -22
  78. package/dist/esm/compiled/SurveyContainer.js +0 -29
  79. package/dist/esm/compiled/SurveyForm.js +0 -131
  80. package/dist/esm/compiled/SurveyMarshal.js +0 -54
  81. package/dist/esm/compiled/useEscapeToDismiss.js +0 -64
  82. package/dist/esm/fg-components.js +0 -19
  83. package/dist/types/compiled/ContextualSurvey.d.ts +0 -40
  84. package/dist/types/compiled/FeedbackAcknowledgement.d.ts +0 -3
  85. package/dist/types/compiled/FeedbackScoreButtons.d.ts +0 -11
  86. package/dist/types/compiled/SignUpPrompt.d.ts +0 -10
  87. package/dist/types/compiled/SignUpSuccess.d.ts +0 -5
  88. package/dist/types/compiled/SuccessContainer.d.ts +0 -6
  89. package/dist/types/compiled/SurveyContainer.d.ts +0 -11
  90. package/dist/types/compiled/SurveyForm.d.ts +0 -12
  91. package/dist/types/compiled/SurveyMarshal.d.ts +0 -16
  92. package/dist/types/compiled/useEscapeToDismiss.d.ts +0 -6
  93. package/dist/types/fg-components.d.ts +0 -5
  94. package/dist/types-ts4.5/compiled/ContextualSurvey.d.ts +0 -40
  95. package/dist/types-ts4.5/compiled/FeedbackAcknowledgement.d.ts +0 -3
  96. package/dist/types-ts4.5/compiled/FeedbackScoreButtons.d.ts +0 -11
  97. package/dist/types-ts4.5/compiled/SignUpPrompt.d.ts +0 -10
  98. package/dist/types-ts4.5/compiled/SignUpSuccess.d.ts +0 -5
  99. package/dist/types-ts4.5/compiled/SuccessContainer.d.ts +0 -6
  100. package/dist/types-ts4.5/compiled/SurveyContainer.d.ts +0 -11
  101. package/dist/types-ts4.5/compiled/SurveyForm.d.ts +0 -12
  102. package/dist/types-ts4.5/compiled/SurveyMarshal.d.ts +0 -16
  103. package/dist/types-ts4.5/compiled/useEscapeToDismiss.d.ts +0 -6
  104. package/dist/types-ts4.5/fg-components.d.ts +0 -5
  105. /package/dist/cjs/{compiled → components}/FeedbackScoreButtons.compiled.css +0 -0
  106. /package/dist/cjs/{compiled → components}/SignUpPrompt.compiled.css +0 -0
  107. /package/dist/cjs/{compiled → components}/SuccessContainer.compiled.css +0 -0
  108. /package/dist/cjs/{compiled → components}/SurveyContainer.compiled.css +0 -0
  109. /package/dist/cjs/{compiled → components}/SurveyForm.compiled.css +0 -0
  110. /package/dist/cjs/{compiled → components}/SurveyMarshal.compiled.css +0 -0
  111. /package/dist/es2019/{compiled → components}/FeedbackScoreButtons.compiled.css +0 -0
  112. /package/dist/es2019/{compiled → components}/SignUpPrompt.compiled.css +0 -0
  113. /package/dist/es2019/{compiled → components}/SuccessContainer.compiled.css +0 -0
  114. /package/dist/es2019/{compiled → components}/SurveyContainer.compiled.css +0 -0
  115. /package/dist/es2019/{compiled → components}/SurveyForm.compiled.css +0 -0
  116. /package/dist/es2019/{compiled → components}/SurveyMarshal.compiled.css +0 -0
  117. /package/dist/esm/{compiled → components}/FeedbackScoreButtons.compiled.css +0 -0
  118. /package/dist/esm/{compiled → components}/SignUpPrompt.compiled.css +0 -0
  119. /package/dist/esm/{compiled → components}/SuccessContainer.compiled.css +0 -0
  120. /package/dist/esm/{compiled → components}/SurveyContainer.compiled.css +0 -0
  121. /package/dist/esm/{compiled → components}/SurveyForm.compiled.css +0 -0
  122. /package/dist/esm/{compiled → components}/SurveyMarshal.compiled.css +0 -0
@@ -1,18 +1,17 @@
1
+ /* SignUpPrompt.tsx generated by @compiled/babel-plugin v0.36.1 */
1
2
  import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
2
3
  import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
4
+ import "./SignUpPrompt.compiled.css";
5
+ import * as React from 'react';
6
+ import { ax, ix } from "@compiled/react/runtime";
3
7
  import _regeneratorRuntime from "@babel/runtime/regenerator";
4
- /**
5
- * @jsxRuntime classic
6
- * @jsx jsx
7
- */
8
8
  import { useCallback, useState } from 'react';
9
-
10
- // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
11
- import { css, jsx } from '@emotion/react';
12
- import Button from '@atlaskit/button/custom-theme-button';
9
+ import Button from '@atlaskit/button/new';
13
10
  import Heading from '@atlaskit/heading';
14
- import { Box, Stack, Text } from '@atlaskit/primitives';
11
+ import Link from '@atlaskit/link';
12
+ import { Box, Stack, Text } from '@atlaskit/primitives/compiled';
15
13
  import SuccessContainer from './SuccessContainer';
14
+ var buttonContainerStyles = null;
16
15
  export default (function (_ref) {
17
16
  var onAnswer = _ref.onAnswer;
18
17
  var _useState = useState(null),
@@ -38,37 +37,29 @@ export default (function (_ref) {
38
37
  };
39
38
  }(), [setPending, onAnswer]);
40
39
  var isDisabled = Boolean(pending);
41
- return jsx(SuccessContainer, null, jsx(Heading, {
40
+ return /*#__PURE__*/React.createElement(SuccessContainer, null, /*#__PURE__*/React.createElement(Heading, {
42
41
  size: "xsmall"
43
- }, "Thanks for your feedback"), jsx(Box, {
42
+ }, "Thanks for your feedback"), /*#__PURE__*/React.createElement(Box, {
44
43
  paddingBlockStart: "space.150"
45
- }, jsx(Stack, {
44
+ }, /*#__PURE__*/React.createElement(Stack, {
46
45
  space: "space.150"
47
- }, jsx(Text, {
46
+ }, /*#__PURE__*/React.createElement(Text, {
48
47
  as: "p"
49
- }, "Are you interested in participating in our research?"), jsx(Text, {
48
+ }, "Are you interested in participating in our research?"), /*#__PURE__*/React.createElement(Text, {
50
49
  as: "p"
51
- }, "Sign up for the", ' ', jsx("a", {
52
- href: "https://www.atlassian.com/research-group"
53
- }, "Atlassian Research Group"), " and we may contact you in the future with research opportunities."))), jsx("div", {
54
- // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
55
- css: css({
56
- marginTop: "var(--ds-space-400, 32px)",
57
- display: 'flex',
58
- justifyContent: 'flex-end',
59
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
60
- '& > * + *': {
61
- marginLeft: "var(--ds-space-100, 8px)"
62
- }
63
- })
64
- }, jsx(Button, {
50
+ }, "Sign up for the", ' ', /*#__PURE__*/React.createElement(Link, {
51
+ href: "https://www.atlassian.com/research-group",
52
+ target: "_blank"
53
+ }, "Atlassian Research Group"), ' ', "and we may contact you in the future with research opportunities."))), /*#__PURE__*/React.createElement("div", {
54
+ className: ax(["_19pkxy5q _1e0c1txw _1bahesu3 _pof3u2gc"])
55
+ }, /*#__PURE__*/React.createElement(Button, {
65
56
  appearance: "subtle",
66
57
  onClick: function onClick() {
67
58
  return answeredWith(false);
68
59
  },
69
60
  isDisabled: isDisabled,
70
61
  isLoading: pending === 'no'
71
- }, "No, thanks"), jsx(Button, {
62
+ }, "No, thanks"), /*#__PURE__*/React.createElement(Button, {
72
63
  appearance: "primary",
73
64
  onClick: function onClick() {
74
65
  return answeredWith(true);
@@ -1,20 +1,15 @@
1
1
  import _objectDestructuringEmpty from "@babel/runtime/helpers/objectDestructuringEmpty";
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 { jsx } from '@emotion/react';
2
+ import React from 'react';
8
3
  import Heading from '@atlaskit/heading';
9
- import { Stack, Text } from '@atlaskit/primitives';
4
+ import { Stack, Text } from '@atlaskit/primitives/compiled';
10
5
  import SuccessContainer from './SuccessContainer';
11
6
  export default (function (_ref) {
12
7
  _objectDestructuringEmpty(_ref);
13
- return jsx(SuccessContainer, null, jsx(Stack, {
8
+ return /*#__PURE__*/React.createElement(SuccessContainer, null, /*#__PURE__*/React.createElement(Stack, {
14
9
  space: "space.150"
15
- }, jsx(Heading, {
10
+ }, /*#__PURE__*/React.createElement(Heading, {
16
11
  size: "xsmall"
17
- }, "Thanks for signing up"), jsx(Text, {
12
+ }, "Thanks for signing up"), /*#__PURE__*/React.createElement(Text, {
18
13
  as: "p"
19
14
  }, "We may reach out to you in the future to participate in additional research.")));
20
15
  });
@@ -1,26 +1,18 @@
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';
1
+ /* SuccessContainer.tsx generated by @compiled/babel-plugin v0.36.1 */
2
+ import "./SuccessContainer.compiled.css";
3
+ import * as React from 'react';
4
+ import { ax, ix } from "@compiled/react/runtime";
7
5
  import CheckCircleIcon from '@atlaskit/icon/core/migration/success--check-circle';
8
6
  import { G300 } from '@atlaskit/theme/colors';
7
+ var sectionStyles = null;
8
+ var iconContainerStyles = null;
9
9
  export default (function (_ref) {
10
10
  var children = _ref.children;
11
- return jsx("section", {
12
- // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
13
- css: css({
14
- marginLeft: "var(--ds-space-500, 40px)"
15
- })
16
- }, jsx("div", {
17
- // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
18
- css: css({
19
- position: 'absolute',
20
- top: "var(--ds-space-250, 20px)",
21
- left: "var(--ds-space-300, 24px)"
22
- })
23
- }, jsx(CheckCircleIcon, {
11
+ return /*#__PURE__*/React.createElement("section", {
12
+ className: ax(["_18u01jfw"])
13
+ }, /*#__PURE__*/React.createElement("div", {
14
+ className: ax(["_kqswstnw _154iv47k _1ltv1ejb"])
15
+ }, /*#__PURE__*/React.createElement(CheckCircleIcon, {
24
16
  spacing: "spacious",
25
17
  label: "",
26
18
  "aria-hidden": true,
@@ -1,41 +1,28 @@
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 Button from '@atlaskit/button/custom-theme-button';
1
+ /* SurveyContainer.tsx generated by @compiled/babel-plugin v0.36.1 */
2
+ import "./SurveyContainer.compiled.css";
3
+ import * as React from 'react';
4
+ import { ax, ix } from "@compiled/react/runtime";
5
+ import { IconButton as Button } from '@atlaskit/button/new';
8
6
  import CrossIcon from '@atlaskit/icon/core/migration/close--cross';
9
- import { N0, N50, N50A, N60A } from '@atlaskit/theme/colors';
10
- import { borderRadius } from '@atlaskit/theme/constants';
7
+ import { N0, N50A, N60A } from '@atlaskit/theme/colors';
11
8
  import { surveyInnerWidth } from '../constants';
9
+ var containerStyles = null;
10
+ var buttonWrapperStyles = null;
12
11
  export default (function (_ref) {
13
12
  var children = _ref.children,
14
13
  onDismiss = _ref.onDismiss;
15
- return jsx("div", {
16
- // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
17
- css: css({
18
- backgroundColor: "var(--ds-surface-overlay, ".concat(N0, ")"),
19
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
20
- borderRadius: "".concat(borderRadius(), "px"),
21
- padding: "var(--ds-space-300, 24px)",
22
- boxShadow: "var(--ds-shadow-overlay, ".concat("0 20px 32px -8px ".concat(N50A, ", 0 0 1px ").concat(N60A), ")"),
23
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
24
- width: "".concat(surveyInnerWidth, "px")
25
- })
26
- }, jsx("div", {
27
- // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
28
- css: css({
29
- position: 'absolute',
30
- top: "var(--ds-space-200, 16px)",
31
- right: "var(--ds-space-200, 16px)"
32
- })
33
- }, jsx(Button, {
34
- iconBefore: jsx(CrossIcon, {
35
- label: "",
36
- color: "var(--ds-icon-subtle, ".concat(N50, ")")
37
- }),
38
- "aria-label": "Dismiss",
14
+ return /*#__PURE__*/React.createElement("div", {
15
+ className: ax(["_2rko1sit _bfhk13b4 _ca0q1ejb _u5f31ejb _n3td1ejb _19bv1ejb _16qs1dt4 _1bsb1sw3"]),
16
+ style: {
17
+ "--_1f6rtr1": ix("var(--ds-surface-overlay, ".concat(N0, ")")),
18
+ "--_qzf6oc": ix("var(--ds-shadow-overlay, ".concat("0 20px 32px -8px ".concat(N50A, ", 0 0 1px ").concat(N60A), ")")),
19
+ "--_18gm6wc": ix("".concat(surveyInnerWidth, "px"))
20
+ }
21
+ }, /*#__PURE__*/React.createElement("div", {
22
+ className: ax(["_kqswstnw _154ipxbi _1xi2pxbi"])
23
+ }, /*#__PURE__*/React.createElement(Button, {
24
+ icon: CrossIcon,
25
+ label: "Dismiss",
39
26
  appearance: "subtle",
40
27
  onClick: onDismiss
41
28
  })), children);
@@ -1,21 +1,19 @@
1
+ /* SurveyForm.tsx generated by @compiled/babel-plugin v0.36.1 */
1
2
  import _extends from "@babel/runtime/helpers/extends";
2
3
  import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
3
- /**
4
- * @jsxRuntime classic
5
- * @jsx jsx
6
- */
4
+ import "./SurveyForm.compiled.css";
5
+ import * as React from 'react';
6
+ import { ax, ix } from "@compiled/react/runtime";
7
7
  import { useCallback, useRef, useState } from 'react';
8
-
9
- // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
10
- import { css, jsx } from '@emotion/react';
11
8
  import { Transition } from 'react-transition-group';
12
- import { LoadingButton as Button } from '@atlaskit/button';
9
+ import Button from '@atlaskit/button/new';
13
10
  import { Checkbox } from '@atlaskit/checkbox';
14
11
  import Form, { CheckboxField, Field, FormFooter } from '@atlaskit/form';
15
12
  import Heading from '@atlaskit/heading';
16
- import { Stack, Text } from '@atlaskit/primitives';
13
+ import { Stack, Text } from '@atlaskit/primitives/compiled';
17
14
  import Textarea from '@atlaskit/textarea';
18
15
  import FeedbackScoreButtons from './FeedbackScoreButtons';
16
+ var transitionBaseStyles = null;
19
17
  var getExpandedHeight = function getExpandedHeight(ref, state) {
20
18
  if (!ref.current) {
21
19
  return '0';
@@ -61,54 +59,52 @@ export default (function (_ref) {
61
59
  hasAutoFilledCanContactRef.current = true;
62
60
  setCanContactDefault(true);
63
61
  }, []);
64
- return jsx("section", {
62
+ return /*#__PURE__*/React.createElement("section", {
65
63
  "aria-labelledby": "contextualSurveyQuestion"
66
- }, jsx(Stack, {
64
+ }, /*#__PURE__*/React.createElement(Stack, {
67
65
  space: "space.150"
68
- }, jsx(Heading, {
66
+ }, /*#__PURE__*/React.createElement(Heading, {
69
67
  id: "contextualSurveyQuestion",
70
68
  size: "xsmall"
71
- }, question), statement && jsx(Text, {
69
+ }, question), statement && /*#__PURE__*/React.createElement(Text, {
72
70
  as: "p",
73
71
  id: "contextualSurveyStatement"
74
- }, statement)), jsx(Form, {
72
+ }, statement)), /*#__PURE__*/React.createElement(Form, {
75
73
  onSubmit: onSubmit
76
74
  }, function (_ref2) {
77
75
  var formProps = _ref2.formProps,
78
76
  submitting = _ref2.submitting;
79
- return jsx("form", formProps, jsx(Field, {
77
+ return /*#__PURE__*/React.createElement("form", formProps, /*#__PURE__*/React.createElement(Field, {
80
78
  name: "feedbackScore",
81
79
  isDisabled: submitting,
82
80
  isRequired: true
83
81
  }, function (_ref3) {
84
82
  var fieldProps = _ref3.fieldProps;
85
- return jsx(FeedbackScoreButtons, _extends({}, fieldProps, {
83
+ return /*#__PURE__*/React.createElement(FeedbackScoreButtons, _extends({}, fieldProps, {
86
84
  onChange: function onChange(score) {
87
85
  fieldProps.onChange(score);
88
86
  onScoreSelect();
89
87
  }
90
88
  }));
91
- }), jsx(Transition, {
89
+ }), /*#__PURE__*/React.createElement(Transition, {
92
90
  in: expanded,
93
91
  timeout: transitionDuration,
94
92
  mountOnEnter: true
95
93
  }, function (state) {
96
- return jsx("div", {
97
- // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
98
- css: css({
94
+ return /*#__PURE__*/React.createElement("div", {
95
+ style: {
99
96
  transition: "max-height ".concat(transitionDuration, "ms ease-in-out"),
100
- overflow: 'hidden',
101
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
102
97
  maxHeight: getExpandedHeight(expandedAreaRef, state)
103
- }),
104
- ref: expandedAreaRef
105
- }, jsx(Field, {
98
+ },
99
+ ref: expandedAreaRef,
100
+ className: ax(["_1reo15vq _18m915vq"])
101
+ }, /*#__PURE__*/React.createElement(Field, {
106
102
  name: "writtenFeedback",
107
103
  defaultValue: "",
108
104
  isDisabled: submitting
109
105
  }, function (_ref4) {
110
106
  var fieldProps = _ref4.fieldProps;
111
- return jsx(Textarea, _extends({}, fieldProps, {
107
+ return /*#__PURE__*/React.createElement(Textarea, _extends({}, fieldProps, {
112
108
  "aria-label": textLabel,
113
109
  placeholder: textPlaceholder,
114
110
  onChange: function onChange(event) {
@@ -116,16 +112,16 @@ export default (function (_ref) {
116
112
  onFeedbackChange();
117
113
  }
118
114
  }));
119
- }), jsx(CheckboxField, {
115
+ }), /*#__PURE__*/React.createElement(CheckboxField, {
120
116
  name: "canContact",
121
117
  isDisabled: submitting,
122
118
  defaultIsChecked: canContactDefault
123
119
  }, function (_ref5) {
124
120
  var fieldProps = _ref5.fieldProps;
125
- return jsx(Checkbox, _extends({}, fieldProps, {
121
+ return /*#__PURE__*/React.createElement(Checkbox, _extends({}, fieldProps, {
126
122
  label: "Atlassian can contact me about this feedback"
127
123
  }));
128
- }), jsx(FormFooter, null, jsx(Button, {
124
+ }), /*#__PURE__*/React.createElement(FormFooter, null, /*#__PURE__*/React.createElement(Button, {
129
125
  type: "submit",
130
126
  appearance: "primary",
131
127
  isLoading: submitting
@@ -1,10 +1,7 @@
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
+ /* SurveyMarshal.tsx generated by @compiled/babel-plugin v0.36.1 */
2
+ import "./SurveyMarshal.compiled.css";
3
+ import * as React from 'react';
4
+ import { ax, ix } from "@compiled/react/runtime";
8
5
  import { Transition } from 'react-transition-group';
9
6
  import { layers } from '@atlaskit/theme/constants';
10
7
  import { surveyInnerWidth, surveyOffset } from '../constants';
@@ -31,10 +28,11 @@ var getAnimationProps = function getAnimationProps(state) {
31
28
  }
32
29
  }
33
30
  };
31
+ var transitionBaseStyles = null;
34
32
  export default function SurveyMarshal(props) {
35
33
  var children = props.children,
36
34
  shouldShow = props.shouldShow;
37
- return jsx(Transition, {
35
+ return /*#__PURE__*/React.createElement(Transition, {
38
36
  in: shouldShow,
39
37
  timeout: animationDuration,
40
38
  unmountOnExit: true
@@ -42,22 +40,15 @@ export default function SurveyMarshal(props) {
42
40
  var _getAnimationProps = getAnimationProps(state),
43
41
  translateX = _getAnimationProps.translateX,
44
42
  opacity = _getAnimationProps.opacity;
45
- return jsx("div", {
46
- // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
47
- css: css({
48
- position: 'fixed',
49
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
50
- right: "".concat(surveyOffset, "px"),
51
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
52
- bottom: "".concat(surveyOffset, "px"),
53
- zIndex: layers.flag(),
54
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
55
- transform: "translateX(".concat(translateX, ")"),
56
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
43
+ return /*#__PURE__*/React.createElement("div", {
44
+ className: ax(["_kqsw1n9t _1xi28err _94n58err _k8m01rjc"]),
45
+ style: {
57
46
  opacity: opacity,
58
47
  transition: "all ".concat(animationDuration, "ms ease-in-out"),
59
- transitionProperty: 'transform, opacity'
60
- })
48
+ zIndex: layers.flag(),
49
+ transform: "translateX(".concat(translateX, ")"),
50
+ "--_1hx5ohh": ix("".concat(surveyOffset, "px"))
51
+ }
61
52
  }, children());
62
53
  });
63
54
  }
package/dist/esm/index.js CHANGED
@@ -1,3 +1,2 @@
1
- export { DismissTrigger } from './components/ContextualSurvey';
2
- export { ContextualSurvey } from './fg-components';
3
- export { SurveyMarshal } from './fg-components';
1
+ export { default as ContextualSurvey, DismissTrigger } from './components/ContextualSurvey';
2
+ export { default as SurveyMarshal } from './components/SurveyMarshal';
@@ -9,7 +9,7 @@ export declare enum DismissTrigger {
9
9
  export type OnDismissArgs = {
10
10
  trigger: DismissTrigger;
11
11
  };
12
- export interface Props {
12
+ interface Props {
13
13
  /** Optional statement, to be used in conjunction with the question for the survey
14
14
  * Example: "How strongly do you agree or disagree with this statement"
15
15
  */
@@ -1,7 +1,3 @@
1
- /**
2
- * @jsxRuntime classic
3
- * @jsx jsx
4
- */
5
- import { jsx } from '@emotion/react';
6
- declare const _default: () => jsx.JSX.Element;
1
+ import React from 'react';
2
+ declare const _default: () => React.JSX.Element;
7
3
  export default _default;
@@ -2,10 +2,10 @@
2
2
  * @jsxRuntime classic
3
3
  * @jsx jsx
4
4
  */
5
- import { jsx } from '@emotion/react';
5
+ /// <reference types="react" />
6
6
  interface Props {
7
7
  onChange: (value: number) => void;
8
8
  value: number | undefined;
9
9
  }
10
- declare const _default: ({ onChange, value }: Props) => jsx.JSX.Element;
10
+ declare const _default: ({ onChange, value }: Props) => JSX.Element;
11
11
  export default _default;
@@ -1,6 +1,10 @@
1
- import { jsx } from '@emotion/react';
1
+ /**
2
+ * @jsxRuntime classic
3
+ * @jsx jsx
4
+ */
5
+ /// <reference types="react" />
2
6
  interface Props {
3
7
  onAnswer: (answer: boolean) => Promise<void>;
4
8
  }
5
- declare const _default: ({ onAnswer }: Props) => jsx.JSX.Element;
9
+ declare const _default: ({ onAnswer }: Props) => JSX.Element;
6
10
  export default _default;
@@ -1,9 +1,5 @@
1
- /**
2
- * @jsxRuntime classic
3
- * @jsx jsx
4
- */
5
- import { jsx } from '@emotion/react';
1
+ import React from 'react';
6
2
  interface Props {
7
3
  }
8
- declare const _default: ({}: Props) => jsx.JSX.Element;
4
+ declare const _default: ({}: Props) => React.JSX.Element;
9
5
  export default _default;
@@ -1,11 +1,6 @@
1
1
  /// <reference types="react" />
2
- /**
3
- * @jsxRuntime classic
4
- * @jsx jsx
5
- */
6
- import { jsx } from '@emotion/react';
7
2
  interface Props {
8
3
  children: React.ReactNode;
9
4
  }
10
- declare const _default: ({ children }: Props) => jsx.JSX.Element;
5
+ declare const _default: ({ children }: Props) => JSX.Element;
11
6
  export default _default;
@@ -1,12 +1,11 @@
1
- /// <reference types="react" />
2
1
  /**
3
2
  * @jsxRuntime classic
4
3
  * @jsx jsx
5
4
  */
6
- import { jsx } from '@emotion/react';
5
+ /// <reference types="react" />
7
6
  interface Props {
8
7
  children: React.ReactNode;
9
8
  onDismiss: () => void;
10
9
  }
11
- declare const _default: ({ children, onDismiss }: Props) => jsx.JSX.Element;
10
+ declare const _default: ({ children, onDismiss }: Props) => JSX.Element;
12
11
  export default _default;
@@ -1,4 +1,4 @@
1
- import { jsx } from '@emotion/react';
1
+ /// <reference types="react" />
2
2
  import { type OnSubmitHandler } from '@atlaskit/form';
3
3
  import { type FormValues } from '../types';
4
4
  interface Props {
@@ -8,5 +8,5 @@ interface Props {
8
8
  textLabel: string;
9
9
  onSubmit: OnSubmitHandler<FormValues>;
10
10
  }
11
- declare const _default: ({ question, statement, textPlaceholder, textLabel, onSubmit }: Props) => jsx.JSX.Element;
11
+ declare const _default: ({ question, statement, textPlaceholder, textLabel, onSubmit }: Props) => JSX.Element;
12
12
  export default _default;
@@ -3,8 +3,7 @@
3
3
  * @jsx jsx
4
4
  */
5
5
  import { type ReactNode } from 'react';
6
- import { jsx } from '@emotion/react';
7
- export type Props = {
6
+ type Props = {
8
7
  /** Whether the form should be rendered */
9
8
  shouldShow: boolean;
10
9
  /** A function that returns Node to be rendered (`<ContextualSurvey/>`)
@@ -13,4 +12,5 @@ export type Props = {
13
12
  */
14
13
  children: () => ReactNode;
15
14
  };
16
- export default function SurveyMarshal(props: Props): jsx.JSX.Element;
15
+ export default function SurveyMarshal(props: Props): JSX.Element;
16
+ export {};
@@ -1,3 +1,2 @@
1
- export { DismissTrigger, type OnDismissArgs } from './components/ContextualSurvey';
2
- export { ContextualSurvey } from './fg-components';
3
- export { SurveyMarshal } from './fg-components';
1
+ export { default as ContextualSurvey, DismissTrigger, type OnDismissArgs } from './components/ContextualSurvey';
2
+ export { default as SurveyMarshal } from './components/SurveyMarshal';
@@ -9,7 +9,7 @@ export declare enum DismissTrigger {
9
9
  export type OnDismissArgs = {
10
10
  trigger: DismissTrigger;
11
11
  };
12
- export interface Props {
12
+ interface Props {
13
13
  /** Optional statement, to be used in conjunction with the question for the survey
14
14
  * Example: "How strongly do you agree or disagree with this statement"
15
15
  */
@@ -1,7 +1,3 @@
1
- /**
2
- * @jsxRuntime classic
3
- * @jsx jsx
4
- */
5
- import { jsx } from '@emotion/react';
6
- declare const _default: () => jsx.JSX.Element;
1
+ import React from 'react';
2
+ declare const _default: () => React.JSX.Element;
7
3
  export default _default;
@@ -1,11 +1,11 @@
1
+ /// <reference types="react" />
1
2
  /**
2
3
  * @jsxRuntime classic
3
4
  * @jsx jsx
4
5
  */
5
- import { jsx } from '@emotion/react';
6
6
  interface Props {
7
7
  onChange: (value: number) => void;
8
8
  value: number | undefined;
9
9
  }
10
- declare const _default: ({ onChange, value }: Props) => jsx.JSX.Element;
10
+ declare const _default: ({ onChange, value }: Props) => JSX.Element;
11
11
  export default _default;
@@ -1,6 +1,10 @@
1
- import { jsx } from '@emotion/react';
1
+ /// <reference types="react" />
2
+ /**
3
+ * @jsxRuntime classic
4
+ * @jsx jsx
5
+ */
2
6
  interface Props {
3
7
  onAnswer: (answer: boolean) => Promise<void>;
4
8
  }
5
- declare const _default: ({ onAnswer }: Props) => jsx.JSX.Element;
9
+ declare const _default: ({ onAnswer }: Props) => JSX.Element;
6
10
  export default _default;
@@ -1,9 +1,5 @@
1
- /**
2
- * @jsxRuntime classic
3
- * @jsx jsx
4
- */
5
- import { jsx } from '@emotion/react';
1
+ import React from 'react';
6
2
  interface Props {
7
3
  }
8
- declare const _default: ({}: Props) => jsx.JSX.Element;
4
+ declare const _default: ({}: Props) => React.JSX.Element;
9
5
  export default _default;
@@ -1,11 +1,6 @@
1
1
  /// <reference types="react" />
2
- /**
3
- * @jsxRuntime classic
4
- * @jsx jsx
5
- */
6
- import { jsx } from '@emotion/react';
7
2
  interface Props {
8
3
  children: React.ReactNode;
9
4
  }
10
- declare const _default: ({ children }: Props) => jsx.JSX.Element;
5
+ declare const _default: ({ children }: Props) => JSX.Element;
11
6
  export default _default;
@@ -3,10 +3,9 @@
3
3
  * @jsxRuntime classic
4
4
  * @jsx jsx
5
5
  */
6
- import { jsx } from '@emotion/react';
7
6
  interface Props {
8
7
  children: React.ReactNode;
9
8
  onDismiss: () => void;
10
9
  }
11
- declare const _default: ({ children, onDismiss }: Props) => jsx.JSX.Element;
10
+ declare const _default: ({ children, onDismiss }: Props) => JSX.Element;
12
11
  export default _default;
@@ -1,4 +1,4 @@
1
- import { jsx } from '@emotion/react';
1
+ /// <reference types="react" />
2
2
  import { type OnSubmitHandler } from '@atlaskit/form';
3
3
  import { type FormValues } from '../types';
4
4
  interface Props {
@@ -8,5 +8,5 @@ interface Props {
8
8
  textLabel: string;
9
9
  onSubmit: OnSubmitHandler<FormValues>;
10
10
  }
11
- declare const _default: ({ question, statement, textPlaceholder, textLabel, onSubmit }: Props) => jsx.JSX.Element;
11
+ declare const _default: ({ question, statement, textPlaceholder, textLabel, onSubmit }: Props) => JSX.Element;
12
12
  export default _default;