@digigov/react-core 0.6.0 → 0.6.3

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 (83) hide show
  1. package/ArrowIcon/__snapshots__/index.test.tsx.snap +48 -32
  2. package/ArrowIcon/index.d.ts +4 -3
  3. package/ArrowIcon/index.js +13 -27
  4. package/BurgerIcon/__snapshots__/index.test.tsx.snap +323 -126
  5. package/BurgerIcon/index.d.ts +13 -7
  6. package/BurgerIcon/index.js +13 -33
  7. package/BurgerIcon/index.test.js +47 -5
  8. package/Button/index.d.ts +1 -1
  9. package/CHANGELOG.md +21 -1
  10. package/CaretIcon/__snapshots__/index.test.tsx.snap +48 -32
  11. package/CaretIcon/index.d.ts +4 -3
  12. package/CaretIcon/index.js +13 -27
  13. package/CheckIcon/__snapshots__/index.test.tsx.snap +196 -136
  14. package/CheckIcon/index.d.ts +7 -11
  15. package/CheckIcon/index.js +10 -34
  16. package/CheckboxItem/index.d.ts +1 -1
  17. package/CloseIcon/__snapshots__/index.test.tsx.snap +12 -8
  18. package/CloseIcon/index.d.ts +9 -3
  19. package/CloseIcon/index.js +10 -7
  20. package/DateInputItem/index.d.ts +1 -1
  21. package/FieldsetLegend/index.d.ts +1 -1
  22. package/FileUpload/index.d.ts +1 -1
  23. package/Grid/index.d.ts +1 -1
  24. package/LabelTitle/index.d.ts +1 -1
  25. package/MoreVertIcon/__snapshots__/index.test.tsx.snap +391 -315
  26. package/MoreVertIcon/index.d.ts +7 -11
  27. package/MoreVertIcon/index.js +10 -34
  28. package/NormalText/index.d.ts +1 -1
  29. package/Paragraph/index.d.ts +1 -1
  30. package/RadioItem/index.d.ts +1 -1
  31. package/Select/index.d.ts +1 -1
  32. package/SvgIcon/__snapshots__/index.test.tsx.snap +224 -0
  33. package/SvgIcon/index.d.ts +20 -0
  34. package/SvgIcon/index.js +41 -0
  35. package/SvgIcon/index.test.d.ts +1 -0
  36. package/SvgIcon/index.test.js +129 -0
  37. package/Table/index.d.ts +1 -1
  38. package/TextArea/index.d.ts +1 -1
  39. package/TextInput/index.d.ts +1 -1
  40. package/UncheckIcon/__snapshots__/index.test.tsx.snap +241 -165
  41. package/UncheckIcon/index.d.ts +9 -13
  42. package/UncheckIcon/index.js +15 -39
  43. package/es/ArrowIcon/__snapshots__/index.test.tsx.snap +48 -32
  44. package/es/ArrowIcon/index.js +12 -19
  45. package/es/BurgerIcon/__snapshots__/index.test.tsx.snap +323 -126
  46. package/es/BurgerIcon/index.js +12 -25
  47. package/es/BurgerIcon/index.test.js +47 -5
  48. package/es/CaretIcon/__snapshots__/index.test.tsx.snap +48 -32
  49. package/es/CaretIcon/index.js +12 -19
  50. package/es/CheckIcon/__snapshots__/index.test.tsx.snap +196 -136
  51. package/es/CheckIcon/index.js +9 -26
  52. package/es/CloseIcon/__snapshots__/index.test.tsx.snap +12 -8
  53. package/es/CloseIcon/index.js +9 -7
  54. package/es/MoreVertIcon/__snapshots__/index.test.tsx.snap +391 -315
  55. package/es/MoreVertIcon/index.js +9 -26
  56. package/es/SvgIcon/__snapshots__/index.test.tsx.snap +224 -0
  57. package/es/SvgIcon/index.js +26 -0
  58. package/es/SvgIcon/index.test.js +123 -0
  59. package/es/UncheckIcon/__snapshots__/index.test.tsx.snap +241 -165
  60. package/es/UncheckIcon/index.js +12 -29
  61. package/es/index.js +1 -0
  62. package/esm/ArrowIcon/__snapshots__/index.test.tsx.snap +48 -32
  63. package/esm/ArrowIcon/index.js +12 -19
  64. package/esm/BurgerIcon/__snapshots__/index.test.tsx.snap +323 -126
  65. package/esm/BurgerIcon/index.js +12 -25
  66. package/esm/BurgerIcon/index.test.js +47 -5
  67. package/esm/CaretIcon/__snapshots__/index.test.tsx.snap +48 -32
  68. package/esm/CaretIcon/index.js +12 -19
  69. package/esm/CheckIcon/__snapshots__/index.test.tsx.snap +196 -136
  70. package/esm/CheckIcon/index.js +9 -26
  71. package/esm/CloseIcon/__snapshots__/index.test.tsx.snap +12 -8
  72. package/esm/CloseIcon/index.js +9 -7
  73. package/esm/MoreVertIcon/__snapshots__/index.test.tsx.snap +391 -315
  74. package/esm/MoreVertIcon/index.js +9 -26
  75. package/esm/SvgIcon/__snapshots__/index.test.tsx.snap +224 -0
  76. package/esm/SvgIcon/index.js +26 -0
  77. package/esm/SvgIcon/index.test.js +123 -0
  78. package/esm/UncheckIcon/__snapshots__/index.test.tsx.snap +241 -165
  79. package/esm/UncheckIcon/index.js +12 -29
  80. package/esm/index.js +2 -1
  81. package/index.d.ts +1 -0
  82. package/index.js +8 -0
  83. package/package.json +2 -2
@@ -4,16 +4,20 @@ exports[`renders the ArrowIcon with direction down prop 1`] = `
4
4
  <ForwardRef(ArrowIcon)
5
5
  direction="down"
6
6
  >
7
- <svg
8
- aria-hidden="true"
7
+ <ForwardRef(SvgIcon)
9
8
  className="govgr-arrow--down"
10
- focusable="false"
11
- viewBox="0 0 24 24"
12
9
  >
13
- <path
14
- d="M22,8.2l-2.3-2.4L12,13.4L4.4,5.8L2,8.2l10,10L22,8.2z"
15
- />
16
- </svg>
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)>
17
21
  </ForwardRef(ArrowIcon)>
18
22
  `;
19
23
 
@@ -21,16 +25,20 @@ exports[`renders the ArrowIcon with direction left prop 1`] = `
21
25
  <ForwardRef(ArrowIcon)
22
26
  direction="left"
23
27
  >
24
- <svg
25
- aria-hidden="true"
28
+ <ForwardRef(SvgIcon)
26
29
  className="govgr-arrow--left"
27
- focusable="false"
28
- viewBox="0 0 24 24"
29
30
  >
30
- <path
31
- d="M14.8,22l2.4-2.3L9.6,12l7.6-7.6L14.8,2l-10,10L14.8,22z"
32
- />
33
- </svg>
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)>
34
42
  </ForwardRef(ArrowIcon)>
35
43
  `;
36
44
 
@@ -38,30 +46,38 @@ exports[`renders the ArrowIcon with direction up prop 1`] = `
38
46
  <ForwardRef(ArrowIcon)
39
47
  direction="up"
40
48
  >
41
- <svg
42
- aria-hidden="true"
49
+ <ForwardRef(SvgIcon)
43
50
  className="govgr-arrow--up"
44
- focusable="false"
45
- viewBox="0 0 24 24"
46
51
  >
47
- <path
48
- d="M2,15.8l2.3,2.4l7.7-7.6l7.6,7.6l2.4-2.4l-10-10L2,15.8z"
49
- />
50
- </svg>
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)>
51
63
  </ForwardRef(ArrowIcon)>
52
64
  `;
53
65
 
54
66
  exports[`renders the ArrowIcon with no props, direction prop is right by default 1`] = `
55
67
  <ForwardRef(ArrowIcon)>
56
- <svg
57
- aria-hidden="true"
68
+ <ForwardRef(SvgIcon)
58
69
  className="govgr-arrow--right"
59
- focusable="false"
60
- viewBox="0 0 24 24"
61
70
  >
62
- <path
63
- d="M8.5,2L6.1,4.3l7.6,7.7l-7.6,7.6L8.5,22l10-10L8.5,2z"
64
- />
65
- </svg>
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)>
66
82
  </ForwardRef(ArrowIcon)>
67
83
  `;
@@ -1,6 +1,7 @@
1
1
  import React from 'react';
2
- declare type SVGElementAttributes = JSX.IntrinsicElements['svg'];
3
- export interface ArrowIconProps extends SVGElementAttributes {
2
+ import { SvgIconProps } from '@digigov/react-core/SvgIcon';
3
+ export interface ArrowIconProps extends SvgIconProps {
4
+ ref?: React.Ref<SVGSVGElement>;
4
5
  /**
5
6
  * direction is optional.
6
7
  * direction prop declares the direction of the svg icon.
@@ -11,5 +12,5 @@ export interface ArrowIconProps extends SVGElementAttributes {
11
12
  * ArrowIcon component is used to add arrow icon.
12
13
  * ArrowIcon component can be used inside other components, for example CallToAction component.
13
14
  */
14
- export declare const ArrowIcon: React.ForwardRefExoticComponent<Pick<ArrowIconProps, "string" | "className" | "children" | "key" | "id" | "lang" | "style" | "tabIndex" | "role" | "color" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "clipPath" | "filter" | "mask" | "path" | "direction" | "height" | "max" | "media" | "method" | "min" | "name" | "target" | "type" | "width" | "crossOrigin" | "accentHeight" | "accumulate" | "additive" | "alignmentBaseline" | "allowReorder" | "alphabetic" | "amplitude" | "arabicForm" | "ascent" | "attributeName" | "attributeType" | "autoReverse" | "azimuth" | "baseFrequency" | "baselineShift" | "baseProfile" | "bbox" | "begin" | "bias" | "by" | "calcMode" | "capHeight" | "clip" | "clipPathUnits" | "clipRule" | "colorInterpolation" | "colorInterpolationFilters" | "colorProfile" | "colorRendering" | "contentScriptType" | "contentStyleType" | "cursor" | "cx" | "cy" | "d" | "decelerate" | "descent" | "diffuseConstant" | "display" | "divisor" | "dominantBaseline" | "dur" | "dx" | "dy" | "edgeMode" | "elevation" | "enableBackground" | "end" | "exponent" | "externalResourcesRequired" | "fill" | "fillOpacity" | "fillRule" | "filterRes" | "filterUnits" | "floodColor" | "floodOpacity" | "focusable" | "fontFamily" | "fontSize" | "fontSizeAdjust" | "fontStretch" | "fontStyle" | "fontVariant" | "fontWeight" | "format" | "from" | "fx" | "fy" | "g1" | "g2" | "glyphName" | "glyphOrientationHorizontal" | "glyphOrientationVertical" | "glyphRef" | "gradientTransform" | "gradientUnits" | "hanging" | "horizAdvX" | "horizOriginX" | "href" | "ideographic" | "imageRendering" | "in2" | "in" | "intercept" | "k1" | "k2" | "k3" | "k4" | "k" | "kernelMatrix" | "kernelUnitLength" | "kerning" | "keyPoints" | "keySplines" | "keyTimes" | "lengthAdjust" | "letterSpacing" | "lightingColor" | "limitingConeAngle" | "local" | "markerEnd" | "markerHeight" | "markerMid" | "markerStart" | "markerUnits" | "markerWidth" | "maskContentUnits" | "maskUnits" | "mathematical" | "mode" | "numOctaves" | "offset" | "opacity" | "operator" | "order" | "orient" | "orientation" | "origin" | "overflow" | "overlinePosition" | "overlineThickness" | "paintOrder" | "panose1" | "pathLength" | "patternContentUnits" | "patternTransform" | "patternUnits" | "pointerEvents" | "points" | "pointsAtX" | "pointsAtY" | "pointsAtZ" | "preserveAlpha" | "preserveAspectRatio" | "primitiveUnits" | "r" | "radius" | "refX" | "refY" | "renderingIntent" | "repeatCount" | "repeatDur" | "requiredExtensions" | "requiredFeatures" | "restart" | "result" | "rotate" | "rx" | "ry" | "scale" | "seed" | "shapeRendering" | "slope" | "spacing" | "specularConstant" | "specularExponent" | "speed" | "spreadMethod" | "startOffset" | "stdDeviation" | "stemh" | "stemv" | "stitchTiles" | "stopColor" | "stopOpacity" | "strikethroughPosition" | "strikethroughThickness" | "stroke" | "strokeDasharray" | "strokeDashoffset" | "strokeLinecap" | "strokeLinejoin" | "strokeMiterlimit" | "strokeOpacity" | "strokeWidth" | "surfaceScale" | "systemLanguage" | "tableValues" | "targetX" | "targetY" | "textAnchor" | "textDecoration" | "textLength" | "textRendering" | "to" | "transform" | "u1" | "u2" | "underlinePosition" | "underlineThickness" | "unicode" | "unicodeBidi" | "unicodeRange" | "unitsPerEm" | "vAlphabetic" | "values" | "vectorEffect" | "version" | "vertAdvY" | "vertOriginX" | "vertOriginY" | "vHanging" | "vIdeographic" | "viewBox" | "viewTarget" | "visibility" | "vMathematical" | "widths" | "wordSpacing" | "writingMode" | "x1" | "x2" | "x" | "xChannelSelector" | "xHeight" | "xlinkActuate" | "xlinkArcrole" | "xlinkHref" | "xlinkRole" | "xlinkShow" | "xlinkTitle" | "xlinkType" | "xmlBase" | "xmlLang" | "xmlns" | "xmlnsXlink" | "xmlSpace" | "y1" | "y2" | "y" | "yChannelSelector" | "z" | "zoomAndPan"> & React.RefAttributes<SVGSVGElement>>;
15
+ export declare const ArrowIcon: React.FC<ArrowIconProps>;
15
16
  export default ArrowIcon;
@@ -2,8 +2,6 @@
2
2
 
3
3
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
4
 
5
- var _typeof = require("@babel/runtime/helpers/typeof");
6
-
7
5
  Object.defineProperty(exports, "__esModule", {
8
6
  value: true
9
7
  });
@@ -11,19 +9,15 @@ exports["default"] = exports.ArrowIcon = void 0;
11
9
 
12
10
  var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
13
11
 
14
- var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
15
-
16
12
  var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
17
13
 
18
- var _react = _interopRequireWildcard(require("react"));
19
-
20
- var _clsx = _interopRequireDefault(require("clsx"));
14
+ var _react = _interopRequireDefault(require("react"));
21
15
 
22
- var _excluded = ["direction", "className"];
16
+ var _SvgIcon = _interopRequireDefault(require("@digigov/react-core/SvgIcon"));
23
17
 
24
- function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
18
+ var _clsx = _interopRequireDefault(require("clsx"));
25
19
 
26
- function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
20
+ var _excluded = ["size", "variant", "direction", "className"];
27
21
 
28
22
  var _ref2 = /*#__PURE__*/_react["default"].createElement("path", {
29
23
  d: "M14.8,22l2.4-2.3L9.6,12l7.6-7.6L14.8,2l-10,10L14.8,22z"
@@ -46,26 +40,18 @@ var _ref5 = /*#__PURE__*/_react["default"].createElement("path", {
46
40
  * ArrowIcon component can be used inside other components, for example CallToAction component.
47
41
  */
48
42
  var ArrowIcon = /*#__PURE__*/_react["default"].forwardRef(function ArrowIcon(_ref, ref) {
49
- var _ref$direction = _ref.direction,
43
+ var size = _ref.size,
44
+ variant = _ref.variant,
45
+ _ref$direction = _ref.direction,
50
46
  direction = _ref$direction === void 0 ? 'right' : _ref$direction,
51
47
  className = _ref.className,
52
48
  props = (0, _objectWithoutProperties2["default"])(_ref, _excluded);
53
-
54
- var _useState = (0, _react.useState)(direction),
55
- _useState2 = (0, _slicedToArray2["default"])(_useState, 2),
56
- arrowDirection = _useState2[0],
57
- setDirection = _useState2[1];
58
-
59
- (0, _react.useEffect)(function () {
60
- setDirection(direction);
61
- }, [direction]);
62
- return /*#__PURE__*/_react["default"].createElement("svg", (0, _extends2["default"])({
63
- ref: ref,
64
- className: (0, _clsx["default"])(arrowDirection === 'right' && 'govgr-arrow--right', arrowDirection === 'left' && 'govgr-arrow--left', arrowDirection === 'down' && 'govgr-arrow--down', arrowDirection === 'up' && 'govgr-arrow--up', className && className),
65
- focusable: "false",
66
- viewBox: "0 0 24 24",
67
- "aria-hidden": "true"
68
- }, props), arrowDirection === 'left' && _ref2, arrowDirection === 'right' && _ref3, arrowDirection === 'up' && _ref4, arrowDirection === 'down' && _ref5);
49
+ return /*#__PURE__*/_react["default"].createElement(_SvgIcon["default"], (0, _extends2["default"])({
50
+ size: size,
51
+ variant: variant,
52
+ className: (0, _clsx["default"])(direction === 'right' && 'govgr-arrow--right', direction === 'left' && 'govgr-arrow--left', direction === 'down' && 'govgr-arrow--down', direction === 'up' && 'govgr-arrow--up', className && className),
53
+ ref: ref
54
+ }, props), direction === 'left' && _ref2, direction === 'right' && _ref3, direction === 'up' && _ref4, direction === 'down' && _ref5);
69
55
  });
70
56
 
71
57
  exports.ArrowIcon = ArrowIcon;