@atlaskit/contextual-survey 2.2.19 → 2.3.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 +15 -0
- package/afm-cc/tsconfig.json +6 -0
- package/afm-post-office/tsconfig.json +45 -0
- package/dist/cjs/components/FeedbackAcknowledgement.js +7 -10
- package/dist/cjs/components/FeedbackScoreButtons.js +21 -17
- package/dist/cjs/components/SignUpPrompt.js +18 -13
- package/dist/cjs/components/SignUpSuccess.js +13 -11
- package/dist/cjs/components/SuccessContainer.js +4 -1
- package/dist/cjs/components/SurveyContainer.js +4 -1
- package/dist/cjs/components/SurveyForm.js +13 -10
- package/dist/cjs/components/SurveyMarshal.js +4 -1
- package/dist/es2019/components/FeedbackAcknowledgement.js +8 -10
- package/dist/es2019/components/FeedbackScoreButtons.js +21 -17
- package/dist/es2019/components/SignUpPrompt.js +18 -11
- package/dist/es2019/components/SignUpSuccess.js +14 -11
- package/dist/es2019/components/SuccessContainer.js +4 -1
- package/dist/es2019/components/SurveyContainer.js +4 -1
- package/dist/es2019/components/SurveyForm.js +13 -10
- package/dist/es2019/components/SurveyMarshal.js +4 -1
- package/dist/esm/components/FeedbackAcknowledgement.js +8 -10
- package/dist/esm/components/FeedbackScoreButtons.js +21 -17
- package/dist/esm/components/SignUpPrompt.js +18 -11
- package/dist/esm/components/SignUpSuccess.js +14 -11
- package/dist/esm/components/SuccessContainer.js +4 -1
- package/dist/esm/components/SurveyContainer.js +4 -1
- package/dist/esm/components/SurveyForm.js +13 -10
- package/dist/esm/components/SurveyMarshal.js +4 -1
- package/dist/types/components/FeedbackAcknowledgement.d.ts +4 -1
- package/dist/types/components/FeedbackScoreButtons.d.ts +4 -1
- package/dist/types/components/SignUpSuccess.d.ts +4 -1
- package/dist/types/components/SuccessContainer.d.ts +4 -1
- package/dist/types/components/SurveyContainer.d.ts +4 -1
- package/dist/types/components/SurveyMarshal.d.ts +4 -1
- package/dist/types-ts4.5/components/FeedbackAcknowledgement.d.ts +4 -1
- package/dist/types-ts4.5/components/FeedbackScoreButtons.d.ts +4 -1
- package/dist/types-ts4.5/components/SignUpSuccess.d.ts +4 -1
- package/dist/types-ts4.5/components/SuccessContainer.d.ts +4 -1
- package/dist/types-ts4.5/components/SurveyContainer.d.ts +4 -1
- package/dist/types-ts4.5/components/SurveyMarshal.d.ts +4 -1
- package/package.json +11 -9
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# @atlaskit/contextual-survey
|
|
2
2
|
|
|
3
|
+
## 2.3.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#129844](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/129844)
|
|
8
|
+
[`654f46d9b38cc`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/654f46d9b38cc) -
|
|
9
|
+
Typography migration (https://product-fabric.atlassian.net/browse/PYX-881) for engagement-platform
|
|
10
|
+
package
|
|
11
|
+
|
|
12
|
+
## 2.2.20
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- Updated dependencies
|
|
17
|
+
|
|
3
18
|
## 2.2.19
|
|
4
19
|
|
|
5
20
|
### Patch Changes
|
package/afm-cc/tsconfig.json
CHANGED
|
@@ -27,9 +27,15 @@
|
|
|
27
27
|
{
|
|
28
28
|
"path": "../../../design-system/form/afm-cc/tsconfig.json"
|
|
29
29
|
},
|
|
30
|
+
{
|
|
31
|
+
"path": "../../../design-system/heading/afm-cc/tsconfig.json"
|
|
32
|
+
},
|
|
30
33
|
{
|
|
31
34
|
"path": "../../../design-system/icon/afm-cc/tsconfig.json"
|
|
32
35
|
},
|
|
36
|
+
{
|
|
37
|
+
"path": "../../../design-system/primitives/afm-cc/tsconfig.json"
|
|
38
|
+
},
|
|
33
39
|
{
|
|
34
40
|
"path": "../../../design-system/textarea/afm-cc/tsconfig.json"
|
|
35
41
|
},
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
{
|
|
2
|
+
"extends": "../../../../tsconfig.entry-points.post-office.json",
|
|
3
|
+
"compilerOptions": {
|
|
4
|
+
"declaration": true,
|
|
5
|
+
"target": "es5",
|
|
6
|
+
"outDir": "../../../../../tsDist/@atlaskit__contextual-survey/app",
|
|
7
|
+
"composite": true,
|
|
8
|
+
"rootDir": "../"
|
|
9
|
+
},
|
|
10
|
+
"include": [
|
|
11
|
+
"../src/**/*.ts",
|
|
12
|
+
"../src/**/*.tsx"
|
|
13
|
+
],
|
|
14
|
+
"exclude": [
|
|
15
|
+
"../src/**/__tests__/*",
|
|
16
|
+
"../src/**/*.test.*",
|
|
17
|
+
"../src/**/test.*"
|
|
18
|
+
],
|
|
19
|
+
"references": [
|
|
20
|
+
{
|
|
21
|
+
"path": "../../../design-system/button/afm-post-office/tsconfig.json"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"path": "../../../design-system/checkbox/afm-post-office/tsconfig.json"
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"path": "../../../design-system/form/afm-post-office/tsconfig.json"
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"path": "../../../design-system/icon/afm-post-office/tsconfig.json"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"path": "../../../design-system/textarea/afm-post-office/tsconfig.json"
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"path": "../../../design-system/theme/afm-post-office/tsconfig.json"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"path": "../../../design-system/tokens/afm-post-office/tsconfig.json"
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"path": "../../../design-system/tooltip/afm-post-office/tsconfig.json"
|
|
43
|
+
}
|
|
44
|
+
]
|
|
45
|
+
}
|
|
@@ -6,18 +6,15 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
});
|
|
7
7
|
exports.default = void 0;
|
|
8
8
|
var _react = require("@emotion/react");
|
|
9
|
-
var
|
|
9
|
+
var _heading = _interopRequireDefault(require("@atlaskit/heading"));
|
|
10
10
|
var _SuccessContainer = _interopRequireDefault(require("./SuccessContainer"));
|
|
11
|
-
/**
|
|
11
|
+
/**
|
|
12
|
+
* @jsxRuntime classic
|
|
13
|
+
* @jsx jsx
|
|
14
|
+
*/
|
|
12
15
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
13
|
-
|
|
14
|
-
var styles = (0, _react.css)({
|
|
15
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
16
|
-
font: "var(--ds-font-heading-xsmall, ".concat(_typography.fontFallback.heading.xsmall, ")"),
|
|
17
|
-
marginTop: 0
|
|
18
|
-
});
|
|
19
16
|
var _default = exports.default = function _default() {
|
|
20
|
-
return (0, _react.jsx)(_SuccessContainer.default, null, (0, _react.jsx)(
|
|
21
|
-
|
|
17
|
+
return (0, _react.jsx)(_SuccessContainer.default, null, (0, _react.jsx)(_heading.default, {
|
|
18
|
+
size: "xsmall"
|
|
22
19
|
}, "Thanks for your feedback"));
|
|
23
20
|
};
|
|
@@ -7,14 +7,14 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.default = void 0;
|
|
8
8
|
var _react = require("@emotion/react");
|
|
9
9
|
var _customThemeButton = _interopRequireDefault(require("@atlaskit/button/custom-theme-button"));
|
|
10
|
-
var
|
|
10
|
+
var _primitives = require("@atlaskit/primitives");
|
|
11
11
|
var _tooltip = _interopRequireDefault(require("@atlaskit/tooltip"));
|
|
12
|
-
/**
|
|
12
|
+
/**
|
|
13
|
+
* @jsxRuntime classic
|
|
14
|
+
* @jsx jsx
|
|
15
|
+
*/
|
|
13
16
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
14
17
|
|
|
15
|
-
var styles = (0, _react.css)({
|
|
16
|
-
textAlign: 'right'
|
|
17
|
-
});
|
|
18
18
|
var tooltipMessage = ['Strongly disagree', 'Disagree', 'Slightly disagree', 'Neutral', 'Slightly agree', 'Agree', 'Strongly agree'];
|
|
19
19
|
var _default = exports.default = function _default(_ref) {
|
|
20
20
|
var onChange = _ref.onChange,
|
|
@@ -59,26 +59,30 @@ var _default = exports.default = function _default(_ref) {
|
|
|
59
59
|
})), (0, _react.jsx)("div", {
|
|
60
60
|
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
61
61
|
css: (0, _react.css)({
|
|
62
|
-
fontSize: '12px',
|
|
63
|
-
fontWeight: 600,
|
|
64
|
-
color: "var(--ds-text-subtlest, ".concat(_colors.N200, ")"),
|
|
65
62
|
display: 'flex',
|
|
66
63
|
marginTop: "var(--ds-space-100, 8px)",
|
|
67
64
|
marginBottom: "var(--ds-space-300, 24px)",
|
|
65
|
+
justifyContent: 'space-between',
|
|
68
66
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
69
67
|
'& > span': {
|
|
70
68
|
width: "var(--ds-space-1000, 80px)"
|
|
71
69
|
}
|
|
72
70
|
}),
|
|
73
71
|
"aria-hidden": true
|
|
74
|
-
}, (0, _react.jsx)(
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
72
|
+
}, (0, _react.jsx)(_primitives.Text, {
|
|
73
|
+
color: "color.text.subtlest",
|
|
74
|
+
size: "UNSAFE_small",
|
|
75
|
+
weight: "semibold",
|
|
76
|
+
align: "start"
|
|
77
|
+
}, "Strongly disagree"), (0, _react.jsx)(_primitives.Text, {
|
|
78
|
+
color: "color.text.subtlest",
|
|
79
|
+
size: "UNSAFE_small",
|
|
80
|
+
weight: "semibold",
|
|
81
|
+
align: "center"
|
|
82
|
+
}, "Neutral"), (0, _react.jsx)(_primitives.Text, {
|
|
83
|
+
color: "color.text.subtlest",
|
|
84
|
+
size: "UNSAFE_small",
|
|
85
|
+
weight: "semibold",
|
|
86
|
+
align: "end"
|
|
83
87
|
}, "Strongly agree")));
|
|
84
88
|
};
|
|
@@ -11,17 +11,14 @@ var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/sli
|
|
|
11
11
|
var _react = require("react");
|
|
12
12
|
var _react2 = require("@emotion/react");
|
|
13
13
|
var _customThemeButton = _interopRequireDefault(require("@atlaskit/button/custom-theme-button"));
|
|
14
|
-
var
|
|
14
|
+
var _heading = _interopRequireDefault(require("@atlaskit/heading"));
|
|
15
|
+
var _primitives = require("@atlaskit/primitives");
|
|
15
16
|
var _SuccessContainer = _interopRequireDefault(require("./SuccessContainer"));
|
|
16
|
-
/**
|
|
17
|
-
|
|
17
|
+
/**
|
|
18
|
+
* @jsxRuntime classic
|
|
19
|
+
* @jsx jsx
|
|
20
|
+
*/
|
|
18
21
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
19
|
-
|
|
20
|
-
var styles = (0, _react2.css)({
|
|
21
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
22
|
-
font: "var(--ds-font-heading-xsmall, ".concat(_typography.fontFallback.heading.xsmall, ")"),
|
|
23
|
-
margin: 0
|
|
24
|
-
});
|
|
25
22
|
var _default = exports.default = function _default(_ref) {
|
|
26
23
|
var onAnswer = _ref.onAnswer;
|
|
27
24
|
var _useState = (0, _react.useState)(null),
|
|
@@ -47,11 +44,19 @@ var _default = exports.default = function _default(_ref) {
|
|
|
47
44
|
};
|
|
48
45
|
}(), [setPending, onAnswer]);
|
|
49
46
|
var isDisabled = Boolean(pending);
|
|
50
|
-
return (0, _react2.jsx)(_SuccessContainer.default, null, (0, _react2.jsx)(
|
|
51
|
-
|
|
52
|
-
}, "Thanks for your feedback"), (0, _react2.jsx)(
|
|
47
|
+
return (0, _react2.jsx)(_SuccessContainer.default, null, (0, _react2.jsx)(_heading.default, {
|
|
48
|
+
size: "xsmall"
|
|
49
|
+
}, "Thanks for your feedback"), (0, _react2.jsx)(_primitives.Box, {
|
|
50
|
+
paddingBlockStart: "space.150"
|
|
51
|
+
}, (0, _react2.jsx)(_primitives.Stack, {
|
|
52
|
+
space: "space.150"
|
|
53
|
+
}, (0, _react2.jsx)(_primitives.Text, {
|
|
54
|
+
as: "p"
|
|
55
|
+
}, "Are you interested in participating in our research?"), (0, _react2.jsx)(_primitives.Text, {
|
|
56
|
+
as: "p"
|
|
57
|
+
}, "Sign up for the", ' ', (0, _react2.jsx)("a", {
|
|
53
58
|
href: "https://www.atlassian.com/research-group"
|
|
54
|
-
}, "Atlassian Research Group"), " and we may contact you in the future with research opportunities."), (0, _react2.jsx)("div", {
|
|
59
|
+
}, "Atlassian Research Group"), " and we may contact you in the future with research opportunities."))), (0, _react2.jsx)("div", {
|
|
55
60
|
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
56
61
|
css: (0, _react2.css)({
|
|
57
62
|
marginTop: "var(--ds-space-400, 32px)",
|
|
@@ -7,19 +7,21 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.default = void 0;
|
|
8
8
|
var _objectDestructuringEmpty2 = _interopRequireDefault(require("@babel/runtime/helpers/objectDestructuringEmpty"));
|
|
9
9
|
var _react = require("@emotion/react");
|
|
10
|
-
var
|
|
10
|
+
var _heading = _interopRequireDefault(require("@atlaskit/heading"));
|
|
11
|
+
var _primitives = require("@atlaskit/primitives");
|
|
11
12
|
var _SuccessContainer = _interopRequireDefault(require("./SuccessContainer"));
|
|
12
|
-
/**
|
|
13
|
+
/**
|
|
14
|
+
* @jsxRuntime classic
|
|
15
|
+
* @jsx jsx
|
|
16
|
+
*/
|
|
13
17
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
14
|
-
|
|
15
|
-
var styles = (0, _react.css)({
|
|
16
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
17
|
-
font: "var(--ds-font-heading-xsmall, ".concat(_typography.fontFallback.heading.xsmall, ")"),
|
|
18
|
-
margin: 0
|
|
19
|
-
});
|
|
20
18
|
var _default = exports.default = function _default(_ref) {
|
|
21
19
|
(0, _objectDestructuringEmpty2.default)(_ref);
|
|
22
|
-
return (0, _react.jsx)(_SuccessContainer.default, null, (0, _react.jsx)(
|
|
23
|
-
|
|
24
|
-
},
|
|
20
|
+
return (0, _react.jsx)(_SuccessContainer.default, null, (0, _react.jsx)(_primitives.Stack, {
|
|
21
|
+
space: "space.150"
|
|
22
|
+
}, (0, _react.jsx)(_heading.default, {
|
|
23
|
+
size: "xsmall"
|
|
24
|
+
}, "Thanks for signing up"), (0, _react.jsx)(_primitives.Text, {
|
|
25
|
+
as: "p"
|
|
26
|
+
}, "We may reach out to you in the future to participate in additional research.")));
|
|
25
27
|
};
|
|
@@ -8,7 +8,10 @@ exports.default = void 0;
|
|
|
8
8
|
var _react = require("@emotion/react");
|
|
9
9
|
var _checkCircle = _interopRequireDefault(require("@atlaskit/icon/glyph/check-circle"));
|
|
10
10
|
var _colors = require("@atlaskit/theme/colors");
|
|
11
|
-
/**
|
|
11
|
+
/**
|
|
12
|
+
* @jsxRuntime classic
|
|
13
|
+
* @jsx jsx
|
|
14
|
+
*/
|
|
12
15
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
13
16
|
var _default = exports.default = function _default(_ref) {
|
|
14
17
|
var children = _ref.children;
|
|
@@ -11,7 +11,10 @@ var _cross = _interopRequireDefault(require("@atlaskit/icon/glyph/cross"));
|
|
|
11
11
|
var _colors = require("@atlaskit/theme/colors");
|
|
12
12
|
var _constants = require("@atlaskit/theme/constants");
|
|
13
13
|
var _constants2 = require("../constants");
|
|
14
|
-
/**
|
|
14
|
+
/**
|
|
15
|
+
* @jsxRuntime classic
|
|
16
|
+
* @jsx jsx
|
|
17
|
+
*/
|
|
15
18
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
16
19
|
var _default = exports.default = function _default(_ref) {
|
|
17
20
|
var children = _ref.children,
|
|
@@ -14,19 +14,19 @@ var _reactTransitionGroup = require("react-transition-group");
|
|
|
14
14
|
var _button = require("@atlaskit/button");
|
|
15
15
|
var _checkbox = require("@atlaskit/checkbox");
|
|
16
16
|
var _form = _interopRequireWildcard(require("@atlaskit/form"));
|
|
17
|
+
var _heading = _interopRequireDefault(require("@atlaskit/heading"));
|
|
18
|
+
var _primitives = require("@atlaskit/primitives");
|
|
17
19
|
var _textarea = _interopRequireDefault(require("@atlaskit/textarea"));
|
|
18
|
-
var _constants = require("@atlaskit/theme/constants");
|
|
19
20
|
var _FeedbackScoreButtons = _interopRequireDefault(require("./FeedbackScoreButtons"));
|
|
20
21
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
21
22
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
22
|
-
/**
|
|
23
|
+
/**
|
|
24
|
+
* @jsxRuntime classic
|
|
25
|
+
* @jsx jsx
|
|
26
|
+
*/
|
|
23
27
|
|
|
24
28
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
25
29
|
|
|
26
|
-
var headingStyles = (0, _react2.css)({
|
|
27
|
-
fontSize: "".concat((0, _constants.fontSize)(), "px"),
|
|
28
|
-
fontWeight: 600
|
|
29
|
-
});
|
|
30
30
|
var getExpandedHeight = function getExpandedHeight(ref, state) {
|
|
31
31
|
if (!ref.current) {
|
|
32
32
|
return '0';
|
|
@@ -74,12 +74,15 @@ var _default = exports.default = function _default(_ref) {
|
|
|
74
74
|
}, []);
|
|
75
75
|
return (0, _react2.jsx)("section", {
|
|
76
76
|
"aria-labelledby": "contextualSurveyQuestion"
|
|
77
|
-
}, (0, _react2.jsx)(
|
|
77
|
+
}, (0, _react2.jsx)(_primitives.Stack, {
|
|
78
|
+
space: "space.150"
|
|
79
|
+
}, (0, _react2.jsx)(_heading.default, {
|
|
78
80
|
id: "contextualSurveyQuestion",
|
|
79
|
-
|
|
80
|
-
}, question), statement && (0, _react2.jsx)(
|
|
81
|
+
size: "xsmall"
|
|
82
|
+
}, question), statement && (0, _react2.jsx)(_primitives.Text, {
|
|
83
|
+
as: "p",
|
|
81
84
|
id: "contextualSurveyStatement"
|
|
82
|
-
}, statement), (0, _react2.jsx)(_form.default, {
|
|
85
|
+
}, statement)), (0, _react2.jsx)(_form.default, {
|
|
83
86
|
onSubmit: onSubmit
|
|
84
87
|
}, function (_ref2) {
|
|
85
88
|
var formProps = _ref2.formProps,
|
|
@@ -8,7 +8,10 @@ var _react = require("@emotion/react");
|
|
|
8
8
|
var _reactTransitionGroup = require("react-transition-group");
|
|
9
9
|
var _constants = require("@atlaskit/theme/constants");
|
|
10
10
|
var _constants2 = require("../constants");
|
|
11
|
-
/**
|
|
11
|
+
/**
|
|
12
|
+
* @jsxRuntime classic
|
|
13
|
+
* @jsx jsx
|
|
14
|
+
*/
|
|
12
15
|
|
|
13
16
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
14
17
|
|
|
@@ -1,13 +1,11 @@
|
|
|
1
|
-
/**
|
|
1
|
+
/**
|
|
2
|
+
* @jsxRuntime classic
|
|
3
|
+
* @jsx jsx
|
|
4
|
+
*/
|
|
2
5
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
6
|
+
import { jsx } from '@emotion/react';
|
|
7
|
+
import Heading from '@atlaskit/heading';
|
|
5
8
|
import SuccessContainer from './SuccessContainer';
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
font: `var(--ds-font-heading-xsmall, ${fontFallback.heading.xsmall})`,
|
|
9
|
-
marginTop: 0
|
|
10
|
-
});
|
|
11
|
-
export default (() => jsx(SuccessContainer, null, jsx("h1", {
|
|
12
|
-
css: styles
|
|
9
|
+
export default (() => jsx(SuccessContainer, null, jsx(Heading, {
|
|
10
|
+
size: "xsmall"
|
|
13
11
|
}, "Thanks for your feedback")));
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
/**
|
|
1
|
+
/**
|
|
2
|
+
* @jsxRuntime classic
|
|
3
|
+
* @jsx jsx
|
|
4
|
+
*/
|
|
2
5
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
3
6
|
import { css, jsx } from '@emotion/react';
|
|
4
7
|
import Button from '@atlaskit/button/custom-theme-button';
|
|
5
|
-
import {
|
|
8
|
+
import { Text } from '@atlaskit/primitives';
|
|
6
9
|
import Tooltip from '@atlaskit/tooltip';
|
|
7
|
-
const styles = css({
|
|
8
|
-
textAlign: 'right'
|
|
9
|
-
});
|
|
10
10
|
const tooltipMessage = ['Strongly disagree', 'Disagree', 'Slightly disagree', 'Neutral', 'Slightly agree', 'Agree', 'Strongly agree'];
|
|
11
11
|
export default (({
|
|
12
12
|
onChange,
|
|
@@ -49,25 +49,29 @@ export default (({
|
|
|
49
49
|
})), jsx("div", {
|
|
50
50
|
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
51
51
|
css: css({
|
|
52
|
-
fontSize: '12px',
|
|
53
|
-
fontWeight: 600,
|
|
54
|
-
color: `var(--ds-text-subtlest, ${N200})`,
|
|
55
52
|
display: 'flex',
|
|
56
53
|
marginTop: "var(--ds-space-100, 8px)",
|
|
57
54
|
marginBottom: "var(--ds-space-300, 24px)",
|
|
55
|
+
justifyContent: 'space-between',
|
|
58
56
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
59
57
|
'& > span': {
|
|
60
58
|
width: "var(--ds-space-1000, 80px)"
|
|
61
59
|
}
|
|
62
60
|
}),
|
|
63
61
|
"aria-hidden": true
|
|
64
|
-
}, jsx(
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
62
|
+
}, jsx(Text, {
|
|
63
|
+
color: "color.text.subtlest",
|
|
64
|
+
size: "UNSAFE_small",
|
|
65
|
+
weight: "semibold",
|
|
66
|
+
align: "start"
|
|
67
|
+
}, "Strongly disagree"), jsx(Text, {
|
|
68
|
+
color: "color.text.subtlest",
|
|
69
|
+
size: "UNSAFE_small",
|
|
70
|
+
weight: "semibold",
|
|
71
|
+
align: "center"
|
|
72
|
+
}, "Neutral"), jsx(Text, {
|
|
73
|
+
color: "color.text.subtlest",
|
|
74
|
+
size: "UNSAFE_small",
|
|
75
|
+
weight: "semibold",
|
|
76
|
+
align: "end"
|
|
73
77
|
}, "Strongly agree"))));
|
|
@@ -1,16 +1,15 @@
|
|
|
1
|
-
/**
|
|
1
|
+
/**
|
|
2
|
+
* @jsxRuntime classic
|
|
3
|
+
* @jsx jsx
|
|
4
|
+
*/
|
|
2
5
|
import { useCallback, useState } from 'react';
|
|
3
6
|
|
|
4
7
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
5
8
|
import { css, jsx } from '@emotion/react';
|
|
6
9
|
import Button from '@atlaskit/button/custom-theme-button';
|
|
7
|
-
import
|
|
10
|
+
import Heading from '@atlaskit/heading';
|
|
11
|
+
import { Box, Stack, Text } from '@atlaskit/primitives';
|
|
8
12
|
import SuccessContainer from './SuccessContainer';
|
|
9
|
-
const styles = css({
|
|
10
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
11
|
-
font: `var(--ds-font-heading-xsmall, ${fontFallback.heading.xsmall})`,
|
|
12
|
-
margin: 0
|
|
13
|
-
});
|
|
14
13
|
export default (({
|
|
15
14
|
onAnswer
|
|
16
15
|
}) => {
|
|
@@ -20,11 +19,19 @@ export default (({
|
|
|
20
19
|
await onAnswer(answer);
|
|
21
20
|
}, [setPending, onAnswer]);
|
|
22
21
|
const isDisabled = Boolean(pending);
|
|
23
|
-
return jsx(SuccessContainer, null, jsx(
|
|
24
|
-
|
|
25
|
-
}, "Thanks for your feedback"), jsx(
|
|
22
|
+
return jsx(SuccessContainer, null, jsx(Heading, {
|
|
23
|
+
size: "xsmall"
|
|
24
|
+
}, "Thanks for your feedback"), jsx(Box, {
|
|
25
|
+
paddingBlockStart: "space.150"
|
|
26
|
+
}, jsx(Stack, {
|
|
27
|
+
space: "space.150"
|
|
28
|
+
}, jsx(Text, {
|
|
29
|
+
as: "p"
|
|
30
|
+
}, "Are you interested in participating in our research?"), jsx(Text, {
|
|
31
|
+
as: "p"
|
|
32
|
+
}, "Sign up for the", ' ', jsx("a", {
|
|
26
33
|
href: "https://www.atlassian.com/research-group"
|
|
27
|
-
}, "Atlassian Research Group"), " and we may contact you in the future with research opportunities."), jsx("div", {
|
|
34
|
+
}, "Atlassian Research Group"), " and we may contact you in the future with research opportunities."))), jsx("div", {
|
|
28
35
|
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
29
36
|
css: css({
|
|
30
37
|
marginTop: "var(--ds-space-400, 32px)",
|
|
@@ -1,13 +1,16 @@
|
|
|
1
|
-
/**
|
|
1
|
+
/**
|
|
2
|
+
* @jsxRuntime classic
|
|
3
|
+
* @jsx jsx
|
|
4
|
+
*/
|
|
2
5
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
6
|
+
import { jsx } from '@emotion/react';
|
|
7
|
+
import Heading from '@atlaskit/heading';
|
|
8
|
+
import { Stack, Text } from '@atlaskit/primitives';
|
|
5
9
|
import SuccessContainer from './SuccessContainer';
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
})
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
}, "Thanks for signing up"), jsx("p", null, "We may reach out to you in the future to participate in additional research.")));
|
|
10
|
+
export default (({}) => jsx(SuccessContainer, null, jsx(Stack, {
|
|
11
|
+
space: "space.150"
|
|
12
|
+
}, jsx(Heading, {
|
|
13
|
+
size: "xsmall"
|
|
14
|
+
}, "Thanks for signing up"), jsx(Text, {
|
|
15
|
+
as: "p"
|
|
16
|
+
}, "We may reach out to you in the future to participate in additional research."))));
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
/**
|
|
1
|
+
/**
|
|
2
|
+
* @jsxRuntime classic
|
|
3
|
+
* @jsx jsx
|
|
4
|
+
*/
|
|
2
5
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
3
6
|
import { css, jsx } from '@emotion/react';
|
|
4
7
|
import CheckCircleIcon from '@atlaskit/icon/glyph/check-circle';
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
/**
|
|
1
|
+
/**
|
|
2
|
+
* @jsxRuntime classic
|
|
3
|
+
* @jsx jsx
|
|
4
|
+
*/
|
|
2
5
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
3
6
|
import { css, jsx } from '@emotion/react';
|
|
4
7
|
import Button from '@atlaskit/button/custom-theme-button';
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
-
/**
|
|
2
|
+
/**
|
|
3
|
+
* @jsxRuntime classic
|
|
4
|
+
* @jsx jsx
|
|
5
|
+
*/
|
|
3
6
|
import { useCallback, useRef, useState } from 'react';
|
|
4
7
|
|
|
5
8
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
@@ -8,13 +11,10 @@ import { Transition } from 'react-transition-group';
|
|
|
8
11
|
import { LoadingButton as Button } from '@atlaskit/button';
|
|
9
12
|
import { Checkbox } from '@atlaskit/checkbox';
|
|
10
13
|
import Form, { CheckboxField, Field, FormFooter } from '@atlaskit/form';
|
|
14
|
+
import Heading from '@atlaskit/heading';
|
|
15
|
+
import { Stack, Text } from '@atlaskit/primitives';
|
|
11
16
|
import Textarea from '@atlaskit/textarea';
|
|
12
|
-
import { fontSize } from '@atlaskit/theme/constants';
|
|
13
17
|
import FeedbackScoreButtons from './FeedbackScoreButtons';
|
|
14
|
-
const headingStyles = css({
|
|
15
|
-
fontSize: `${fontSize()}px`,
|
|
16
|
-
fontWeight: 600
|
|
17
|
-
});
|
|
18
18
|
const getExpandedHeight = (ref, state) => {
|
|
19
19
|
if (!ref.current) {
|
|
20
20
|
return '0';
|
|
@@ -57,12 +57,15 @@ export default (({
|
|
|
57
57
|
}, []);
|
|
58
58
|
return jsx("section", {
|
|
59
59
|
"aria-labelledby": "contextualSurveyQuestion"
|
|
60
|
-
}, jsx(
|
|
60
|
+
}, jsx(Stack, {
|
|
61
|
+
space: "space.150"
|
|
62
|
+
}, jsx(Heading, {
|
|
61
63
|
id: "contextualSurveyQuestion",
|
|
62
|
-
|
|
63
|
-
}, question), statement && jsx(
|
|
64
|
+
size: "xsmall"
|
|
65
|
+
}, question), statement && jsx(Text, {
|
|
66
|
+
as: "p",
|
|
64
67
|
id: "contextualSurveyStatement"
|
|
65
|
-
}, statement), jsx(Form, {
|
|
68
|
+
}, statement)), jsx(Form, {
|
|
66
69
|
onSubmit: onSubmit
|
|
67
70
|
}, ({
|
|
68
71
|
formProps,
|
|
@@ -1,15 +1,13 @@
|
|
|
1
|
-
/**
|
|
1
|
+
/**
|
|
2
|
+
* @jsxRuntime classic
|
|
3
|
+
* @jsx jsx
|
|
4
|
+
*/
|
|
2
5
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
6
|
+
import { jsx } from '@emotion/react';
|
|
7
|
+
import Heading from '@atlaskit/heading';
|
|
5
8
|
import SuccessContainer from './SuccessContainer';
|
|
6
|
-
var styles = css({
|
|
7
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
8
|
-
font: "var(--ds-font-heading-xsmall, ".concat(fontFallback.heading.xsmall, ")"),
|
|
9
|
-
marginTop: 0
|
|
10
|
-
});
|
|
11
9
|
export default (function () {
|
|
12
|
-
return jsx(SuccessContainer, null, jsx(
|
|
13
|
-
|
|
10
|
+
return jsx(SuccessContainer, null, jsx(Heading, {
|
|
11
|
+
size: "xsmall"
|
|
14
12
|
}, "Thanks for your feedback"));
|
|
15
13
|
});
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
/**
|
|
1
|
+
/**
|
|
2
|
+
* @jsxRuntime classic
|
|
3
|
+
* @jsx jsx
|
|
4
|
+
*/
|
|
2
5
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
3
6
|
import { css, jsx } from '@emotion/react';
|
|
4
7
|
import Button from '@atlaskit/button/custom-theme-button';
|
|
5
|
-
import {
|
|
8
|
+
import { Text } from '@atlaskit/primitives';
|
|
6
9
|
import Tooltip from '@atlaskit/tooltip';
|
|
7
|
-
var styles = css({
|
|
8
|
-
textAlign: 'right'
|
|
9
|
-
});
|
|
10
10
|
var tooltipMessage = ['Strongly disagree', 'Disagree', 'Slightly disagree', 'Neutral', 'Slightly agree', 'Agree', 'Strongly agree'];
|
|
11
11
|
export default (function (_ref) {
|
|
12
12
|
var onChange = _ref.onChange,
|
|
@@ -51,26 +51,30 @@ export default (function (_ref) {
|
|
|
51
51
|
})), jsx("div", {
|
|
52
52
|
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
53
53
|
css: css({
|
|
54
|
-
fontSize: '12px',
|
|
55
|
-
fontWeight: 600,
|
|
56
|
-
color: "var(--ds-text-subtlest, ".concat(N200, ")"),
|
|
57
54
|
display: 'flex',
|
|
58
55
|
marginTop: "var(--ds-space-100, 8px)",
|
|
59
56
|
marginBottom: "var(--ds-space-300, 24px)",
|
|
57
|
+
justifyContent: 'space-between',
|
|
60
58
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
61
59
|
'& > span': {
|
|
62
60
|
width: "var(--ds-space-1000, 80px)"
|
|
63
61
|
}
|
|
64
62
|
}),
|
|
65
63
|
"aria-hidden": true
|
|
66
|
-
}, jsx(
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
64
|
+
}, jsx(Text, {
|
|
65
|
+
color: "color.text.subtlest",
|
|
66
|
+
size: "UNSAFE_small",
|
|
67
|
+
weight: "semibold",
|
|
68
|
+
align: "start"
|
|
69
|
+
}, "Strongly disagree"), jsx(Text, {
|
|
70
|
+
color: "color.text.subtlest",
|
|
71
|
+
size: "UNSAFE_small",
|
|
72
|
+
weight: "semibold",
|
|
73
|
+
align: "center"
|
|
74
|
+
}, "Neutral"), jsx(Text, {
|
|
75
|
+
color: "color.text.subtlest",
|
|
76
|
+
size: "UNSAFE_small",
|
|
77
|
+
weight: "semibold",
|
|
78
|
+
align: "end"
|
|
75
79
|
}, "Strongly agree")));
|
|
76
80
|
});
|
|
@@ -1,19 +1,18 @@
|
|
|
1
1
|
import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
|
|
2
2
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
3
3
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
4
|
-
/**
|
|
4
|
+
/**
|
|
5
|
+
* @jsxRuntime classic
|
|
6
|
+
* @jsx jsx
|
|
7
|
+
*/
|
|
5
8
|
import { useCallback, useState } from 'react';
|
|
6
9
|
|
|
7
10
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
8
11
|
import { css, jsx } from '@emotion/react';
|
|
9
12
|
import Button from '@atlaskit/button/custom-theme-button';
|
|
10
|
-
import
|
|
13
|
+
import Heading from '@atlaskit/heading';
|
|
14
|
+
import { Box, Stack, Text } from '@atlaskit/primitives';
|
|
11
15
|
import SuccessContainer from './SuccessContainer';
|
|
12
|
-
var styles = css({
|
|
13
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
14
|
-
font: "var(--ds-font-heading-xsmall, ".concat(fontFallback.heading.xsmall, ")"),
|
|
15
|
-
margin: 0
|
|
16
|
-
});
|
|
17
16
|
export default (function (_ref) {
|
|
18
17
|
var onAnswer = _ref.onAnswer;
|
|
19
18
|
var _useState = useState(null),
|
|
@@ -39,11 +38,19 @@ export default (function (_ref) {
|
|
|
39
38
|
};
|
|
40
39
|
}(), [setPending, onAnswer]);
|
|
41
40
|
var isDisabled = Boolean(pending);
|
|
42
|
-
return jsx(SuccessContainer, null, jsx(
|
|
43
|
-
|
|
44
|
-
}, "Thanks for your feedback"), jsx(
|
|
41
|
+
return jsx(SuccessContainer, null, jsx(Heading, {
|
|
42
|
+
size: "xsmall"
|
|
43
|
+
}, "Thanks for your feedback"), jsx(Box, {
|
|
44
|
+
paddingBlockStart: "space.150"
|
|
45
|
+
}, jsx(Stack, {
|
|
46
|
+
space: "space.150"
|
|
47
|
+
}, jsx(Text, {
|
|
48
|
+
as: "p"
|
|
49
|
+
}, "Are you interested in participating in our research?"), jsx(Text, {
|
|
50
|
+
as: "p"
|
|
51
|
+
}, "Sign up for the", ' ', jsx("a", {
|
|
45
52
|
href: "https://www.atlassian.com/research-group"
|
|
46
|
-
}, "Atlassian Research Group"), " and we may contact you in the future with research opportunities."), jsx("div", {
|
|
53
|
+
}, "Atlassian Research Group"), " and we may contact you in the future with research opportunities."))), jsx("div", {
|
|
47
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
|
|
48
55
|
css: css({
|
|
49
56
|
marginTop: "var(--ds-space-400, 32px)",
|
|
@@ -1,17 +1,20 @@
|
|
|
1
1
|
import _objectDestructuringEmpty from "@babel/runtime/helpers/objectDestructuringEmpty";
|
|
2
|
-
/**
|
|
2
|
+
/**
|
|
3
|
+
* @jsxRuntime classic
|
|
4
|
+
* @jsx jsx
|
|
5
|
+
*/
|
|
3
6
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
7
|
+
import { jsx } from '@emotion/react';
|
|
8
|
+
import Heading from '@atlaskit/heading';
|
|
9
|
+
import { Stack, Text } from '@atlaskit/primitives';
|
|
6
10
|
import SuccessContainer from './SuccessContainer';
|
|
7
|
-
var styles = css({
|
|
8
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
9
|
-
font: "var(--ds-font-heading-xsmall, ".concat(fontFallback.heading.xsmall, ")"),
|
|
10
|
-
margin: 0
|
|
11
|
-
});
|
|
12
11
|
export default (function (_ref) {
|
|
13
12
|
_objectDestructuringEmpty(_ref);
|
|
14
|
-
return jsx(SuccessContainer, null, jsx(
|
|
15
|
-
|
|
16
|
-
},
|
|
13
|
+
return jsx(SuccessContainer, null, jsx(Stack, {
|
|
14
|
+
space: "space.150"
|
|
15
|
+
}, jsx(Heading, {
|
|
16
|
+
size: "xsmall"
|
|
17
|
+
}, "Thanks for signing up"), jsx(Text, {
|
|
18
|
+
as: "p"
|
|
19
|
+
}, "We may reach out to you in the future to participate in additional research.")));
|
|
17
20
|
});
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
/**
|
|
1
|
+
/**
|
|
2
|
+
* @jsxRuntime classic
|
|
3
|
+
* @jsx jsx
|
|
4
|
+
*/
|
|
2
5
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
3
6
|
import { css, jsx } from '@emotion/react';
|
|
4
7
|
import CheckCircleIcon from '@atlaskit/icon/glyph/check-circle';
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
/**
|
|
1
|
+
/**
|
|
2
|
+
* @jsxRuntime classic
|
|
3
|
+
* @jsx jsx
|
|
4
|
+
*/
|
|
2
5
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
3
6
|
import { css, jsx } from '@emotion/react';
|
|
4
7
|
import Button from '@atlaskit/button/custom-theme-button';
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
3
|
-
/**
|
|
3
|
+
/**
|
|
4
|
+
* @jsxRuntime classic
|
|
5
|
+
* @jsx jsx
|
|
6
|
+
*/
|
|
4
7
|
import { useCallback, useRef, useState } from 'react';
|
|
5
8
|
|
|
6
9
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
@@ -9,13 +12,10 @@ import { Transition } from 'react-transition-group';
|
|
|
9
12
|
import { LoadingButton as Button } from '@atlaskit/button';
|
|
10
13
|
import { Checkbox } from '@atlaskit/checkbox';
|
|
11
14
|
import Form, { CheckboxField, Field, FormFooter } from '@atlaskit/form';
|
|
15
|
+
import Heading from '@atlaskit/heading';
|
|
16
|
+
import { Stack, Text } from '@atlaskit/primitives';
|
|
12
17
|
import Textarea from '@atlaskit/textarea';
|
|
13
|
-
import { fontSize } from '@atlaskit/theme/constants';
|
|
14
18
|
import FeedbackScoreButtons from './FeedbackScoreButtons';
|
|
15
|
-
var headingStyles = css({
|
|
16
|
-
fontSize: "".concat(fontSize(), "px"),
|
|
17
|
-
fontWeight: 600
|
|
18
|
-
});
|
|
19
19
|
var getExpandedHeight = function getExpandedHeight(ref, state) {
|
|
20
20
|
if (!ref.current) {
|
|
21
21
|
return '0';
|
|
@@ -63,12 +63,15 @@ export default (function (_ref) {
|
|
|
63
63
|
}, []);
|
|
64
64
|
return jsx("section", {
|
|
65
65
|
"aria-labelledby": "contextualSurveyQuestion"
|
|
66
|
-
}, jsx(
|
|
66
|
+
}, jsx(Stack, {
|
|
67
|
+
space: "space.150"
|
|
68
|
+
}, jsx(Heading, {
|
|
67
69
|
id: "contextualSurveyQuestion",
|
|
68
|
-
|
|
69
|
-
}, question), statement && jsx(
|
|
70
|
+
size: "xsmall"
|
|
71
|
+
}, question), statement && jsx(Text, {
|
|
72
|
+
as: "p",
|
|
70
73
|
id: "contextualSurveyStatement"
|
|
71
|
-
}, statement), jsx(Form, {
|
|
74
|
+
}, statement)), jsx(Form, {
|
|
72
75
|
onSubmit: onSubmit
|
|
73
76
|
}, function (_ref2) {
|
|
74
77
|
var formProps = _ref2.formProps,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/contextual-survey",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.3.0",
|
|
4
4
|
"description": "A React component used to ask the user for feedback",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -35,14 +35,16 @@
|
|
|
35
35
|
}
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@atlaskit/button": "^19.
|
|
39
|
-
"@atlaskit/checkbox": "^13.
|
|
40
|
-
"@atlaskit/form": "^10.
|
|
41
|
-
"@atlaskit/
|
|
42
|
-
"@atlaskit/
|
|
43
|
-
"@atlaskit/
|
|
44
|
-
"@atlaskit/
|
|
45
|
-
"@atlaskit/
|
|
38
|
+
"@atlaskit/button": "^19.2.0",
|
|
39
|
+
"@atlaskit/checkbox": "^13.7.0",
|
|
40
|
+
"@atlaskit/form": "^10.5.0",
|
|
41
|
+
"@atlaskit/heading": "^2.4.0",
|
|
42
|
+
"@atlaskit/icon": "^22.12.0",
|
|
43
|
+
"@atlaskit/primitives": "^12.0.1",
|
|
44
|
+
"@atlaskit/textarea": "^5.6.0",
|
|
45
|
+
"@atlaskit/theme": "^13.0.0",
|
|
46
|
+
"@atlaskit/tokens": "^1.58.0",
|
|
47
|
+
"@atlaskit/tooltip": "^18.7.0",
|
|
46
48
|
"@babel/runtime": "^7.0.0",
|
|
47
49
|
"@emotion/react": "^11.7.1",
|
|
48
50
|
"react-transition-group": "^4.4.1"
|