@atlaskit/quiz-widget 3.0.18 → 3.0.19
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 +8 -0
- package/dist/cjs/components/QuizWidget/index.js +4 -1
- package/dist/cjs/components/QuizWidget/styled.js +8 -13
- package/dist/es2019/components/QuizWidget/index.js +4 -1
- package/dist/es2019/components/QuizWidget/styled.js +8 -13
- package/dist/esm/components/QuizWidget/index.js +4 -1
- package/dist/esm/components/QuizWidget/styled.js +8 -13
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @atlaskit/quiz-widget
|
|
2
2
|
|
|
3
|
+
## 3.0.19
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`83e73ca06c1c7`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/83e73ca06c1c7) -
|
|
8
|
+
Internal changes to how border radius is applied.
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
3
11
|
## 3.0.18
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
|
@@ -99,7 +99,10 @@ var QuizWidget = function QuizWidget(props) {
|
|
|
99
99
|
color: "currentColor",
|
|
100
100
|
LEGACY_size: "large",
|
|
101
101
|
size: "small"
|
|
102
|
-
})), /*#__PURE__*/_react.default.createElement(_styled.NavAction, null, isLastSlide && props.score ? 'Review' : 'Previous'))), isLastQuestion && !props.score ?
|
|
102
|
+
})), /*#__PURE__*/_react.default.createElement(_styled.NavAction, null, isLastSlide && props.score ? 'Review' : 'Previous'))), isLastQuestion && !props.score ?
|
|
103
|
+
/*#__PURE__*/
|
|
104
|
+
// eslint-disable-next-line @atlassian/i18n/no-literal-string-in-jsx
|
|
105
|
+
_react.default.createElement(_button.default, {
|
|
103
106
|
appearance: "primary",
|
|
104
107
|
onClick: onSubmitButtonClick,
|
|
105
108
|
isDisabled: isDisabledSubmit
|
|
@@ -14,9 +14,9 @@ var Quiz = exports.Quiz = _styled.default.div({
|
|
|
14
14
|
flexDirection: 'column',
|
|
15
15
|
font: "var(--ds-font-body-large, normal 400 16px/24px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif)",
|
|
16
16
|
width: '100%',
|
|
17
|
-
padding: "var(--ds-space-250, 20px)".concat("
|
|
17
|
+
padding: "var(--ds-space-250, 20px)".concat(" ", "var(--ds-space-400, 32px)", " ", "var(--ds-space-250, 20px)", " 0"),
|
|
18
18
|
border: "var(--ds-border-width, 1px)".concat(" solid grey"),
|
|
19
|
-
borderRadius:
|
|
19
|
+
borderRadius: "var(--ds-radius-xxlarge, 16px)",
|
|
20
20
|
minWidth: '300px',
|
|
21
21
|
maxWidth: '380px'
|
|
22
22
|
});
|
|
@@ -37,10 +37,8 @@ var Header = exports.Header = _styled.default.div({
|
|
|
37
37
|
|
|
38
38
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
39
39
|
var QuizBlock = exports.QuizBlock = _styled.default.ul({
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
// eslint-disable-next-line @atlaskit/design-system/use-tokens-space -- needs manual remediation
|
|
43
|
-
marginBottom: '15px',
|
|
40
|
+
paddingLeft: "var(--ds-space-200, 16px)",
|
|
41
|
+
marginBottom: "var(--ds-space-200, 16px)",
|
|
44
42
|
marginTop: 0,
|
|
45
43
|
minHeight: '105px'
|
|
46
44
|
});
|
|
@@ -57,8 +55,7 @@ var Footer = exports.Footer = _styled.default.div({
|
|
|
57
55
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
58
56
|
var Question = exports.Question = _styled.default.div({
|
|
59
57
|
paddingLeft: "var(--ds-space-075, 6px)",
|
|
60
|
-
|
|
61
|
-
marginBottom: '10px',
|
|
58
|
+
marginBottom: "var(--ds-space-150, 12px)",
|
|
62
59
|
font: "var(--ds-font-body, normal 400 14px/20px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif)",
|
|
63
60
|
color: '#707070',
|
|
64
61
|
textAlign: 'left'
|
|
@@ -69,7 +66,7 @@ var NavQuiz = exports.NavQuiz = _styled.default.div({
|
|
|
69
66
|
display: 'flex',
|
|
70
67
|
alignContent: 'center',
|
|
71
68
|
justifyContent: 'center',
|
|
72
|
-
padding:
|
|
69
|
+
padding: "0 0 0 ".concat("var(--ds-space-050, 4px)"),
|
|
73
70
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
74
71
|
':hover': {
|
|
75
72
|
color: 'grey'
|
|
@@ -86,15 +83,13 @@ var NavAction = exports.NavAction = _styled.default.span({
|
|
|
86
83
|
|
|
87
84
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
88
85
|
var Score = exports.Score = _styled.default.div({
|
|
89
|
-
|
|
90
|
-
marginTop: '10px',
|
|
86
|
+
marginTop: "var(--ds-space-150, 12px)",
|
|
91
87
|
paddingLeft: "var(--ds-space-075, 6px)",
|
|
92
88
|
display: 'flex',
|
|
93
89
|
flexDirection: 'column',
|
|
94
90
|
textAlign: 'start',
|
|
95
91
|
fontWeight: "var(--ds-font-weight-regular, 400)",
|
|
96
|
-
|
|
97
|
-
gap: '5px'
|
|
92
|
+
gap: "var(--ds-space-075, 6px)"
|
|
98
93
|
});
|
|
99
94
|
|
|
100
95
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
@@ -78,7 +78,10 @@ const QuizWidget = props => {
|
|
|
78
78
|
color: "currentColor",
|
|
79
79
|
LEGACY_size: "large",
|
|
80
80
|
size: "small"
|
|
81
|
-
})), /*#__PURE__*/React.createElement(NavAction, null, isLastSlide && props.score ? 'Review' : 'Previous'))), isLastQuestion && !props.score ?
|
|
81
|
+
})), /*#__PURE__*/React.createElement(NavAction, null, isLastSlide && props.score ? 'Review' : 'Previous'))), isLastQuestion && !props.score ?
|
|
82
|
+
/*#__PURE__*/
|
|
83
|
+
// eslint-disable-next-line @atlassian/i18n/no-literal-string-in-jsx
|
|
84
|
+
React.createElement(Button, {
|
|
82
85
|
appearance: "primary",
|
|
83
86
|
onClick: onSubmitButtonClick,
|
|
84
87
|
isDisabled: isDisabledSubmit
|
|
@@ -6,9 +6,9 @@ export const Quiz = styled.div({
|
|
|
6
6
|
flexDirection: 'column',
|
|
7
7
|
font: "var(--ds-font-body-large, normal 400 16px/24px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif)",
|
|
8
8
|
width: '100%',
|
|
9
|
-
padding: `${"var(--ds-space-250, 20px)"}
|
|
9
|
+
padding: `${"var(--ds-space-250, 20px)"} ${"var(--ds-space-400, 32px)"} ${"var(--ds-space-250, 20px)"} 0`,
|
|
10
10
|
border: `${"var(--ds-border-width, 1px)"} solid grey`,
|
|
11
|
-
borderRadius:
|
|
11
|
+
borderRadius: "var(--ds-radius-xxlarge, 16px)",
|
|
12
12
|
minWidth: '300px',
|
|
13
13
|
maxWidth: '380px'
|
|
14
14
|
});
|
|
@@ -29,10 +29,8 @@ export const Header = styled.div({
|
|
|
29
29
|
|
|
30
30
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
31
31
|
export const QuizBlock = styled.ul({
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
// eslint-disable-next-line @atlaskit/design-system/use-tokens-space -- needs manual remediation
|
|
35
|
-
marginBottom: '15px',
|
|
32
|
+
paddingLeft: "var(--ds-space-200, 16px)",
|
|
33
|
+
marginBottom: "var(--ds-space-200, 16px)",
|
|
36
34
|
marginTop: 0,
|
|
37
35
|
minHeight: '105px'
|
|
38
36
|
});
|
|
@@ -49,8 +47,7 @@ export const Footer = styled.div({
|
|
|
49
47
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
50
48
|
export const Question = styled.div({
|
|
51
49
|
paddingLeft: "var(--ds-space-075, 6px)",
|
|
52
|
-
|
|
53
|
-
marginBottom: '10px',
|
|
50
|
+
marginBottom: "var(--ds-space-150, 12px)",
|
|
54
51
|
font: "var(--ds-font-body, normal 400 14px/20px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif)",
|
|
55
52
|
color: '#707070',
|
|
56
53
|
textAlign: 'left'
|
|
@@ -61,7 +58,7 @@ export const NavQuiz = styled.div({
|
|
|
61
58
|
display: 'flex',
|
|
62
59
|
alignContent: 'center',
|
|
63
60
|
justifyContent: 'center',
|
|
64
|
-
padding:
|
|
61
|
+
padding: `0 0 0 ${"var(--ds-space-050, 4px)"}`,
|
|
65
62
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
66
63
|
':hover': {
|
|
67
64
|
color: 'grey'
|
|
@@ -78,15 +75,13 @@ export const NavAction = styled.span({
|
|
|
78
75
|
|
|
79
76
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
80
77
|
export const Score = styled.div({
|
|
81
|
-
|
|
82
|
-
marginTop: '10px',
|
|
78
|
+
marginTop: "var(--ds-space-150, 12px)",
|
|
83
79
|
paddingLeft: "var(--ds-space-075, 6px)",
|
|
84
80
|
display: 'flex',
|
|
85
81
|
flexDirection: 'column',
|
|
86
82
|
textAlign: 'start',
|
|
87
83
|
fontWeight: "var(--ds-font-weight-regular, 400)",
|
|
88
|
-
|
|
89
|
-
gap: '5px'
|
|
84
|
+
gap: "var(--ds-space-075, 6px)"
|
|
90
85
|
});
|
|
91
86
|
|
|
92
87
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
@@ -89,7 +89,10 @@ var QuizWidget = function QuizWidget(props) {
|
|
|
89
89
|
color: "currentColor",
|
|
90
90
|
LEGACY_size: "large",
|
|
91
91
|
size: "small"
|
|
92
|
-
})), /*#__PURE__*/React.createElement(NavAction, null, isLastSlide && props.score ? 'Review' : 'Previous'))), isLastQuestion && !props.score ?
|
|
92
|
+
})), /*#__PURE__*/React.createElement(NavAction, null, isLastSlide && props.score ? 'Review' : 'Previous'))), isLastQuestion && !props.score ?
|
|
93
|
+
/*#__PURE__*/
|
|
94
|
+
// eslint-disable-next-line @atlassian/i18n/no-literal-string-in-jsx
|
|
95
|
+
React.createElement(Button, {
|
|
93
96
|
appearance: "primary",
|
|
94
97
|
onClick: onSubmitButtonClick,
|
|
95
98
|
isDisabled: isDisabledSubmit
|
|
@@ -6,9 +6,9 @@ export var Quiz = styled.div({
|
|
|
6
6
|
flexDirection: 'column',
|
|
7
7
|
font: "var(--ds-font-body-large, normal 400 16px/24px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif)",
|
|
8
8
|
width: '100%',
|
|
9
|
-
padding: "var(--ds-space-250, 20px)".concat("
|
|
9
|
+
padding: "var(--ds-space-250, 20px)".concat(" ", "var(--ds-space-400, 32px)", " ", "var(--ds-space-250, 20px)", " 0"),
|
|
10
10
|
border: "var(--ds-border-width, 1px)".concat(" solid grey"),
|
|
11
|
-
borderRadius:
|
|
11
|
+
borderRadius: "var(--ds-radius-xxlarge, 16px)",
|
|
12
12
|
minWidth: '300px',
|
|
13
13
|
maxWidth: '380px'
|
|
14
14
|
});
|
|
@@ -29,10 +29,8 @@ export var Header = styled.div({
|
|
|
29
29
|
|
|
30
30
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
31
31
|
export var QuizBlock = styled.ul({
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
// eslint-disable-next-line @atlaskit/design-system/use-tokens-space -- needs manual remediation
|
|
35
|
-
marginBottom: '15px',
|
|
32
|
+
paddingLeft: "var(--ds-space-200, 16px)",
|
|
33
|
+
marginBottom: "var(--ds-space-200, 16px)",
|
|
36
34
|
marginTop: 0,
|
|
37
35
|
minHeight: '105px'
|
|
38
36
|
});
|
|
@@ -49,8 +47,7 @@ export var Footer = styled.div({
|
|
|
49
47
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
50
48
|
export var Question = styled.div({
|
|
51
49
|
paddingLeft: "var(--ds-space-075, 6px)",
|
|
52
|
-
|
|
53
|
-
marginBottom: '10px',
|
|
50
|
+
marginBottom: "var(--ds-space-150, 12px)",
|
|
54
51
|
font: "var(--ds-font-body, normal 400 14px/20px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif)",
|
|
55
52
|
color: '#707070',
|
|
56
53
|
textAlign: 'left'
|
|
@@ -61,7 +58,7 @@ export var NavQuiz = styled.div({
|
|
|
61
58
|
display: 'flex',
|
|
62
59
|
alignContent: 'center',
|
|
63
60
|
justifyContent: 'center',
|
|
64
|
-
padding:
|
|
61
|
+
padding: "0 0 0 ".concat("var(--ds-space-050, 4px)"),
|
|
65
62
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
66
63
|
':hover': {
|
|
67
64
|
color: 'grey'
|
|
@@ -78,15 +75,13 @@ export var NavAction = styled.span({
|
|
|
78
75
|
|
|
79
76
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
80
77
|
export var Score = styled.div({
|
|
81
|
-
|
|
82
|
-
marginTop: '10px',
|
|
78
|
+
marginTop: "var(--ds-space-150, 12px)",
|
|
83
79
|
paddingLeft: "var(--ds-space-075, 6px)",
|
|
84
80
|
display: 'flex',
|
|
85
81
|
flexDirection: 'column',
|
|
86
82
|
textAlign: 'start',
|
|
87
83
|
fontWeight: "var(--ds-font-weight-regular, 400)",
|
|
88
|
-
|
|
89
|
-
gap: '5px'
|
|
84
|
+
gap: "var(--ds-space-075, 6px)"
|
|
90
85
|
});
|
|
91
86
|
|
|
92
87
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/quiz-widget",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.19",
|
|
4
4
|
"description": "A React component that gives a possibility to pass quizzes",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -33,10 +33,10 @@
|
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@atlaskit/button": "^23.6.0",
|
|
35
35
|
"@atlaskit/icon": "^29.0.0",
|
|
36
|
-
"@atlaskit/primitives": "^16.
|
|
36
|
+
"@atlaskit/primitives": "^16.4.0",
|
|
37
37
|
"@atlaskit/radio": "^8.3.0",
|
|
38
38
|
"@atlaskit/spinner": "^19.0.0",
|
|
39
|
-
"@atlaskit/tokens": "^8.
|
|
39
|
+
"@atlaskit/tokens": "^8.3.0",
|
|
40
40
|
"@babel/runtime": "^7.0.0",
|
|
41
41
|
"@emotion/styled": "^11.0.0"
|
|
42
42
|
},
|