@digigov/react-core 0.5.2 → 0.6.0
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/ArrowIcon/__snapshots__/index.test.tsx.snap +67 -0
- package/ArrowIcon/index.d.ts +15 -0
- package/ArrowIcon/index.js +73 -0
- package/ArrowIcon/index.test.d.ts +1 -0
- package/ArrowIcon/index.test.js +39 -0
- package/BackLink/index.d.ts +1 -1
- package/BackLink/index.js +5 -3
- package/BurgerIcon/__snapshots__/index.test.tsx.snap +146 -30
- package/BurgerIcon/index.d.ts +9 -3
- package/BurgerIcon/index.js +50 -11
- package/BurgerIcon/index.test.js +32 -6
- package/Button/index.d.ts +1 -1
- package/ButtonLink/index.d.ts +1 -1
- package/CHANGELOG.md +31 -1
- package/CallToAction/index.d.ts +1 -1
- package/CallToAction/index.js +3 -8
- package/CaretIcon/__snapshots__/index.test.tsx.snap +67 -0
- package/CaretIcon/index.d.ts +15 -0
- package/CaretIcon/index.js +73 -0
- package/CaretIcon/index.test.d.ts +1 -0
- package/CaretIcon/index.test.js +39 -0
- package/CheckIcon/__snapshots__/index.test.tsx.snap +256 -0
- package/CheckIcon/index.d.ts +19 -0
- package/CheckIcon/index.js +68 -0
- package/CheckIcon/index.test.d.ts +1 -0
- package/CheckIcon/index.test.js +129 -0
- package/CheckboxItem/index.d.ts +1 -1
- package/CloseIcon/__snapshots__/index.test.tsx.snap +16 -0
- package/CloseIcon/index.d.ts +10 -0
- package/CloseIcon/index.js +42 -0
- package/CloseIcon/index.test.d.ts +1 -0
- package/CloseIcon/index.test.js +15 -0
- package/DateInputItem/index.d.ts +2 -2
- package/DateInputItem/index.js +5 -5
- package/Fieldset/index.d.ts +1 -1
- package/FileUpload/index.d.ts +1 -1
- package/FooterContainer/index.d.ts +8 -1
- package/FooterContainer/index.js +4 -2
- package/FooterImage/index.d.ts +1 -1
- package/FooterLink/index.d.ts +1 -1
- package/GovGRLogo/index.d.ts +1 -1
- package/Grid/index.d.ts +1 -1
- package/HeaderLogo/index.d.ts +1 -1
- package/HeaderSecondaryLogo/index.d.ts +1 -1
- package/HeaderTitle/index.d.ts +1 -1
- package/HellenicRepublicLogo/index.d.ts +1 -1
- package/Link/index.d.ts +1 -1
- package/MoreVertIcon/__snapshots__/index.test.tsx.snap +436 -0
- package/MoreVertIcon/index.d.ts +19 -0
- package/MoreVertIcon/index.js +82 -0
- package/MoreVertIcon/index.test.d.ts +1 -0
- package/MoreVertIcon/index.test.js +129 -0
- package/NavHorizontalListItem/index.d.ts +1 -1
- package/NavVerticalItem/index.d.ts +1 -1
- package/NormalText/index.d.ts +1 -1
- package/NotificationBannerLink/index.d.ts +1 -1
- package/Paragraph/index.d.ts +1 -1
- package/RadioItem/index.d.ts +1 -1
- package/Select/index.d.ts +1 -1
- package/Table/index.d.ts +1 -1
- package/TabsListItem/index.d.ts +1 -1
- package/TextArea/index.d.ts +1 -1
- package/TextInput/index.d.ts +1 -1
- package/UncheckIcon/__snapshots__/index.test.tsx.snap +256 -0
- package/UncheckIcon/index.d.ts +19 -0
- package/UncheckIcon/index.js +68 -0
- package/UncheckIcon/index.test.d.ts +1 -0
- package/UncheckIcon/index.test.js +129 -0
- package/es/ArrowIcon/__snapshots__/index.test.tsx.snap +67 -0
- package/es/ArrowIcon/index.js +50 -0
- package/es/ArrowIcon/index.test.js +33 -0
- package/es/BackLink/index.js +4 -3
- package/es/BurgerIcon/__snapshots__/index.test.tsx.snap +146 -30
- package/es/BurgerIcon/index.js +42 -11
- package/es/BurgerIcon/index.test.js +32 -6
- package/es/CallToAction/index.js +2 -8
- package/es/CaretIcon/__snapshots__/index.test.tsx.snap +67 -0
- package/es/CaretIcon/index.js +50 -0
- package/es/CaretIcon/index.test.js +33 -0
- package/es/CheckIcon/__snapshots__/index.test.tsx.snap +256 -0
- package/es/CheckIcon/index.js +45 -0
- package/es/CheckIcon/index.test.js +123 -0
- package/es/CloseIcon/__snapshots__/index.test.tsx.snap +16 -0
- package/es/CloseIcon/index.js +27 -0
- package/es/CloseIcon/index.test.js +9 -0
- package/es/DateInputItem/index.js +5 -5
- package/es/FooterContainer/index.js +4 -2
- package/es/MoreVertIcon/__snapshots__/index.test.tsx.snap +436 -0
- package/es/MoreVertIcon/index.js +59 -0
- package/es/MoreVertIcon/index.test.js +123 -0
- package/es/UncheckIcon/__snapshots__/index.test.tsx.snap +256 -0
- package/es/UncheckIcon/index.js +45 -0
- package/es/UncheckIcon/index.test.js +123 -0
- package/es/index.js +6 -0
- package/esm/ArrowIcon/__snapshots__/index.test.tsx.snap +67 -0
- package/esm/ArrowIcon/index.js +50 -0
- package/esm/ArrowIcon/index.test.js +33 -0
- package/esm/BackLink/index.js +4 -3
- package/esm/BurgerIcon/__snapshots__/index.test.tsx.snap +146 -30
- package/esm/BurgerIcon/index.js +42 -11
- package/esm/BurgerIcon/index.test.js +32 -6
- package/esm/CallToAction/index.js +2 -8
- package/esm/CaretIcon/__snapshots__/index.test.tsx.snap +67 -0
- package/esm/CaretIcon/index.js +50 -0
- package/esm/CaretIcon/index.test.js +33 -0
- package/esm/CheckIcon/__snapshots__/index.test.tsx.snap +256 -0
- package/esm/CheckIcon/index.js +45 -0
- package/esm/CheckIcon/index.test.js +123 -0
- package/esm/CloseIcon/__snapshots__/index.test.tsx.snap +16 -0
- package/esm/CloseIcon/index.js +27 -0
- package/esm/CloseIcon/index.test.js +9 -0
- package/esm/DateInputItem/index.js +5 -5
- package/esm/FooterContainer/index.js +4 -2
- package/esm/MoreVertIcon/__snapshots__/index.test.tsx.snap +436 -0
- package/esm/MoreVertIcon/index.js +59 -0
- package/esm/MoreVertIcon/index.test.js +123 -0
- package/esm/UncheckIcon/__snapshots__/index.test.tsx.snap +256 -0
- package/esm/UncheckIcon/index.js +45 -0
- package/esm/UncheckIcon/index.test.js +123 -0
- package/esm/index.js +7 -1
- package/index.d.ts +6 -0
- package/index.js +48 -0
- package/package.json +3 -3
package/Link/index.d.ts
CHANGED
|
@@ -10,5 +10,5 @@ export interface LinkProps extends AElementAttributes {
|
|
|
10
10
|
/**
|
|
11
11
|
* This component defines a hyperlink, which is used to link from one page to another.
|
|
12
12
|
*/
|
|
13
|
-
export declare const Link: React.ForwardRefExoticComponent<Pick<LinkProps, "className" | "children" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "slot" | "spellCheck" | "style" | "tabIndex" | "title" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "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" | "
|
|
13
|
+
export declare const Link: React.ForwardRefExoticComponent<Pick<LinkProps, "className" | "children" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "slot" | "spellCheck" | "style" | "tabIndex" | "title" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "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" | "media" | "target" | "type" | "href" | "download" | "hrefLang" | "ping" | "rel" | "referrerPolicy" | "underline"> & React.RefAttributes<HTMLAnchorElement>>;
|
|
14
14
|
export default Link;
|
|
@@ -0,0 +1,436 @@
|
|
|
1
|
+
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
+
|
|
3
|
+
exports[`renders the MoreVertIcon with no props 1`] = `
|
|
4
|
+
<ForwardRef(MoreVertIcon)>
|
|
5
|
+
<svg
|
|
6
|
+
aria-hidden="true"
|
|
7
|
+
className="govgr-svg-icon--dark govgr-svg-icon--m govgr-svg-icon govgr-svg-icon--more-vert"
|
|
8
|
+
focusable="false"
|
|
9
|
+
viewBox="0 0 24 24"
|
|
10
|
+
>
|
|
11
|
+
<circle
|
|
12
|
+
cx="12"
|
|
13
|
+
cy="5"
|
|
14
|
+
r="2"
|
|
15
|
+
/>
|
|
16
|
+
<circle
|
|
17
|
+
cx="12"
|
|
18
|
+
cy="12"
|
|
19
|
+
r="2"
|
|
20
|
+
/>
|
|
21
|
+
<circle
|
|
22
|
+
cx="12"
|
|
23
|
+
cy="19"
|
|
24
|
+
r="2"
|
|
25
|
+
/>
|
|
26
|
+
</svg>
|
|
27
|
+
</ForwardRef(MoreVertIcon)>
|
|
28
|
+
`;
|
|
29
|
+
|
|
30
|
+
exports[`renders the MoreVertIcon with prop size=l 1`] = `
|
|
31
|
+
<ForwardRef(MoreVertIcon)
|
|
32
|
+
size="l"
|
|
33
|
+
>
|
|
34
|
+
<svg
|
|
35
|
+
aria-hidden="true"
|
|
36
|
+
className="govgr-svg-icon--dark govgr-svg-icon--l govgr-svg-icon govgr-svg-icon--more-vert"
|
|
37
|
+
focusable="false"
|
|
38
|
+
viewBox="0 0 24 24"
|
|
39
|
+
>
|
|
40
|
+
<circle
|
|
41
|
+
cx="12"
|
|
42
|
+
cy="5"
|
|
43
|
+
r="2"
|
|
44
|
+
/>
|
|
45
|
+
<circle
|
|
46
|
+
cx="12"
|
|
47
|
+
cy="12"
|
|
48
|
+
r="2"
|
|
49
|
+
/>
|
|
50
|
+
<circle
|
|
51
|
+
cx="12"
|
|
52
|
+
cy="19"
|
|
53
|
+
r="2"
|
|
54
|
+
/>
|
|
55
|
+
</svg>
|
|
56
|
+
</ForwardRef(MoreVertIcon)>
|
|
57
|
+
`;
|
|
58
|
+
|
|
59
|
+
exports[`renders the MoreVertIcon with prop size=m 1`] = `
|
|
60
|
+
<ForwardRef(MoreVertIcon)
|
|
61
|
+
size="m"
|
|
62
|
+
>
|
|
63
|
+
<svg
|
|
64
|
+
aria-hidden="true"
|
|
65
|
+
className="govgr-svg-icon--dark govgr-svg-icon--m govgr-svg-icon govgr-svg-icon--more-vert"
|
|
66
|
+
focusable="false"
|
|
67
|
+
viewBox="0 0 24 24"
|
|
68
|
+
>
|
|
69
|
+
<circle
|
|
70
|
+
cx="12"
|
|
71
|
+
cy="5"
|
|
72
|
+
r="2"
|
|
73
|
+
/>
|
|
74
|
+
<circle
|
|
75
|
+
cx="12"
|
|
76
|
+
cy="12"
|
|
77
|
+
r="2"
|
|
78
|
+
/>
|
|
79
|
+
<circle
|
|
80
|
+
cx="12"
|
|
81
|
+
cy="19"
|
|
82
|
+
r="2"
|
|
83
|
+
/>
|
|
84
|
+
</svg>
|
|
85
|
+
</ForwardRef(MoreVertIcon)>
|
|
86
|
+
`;
|
|
87
|
+
|
|
88
|
+
exports[`renders the MoreVertIcon with prop size=s 1`] = `
|
|
89
|
+
<ForwardRef(MoreVertIcon)
|
|
90
|
+
size="s"
|
|
91
|
+
>
|
|
92
|
+
<svg
|
|
93
|
+
aria-hidden="true"
|
|
94
|
+
className="govgr-svg-icon--dark govgr-svg-icon--s govgr-svg-icon govgr-svg-icon--more-vert"
|
|
95
|
+
focusable="false"
|
|
96
|
+
viewBox="0 0 24 24"
|
|
97
|
+
>
|
|
98
|
+
<circle
|
|
99
|
+
cx="12"
|
|
100
|
+
cy="5"
|
|
101
|
+
r="2"
|
|
102
|
+
/>
|
|
103
|
+
<circle
|
|
104
|
+
cx="12"
|
|
105
|
+
cy="12"
|
|
106
|
+
r="2"
|
|
107
|
+
/>
|
|
108
|
+
<circle
|
|
109
|
+
cx="12"
|
|
110
|
+
cy="19"
|
|
111
|
+
r="2"
|
|
112
|
+
/>
|
|
113
|
+
</svg>
|
|
114
|
+
</ForwardRef(MoreVertIcon)>
|
|
115
|
+
`;
|
|
116
|
+
|
|
117
|
+
exports[`renders the MoreVertIcon with prop size=xl 1`] = `
|
|
118
|
+
<ForwardRef(MoreVertIcon)
|
|
119
|
+
size="xl"
|
|
120
|
+
>
|
|
121
|
+
<svg
|
|
122
|
+
aria-hidden="true"
|
|
123
|
+
className="govgr-svg-icon--dark govgr-svg-icon--xl govgr-svg-icon govgr-svg-icon--more-vert"
|
|
124
|
+
focusable="false"
|
|
125
|
+
viewBox="0 0 24 24"
|
|
126
|
+
>
|
|
127
|
+
<circle
|
|
128
|
+
cx="12"
|
|
129
|
+
cy="5"
|
|
130
|
+
r="2"
|
|
131
|
+
/>
|
|
132
|
+
<circle
|
|
133
|
+
cx="12"
|
|
134
|
+
cy="12"
|
|
135
|
+
r="2"
|
|
136
|
+
/>
|
|
137
|
+
<circle
|
|
138
|
+
cx="12"
|
|
139
|
+
cy="19"
|
|
140
|
+
r="2"
|
|
141
|
+
/>
|
|
142
|
+
</svg>
|
|
143
|
+
</ForwardRef(MoreVertIcon)>
|
|
144
|
+
`;
|
|
145
|
+
|
|
146
|
+
exports[`renders the MoreVertIcon with prop variant=dark 1`] = `
|
|
147
|
+
<ForwardRef(MoreVertIcon)
|
|
148
|
+
variant="dark"
|
|
149
|
+
>
|
|
150
|
+
<svg
|
|
151
|
+
aria-hidden="true"
|
|
152
|
+
className="govgr-svg-icon--dark govgr-svg-icon--m govgr-svg-icon govgr-svg-icon--more-vert"
|
|
153
|
+
focusable="false"
|
|
154
|
+
viewBox="0 0 24 24"
|
|
155
|
+
>
|
|
156
|
+
<circle
|
|
157
|
+
cx="12"
|
|
158
|
+
cy="5"
|
|
159
|
+
r="2"
|
|
160
|
+
/>
|
|
161
|
+
<circle
|
|
162
|
+
cx="12"
|
|
163
|
+
cy="12"
|
|
164
|
+
r="2"
|
|
165
|
+
/>
|
|
166
|
+
<circle
|
|
167
|
+
cx="12"
|
|
168
|
+
cy="19"
|
|
169
|
+
r="2"
|
|
170
|
+
/>
|
|
171
|
+
</svg>
|
|
172
|
+
</ForwardRef(MoreVertIcon)>
|
|
173
|
+
`;
|
|
174
|
+
|
|
175
|
+
exports[`renders the MoreVertIcon with prop variant=error 1`] = `
|
|
176
|
+
<ForwardRef(MoreVertIcon)
|
|
177
|
+
variant="error"
|
|
178
|
+
>
|
|
179
|
+
<svg
|
|
180
|
+
aria-hidden="true"
|
|
181
|
+
className="govgr-svg-icon--error govgr-svg-icon--m govgr-svg-icon govgr-svg-icon--more-vert"
|
|
182
|
+
focusable="false"
|
|
183
|
+
viewBox="0 0 24 24"
|
|
184
|
+
>
|
|
185
|
+
<circle
|
|
186
|
+
cx="12"
|
|
187
|
+
cy="5"
|
|
188
|
+
r="2"
|
|
189
|
+
/>
|
|
190
|
+
<circle
|
|
191
|
+
cx="12"
|
|
192
|
+
cy="12"
|
|
193
|
+
r="2"
|
|
194
|
+
/>
|
|
195
|
+
<circle
|
|
196
|
+
cx="12"
|
|
197
|
+
cy="19"
|
|
198
|
+
r="2"
|
|
199
|
+
/>
|
|
200
|
+
</svg>
|
|
201
|
+
</ForwardRef(MoreVertIcon)>
|
|
202
|
+
`;
|
|
203
|
+
|
|
204
|
+
exports[`renders the MoreVertIcon with prop variant=error and size= xl 1`] = `
|
|
205
|
+
<ForwardRef(MoreVertIcon)
|
|
206
|
+
size="xl"
|
|
207
|
+
variant="warning"
|
|
208
|
+
>
|
|
209
|
+
<svg
|
|
210
|
+
aria-hidden="true"
|
|
211
|
+
className="govgr-svg-icon--warning govgr-svg-icon--xl govgr-svg-icon govgr-svg-icon--more-vert"
|
|
212
|
+
focusable="false"
|
|
213
|
+
viewBox="0 0 24 24"
|
|
214
|
+
>
|
|
215
|
+
<circle
|
|
216
|
+
cx="12"
|
|
217
|
+
cy="5"
|
|
218
|
+
r="2"
|
|
219
|
+
/>
|
|
220
|
+
<circle
|
|
221
|
+
cx="12"
|
|
222
|
+
cy="12"
|
|
223
|
+
r="2"
|
|
224
|
+
/>
|
|
225
|
+
<circle
|
|
226
|
+
cx="12"
|
|
227
|
+
cy="19"
|
|
228
|
+
r="2"
|
|
229
|
+
/>
|
|
230
|
+
</svg>
|
|
231
|
+
</ForwardRef(MoreVertIcon)>
|
|
232
|
+
`;
|
|
233
|
+
|
|
234
|
+
exports[`renders the MoreVertIcon with prop variant=focus 1`] = `
|
|
235
|
+
<ForwardRef(MoreVertIcon)
|
|
236
|
+
variant="focus"
|
|
237
|
+
>
|
|
238
|
+
<svg
|
|
239
|
+
aria-hidden="true"
|
|
240
|
+
className="govgr-svg-icon--focus govgr-svg-icon--m govgr-svg-icon govgr-svg-icon--more-vert"
|
|
241
|
+
focusable="false"
|
|
242
|
+
viewBox="0 0 24 24"
|
|
243
|
+
>
|
|
244
|
+
<circle
|
|
245
|
+
cx="12"
|
|
246
|
+
cy="5"
|
|
247
|
+
r="2"
|
|
248
|
+
/>
|
|
249
|
+
<circle
|
|
250
|
+
cx="12"
|
|
251
|
+
cy="12"
|
|
252
|
+
r="2"
|
|
253
|
+
/>
|
|
254
|
+
<circle
|
|
255
|
+
cx="12"
|
|
256
|
+
cy="19"
|
|
257
|
+
r="2"
|
|
258
|
+
/>
|
|
259
|
+
</svg>
|
|
260
|
+
</ForwardRef(MoreVertIcon)>
|
|
261
|
+
`;
|
|
262
|
+
|
|
263
|
+
exports[`renders the MoreVertIcon with prop variant=gray 1`] = `
|
|
264
|
+
<ForwardRef(MoreVertIcon)
|
|
265
|
+
variant="gray"
|
|
266
|
+
>
|
|
267
|
+
<svg
|
|
268
|
+
aria-hidden="true"
|
|
269
|
+
className="govgr-svg-icon--gray govgr-svg-icon--m govgr-svg-icon govgr-svg-icon--more-vert"
|
|
270
|
+
focusable="false"
|
|
271
|
+
viewBox="0 0 24 24"
|
|
272
|
+
>
|
|
273
|
+
<circle
|
|
274
|
+
cx="12"
|
|
275
|
+
cy="5"
|
|
276
|
+
r="2"
|
|
277
|
+
/>
|
|
278
|
+
<circle
|
|
279
|
+
cx="12"
|
|
280
|
+
cy="12"
|
|
281
|
+
r="2"
|
|
282
|
+
/>
|
|
283
|
+
<circle
|
|
284
|
+
cx="12"
|
|
285
|
+
cy="19"
|
|
286
|
+
r="2"
|
|
287
|
+
/>
|
|
288
|
+
</svg>
|
|
289
|
+
</ForwardRef(MoreVertIcon)>
|
|
290
|
+
`;
|
|
291
|
+
|
|
292
|
+
exports[`renders the MoreVertIcon with prop variant=light 1`] = `
|
|
293
|
+
<ForwardRef(MoreVertIcon)
|
|
294
|
+
variant="light"
|
|
295
|
+
>
|
|
296
|
+
<svg
|
|
297
|
+
aria-hidden="true"
|
|
298
|
+
className="govgr-svg-icon--light govgr-svg-icon--m govgr-svg-icon govgr-svg-icon--more-vert"
|
|
299
|
+
focusable="false"
|
|
300
|
+
viewBox="0 0 24 24"
|
|
301
|
+
>
|
|
302
|
+
<circle
|
|
303
|
+
cx="12"
|
|
304
|
+
cy="5"
|
|
305
|
+
r="2"
|
|
306
|
+
/>
|
|
307
|
+
<circle
|
|
308
|
+
cx="12"
|
|
309
|
+
cy="12"
|
|
310
|
+
r="2"
|
|
311
|
+
/>
|
|
312
|
+
<circle
|
|
313
|
+
cx="12"
|
|
314
|
+
cy="19"
|
|
315
|
+
r="2"
|
|
316
|
+
/>
|
|
317
|
+
</svg>
|
|
318
|
+
</ForwardRef(MoreVertIcon)>
|
|
319
|
+
`;
|
|
320
|
+
|
|
321
|
+
exports[`renders the MoreVertIcon with prop variant=primary 1`] = `
|
|
322
|
+
<ForwardRef(MoreVertIcon)
|
|
323
|
+
variant="primary"
|
|
324
|
+
>
|
|
325
|
+
<svg
|
|
326
|
+
aria-hidden="true"
|
|
327
|
+
className="govgr-svg-icon--primary govgr-svg-icon--m govgr-svg-icon govgr-svg-icon--more-vert"
|
|
328
|
+
focusable="false"
|
|
329
|
+
viewBox="0 0 24 24"
|
|
330
|
+
>
|
|
331
|
+
<circle
|
|
332
|
+
cx="12"
|
|
333
|
+
cy="5"
|
|
334
|
+
r="2"
|
|
335
|
+
/>
|
|
336
|
+
<circle
|
|
337
|
+
cx="12"
|
|
338
|
+
cy="12"
|
|
339
|
+
r="2"
|
|
340
|
+
/>
|
|
341
|
+
<circle
|
|
342
|
+
cx="12"
|
|
343
|
+
cy="19"
|
|
344
|
+
r="2"
|
|
345
|
+
/>
|
|
346
|
+
</svg>
|
|
347
|
+
</ForwardRef(MoreVertIcon)>
|
|
348
|
+
`;
|
|
349
|
+
|
|
350
|
+
exports[`renders the MoreVertIcon with prop variant=success 1`] = `
|
|
351
|
+
<ForwardRef(MoreVertIcon)
|
|
352
|
+
variant="success"
|
|
353
|
+
>
|
|
354
|
+
<svg
|
|
355
|
+
aria-hidden="true"
|
|
356
|
+
className="govgr-svg-icon--success govgr-svg-icon--m govgr-svg-icon govgr-svg-icon--more-vert"
|
|
357
|
+
focusable="false"
|
|
358
|
+
viewBox="0 0 24 24"
|
|
359
|
+
>
|
|
360
|
+
<circle
|
|
361
|
+
cx="12"
|
|
362
|
+
cy="5"
|
|
363
|
+
r="2"
|
|
364
|
+
/>
|
|
365
|
+
<circle
|
|
366
|
+
cx="12"
|
|
367
|
+
cy="12"
|
|
368
|
+
r="2"
|
|
369
|
+
/>
|
|
370
|
+
<circle
|
|
371
|
+
cx="12"
|
|
372
|
+
cy="19"
|
|
373
|
+
r="2"
|
|
374
|
+
/>
|
|
375
|
+
</svg>
|
|
376
|
+
</ForwardRef(MoreVertIcon)>
|
|
377
|
+
`;
|
|
378
|
+
|
|
379
|
+
exports[`renders the MoreVertIcon with prop variant=warning 1`] = `
|
|
380
|
+
<ForwardRef(MoreVertIcon)
|
|
381
|
+
variant="warning"
|
|
382
|
+
>
|
|
383
|
+
<svg
|
|
384
|
+
aria-hidden="true"
|
|
385
|
+
className="govgr-svg-icon--warning govgr-svg-icon--m govgr-svg-icon govgr-svg-icon--more-vert"
|
|
386
|
+
focusable="false"
|
|
387
|
+
viewBox="0 0 24 24"
|
|
388
|
+
>
|
|
389
|
+
<circle
|
|
390
|
+
cx="12"
|
|
391
|
+
cy="5"
|
|
392
|
+
r="2"
|
|
393
|
+
/>
|
|
394
|
+
<circle
|
|
395
|
+
cx="12"
|
|
396
|
+
cy="12"
|
|
397
|
+
r="2"
|
|
398
|
+
/>
|
|
399
|
+
<circle
|
|
400
|
+
cx="12"
|
|
401
|
+
cy="19"
|
|
402
|
+
r="2"
|
|
403
|
+
/>
|
|
404
|
+
</svg>
|
|
405
|
+
</ForwardRef(MoreVertIcon)>
|
|
406
|
+
`;
|
|
407
|
+
|
|
408
|
+
exports[`renders the MoreVertIcon with prop variant=warning and size=s 1`] = `
|
|
409
|
+
<ForwardRef(MoreVertIcon)
|
|
410
|
+
size="s"
|
|
411
|
+
variant="warning"
|
|
412
|
+
>
|
|
413
|
+
<svg
|
|
414
|
+
aria-hidden="true"
|
|
415
|
+
className="govgr-svg-icon--warning govgr-svg-icon--s govgr-svg-icon govgr-svg-icon--more-vert"
|
|
416
|
+
focusable="false"
|
|
417
|
+
viewBox="0 0 24 24"
|
|
418
|
+
>
|
|
419
|
+
<circle
|
|
420
|
+
cx="12"
|
|
421
|
+
cy="5"
|
|
422
|
+
r="2"
|
|
423
|
+
/>
|
|
424
|
+
<circle
|
|
425
|
+
cx="12"
|
|
426
|
+
cy="12"
|
|
427
|
+
r="2"
|
|
428
|
+
/>
|
|
429
|
+
<circle
|
|
430
|
+
cx="12"
|
|
431
|
+
cy="19"
|
|
432
|
+
r="2"
|
|
433
|
+
/>
|
|
434
|
+
</svg>
|
|
435
|
+
</ForwardRef(MoreVertIcon)>
|
|
436
|
+
`;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
declare type SVGElementAttributes = JSX.IntrinsicElements['svg'];
|
|
3
|
+
export interface MoreVertIconProps extends SVGElementAttributes {
|
|
4
|
+
/**
|
|
5
|
+
* size prop declares the size of the svg icon.
|
|
6
|
+
* size is optional. The default value is 'm'.
|
|
7
|
+
*/
|
|
8
|
+
size?: 's' | 'm' | 'l' | 'xl';
|
|
9
|
+
/**
|
|
10
|
+
* variant property styles svg icon with Gov.gr palette's basic colors.
|
|
11
|
+
* variant property is optional. The default value is 'dark'
|
|
12
|
+
*/
|
|
13
|
+
variant?: 'dark' | 'light' | 'gray' | 'primary' | 'success' | 'warning' | 'error' | 'focus' | 'link';
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Use MoreVertIcon component when you need to show more options.
|
|
17
|
+
*/
|
|
18
|
+
export declare const MoreVertIcon: React.ForwardRefExoticComponent<Pick<MoreVertIconProps, "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" | "variant" | "size"> & React.RefAttributes<SVGSVGElement>>;
|
|
19
|
+
export default MoreVertIcon;
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
|
|
5
|
+
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
6
|
+
|
|
7
|
+
Object.defineProperty(exports, "__esModule", {
|
|
8
|
+
value: true
|
|
9
|
+
});
|
|
10
|
+
exports["default"] = exports.MoreVertIcon = void 0;
|
|
11
|
+
|
|
12
|
+
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
13
|
+
|
|
14
|
+
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
15
|
+
|
|
16
|
+
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
17
|
+
|
|
18
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
19
|
+
|
|
20
|
+
var _clsx = _interopRequireDefault(require("clsx"));
|
|
21
|
+
|
|
22
|
+
var _excluded = ["size", "variant", "className"];
|
|
23
|
+
|
|
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); }
|
|
25
|
+
|
|
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; }
|
|
27
|
+
|
|
28
|
+
var _ref2 = /*#__PURE__*/_react["default"].createElement("circle", {
|
|
29
|
+
cx: "12",
|
|
30
|
+
cy: "5",
|
|
31
|
+
r: "2"
|
|
32
|
+
});
|
|
33
|
+
|
|
34
|
+
var _ref3 = /*#__PURE__*/_react["default"].createElement("circle", {
|
|
35
|
+
cx: "12",
|
|
36
|
+
cy: "12",
|
|
37
|
+
r: "2"
|
|
38
|
+
});
|
|
39
|
+
|
|
40
|
+
var _ref4 = /*#__PURE__*/_react["default"].createElement("circle", {
|
|
41
|
+
cx: "12",
|
|
42
|
+
cy: "19",
|
|
43
|
+
r: "2"
|
|
44
|
+
});
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* Use MoreVertIcon component when you need to show more options.
|
|
48
|
+
*/
|
|
49
|
+
var MoreVertIcon = /*#__PURE__*/_react["default"].forwardRef(function MoreVertIcon(_ref, ref) {
|
|
50
|
+
var _ref$size = _ref.size,
|
|
51
|
+
size = _ref$size === void 0 ? 'm' : _ref$size,
|
|
52
|
+
_ref$variant = _ref.variant,
|
|
53
|
+
variant = _ref$variant === void 0 ? 'dark' : _ref$variant,
|
|
54
|
+
className = _ref.className,
|
|
55
|
+
props = (0, _objectWithoutProperties2["default"])(_ref, _excluded);
|
|
56
|
+
|
|
57
|
+
var _useState = (0, _react.useState)(size),
|
|
58
|
+
_useState2 = (0, _slicedToArray2["default"])(_useState, 2),
|
|
59
|
+
moreVertSize = _useState2[0],
|
|
60
|
+
setSize = _useState2[1];
|
|
61
|
+
|
|
62
|
+
var _useState3 = (0, _react.useState)(variant),
|
|
63
|
+
_useState4 = (0, _slicedToArray2["default"])(_useState3, 2),
|
|
64
|
+
moreVertVariant = _useState4[0],
|
|
65
|
+
setVariant = _useState4[1];
|
|
66
|
+
|
|
67
|
+
(0, _react.useEffect)(function () {
|
|
68
|
+
setSize(size);
|
|
69
|
+
setVariant(variant);
|
|
70
|
+
}, [size, variant]);
|
|
71
|
+
return /*#__PURE__*/_react["default"].createElement("svg", (0, _extends2["default"])({
|
|
72
|
+
ref: ref,
|
|
73
|
+
className: (0, _clsx["default"])(moreVertVariant === 'success' && 'govgr-svg-icon--success', moreVertVariant === 'primary' && 'govgr-svg-icon--primary', moreVertVariant === 'warning' && 'govgr-svg-icon--warning', moreVertVariant === 'light' && 'govgr-svg-icon--light', moreVertVariant === 'error' && 'govgr-svg-icon--error', moreVertVariant === 'focus' && 'govgr-svg-icon--focus', moreVertVariant === 'dark' && 'govgr-svg-icon--dark', moreVertVariant === 'gray' && 'govgr-svg-icon--gray', moreVertVariant === 'link' && 'govgr-svg-icon--link', moreVertSize === 'xl' && 'govgr-svg-icon--xl', moreVertSize === 's' && 'govgr-svg-icon--s', moreVertSize === 'm' && 'govgr-svg-icon--m', moreVertSize === 'l' && 'govgr-svg-icon--l', className && className, true && ['govgr-svg-icon', 'govgr-svg-icon--more-vert']),
|
|
74
|
+
focusable: "false",
|
|
75
|
+
viewBox: "0 0 24 24",
|
|
76
|
+
"aria-hidden": "true"
|
|
77
|
+
}, props), _ref2, _ref3, _ref4);
|
|
78
|
+
});
|
|
79
|
+
|
|
80
|
+
exports.MoreVertIcon = MoreVertIcon;
|
|
81
|
+
var _default = MoreVertIcon;
|
|
82
|
+
exports["default"] = _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|