@atlaskit/quiz-widget 3.0.11 → 3.0.13

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 CHANGED
@@ -1,5 +1,19 @@
1
1
  # @atlaskit/quiz-widget
2
2
 
3
+ ## 3.0.13
4
+
5
+ ### Patch Changes
6
+
7
+ - [`717cc94987686`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/717cc94987686) -
8
+ Internal changes to how borders are applied.
9
+
10
+ ## 3.0.12
11
+
12
+ ### Patch Changes
13
+
14
+ - [`bc7821de4d118`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/bc7821de4d118) -
15
+ Sorted type and interface props to improve Atlaskit docs
16
+
3
17
  ## 3.0.11
4
18
 
5
19
  ### Patch Changes
@@ -15,7 +15,7 @@ var Quiz = exports.Quiz = _styled.default.div({
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
17
  padding: "var(--ds-space-250, 20px)".concat(" 30px ", "var(--ds-space-250, 20px)", " 0"),
18
- border: '1px solid grey',
18
+ border: "var(--ds-border-width, 1px)".concat(" solid grey"),
19
19
  borderRadius: '28px',
20
20
  minWidth: '300px',
21
21
  maxWidth: '380px'
@@ -7,7 +7,7 @@ export const Quiz = styled.div({
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
9
  padding: `${"var(--ds-space-250, 20px)"} 30px ${"var(--ds-space-250, 20px)"} 0`,
10
- border: '1px solid grey',
10
+ border: `${"var(--ds-border-width, 1px)"} solid grey`,
11
11
  borderRadius: '28px',
12
12
  minWidth: '300px',
13
13
  maxWidth: '380px'
@@ -7,7 +7,7 @@ export var Quiz = styled.div({
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
9
  padding: "var(--ds-space-250, 20px)".concat(" 30px ", "var(--ds-space-250, 20px)", " 0"),
10
- border: '1px solid grey',
10
+ border: "var(--ds-border-width, 1px)".concat(" solid grey"),
11
11
  borderRadius: '28px',
12
12
  minWidth: '300px',
13
13
  maxWidth: '380px'
@@ -1,15 +1,15 @@
1
1
  import React from 'react';
2
2
  import { type QuizElement, type QuizInterface } from './types';
3
3
  export interface Props {
4
- quizContent: QuizInterface;
5
- score: number | null;
6
4
  correctAnswers?: QuizElement | null;
7
- onSubmitButtonClick?: (choosenAnswers: string[]) => void;
8
5
  onNextButtonClick?: () => void;
6
+ onSubmitButtonClick?: (choosenAnswers: string[]) => void;
7
+ quizContent: QuizInterface;
8
+ score: number | null;
9
9
  }
10
10
  export interface State {
11
- currentQuestionNumber: number;
12
11
  checkedAnswers: Map<number, string>;
12
+ currentQuestionNumber: number;
13
13
  }
14
14
  declare const QuizWidget: (props: Props) => React.JSX.Element;
15
15
  export default QuizWidget;
@@ -1,9 +1,9 @@
1
1
  export interface QuizInterface {
2
- name: string;
3
- questions: QuizElement;
4
2
  answers: {
5
3
  [key: number]: string[];
6
4
  };
5
+ name: string;
6
+ questions: QuizElement;
7
7
  }
8
8
  export type QuizElement = {
9
9
  [key: number]: string;
@@ -1,15 +1,15 @@
1
1
  import React from 'react';
2
2
  import { type QuizElement, type QuizInterface } from './types';
3
3
  export interface Props {
4
- quizContent: QuizInterface;
5
- score: number | null;
6
4
  correctAnswers?: QuizElement | null;
7
- onSubmitButtonClick?: (choosenAnswers: string[]) => void;
8
5
  onNextButtonClick?: () => void;
6
+ onSubmitButtonClick?: (choosenAnswers: string[]) => void;
7
+ quizContent: QuizInterface;
8
+ score: number | null;
9
9
  }
10
10
  export interface State {
11
- currentQuestionNumber: number;
12
11
  checkedAnswers: Map<number, string>;
12
+ currentQuestionNumber: number;
13
13
  }
14
14
  declare const QuizWidget: (props: Props) => React.JSX.Element;
15
15
  export default QuizWidget;
@@ -1,9 +1,9 @@
1
1
  export interface QuizInterface {
2
- name: string;
3
- questions: QuizElement;
4
2
  answers: {
5
3
  [key: number]: string[];
6
4
  };
5
+ name: string;
6
+ questions: QuizElement;
7
7
  }
8
8
  export type QuizElement = {
9
9
  [key: number]: string;
package/package.json CHANGED
@@ -1,12 +1,9 @@
1
1
  {
2
2
  "name": "@atlaskit/quiz-widget",
3
- "version": "3.0.11",
3
+ "version": "3.0.13",
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",
7
- "af:exports": {
8
- ".": "./src/index.ts"
9
- },
10
7
  "publishConfig": {
11
8
  "registry": "https://registry.npmjs.org/"
12
9
  },
@@ -35,11 +32,11 @@
35
32
  "atlaskit:src": "src/index.ts",
36
33
  "dependencies": {
37
34
  "@atlaskit/button": "^23.4.0",
38
- "@atlaskit/icon": "^28.0.0",
39
- "@atlaskit/primitives": "^14.11.0",
40
- "@atlaskit/radio": "^8.2.0",
35
+ "@atlaskit/icon": "^28.2.0",
36
+ "@atlaskit/primitives": "^14.14.0",
37
+ "@atlaskit/radio": "^8.3.0",
41
38
  "@atlaskit/spinner": "^19.0.0",
42
- "@atlaskit/tokens": "^6.0.0",
39
+ "@atlaskit/tokens": "^6.3.0",
43
40
  "@babel/runtime": "^7.0.0",
44
41
  "@emotion/styled": "^11.0.0"
45
42
  },