@digigov/react-core 0.5.5 → 0.6.2

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 (133) hide show
  1. package/ArrowIcon/__snapshots__/index.test.tsx.snap +83 -0
  2. package/ArrowIcon/index.d.ts +16 -0
  3. package/ArrowIcon/index.js +59 -0
  4. package/ArrowIcon/index.test.d.ts +1 -0
  5. package/ArrowIcon/index.test.js +39 -0
  6. package/BackLink/index.d.ts +1 -1
  7. package/BackLink/index.js +5 -3
  8. package/BurgerIcon/__snapshots__/index.test.tsx.snap +353 -40
  9. package/BurgerIcon/index.d.ts +15 -3
  10. package/BurgerIcon/index.js +31 -12
  11. package/BurgerIcon/index.test.js +74 -6
  12. package/Button/index.d.ts +1 -1
  13. package/ButtonLink/index.d.ts +1 -1
  14. package/CHANGELOG.md +27 -1
  15. package/CallToAction/index.d.ts +1 -1
  16. package/CallToAction/index.js +3 -8
  17. package/CaretIcon/__snapshots__/index.test.tsx.snap +83 -0
  18. package/CaretIcon/index.d.ts +16 -0
  19. package/CaretIcon/index.js +59 -0
  20. package/CaretIcon/index.test.d.ts +1 -0
  21. package/CaretIcon/index.test.js +39 -0
  22. package/CheckIcon/__snapshots__/index.test.tsx.snap +316 -0
  23. package/CheckIcon/index.d.ts +15 -0
  24. package/CheckIcon/index.js +44 -0
  25. package/CheckIcon/index.test.d.ts +1 -0
  26. package/CheckIcon/index.test.js +129 -0
  27. package/CheckboxItem/index.d.ts +1 -1
  28. package/CloseIcon/__snapshots__/index.test.tsx.snap +20 -0
  29. package/CloseIcon/index.d.ts +16 -0
  30. package/CloseIcon/index.js +45 -0
  31. package/CloseIcon/index.test.d.ts +1 -0
  32. package/CloseIcon/index.test.js +15 -0
  33. package/DateInputItem/index.d.ts +2 -2
  34. package/DateInputItem/index.js +5 -5
  35. package/Fieldset/index.d.ts +1 -1
  36. package/FieldsetLegend/index.d.ts +1 -1
  37. package/FileUpload/index.d.ts +1 -1
  38. package/FooterContainer/index.d.ts +8 -1
  39. package/FooterContainer/index.js +4 -2
  40. package/FooterImage/index.d.ts +1 -1
  41. package/FooterLink/index.d.ts +1 -1
  42. package/GovGRLogo/index.d.ts +1 -1
  43. package/Grid/index.d.ts +1 -1
  44. package/HeaderLogo/index.d.ts +1 -1
  45. package/HeaderSecondaryLogo/index.d.ts +1 -1
  46. package/HeaderTitle/index.d.ts +1 -1
  47. package/HellenicRepublicLogo/index.d.ts +1 -1
  48. package/LabelTitle/index.d.ts +1 -1
  49. package/Link/index.d.ts +1 -1
  50. package/MoreVertIcon/__snapshots__/index.test.tsx.snap +512 -0
  51. package/MoreVertIcon/index.d.ts +15 -0
  52. package/MoreVertIcon/index.js +58 -0
  53. package/MoreVertIcon/index.test.d.ts +1 -0
  54. package/MoreVertIcon/index.test.js +129 -0
  55. package/NavHorizontalListItem/index.d.ts +1 -1
  56. package/NavVerticalItem/index.d.ts +1 -1
  57. package/NotificationBannerLink/index.d.ts +1 -1
  58. package/RadioItem/index.d.ts +1 -1
  59. package/Select/index.d.ts +1 -1
  60. package/SvgIcon/__snapshots__/index.test.tsx.snap +224 -0
  61. package/SvgIcon/index.d.ts +20 -0
  62. package/SvgIcon/index.js +41 -0
  63. package/SvgIcon/index.test.d.ts +1 -0
  64. package/SvgIcon/index.test.js +129 -0
  65. package/TabsListItem/index.d.ts +1 -1
  66. package/TextArea/index.d.ts +1 -1
  67. package/TextInput/index.d.ts +1 -1
  68. package/UncheckIcon/__snapshots__/index.test.tsx.snap +332 -0
  69. package/UncheckIcon/index.d.ts +15 -0
  70. package/UncheckIcon/index.js +44 -0
  71. package/UncheckIcon/index.test.d.ts +1 -0
  72. package/UncheckIcon/index.test.js +129 -0
  73. package/es/ArrowIcon/__snapshots__/index.test.tsx.snap +83 -0
  74. package/es/ArrowIcon/index.js +43 -0
  75. package/es/ArrowIcon/index.test.js +33 -0
  76. package/es/BackLink/index.js +4 -3
  77. package/es/BurgerIcon/__snapshots__/index.test.tsx.snap +353 -40
  78. package/es/BurgerIcon/index.js +30 -12
  79. package/es/BurgerIcon/index.test.js +74 -6
  80. package/es/CallToAction/index.js +2 -8
  81. package/es/CaretIcon/__snapshots__/index.test.tsx.snap +83 -0
  82. package/es/CaretIcon/index.js +43 -0
  83. package/es/CaretIcon/index.test.js +33 -0
  84. package/es/CheckIcon/__snapshots__/index.test.tsx.snap +316 -0
  85. package/es/CheckIcon/index.js +28 -0
  86. package/es/CheckIcon/index.test.js +123 -0
  87. package/es/CloseIcon/__snapshots__/index.test.tsx.snap +20 -0
  88. package/es/CloseIcon/index.js +29 -0
  89. package/es/CloseIcon/index.test.js +9 -0
  90. package/es/DateInputItem/index.js +5 -5
  91. package/es/FooterContainer/index.js +4 -2
  92. package/es/MoreVertIcon/__snapshots__/index.test.tsx.snap +512 -0
  93. package/es/MoreVertIcon/index.js +42 -0
  94. package/es/MoreVertIcon/index.test.js +123 -0
  95. package/es/SvgIcon/__snapshots__/index.test.tsx.snap +224 -0
  96. package/es/SvgIcon/index.js +26 -0
  97. package/es/SvgIcon/index.test.js +123 -0
  98. package/es/UncheckIcon/__snapshots__/index.test.tsx.snap +332 -0
  99. package/es/UncheckIcon/index.js +28 -0
  100. package/es/UncheckIcon/index.test.js +123 -0
  101. package/es/index.js +7 -0
  102. package/esm/ArrowIcon/__snapshots__/index.test.tsx.snap +83 -0
  103. package/esm/ArrowIcon/index.js +43 -0
  104. package/esm/ArrowIcon/index.test.js +33 -0
  105. package/esm/BackLink/index.js +4 -3
  106. package/esm/BurgerIcon/__snapshots__/index.test.tsx.snap +353 -40
  107. package/esm/BurgerIcon/index.js +30 -12
  108. package/esm/BurgerIcon/index.test.js +74 -6
  109. package/esm/CallToAction/index.js +2 -8
  110. package/esm/CaretIcon/__snapshots__/index.test.tsx.snap +83 -0
  111. package/esm/CaretIcon/index.js +43 -0
  112. package/esm/CaretIcon/index.test.js +33 -0
  113. package/esm/CheckIcon/__snapshots__/index.test.tsx.snap +316 -0
  114. package/esm/CheckIcon/index.js +28 -0
  115. package/esm/CheckIcon/index.test.js +123 -0
  116. package/esm/CloseIcon/__snapshots__/index.test.tsx.snap +20 -0
  117. package/esm/CloseIcon/index.js +29 -0
  118. package/esm/CloseIcon/index.test.js +9 -0
  119. package/esm/DateInputItem/index.js +5 -5
  120. package/esm/FooterContainer/index.js +4 -2
  121. package/esm/MoreVertIcon/__snapshots__/index.test.tsx.snap +512 -0
  122. package/esm/MoreVertIcon/index.js +42 -0
  123. package/esm/MoreVertIcon/index.test.js +123 -0
  124. package/esm/SvgIcon/__snapshots__/index.test.tsx.snap +224 -0
  125. package/esm/SvgIcon/index.js +26 -0
  126. package/esm/SvgIcon/index.test.js +123 -0
  127. package/esm/UncheckIcon/__snapshots__/index.test.tsx.snap +332 -0
  128. package/esm/UncheckIcon/index.js +28 -0
  129. package/esm/UncheckIcon/index.test.js +123 -0
  130. package/esm/index.js +8 -1
  131. package/index.d.ts +7 -0
  132. package/index.js +56 -0
  133. package/package.json +2 -2
@@ -0,0 +1,28 @@
1
+ import _extends from "@babel/runtime/helpers/extends";
2
+ import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
3
+ var _excluded = ["size", "variant", "className"];
4
+ import React from 'react';
5
+ import SvgIcon from '@digigov/react-core/SvgIcon';
6
+ import clsx from 'clsx';
7
+
8
+ var _ref2 = /*#__PURE__*/React.createElement("polygon", {
9
+ points: "20.59 5.74 18.26 3.41 12 9.67 5.742 3.41 3.41 5.74 9.67 12 3.41 18.26 5.74 20.6 12 14.33 18.26 20.59 20.59 18.26 14.33 12 20.59 5.74"
10
+ });
11
+
12
+ /**
13
+ * Use UnunCheckIcon component when you need a uncheck/decline icon.
14
+ */
15
+ export var UnCheckIcon = /*#__PURE__*/React.forwardRef(function UnCheckIcon(_ref, ref) {
16
+ var size = _ref.size,
17
+ variant = _ref.variant,
18
+ className = _ref.className,
19
+ props = _objectWithoutProperties(_ref, _excluded);
20
+
21
+ return /*#__PURE__*/React.createElement(SvgIcon, _extends({
22
+ size: size,
23
+ variant: variant,
24
+ className: clsx(className && className, true && 'govgr-svg-icon--check'),
25
+ ref: ref
26
+ }, props), _ref2);
27
+ });
28
+ export default UnCheckIcon;
@@ -0,0 +1,123 @@
1
+ import React from 'react';
2
+ import { mount } from 'enzyme';
3
+ import UncheckIcon from '@digigov/react-core/UncheckIcon';
4
+
5
+ var _ref = /*#__PURE__*/React.createElement(UncheckIcon, null);
6
+
7
+ it('renders the UncheckIcon with no props', function () {
8
+ expect(mount(_ref)).toMatchSnapshot();
9
+ });
10
+
11
+ var _ref2 = /*#__PURE__*/React.createElement(UncheckIcon, {
12
+ size: "s"
13
+ });
14
+
15
+ it('renders the UncheckIcon with prop size=s', function () {
16
+ expect(mount(_ref2)).toMatchSnapshot();
17
+ });
18
+
19
+ var _ref3 = /*#__PURE__*/React.createElement(UncheckIcon, {
20
+ size: "m"
21
+ });
22
+
23
+ it('renders the UncheckIcon with prop size=m', function () {
24
+ expect(mount(_ref3)).toMatchSnapshot();
25
+ });
26
+
27
+ var _ref4 = /*#__PURE__*/React.createElement(UncheckIcon, {
28
+ size: "l"
29
+ });
30
+
31
+ it('renders the UncheckIcon with prop size=l', function () {
32
+ expect(mount(_ref4)).toMatchSnapshot();
33
+ });
34
+
35
+ var _ref5 = /*#__PURE__*/React.createElement(UncheckIcon, {
36
+ size: "xl"
37
+ });
38
+
39
+ it('renders the UncheckIcon with prop size=xl', function () {
40
+ expect(mount(_ref5)).toMatchSnapshot();
41
+ });
42
+
43
+ var _ref6 = /*#__PURE__*/React.createElement(UncheckIcon, {
44
+ variant: "dark"
45
+ });
46
+
47
+ it('renders the UncheckIcon with prop variant=dark', function () {
48
+ expect(mount(_ref6)).toMatchSnapshot();
49
+ });
50
+
51
+ var _ref7 = /*#__PURE__*/React.createElement(UncheckIcon, {
52
+ variant: "light"
53
+ });
54
+
55
+ it('renders the UncheckIcon with prop variant=light', function () {
56
+ expect(mount(_ref7)).toMatchSnapshot();
57
+ });
58
+
59
+ var _ref8 = /*#__PURE__*/React.createElement(UncheckIcon, {
60
+ variant: "gray"
61
+ });
62
+
63
+ it('renders the UncheckIcon with prop variant=gray', function () {
64
+ expect(mount(_ref8)).toMatchSnapshot();
65
+ });
66
+
67
+ var _ref9 = /*#__PURE__*/React.createElement(UncheckIcon, {
68
+ variant: "primary"
69
+ });
70
+
71
+ it('renders the UncheckIcon with prop variant=primary', function () {
72
+ expect(mount(_ref9)).toMatchSnapshot();
73
+ });
74
+
75
+ var _ref10 = /*#__PURE__*/React.createElement(UncheckIcon, {
76
+ variant: "success"
77
+ });
78
+
79
+ it('renders the UncheckIcon with prop variant=success', function () {
80
+ expect(mount(_ref10)).toMatchSnapshot();
81
+ });
82
+
83
+ var _ref11 = /*#__PURE__*/React.createElement(UncheckIcon, {
84
+ variant: "warning"
85
+ });
86
+
87
+ it('renders the UncheckIcon with prop variant=warning', function () {
88
+ expect(mount(_ref11)).toMatchSnapshot();
89
+ });
90
+
91
+ var _ref12 = /*#__PURE__*/React.createElement(UncheckIcon, {
92
+ variant: "error"
93
+ });
94
+
95
+ it('renders the UncheckIcon with prop variant=error', function () {
96
+ expect(mount(_ref12)).toMatchSnapshot();
97
+ });
98
+
99
+ var _ref13 = /*#__PURE__*/React.createElement(UncheckIcon, {
100
+ variant: "focus"
101
+ });
102
+
103
+ it('renders the UncheckIcon with prop variant=focus', function () {
104
+ expect(mount(_ref13)).toMatchSnapshot();
105
+ });
106
+
107
+ var _ref14 = /*#__PURE__*/React.createElement(UncheckIcon, {
108
+ variant: "warning",
109
+ size: "s"
110
+ });
111
+
112
+ it('renders the UncheckIcon with prop variant=warning and size=s', function () {
113
+ expect(mount(_ref14)).toMatchSnapshot();
114
+ });
115
+
116
+ var _ref15 = /*#__PURE__*/React.createElement(UncheckIcon, {
117
+ variant: "warning",
118
+ size: "xl"
119
+ });
120
+
121
+ it('renders the UncheckIcon with prop variant=error and size= xl', function () {
122
+ expect(mount(_ref15)).toMatchSnapshot();
123
+ });
package/es/index.js CHANGED
@@ -3,6 +3,7 @@ export { default as AccordionControls } from '@digigov/react-core/AccordionContr
3
3
  export { default as AccordionSection } from '@digigov/react-core/AccordionSection';
4
4
  export { default as AccordionSectionContent } from '@digigov/react-core/AccordionSectionContent';
5
5
  export { default as AccordionSectionHeader } from '@digigov/react-core/AccordionSectionHeader';
6
+ export { default as ArrowIcon } from '@digigov/react-core/ArrowIcon';
6
7
  export { default as Aside } from '@digigov/react-core/Aside';
7
8
  export { default as BackLink } from '@digigov/react-core/BackLink';
8
9
  export { default as Blockquote } from '@digigov/react-core/Blockquote';
@@ -19,9 +20,13 @@ export { default as Card } from '@digigov/react-core/Card';
19
20
  export { default as CardAction } from '@digigov/react-core/CardAction';
20
21
  export { default as CardHeading } from '@digigov/react-core/CardHeading';
21
22
  export { default as CardText } from '@digigov/react-core/CardText';
23
+ export { default as CaretIcon } from '@digigov/react-core/CaretIcon';
22
24
  export { default as Checkbox } from '@digigov/react-core/Checkbox';
23
25
  export { default as CheckboxConditional } from '@digigov/react-core/CheckboxConditional';
24
26
  export { default as CheckboxItem } from '@digigov/react-core/CheckboxItem';
27
+ export { default as CheckIcon } from '@digigov/react-core/CheckIcon';
28
+ export { default as UncheckIcon } from '@digigov/react-core/UncheckIcon';
29
+ export { default as CloseIcon } from '@digigov/react-core/CloseIcon';
25
30
  export { default as Confirmation } from '@digigov/react-core/Confirmation';
26
31
  export { default as ConfirmationBody } from '@digigov/react-core/ConfirmationBody';
27
32
  export { default as ConfirmationTitle } from '@digigov/react-core/ConfirmationTitle';
@@ -77,6 +82,7 @@ export { default as ListItem } from '@digigov/react-core/ListItem';
77
82
  export { default as Main } from '@digigov/react-core/Main';
78
83
  export { default as Masthead } from '@digigov/react-core/Masthead';
79
84
  export { default as MastheadBody } from '@digigov/react-core/MastheadBody';
85
+ export { default as MoreVertIcon } from '@digigov/react-core/MoreVertIcon';
80
86
  export { default as NavHorizontal } from '@digigov/react-core/NavHorizontal';
81
87
  export { default as NavHorizontalList } from '@digigov/react-core/NavHorizontalList';
82
88
  export { default as NavHorizontalListItem } from '@digigov/react-core/NavHorizontalListItem';
@@ -108,6 +114,7 @@ export { default as SummaryListItem } from '@digigov/react-core/SummaryListItem'
108
114
  export { default as SummaryListItemAction } from '@digigov/react-core/SummaryListItemAction';
109
115
  export { default as SummaryListItemKey } from '@digigov/react-core/SummaryListItemKey';
110
116
  export { default as SummaryListItemValue } from '@digigov/react-core/SummaryListItemValue';
117
+ export { default as SvgIcon } from '@digigov/react-core/SvgIcon';
111
118
  export { default as Table } from '@digigov/react-core/Table';
112
119
  export { default as TableBody } from '@digigov/react-core/TableBody';
113
120
  export { default as TableCaption } from '@digigov/react-core/TableCaption';
@@ -0,0 +1,83 @@
1
+ // Jest Snapshot v1, https://goo.gl/fbAQLP
2
+
3
+ exports[`renders the ArrowIcon with direction down prop 1`] = `
4
+ <ForwardRef(ArrowIcon)
5
+ direction="down"
6
+ >
7
+ <ForwardRef(SvgIcon)
8
+ className="govgr-arrow--down"
9
+ >
10
+ <svg
11
+ aria-hidden="true"
12
+ className="govgr-svg-icon--dark govgr-svg-icon--m govgr-arrow--down govgr-svg-icon"
13
+ focusable="false"
14
+ viewBox="0 0 24 24"
15
+ >
16
+ <path
17
+ d="M22,8.2l-2.3-2.4L12,13.4L4.4,5.8L2,8.2l10,10L22,8.2z"
18
+ />
19
+ </svg>
20
+ </ForwardRef(SvgIcon)>
21
+ </ForwardRef(ArrowIcon)>
22
+ `;
23
+
24
+ exports[`renders the ArrowIcon with direction left prop 1`] = `
25
+ <ForwardRef(ArrowIcon)
26
+ direction="left"
27
+ >
28
+ <ForwardRef(SvgIcon)
29
+ className="govgr-arrow--left"
30
+ >
31
+ <svg
32
+ aria-hidden="true"
33
+ className="govgr-svg-icon--dark govgr-svg-icon--m govgr-arrow--left govgr-svg-icon"
34
+ focusable="false"
35
+ viewBox="0 0 24 24"
36
+ >
37
+ <path
38
+ d="M14.8,22l2.4-2.3L9.6,12l7.6-7.6L14.8,2l-10,10L14.8,22z"
39
+ />
40
+ </svg>
41
+ </ForwardRef(SvgIcon)>
42
+ </ForwardRef(ArrowIcon)>
43
+ `;
44
+
45
+ exports[`renders the ArrowIcon with direction up prop 1`] = `
46
+ <ForwardRef(ArrowIcon)
47
+ direction="up"
48
+ >
49
+ <ForwardRef(SvgIcon)
50
+ className="govgr-arrow--up"
51
+ >
52
+ <svg
53
+ aria-hidden="true"
54
+ className="govgr-svg-icon--dark govgr-svg-icon--m govgr-arrow--up govgr-svg-icon"
55
+ focusable="false"
56
+ viewBox="0 0 24 24"
57
+ >
58
+ <path
59
+ d="M2,15.8l2.3,2.4l7.7-7.6l7.6,7.6l2.4-2.4l-10-10L2,15.8z"
60
+ />
61
+ </svg>
62
+ </ForwardRef(SvgIcon)>
63
+ </ForwardRef(ArrowIcon)>
64
+ `;
65
+
66
+ exports[`renders the ArrowIcon with no props, direction prop is right by default 1`] = `
67
+ <ForwardRef(ArrowIcon)>
68
+ <ForwardRef(SvgIcon)
69
+ className="govgr-arrow--right"
70
+ >
71
+ <svg
72
+ aria-hidden="true"
73
+ className="govgr-svg-icon--dark govgr-svg-icon--m govgr-arrow--right govgr-svg-icon"
74
+ focusable="false"
75
+ viewBox="0 0 24 24"
76
+ >
77
+ <path
78
+ d="M8.5,2L6.1,4.3l7.6,7.7l-7.6,7.6L8.5,22l10-10L8.5,2z"
79
+ />
80
+ </svg>
81
+ </ForwardRef(SvgIcon)>
82
+ </ForwardRef(ArrowIcon)>
83
+ `;
@@ -0,0 +1,43 @@
1
+ import _extends from "@babel/runtime/helpers/extends";
2
+ import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
3
+ var _excluded = ["size", "variant", "direction", "className"];
4
+ import React from 'react';
5
+ import SvgIcon from '@digigov/react-core/SvgIcon';
6
+ import clsx from 'clsx';
7
+
8
+ var _ref2 = /*#__PURE__*/React.createElement("path", {
9
+ d: "M14.8,22l2.4-2.3L9.6,12l7.6-7.6L14.8,2l-10,10L14.8,22z"
10
+ });
11
+
12
+ var _ref3 = /*#__PURE__*/React.createElement("path", {
13
+ d: "M8.5,2L6.1,4.3l7.6,7.7l-7.6,7.6L8.5,22l10-10L8.5,2z"
14
+ });
15
+
16
+ var _ref4 = /*#__PURE__*/React.createElement("path", {
17
+ d: "M2,15.8l2.3,2.4l7.7-7.6l7.6,7.6l2.4-2.4l-10-10L2,15.8z"
18
+ });
19
+
20
+ var _ref5 = /*#__PURE__*/React.createElement("path", {
21
+ d: "M22,8.2l-2.3-2.4L12,13.4L4.4,5.8L2,8.2l10,10L22,8.2z"
22
+ });
23
+
24
+ /**
25
+ * ArrowIcon component is used to add arrow icon.
26
+ * ArrowIcon component can be used inside other components, for example CallToAction component.
27
+ */
28
+ export var ArrowIcon = /*#__PURE__*/React.forwardRef(function ArrowIcon(_ref, ref) {
29
+ var size = _ref.size,
30
+ variant = _ref.variant,
31
+ _ref$direction = _ref.direction,
32
+ direction = _ref$direction === void 0 ? 'right' : _ref$direction,
33
+ className = _ref.className,
34
+ props = _objectWithoutProperties(_ref, _excluded);
35
+
36
+ return /*#__PURE__*/React.createElement(SvgIcon, _extends({
37
+ size: size,
38
+ variant: variant,
39
+ className: clsx(direction === 'right' && 'govgr-arrow--right', direction === 'left' && 'govgr-arrow--left', direction === 'down' && 'govgr-arrow--down', direction === 'up' && 'govgr-arrow--up', className && className),
40
+ ref: ref
41
+ }, props), direction === 'left' && _ref2, direction === 'right' && _ref3, direction === 'up' && _ref4, direction === 'down' && _ref5);
42
+ });
43
+ export default ArrowIcon;
@@ -0,0 +1,33 @@
1
+ import React from 'react';
2
+ import { mount } from 'enzyme';
3
+ import ArrowIcon from '@digigov/react-core/ArrowIcon';
4
+
5
+ var _ref = /*#__PURE__*/React.createElement(ArrowIcon, null);
6
+
7
+ it('renders the ArrowIcon with no props, direction prop is right by default', function () {
8
+ expect(mount(_ref)).toMatchSnapshot();
9
+ });
10
+
11
+ var _ref2 = /*#__PURE__*/React.createElement(ArrowIcon, {
12
+ direction: "left"
13
+ });
14
+
15
+ it('renders the ArrowIcon with direction left prop', function () {
16
+ expect(mount(_ref2)).toMatchSnapshot();
17
+ });
18
+
19
+ var _ref3 = /*#__PURE__*/React.createElement(ArrowIcon, {
20
+ direction: "up"
21
+ });
22
+
23
+ it('renders the ArrowIcon with direction up prop', function () {
24
+ expect(mount(_ref3)).toMatchSnapshot();
25
+ });
26
+
27
+ var _ref4 = /*#__PURE__*/React.createElement(ArrowIcon, {
28
+ direction: "down"
29
+ });
30
+
31
+ it('renders the ArrowIcon with direction down prop', function () {
32
+ expect(mount(_ref4)).toMatchSnapshot();
33
+ });
@@ -3,6 +3,9 @@ import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProper
3
3
  var _excluded = ["href", "className", "children"];
4
4
  import React from 'react';
5
5
  import clsx from 'clsx';
6
+ import CaretIcon from '@digigov/react-core/CaretIcon';
7
+
8
+ var _ref2 = /*#__PURE__*/React.createElement(CaretIcon, null);
6
9
 
7
10
  /**
8
11
  * Use BackLink component to help users go back to the previous page in a multi-page transaction.
@@ -20,8 +23,6 @@ export var BackLink = /*#__PURE__*/React.forwardRef(function BackLink(_ref, ref)
20
23
  },
21
24
  ref: ref,
22
25
  className: clsx(className, true && 'govgr-back-link')
23
- }, props), /*#__PURE__*/React.createElement("span", {
24
- className: clsx(true && 'govgr-caret-left')
25
- }), children);
26
+ }, props), _ref2, children);
26
27
  });
27
28
  export default BackLink;