@atlaskit/contextual-survey 2.2.15 → 2.2.17
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 +157 -55
- package/afm-jira/tsconfig.json +45 -0
- package/dist/cjs/components/FeedbackAcknowledgement.js +2 -0
- package/dist/cjs/components/FeedbackScoreButtons.js +42 -6
- package/dist/cjs/components/SignUpPrompt.js +6 -1
- package/dist/cjs/components/SignUpSuccess.js +2 -0
- package/dist/cjs/components/SuccessContainer.js +11 -4
- package/dist/cjs/components/SurveyContainer.js +17 -4
- package/dist/cjs/components/SurveyForm.js +4 -0
- package/dist/cjs/components/SurveyMarshal.js +7 -0
- package/dist/es2019/components/FeedbackAcknowledgement.js +2 -0
- package/dist/es2019/components/FeedbackScoreButtons.js +41 -36
- package/dist/es2019/components/SignUpPrompt.js +6 -1
- package/dist/es2019/components/SignUpSuccess.js +2 -0
- package/dist/es2019/components/SuccessContainer.js +11 -8
- package/dist/es2019/components/SurveyContainer.js +17 -12
- package/dist/es2019/components/SurveyForm.js +4 -0
- package/dist/es2019/components/SurveyMarshal.js +6 -0
- package/dist/esm/components/FeedbackAcknowledgement.js +2 -0
- package/dist/esm/components/FeedbackScoreButtons.js +41 -6
- package/dist/esm/components/SignUpPrompt.js +6 -1
- package/dist/esm/components/SignUpSuccess.js +2 -0
- package/dist/esm/components/SuccessContainer.js +11 -4
- package/dist/esm/components/SurveyContainer.js +17 -4
- package/dist/esm/components/SurveyForm.js +4 -0
- package/dist/esm/components/SurveyMarshal.js +6 -0
- package/dist/types/components/ContextualSurvey.d.ts +1 -1
- package/dist/types/components/SurveyForm.d.ts +3 -3
- package/dist/types/components/SurveyMarshal.d.ts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types-ts4.5/components/ContextualSurvey.d.ts +1 -1
- package/dist/types-ts4.5/components/SurveyForm.d.ts +3 -3
- package/dist/types-ts4.5/components/SurveyMarshal.d.ts +1 -1
- package/dist/types-ts4.5/index.d.ts +1 -1
- package/docs/0-intro.tsx +33 -31
- package/package.json +73 -75
- package/report.api.md +33 -32
|
@@ -5,22 +5,35 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
7
|
exports.default = void 0;
|
|
8
|
-
var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
|
|
9
8
|
var _react = require("@emotion/react");
|
|
10
9
|
var _customThemeButton = _interopRequireDefault(require("@atlaskit/button/custom-theme-button"));
|
|
11
10
|
var _cross = _interopRequireDefault(require("@atlaskit/icon/glyph/cross"));
|
|
12
11
|
var _colors = require("@atlaskit/theme/colors");
|
|
13
12
|
var _constants = require("@atlaskit/theme/constants");
|
|
14
13
|
var _constants2 = require("../constants");
|
|
15
|
-
var _templateObject, _templateObject2;
|
|
16
14
|
/** @jsx jsx */
|
|
15
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
17
16
|
var _default = exports.default = function _default(_ref) {
|
|
18
17
|
var children = _ref.children,
|
|
19
18
|
onDismiss = _ref.onDismiss;
|
|
20
19
|
return (0, _react.jsx)("div", {
|
|
21
|
-
|
|
20
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
21
|
+
css: (0, _react.css)({
|
|
22
|
+
backgroundColor: "var(--ds-surface-overlay, ".concat(_colors.N0, ")"),
|
|
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
|
+
borderRadius: "".concat((0, _constants.borderRadius)(), "px"),
|
|
25
|
+
padding: "var(--ds-space-300, 24px)",
|
|
26
|
+
boxShadow: "var(--ds-shadow-overlay, ".concat("0 20px 32px -8px ".concat(_colors.N50A, ", 0 0 1px ").concat(_colors.N60A), ")"),
|
|
27
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
28
|
+
width: "".concat(_constants2.surveyInnerWidth, "px")
|
|
29
|
+
})
|
|
22
30
|
}, (0, _react.jsx)("div", {
|
|
23
|
-
|
|
31
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
32
|
+
css: (0, _react.css)({
|
|
33
|
+
position: 'absolute',
|
|
34
|
+
top: "var(--ds-space-200, 16px)",
|
|
35
|
+
right: "var(--ds-space-200, 16px)"
|
|
36
|
+
})
|
|
24
37
|
}, (0, _react.jsx)(_customThemeButton.default, {
|
|
25
38
|
iconBefore: (0, _react.jsx)(_cross.default, {
|
|
26
39
|
label: "",
|
|
@@ -21,6 +21,8 @@ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return
|
|
|
21
21
|
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
22
|
/** @jsx jsx */
|
|
23
23
|
|
|
24
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
25
|
+
|
|
24
26
|
var headingStyles = (0, _react2.css)({
|
|
25
27
|
fontSize: "".concat((0, _constants.fontSize)(), "px"),
|
|
26
28
|
fontWeight: 600
|
|
@@ -100,9 +102,11 @@ var _default = exports.default = function _default(_ref) {
|
|
|
100
102
|
mountOnEnter: true
|
|
101
103
|
}, function (state) {
|
|
102
104
|
return (0, _react2.jsx)("div", {
|
|
105
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
103
106
|
css: (0, _react2.css)({
|
|
104
107
|
transition: "max-height ".concat(transitionDuration, "ms ease-in-out"),
|
|
105
108
|
overflow: 'hidden',
|
|
109
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
106
110
|
maxHeight: getExpandedHeight(expandedAreaRef, state)
|
|
107
111
|
}),
|
|
108
112
|
ref: expandedAreaRef
|
|
@@ -10,6 +10,8 @@ var _constants = require("@atlaskit/theme/constants");
|
|
|
10
10
|
var _constants2 = require("../constants");
|
|
11
11
|
/** @jsx jsx */
|
|
12
12
|
|
|
13
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
14
|
+
|
|
13
15
|
var animationDuration = 300;
|
|
14
16
|
var offscreen = {
|
|
15
17
|
translateX: "".concat(_constants2.surveyInnerWidth + _constants2.surveyOffset, "px"),
|
|
@@ -45,12 +47,17 @@ function SurveyMarshal(props) {
|
|
|
45
47
|
translateX = _getAnimationProps.translateX,
|
|
46
48
|
opacity = _getAnimationProps.opacity;
|
|
47
49
|
return (0, _react.jsx)("div", {
|
|
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
|
|
48
51
|
css: (0, _react.css)({
|
|
49
52
|
position: 'fixed',
|
|
53
|
+
// 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
54
|
right: "".concat(_constants2.surveyOffset, "px"),
|
|
55
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
51
56
|
bottom: "".concat(_constants2.surveyOffset, "px"),
|
|
52
57
|
zIndex: _constants.layers.flag(),
|
|
58
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
53
59
|
transform: "translateX(".concat(translateX, ")"),
|
|
60
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
54
61
|
opacity: opacity,
|
|
55
62
|
transition: "all ".concat(animationDuration, "ms ease-in-out"),
|
|
56
63
|
transitionProperty: 'transform, opacity'
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
2
3
|
import { css, jsx } from '@emotion/react';
|
|
3
4
|
import { fontFallback } from '@atlaskit/theme/typography';
|
|
4
5
|
import SuccessContainer from './SuccessContainer';
|
|
5
6
|
const styles = css({
|
|
7
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
6
8
|
font: `var(--ds-font-heading-xsmall, ${fontFallback.heading.xsmall})`,
|
|
7
9
|
marginTop: 0
|
|
8
10
|
});
|
|
@@ -1,29 +1,34 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
2
3
|
import { css, jsx } from '@emotion/react';
|
|
3
4
|
import Button from '@atlaskit/button/custom-theme-button';
|
|
4
5
|
import { N200 } from '@atlaskit/theme/colors';
|
|
5
6
|
import Tooltip from '@atlaskit/tooltip';
|
|
7
|
+
const styles = css({
|
|
8
|
+
textAlign: 'right'
|
|
9
|
+
});
|
|
6
10
|
const tooltipMessage = ['Strongly disagree', 'Disagree', 'Slightly disagree', 'Neutral', 'Slightly agree', 'Agree', 'Strongly agree'];
|
|
7
11
|
export default (({
|
|
8
12
|
onChange,
|
|
9
13
|
value
|
|
10
14
|
}) => jsx("div", null, jsx("div", {
|
|
11
|
-
css
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
15
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
16
|
+
css: css({
|
|
17
|
+
display: 'flex',
|
|
18
|
+
justifyContent: 'space-between',
|
|
19
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
20
|
+
'& > * + *': {
|
|
21
|
+
marginLeft: "var(--ds-space-100, 8px)"
|
|
22
|
+
},
|
|
23
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
24
|
+
'& > *': {
|
|
25
|
+
flex: 1,
|
|
26
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
27
|
+
'& > button': {
|
|
28
|
+
justifyContent: 'center'
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
})
|
|
27
32
|
}, Array.from({
|
|
28
33
|
length: 7
|
|
29
34
|
}, (_, i) => {
|
|
@@ -42,27 +47,27 @@ export default (({
|
|
|
42
47
|
shouldFitContainer: true
|
|
43
48
|
}, score));
|
|
44
49
|
})), jsx("div", {
|
|
45
|
-
css
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
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
|
+
css: css({
|
|
52
|
+
fontSize: '12px',
|
|
53
|
+
fontWeight: 600,
|
|
54
|
+
color: `var(--ds-text-subtlest, ${N200})`,
|
|
55
|
+
display: 'flex',
|
|
56
|
+
marginTop: "var(--ds-space-100, 8px)",
|
|
57
|
+
marginBottom: "var(--ds-space-300, 24px)",
|
|
58
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
59
|
+
'& > span': {
|
|
60
|
+
width: "var(--ds-space-1000, 80px)"
|
|
61
|
+
}
|
|
62
|
+
}),
|
|
57
63
|
"aria-hidden": true
|
|
58
64
|
}, jsx("span", null, "Strongly disagree"), jsx("span", {
|
|
59
|
-
css
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
65
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
66
|
+
css: css({
|
|
67
|
+
textAlign: 'center',
|
|
68
|
+
margin: '0 auto',
|
|
69
|
+
padding: `0 ${"var(--ds-space-600, 48px)"}`
|
|
70
|
+
})
|
|
64
71
|
}, "Neutral"), jsx("span", {
|
|
65
|
-
css:
|
|
66
|
-
text-align: right;
|
|
67
|
-
`
|
|
72
|
+
css: styles
|
|
68
73
|
}, "Strongly agree"))));
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import { useCallback, useState } from 'react';
|
|
3
|
+
|
|
4
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
3
5
|
import { css, jsx } from '@emotion/react';
|
|
4
6
|
import Button from '@atlaskit/button/custom-theme-button';
|
|
5
7
|
import { fontFallback } from '@atlaskit/theme/typography';
|
|
6
8
|
import SuccessContainer from './SuccessContainer';
|
|
7
9
|
const styles = css({
|
|
10
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
8
11
|
font: `var(--ds-font-heading-xsmall, ${fontFallback.heading.xsmall})`,
|
|
9
12
|
margin: 0
|
|
10
13
|
});
|
|
@@ -21,11 +24,13 @@ export default (({
|
|
|
21
24
|
css: styles
|
|
22
25
|
}, "Thanks for your feedback"), jsx("p", null, "Are you interested in participating in our research?"), jsx("p", null, "Sign up for the", ' ', jsx("a", {
|
|
23
26
|
href: "https://www.atlassian.com/research-group"
|
|
24
|
-
}, "Atlassian Research Group"),
|
|
27
|
+
}, "Atlassian Research Group"), " and we may contact you in the future with research opportunities."), jsx("div", {
|
|
28
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
25
29
|
css: css({
|
|
26
30
|
marginTop: "var(--ds-space-400, 32px)",
|
|
27
31
|
display: 'flex',
|
|
28
32
|
justifyContent: 'flex-end',
|
|
33
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
29
34
|
'& > * + *': {
|
|
30
35
|
marginLeft: "var(--ds-space-100, 8px)"
|
|
31
36
|
}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
2
3
|
import { css, jsx } from '@emotion/react';
|
|
3
4
|
import { fontFallback } from '@atlaskit/theme/typography';
|
|
4
5
|
import SuccessContainer from './SuccessContainer';
|
|
5
6
|
const styles = css({
|
|
7
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
6
8
|
font: `var(--ds-font-heading-xsmall, ${fontFallback.heading.xsmall})`,
|
|
7
9
|
margin: 0
|
|
8
10
|
});
|
|
@@ -1,19 +1,22 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
2
3
|
import { css, jsx } from '@emotion/react';
|
|
3
4
|
import CheckCircleIcon from '@atlaskit/icon/glyph/check-circle';
|
|
4
5
|
import { G300 } from '@atlaskit/theme/colors';
|
|
5
6
|
export default (({
|
|
6
7
|
children
|
|
7
8
|
}) => jsx("section", {
|
|
8
|
-
css
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
10
|
+
css: css({
|
|
11
|
+
marginLeft: "var(--ds-space-500, 40px)"
|
|
12
|
+
})
|
|
11
13
|
}, jsx("div", {
|
|
12
|
-
css
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
14
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
15
|
+
css: css({
|
|
16
|
+
position: 'absolute',
|
|
17
|
+
top: "var(--ds-space-300, 24px)",
|
|
18
|
+
left: "var(--ds-space-300, 24px)"
|
|
19
|
+
})
|
|
17
20
|
}, jsx(CheckCircleIcon, {
|
|
18
21
|
label: "",
|
|
19
22
|
"aria-hidden": true,
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
2
3
|
import { css, jsx } from '@emotion/react';
|
|
3
4
|
import Button from '@atlaskit/button/custom-theme-button';
|
|
4
5
|
import CrossIcon from '@atlaskit/icon/glyph/cross';
|
|
@@ -10,19 +11,23 @@ export default (({
|
|
|
10
11
|
onDismiss
|
|
11
12
|
}) => {
|
|
12
13
|
return jsx("div", {
|
|
13
|
-
css
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
`
|
|
14
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
15
|
+
css: css({
|
|
16
|
+
backgroundColor: `var(--ds-surface-overlay, ${N0})`,
|
|
17
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
18
|
+
borderRadius: `${borderRadius()}px`,
|
|
19
|
+
padding: "var(--ds-space-300, 24px)",
|
|
20
|
+
boxShadow: `var(--ds-shadow-overlay, ${`0 20px 32px -8px ${N50A}, 0 0 1px ${N60A}`})`,
|
|
21
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
22
|
+
width: `${surveyInnerWidth}px`
|
|
23
|
+
})
|
|
20
24
|
}, jsx("div", {
|
|
21
|
-
css
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
25
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
26
|
+
css: css({
|
|
27
|
+
position: 'absolute',
|
|
28
|
+
top: "var(--ds-space-200, 16px)",
|
|
29
|
+
right: "var(--ds-space-200, 16px)"
|
|
30
|
+
})
|
|
26
31
|
}, jsx(Button, {
|
|
27
32
|
iconBefore: jsx(CrossIcon, {
|
|
28
33
|
label: "",
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
/** @jsx jsx */
|
|
3
3
|
import { useCallback, useRef, useState } from 'react';
|
|
4
|
+
|
|
5
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
4
6
|
import { css, jsx } from '@emotion/react';
|
|
5
7
|
import { Transition } from 'react-transition-group';
|
|
6
8
|
import Button from '@atlaskit/button/custom-theme-button';
|
|
@@ -81,9 +83,11 @@ export default (({
|
|
|
81
83
|
timeout: transitionDuration,
|
|
82
84
|
mountOnEnter: true
|
|
83
85
|
}, state => jsx("div", {
|
|
86
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
84
87
|
css: css({
|
|
85
88
|
transition: `max-height ${transitionDuration}ms ease-in-out`,
|
|
86
89
|
overflow: 'hidden',
|
|
90
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
87
91
|
maxHeight: getExpandedHeight(expandedAreaRef, state)
|
|
88
92
|
}),
|
|
89
93
|
ref: expandedAreaRef
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
|
|
3
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
3
4
|
import { css, jsx } from '@emotion/react';
|
|
4
5
|
import { Transition } from 'react-transition-group';
|
|
5
6
|
import { layers } from '@atlaskit/theme/constants';
|
|
@@ -42,12 +43,17 @@ export default function SurveyMarshal(props) {
|
|
|
42
43
|
opacity
|
|
43
44
|
} = getAnimationProps(state);
|
|
44
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
|
|
45
47
|
css: css({
|
|
46
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
|
|
47
50
|
right: `${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
|
|
48
52
|
bottom: `${surveyOffset}px`,
|
|
49
53
|
zIndex: layers.flag(),
|
|
54
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
50
55
|
transform: `translateX(${translateX})`,
|
|
56
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
51
57
|
opacity: opacity,
|
|
52
58
|
transition: `all ${animationDuration}ms ease-in-out`,
|
|
53
59
|
transitionProperty: 'transform, opacity'
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
2
3
|
import { css, jsx } from '@emotion/react';
|
|
3
4
|
import { fontFallback } from '@atlaskit/theme/typography';
|
|
4
5
|
import SuccessContainer from './SuccessContainer';
|
|
5
6
|
var styles = css({
|
|
7
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
6
8
|
font: "var(--ds-font-heading-xsmall, ".concat(fontFallback.heading.xsmall, ")"),
|
|
7
9
|
marginTop: 0
|
|
8
10
|
});
|
|
@@ -1,16 +1,34 @@
|
|
|
1
|
-
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
|
2
|
-
var _templateObject, _templateObject2, _templateObject3, _templateObject4;
|
|
3
1
|
/** @jsx jsx */
|
|
2
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
4
3
|
import { css, jsx } from '@emotion/react';
|
|
5
4
|
import Button from '@atlaskit/button/custom-theme-button';
|
|
6
5
|
import { N200 } from '@atlaskit/theme/colors';
|
|
7
6
|
import Tooltip from '@atlaskit/tooltip';
|
|
7
|
+
var styles = css({
|
|
8
|
+
textAlign: 'right'
|
|
9
|
+
});
|
|
8
10
|
var tooltipMessage = ['Strongly disagree', 'Disagree', 'Slightly disagree', 'Neutral', 'Slightly agree', 'Agree', 'Strongly agree'];
|
|
9
11
|
export default (function (_ref) {
|
|
10
12
|
var onChange = _ref.onChange,
|
|
11
13
|
value = _ref.value;
|
|
12
14
|
return jsx("div", null, jsx("div", {
|
|
13
|
-
|
|
15
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
16
|
+
css: css({
|
|
17
|
+
display: 'flex',
|
|
18
|
+
justifyContent: 'space-between',
|
|
19
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
20
|
+
'& > * + *': {
|
|
21
|
+
marginLeft: "var(--ds-space-100, 8px)"
|
|
22
|
+
},
|
|
23
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
24
|
+
'& > *': {
|
|
25
|
+
flex: 1,
|
|
26
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
27
|
+
'& > button': {
|
|
28
|
+
justifyContent: 'center'
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
})
|
|
14
32
|
}, Array.from({
|
|
15
33
|
length: 7
|
|
16
34
|
}, function (_, i) {
|
|
@@ -31,11 +49,28 @@ export default (function (_ref) {
|
|
|
31
49
|
shouldFitContainer: true
|
|
32
50
|
}, score));
|
|
33
51
|
})), jsx("div", {
|
|
34
|
-
|
|
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
|
+
css: css({
|
|
54
|
+
fontSize: '12px',
|
|
55
|
+
fontWeight: 600,
|
|
56
|
+
color: "var(--ds-text-subtlest, ".concat(N200, ")"),
|
|
57
|
+
display: 'flex',
|
|
58
|
+
marginTop: "var(--ds-space-100, 8px)",
|
|
59
|
+
marginBottom: "var(--ds-space-300, 24px)",
|
|
60
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
61
|
+
'& > span': {
|
|
62
|
+
width: "var(--ds-space-1000, 80px)"
|
|
63
|
+
}
|
|
64
|
+
}),
|
|
35
65
|
"aria-hidden": true
|
|
36
66
|
}, jsx("span", null, "Strongly disagree"), jsx("span", {
|
|
37
|
-
|
|
67
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
68
|
+
css: css({
|
|
69
|
+
textAlign: 'center',
|
|
70
|
+
margin: '0 auto',
|
|
71
|
+
padding: "0 ".concat("var(--ds-space-600, 48px)")
|
|
72
|
+
})
|
|
38
73
|
}, "Neutral"), jsx("span", {
|
|
39
|
-
css:
|
|
74
|
+
css: styles
|
|
40
75
|
}, "Strongly agree")));
|
|
41
76
|
});
|
|
@@ -3,11 +3,14 @@ import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
|
3
3
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
4
4
|
/** @jsx jsx */
|
|
5
5
|
import { useCallback, useState } from 'react';
|
|
6
|
+
|
|
7
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
6
8
|
import { css, jsx } from '@emotion/react';
|
|
7
9
|
import Button from '@atlaskit/button/custom-theme-button';
|
|
8
10
|
import { fontFallback } from '@atlaskit/theme/typography';
|
|
9
11
|
import SuccessContainer from './SuccessContainer';
|
|
10
12
|
var styles = css({
|
|
13
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
11
14
|
font: "var(--ds-font-heading-xsmall, ".concat(fontFallback.heading.xsmall, ")"),
|
|
12
15
|
margin: 0
|
|
13
16
|
});
|
|
@@ -40,11 +43,13 @@ export default (function (_ref) {
|
|
|
40
43
|
css: styles
|
|
41
44
|
}, "Thanks for your feedback"), jsx("p", null, "Are you interested in participating in our research?"), jsx("p", null, "Sign up for the", ' ', jsx("a", {
|
|
42
45
|
href: "https://www.atlassian.com/research-group"
|
|
43
|
-
}, "Atlassian Research Group"),
|
|
46
|
+
}, "Atlassian Research Group"), " and we may contact you in the future with research opportunities."), jsx("div", {
|
|
47
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
44
48
|
css: css({
|
|
45
49
|
marginTop: "var(--ds-space-400, 32px)",
|
|
46
50
|
display: 'flex',
|
|
47
51
|
justifyContent: 'flex-end',
|
|
52
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
48
53
|
'& > * + *': {
|
|
49
54
|
marginLeft: "var(--ds-space-100, 8px)"
|
|
50
55
|
}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import _objectDestructuringEmpty from "@babel/runtime/helpers/objectDestructuringEmpty";
|
|
2
2
|
/** @jsx jsx */
|
|
3
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
3
4
|
import { css, jsx } from '@emotion/react';
|
|
4
5
|
import { fontFallback } from '@atlaskit/theme/typography';
|
|
5
6
|
import SuccessContainer from './SuccessContainer';
|
|
6
7
|
var styles = css({
|
|
8
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
7
9
|
font: "var(--ds-font-heading-xsmall, ".concat(fontFallback.heading.xsmall, ")"),
|
|
8
10
|
margin: 0
|
|
9
11
|
});
|
|
@@ -1,15 +1,22 @@
|
|
|
1
|
-
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
|
2
|
-
var _templateObject, _templateObject2;
|
|
3
1
|
/** @jsx jsx */
|
|
2
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
4
3
|
import { css, jsx } from '@emotion/react';
|
|
5
4
|
import CheckCircleIcon from '@atlaskit/icon/glyph/check-circle';
|
|
6
5
|
import { G300 } from '@atlaskit/theme/colors';
|
|
7
6
|
export default (function (_ref) {
|
|
8
7
|
var children = _ref.children;
|
|
9
8
|
return jsx("section", {
|
|
10
|
-
|
|
9
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
10
|
+
css: css({
|
|
11
|
+
marginLeft: "var(--ds-space-500, 40px)"
|
|
12
|
+
})
|
|
11
13
|
}, jsx("div", {
|
|
12
|
-
|
|
14
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
15
|
+
css: css({
|
|
16
|
+
position: 'absolute',
|
|
17
|
+
top: "var(--ds-space-300, 24px)",
|
|
18
|
+
left: "var(--ds-space-300, 24px)"
|
|
19
|
+
})
|
|
13
20
|
}, jsx(CheckCircleIcon, {
|
|
14
21
|
label: "",
|
|
15
22
|
"aria-hidden": true,
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
|
2
|
-
var _templateObject, _templateObject2;
|
|
3
1
|
/** @jsx jsx */
|
|
2
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
4
3
|
import { css, jsx } from '@emotion/react';
|
|
5
4
|
import Button from '@atlaskit/button/custom-theme-button';
|
|
6
5
|
import CrossIcon from '@atlaskit/icon/glyph/cross';
|
|
@@ -11,9 +10,23 @@ export default (function (_ref) {
|
|
|
11
10
|
var children = _ref.children,
|
|
12
11
|
onDismiss = _ref.onDismiss;
|
|
13
12
|
return jsx("div", {
|
|
14
|
-
|
|
13
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
14
|
+
css: css({
|
|
15
|
+
backgroundColor: "var(--ds-surface-overlay, ".concat(N0, ")"),
|
|
16
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
17
|
+
borderRadius: "".concat(borderRadius(), "px"),
|
|
18
|
+
padding: "var(--ds-space-300, 24px)",
|
|
19
|
+
boxShadow: "var(--ds-shadow-overlay, ".concat("0 20px 32px -8px ".concat(N50A, ", 0 0 1px ").concat(N60A), ")"),
|
|
20
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
21
|
+
width: "".concat(surveyInnerWidth, "px")
|
|
22
|
+
})
|
|
15
23
|
}, jsx("div", {
|
|
16
|
-
|
|
24
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
25
|
+
css: css({
|
|
26
|
+
position: 'absolute',
|
|
27
|
+
top: "var(--ds-space-200, 16px)",
|
|
28
|
+
right: "var(--ds-space-200, 16px)"
|
|
29
|
+
})
|
|
17
30
|
}, jsx(Button, {
|
|
18
31
|
iconBefore: jsx(CrossIcon, {
|
|
19
32
|
label: "",
|
|
@@ -2,6 +2,8 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
2
2
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
3
3
|
/** @jsx jsx */
|
|
4
4
|
import { useCallback, useRef, useState } from 'react';
|
|
5
|
+
|
|
6
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
5
7
|
import { css, jsx } from '@emotion/react';
|
|
6
8
|
import { Transition } from 'react-transition-group';
|
|
7
9
|
import Button from '@atlaskit/button/custom-theme-button';
|
|
@@ -89,9 +91,11 @@ export default (function (_ref) {
|
|
|
89
91
|
mountOnEnter: true
|
|
90
92
|
}, function (state) {
|
|
91
93
|
return jsx("div", {
|
|
94
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
92
95
|
css: css({
|
|
93
96
|
transition: "max-height ".concat(transitionDuration, "ms ease-in-out"),
|
|
94
97
|
overflow: 'hidden',
|
|
98
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
95
99
|
maxHeight: getExpandedHeight(expandedAreaRef, state)
|
|
96
100
|
}),
|
|
97
101
|
ref: expandedAreaRef
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
|
|
3
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
3
4
|
import { css, jsx } from '@emotion/react';
|
|
4
5
|
import { Transition } from 'react-transition-group';
|
|
5
6
|
import { layers } from '@atlaskit/theme/constants';
|
|
@@ -39,12 +40,17 @@ export default function SurveyMarshal(props) {
|
|
|
39
40
|
translateX = _getAnimationProps.translateX,
|
|
40
41
|
opacity = _getAnimationProps.opacity;
|
|
41
42
|
return jsx("div", {
|
|
43
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
42
44
|
css: css({
|
|
43
45
|
position: 'fixed',
|
|
46
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
44
47
|
right: "".concat(surveyOffset, "px"),
|
|
48
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
45
49
|
bottom: "".concat(surveyOffset, "px"),
|
|
46
50
|
zIndex: layers.flag(),
|
|
51
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
47
52
|
transform: "translateX(".concat(translateX, ")"),
|
|
53
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
48
54
|
opacity: opacity,
|
|
49
55
|
transition: "all ".concat(animationDuration, "ms ease-in-out"),
|
|
50
56
|
transitionProperty: 'transform, opacity'
|