@digigov/react-icons 1.2.0-dcbd7ded → 2.0.0-0edebf87
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/AccessibilityIcon/__snapshots__/index.test.tsx.snap +51 -51
- package/AccessibilityIcon/index.test/index.js +12 -12
- package/ArrowIcon/__snapshots__/index.test.tsx.snap +8 -8
- package/Base/index.d.ts +95 -0
- package/Base/index.js +69 -0
- package/Base/package.json +6 -0
- package/BurgerIcon/__snapshots__/index.test.tsx.snap +22 -22
- package/BurgerIcon/index.test/index.js +8 -8
- package/CancelIcon/__snapshots__/index.test.tsx.snap +262 -0
- package/CancelIcon/config/index.js +9 -0
- package/CancelIcon/config/package.json +6 -0
- package/CancelIcon/config.d.ts +8 -0
- package/CancelIcon/index.d.ts +4 -0
- package/CancelIcon/index.js +9 -0
- package/CancelIcon/index.test/index.js +45 -0
- package/CancelIcon/index.test/package.json +6 -0
- package/CancelIcon/index.test.d.ts +1 -0
- package/CancelIcon/package.json +6 -0
- package/ChatIcon/__snapshots__/index.test.tsx.snap +300 -0
- package/ChatIcon/config/index.js +17 -0
- package/ChatIcon/config/package.json +6 -0
- package/ChatIcon/config.d.ts +11 -0
- package/ChatIcon/index.d.ts +4 -0
- package/ChatIcon/index.js +9 -0
- package/ChatIcon/index.test/index.js +51 -0
- package/ChatIcon/index.test/package.json +6 -0
- package/ChatIcon/index.test.d.ts +1 -0
- package/ChatIcon/package.json +6 -0
- package/CheckIcon/__snapshots__/index.test.tsx.snap +48 -48
- package/CheckIcon/index.test/index.js +10 -10
- package/ChevronIcon/__snapshots__/index.test.tsx.snap +148 -0
- package/DownloadIcon/__snapshots__/index.test.tsx.snap +318 -0
- package/DownloadIcon/config/index.js +14 -0
- package/DownloadIcon/config/package.json +6 -0
- package/DownloadIcon/config.d.ts +8 -0
- package/DownloadIcon/index.d.ts +4 -0
- package/DownloadIcon/index.js +9 -0
- package/DownloadIcon/index.test/index.js +45 -0
- package/DownloadIcon/index.test/package.json +6 -0
- package/DownloadIcon/index.test.d.ts +1 -0
- package/DownloadIcon/package.json +6 -0
- package/ExclamationIcon/__snapshots__/index.test.tsx.snap +297 -0
- package/ExclamationIcon/config/index.js +14 -0
- package/ExclamationIcon/config/package.json +6 -0
- package/ExclamationIcon/config.d.ts +8 -0
- package/ExclamationIcon/index.d.ts +4 -0
- package/ExclamationIcon/index.js +9 -0
- package/ExclamationIcon/index.test/index.js +45 -0
- package/ExclamationIcon/index.test/package.json +6 -0
- package/ExclamationIcon/index.test.d.ts +1 -0
- package/ExclamationIcon/package.json +6 -0
- package/GlobeIcon/__snapshots__/index.test.tsx.snap +20 -24
- package/GlobeIcon/config/index.js +2 -2
- package/GlobeIcon/index.test/index.js +6 -6
- package/Icon/__snapshots__/index.test.tsx.snap +11 -12
- package/Icon/index.d.ts +1 -1
- package/Icon/index.js +1 -1
- package/LockIcon/__snapshots__/index.test.tsx.snap +262 -0
- package/LockIcon/config/index.js +9 -0
- package/LockIcon/config/package.json +6 -0
- package/LockIcon/config.d.ts +8 -0
- package/LockIcon/index.d.ts +4 -0
- package/LockIcon/index.js +9 -0
- package/LockIcon/index.test/index.js +45 -0
- package/LockIcon/index.test/package.json +6 -0
- package/LockIcon/index.test.d.ts +1 -0
- package/LockIcon/package.json +6 -0
- package/LoginIcon/__snapshots__/index.test.tsx.snap +283 -0
- package/LoginIcon/config/index.js +12 -0
- package/LoginIcon/config/package.json +6 -0
- package/LoginIcon/config.d.ts +8 -0
- package/LoginIcon/index.d.ts +4 -0
- package/LoginIcon/index.js +9 -0
- package/LoginIcon/index.test/index.js +45 -0
- package/LoginIcon/index.test/package.json +6 -0
- package/LoginIcon/index.test.d.ts +1 -0
- package/LoginIcon/package.json +6 -0
- package/MinusIcon/__snapshots__/index.test.tsx.snap +283 -0
- package/MinusIcon/config/index.js +12 -0
- package/MinusIcon/config/package.json +6 -0
- package/MinusIcon/config.d.ts +8 -0
- package/MinusIcon/index.d.ts +4 -0
- package/MinusIcon/index.js +9 -0
- package/MinusIcon/index.test/index.js +45 -0
- package/MinusIcon/index.test/package.json +6 -0
- package/MinusIcon/index.test.d.ts +1 -0
- package/MinusIcon/package.json +6 -0
- package/MoreVertIcon/__snapshots__/index.test.tsx.snap +51 -51
- package/MoreVertIcon/index.test/index.js +12 -12
- package/PdfFileIcon/__snapshots__/index.test.tsx.snap +353 -0
- package/PdfFileIcon/config/index.js +15 -0
- package/PdfFileIcon/config/package.json +6 -0
- package/PdfFileIcon/config.d.ts +8 -0
- package/PdfFileIcon/index.d.ts +4 -0
- package/PdfFileIcon/index.js +9 -0
- package/PdfFileIcon/index.test/index.js +45 -0
- package/PdfFileIcon/index.test/package.json +6 -0
- package/PdfFileIcon/index.test.d.ts +1 -0
- package/PdfFileIcon/package.json +6 -0
- package/PlusIcon/__snapshots__/index.test.tsx.snap +262 -0
- package/PlusIcon/config/index.js +9 -0
- package/PlusIcon/config/package.json +6 -0
- package/PlusIcon/config.d.ts +8 -0
- package/PlusIcon/index.d.ts +4 -0
- package/PlusIcon/index.js +9 -0
- package/PlusIcon/index.test/index.js +45 -0
- package/PlusIcon/index.test/package.json +6 -0
- package/PlusIcon/index.test.d.ts +1 -0
- package/PlusIcon/package.json +6 -0
- package/PrintIcon/__snapshots__/index.test.tsx.snap +304 -0
- package/PrintIcon/config/index.js +15 -0
- package/PrintIcon/config/package.json +6 -0
- package/PrintIcon/config.d.ts +8 -0
- package/PrintIcon/index.d.ts +4 -0
- package/PrintIcon/index.js +9 -0
- package/PrintIcon/index.test/index.js +45 -0
- package/PrintIcon/index.test/package.json +6 -0
- package/PrintIcon/index.test.d.ts +1 -0
- package/PrintIcon/package.json +6 -0
- package/ReplyIcon/__snapshots__/index.test.tsx.snap +262 -0
- package/ReplyIcon/config/index.js +9 -0
- package/ReplyIcon/config/package.json +6 -0
- package/ReplyIcon/config.d.ts +8 -0
- package/ReplyIcon/index.d.ts +4 -0
- package/ReplyIcon/index.js +9 -0
- package/ReplyIcon/index.test/index.js +45 -0
- package/ReplyIcon/index.test/package.json +6 -0
- package/ReplyIcon/index.test.d.ts +1 -0
- package/ReplyIcon/package.json +6 -0
- package/RestoreIcon/__snapshots__/index.test.tsx.snap +318 -0
- package/RestoreIcon/config/index.js +17 -0
- package/RestoreIcon/config/package.json +6 -0
- package/RestoreIcon/config.d.ts +8 -0
- package/RestoreIcon/index.d.ts +4 -0
- package/RestoreIcon/index.js +9 -0
- package/RestoreIcon/index.test/index.js +45 -0
- package/RestoreIcon/index.test/package.json +6 -0
- package/RestoreIcon/index.test.d.ts +1 -0
- package/RestoreIcon/package.json +6 -0
- package/SvgIcon/__snapshots__/index.test.tsx.snap +390 -0
- package/SvgIcon/index.d.ts +37 -0
- package/SvgIcon/index.js +26 -0
- package/SvgIcon/index.test/index.js +105 -0
- package/SvgIcon/index.test/package.json +6 -0
- package/SvgIcon/index.test.d.ts +1 -0
- package/SvgIcon/package.json +6 -0
- package/UncheckIcon/__snapshots__/index.test.tsx.snap +54 -54
- package/UncheckIcon/index.test/index.js +12 -12
- package/cjs/AccessibilityIcon/__snapshots__/index.test.tsx.snap +51 -51
- package/cjs/AccessibilityIcon/index.test/index.js +12 -12
- package/cjs/ArrowIcon/__snapshots__/index.test.tsx.snap +8 -8
- package/cjs/Base/index.js +75 -0
- package/cjs/BurgerIcon/__snapshots__/index.test.tsx.snap +22 -22
- package/cjs/BurgerIcon/index.test/index.js +8 -8
- package/cjs/CancelIcon/__snapshots__/index.test.tsx.snap +262 -0
- package/cjs/CancelIcon/config/index.js +17 -0
- package/cjs/CancelIcon/index.js +16 -0
- package/cjs/CancelIcon/index.test/index.js +48 -0
- package/cjs/ChatIcon/__snapshots__/index.test.tsx.snap +300 -0
- package/cjs/ChatIcon/config/index.js +24 -0
- package/cjs/ChatIcon/index.js +16 -0
- package/cjs/ChatIcon/index.test/index.js +54 -0
- package/cjs/CheckIcon/__snapshots__/index.test.tsx.snap +48 -48
- package/cjs/CheckIcon/index.test/index.js +10 -10
- package/cjs/ChevronIcon/__snapshots__/index.test.tsx.snap +148 -0
- package/cjs/DownloadIcon/__snapshots__/index.test.tsx.snap +318 -0
- package/cjs/DownloadIcon/config/index.js +22 -0
- package/cjs/DownloadIcon/index.js +16 -0
- package/cjs/DownloadIcon/index.test/index.js +48 -0
- package/cjs/ExclamationIcon/__snapshots__/index.test.tsx.snap +297 -0
- package/cjs/ExclamationIcon/config/index.js +22 -0
- package/cjs/ExclamationIcon/index.js +16 -0
- package/cjs/ExclamationIcon/index.test/index.js +48 -0
- package/cjs/GlobeIcon/__snapshots__/index.test.tsx.snap +20 -24
- package/cjs/GlobeIcon/config/index.js +2 -2
- package/cjs/GlobeIcon/index.test/index.js +6 -6
- package/cjs/Icon/__snapshots__/index.test.tsx.snap +11 -12
- package/cjs/Icon/index.js +1 -1
- package/cjs/LockIcon/__snapshots__/index.test.tsx.snap +262 -0
- package/cjs/LockIcon/config/index.js +17 -0
- package/cjs/LockIcon/index.js +16 -0
- package/cjs/LockIcon/index.test/index.js +48 -0
- package/cjs/LoginIcon/__snapshots__/index.test.tsx.snap +283 -0
- package/cjs/LoginIcon/config/index.js +20 -0
- package/cjs/LoginIcon/index.js +16 -0
- package/cjs/LoginIcon/index.test/index.js +48 -0
- package/cjs/MinusIcon/__snapshots__/index.test.tsx.snap +283 -0
- package/cjs/MinusIcon/config/index.js +20 -0
- package/cjs/MinusIcon/index.js +16 -0
- package/cjs/MinusIcon/index.test/index.js +48 -0
- package/cjs/MoreVertIcon/__snapshots__/index.test.tsx.snap +51 -51
- package/cjs/MoreVertIcon/index.test/index.js +12 -12
- package/cjs/PdfFileIcon/__snapshots__/index.test.tsx.snap +353 -0
- package/cjs/PdfFileIcon/config/index.js +23 -0
- package/cjs/PdfFileIcon/index.js +16 -0
- package/cjs/PdfFileIcon/index.test/index.js +48 -0
- package/cjs/PlusIcon/__snapshots__/index.test.tsx.snap +262 -0
- package/cjs/PlusIcon/config/index.js +17 -0
- package/cjs/PlusIcon/index.js +16 -0
- package/cjs/PlusIcon/index.test/index.js +48 -0
- package/cjs/PrintIcon/__snapshots__/index.test.tsx.snap +304 -0
- package/cjs/PrintIcon/config/index.js +23 -0
- package/cjs/PrintIcon/index.js +16 -0
- package/cjs/PrintIcon/index.test/index.js +48 -0
- package/cjs/ReplyIcon/__snapshots__/index.test.tsx.snap +262 -0
- package/cjs/ReplyIcon/config/index.js +17 -0
- package/cjs/ReplyIcon/index.js +16 -0
- package/cjs/ReplyIcon/index.test/index.js +48 -0
- package/cjs/RestoreIcon/__snapshots__/index.test.tsx.snap +318 -0
- package/cjs/RestoreIcon/config/index.js +25 -0
- package/cjs/RestoreIcon/index.js +16 -0
- package/cjs/RestoreIcon/index.test/index.js +48 -0
- package/cjs/SvgIcon/__snapshots__/index.test.tsx.snap +390 -0
- package/cjs/SvgIcon/index.js +33 -0
- package/cjs/SvgIcon/index.test/index.js +108 -0
- package/cjs/UncheckIcon/__snapshots__/index.test.tsx.snap +54 -54
- package/cjs/UncheckIcon/index.test/index.js +12 -12
- package/cjs/icons/index.js +132 -0
- package/cjs/index.js +132 -0
- package/cjs/lazy/index.js +126 -0
- package/cjs/registry/index.js +28 -0
- package/icons/index.js +12 -0
- package/icons.d.ts +36 -0
- package/index.d.ts +12 -0
- package/index.js +14 -2
- package/lazy/index.js +98 -0
- package/lazy.d.ts +14 -0
- package/package.json +4 -3
- package/registry/index.js +28 -0
- package/registry.d.ts +14 -0
- package/src/AccessibilityIcon/__snapshots__/index.test.tsx.snap +51 -51
- package/src/AccessibilityIcon/index.test.tsx +12 -12
- package/src/ArrowIcon/__snapshots__/index.test.tsx.snap +8 -8
- package/src/Base/index.tsx +257 -0
- package/src/BurgerIcon/__snapshots__/index.test.tsx.snap +22 -22
- package/src/BurgerIcon/index.test.tsx +8 -8
- package/src/CancelIcon/__snapshots__/index.test.tsx.snap +262 -0
- package/src/CancelIcon/config.tsx +15 -0
- package/src/CancelIcon/index.test.tsx +26 -0
- package/src/CancelIcon/index.tsx +8 -0
- package/src/ChatIcon/__snapshots__/index.test.tsx.snap +300 -0
- package/src/ChatIcon/config.tsx +28 -0
- package/src/ChatIcon/index.test.tsx +29 -0
- package/src/ChatIcon/index.tsx +8 -0
- package/src/CheckIcon/__snapshots__/index.test.tsx.snap +48 -48
- package/src/CheckIcon/index.test.tsx +10 -10
- package/src/ChevronIcon/__snapshots__/index.test.tsx.snap +148 -0
- package/src/DownloadIcon/__snapshots__/index.test.tsx.snap +318 -0
- package/src/DownloadIcon/config.tsx +16 -0
- package/src/DownloadIcon/index.test.tsx +26 -0
- package/src/DownloadIcon/index.tsx +8 -0
- package/src/ExclamationIcon/__snapshots__/index.test.tsx.snap +297 -0
- package/src/ExclamationIcon/config.tsx +16 -0
- package/src/ExclamationIcon/index.test.tsx +26 -0
- package/src/ExclamationIcon/index.tsx +8 -0
- package/src/GlobeIcon/__snapshots__/index.test.tsx.snap +20 -24
- package/src/GlobeIcon/config.tsx +1 -12
- package/src/GlobeIcon/index.test.tsx +6 -6
- package/src/Icon/__snapshots__/index.test.tsx.snap +11 -12
- package/src/Icon/index.tsx +1 -1
- package/src/LockIcon/__snapshots__/index.test.tsx.snap +262 -0
- package/src/LockIcon/config.tsx +15 -0
- package/src/LockIcon/index.test.tsx +26 -0
- package/src/LockIcon/index.tsx +8 -0
- package/src/LoginIcon/__snapshots__/index.test.tsx.snap +283 -0
- package/src/LoginIcon/config.tsx +16 -0
- package/src/LoginIcon/index.test.tsx +26 -0
- package/src/LoginIcon/index.tsx +8 -0
- package/src/MinusIcon/__snapshots__/index.test.tsx.snap +283 -0
- package/src/MinusIcon/config.tsx +15 -0
- package/src/MinusIcon/index.test.tsx +26 -0
- package/src/MinusIcon/index.tsx +8 -0
- package/src/MoreVertIcon/__snapshots__/index.test.tsx.snap +51 -51
- package/src/MoreVertIcon/index.test.tsx +12 -12
- package/src/PdfFileIcon/__snapshots__/index.test.tsx.snap +353 -0
- package/src/PdfFileIcon/config.tsx +20 -0
- package/src/PdfFileIcon/index.test.tsx +26 -0
- package/src/PdfFileIcon/index.tsx +8 -0
- package/src/PlusIcon/__snapshots__/index.test.tsx.snap +262 -0
- package/src/PlusIcon/config.tsx +15 -0
- package/src/PlusIcon/index.test.tsx +26 -0
- package/src/PlusIcon/index.tsx +8 -0
- package/src/PrintIcon/__snapshots__/index.test.tsx.snap +304 -0
- package/src/PrintIcon/config.tsx +16 -0
- package/src/PrintIcon/index.test.tsx +26 -0
- package/src/PrintIcon/index.tsx +8 -0
- package/src/ReplyIcon/__snapshots__/index.test.tsx.snap +262 -0
- package/src/ReplyIcon/config.tsx +15 -0
- package/src/ReplyIcon/index.test.tsx +26 -0
- package/src/ReplyIcon/index.tsx +8 -0
- package/src/RestoreIcon/__snapshots__/index.test.tsx.snap +318 -0
- package/src/RestoreIcon/config.tsx +17 -0
- package/src/RestoreIcon/index.test.tsx +26 -0
- package/src/RestoreIcon/index.tsx +8 -0
- package/src/SvgIcon/__snapshots__/index.test.tsx.snap +390 -0
- package/src/SvgIcon/index.test.tsx +68 -0
- package/src/SvgIcon/index.tsx +72 -0
- package/src/UncheckIcon/__snapshots__/index.test.tsx.snap +54 -54
- package/src/UncheckIcon/index.test.tsx +12 -12
- package/src/icons.ts +37 -0
- package/src/index.ts +12 -0
- package/src/lazy.js +14 -0
- package/src/registry.js +28 -0
|
@@ -18,34 +18,34 @@ it('renders the CheckIcon with prop size=xl', function () {
|
|
|
18
18
|
expect(mount(_ref3)).toMatchSnapshot();
|
|
19
19
|
});
|
|
20
20
|
var _ref4 = /*#__PURE__*/React.createElement(CheckIcon, {
|
|
21
|
-
|
|
21
|
+
color: "white"
|
|
22
22
|
});
|
|
23
|
-
it('renders the CheckIcon with prop
|
|
23
|
+
it('renders the CheckIcon with prop color=white', function () {
|
|
24
24
|
expect(mount(_ref4)).toMatchSnapshot();
|
|
25
25
|
});
|
|
26
26
|
var _ref5 = /*#__PURE__*/React.createElement(CheckIcon, {
|
|
27
|
-
|
|
27
|
+
color: "success"
|
|
28
28
|
});
|
|
29
|
-
it('renders the CheckIcon with prop
|
|
29
|
+
it('renders the CheckIcon with prop color=success', function () {
|
|
30
30
|
expect(mount(_ref5)).toMatchSnapshot();
|
|
31
31
|
});
|
|
32
32
|
var _ref6 = /*#__PURE__*/React.createElement(CheckIcon, {
|
|
33
|
-
|
|
33
|
+
color: "warning"
|
|
34
34
|
});
|
|
35
|
-
it('renders the CheckIcon with prop
|
|
35
|
+
it('renders the CheckIcon with prop color=warning', function () {
|
|
36
36
|
expect(mount(_ref6)).toMatchSnapshot();
|
|
37
37
|
});
|
|
38
38
|
var _ref7 = /*#__PURE__*/React.createElement(CheckIcon, {
|
|
39
|
-
|
|
39
|
+
color: "warning",
|
|
40
40
|
size: "sm"
|
|
41
41
|
});
|
|
42
|
-
it('renders the CheckIcon with prop
|
|
42
|
+
it('renders the CheckIcon with prop color=warning and size=s', function () {
|
|
43
43
|
expect(mount(_ref7)).toMatchSnapshot();
|
|
44
44
|
});
|
|
45
45
|
var _ref8 = /*#__PURE__*/React.createElement(CheckIcon, {
|
|
46
|
-
|
|
46
|
+
color: "warning",
|
|
47
47
|
size: "xl"
|
|
48
48
|
});
|
|
49
|
-
it('renders the CheckIcon with prop
|
|
49
|
+
it('renders the CheckIcon with prop color=error and size= xl', function () {
|
|
50
50
|
expect(mount(_ref8)).toMatchSnapshot();
|
|
51
51
|
});
|
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
+
|
|
3
|
+
exports[`renders the ChevronIcon with direction down prop 1`] = `
|
|
4
|
+
<ChevronIcon
|
|
5
|
+
direction="down"
|
|
6
|
+
>
|
|
7
|
+
<ForwardRef(Icon)
|
|
8
|
+
direction="down"
|
|
9
|
+
icon="chevron"
|
|
10
|
+
>
|
|
11
|
+
<ForwardRef(SvgIcon)
|
|
12
|
+
className="ds-svg-icon--chevron"
|
|
13
|
+
>
|
|
14
|
+
<ForwardRef(Base)
|
|
15
|
+
aria-hidden="true"
|
|
16
|
+
as="svg"
|
|
17
|
+
className="ds-svg-icon--chevron ds-svg-icon"
|
|
18
|
+
focusable="false"
|
|
19
|
+
viewBox="0 0 24 24"
|
|
20
|
+
>
|
|
21
|
+
<svg
|
|
22
|
+
aria-hidden="true"
|
|
23
|
+
className="ds-svg-icon--chevron ds-svg-icon"
|
|
24
|
+
focusable="false"
|
|
25
|
+
viewBox="0 0 24 24"
|
|
26
|
+
>
|
|
27
|
+
<chevron
|
|
28
|
+
direction="down"
|
|
29
|
+
>
|
|
30
|
+
<path
|
|
31
|
+
d="M22,8.2l-2.3-2.4L12,13.4L4.4,5.8L2,8.2l10,10L22,8.2z"
|
|
32
|
+
/>
|
|
33
|
+
</chevron>
|
|
34
|
+
</svg>
|
|
35
|
+
</ForwardRef(Base)>
|
|
36
|
+
</ForwardRef(SvgIcon)>
|
|
37
|
+
</ForwardRef(Icon)>
|
|
38
|
+
</ChevronIcon>
|
|
39
|
+
`;
|
|
40
|
+
|
|
41
|
+
exports[`renders the ChevronIcon with direction left prop 1`] = `
|
|
42
|
+
<ChevronIcon
|
|
43
|
+
direction="left"
|
|
44
|
+
>
|
|
45
|
+
<ForwardRef(Icon)
|
|
46
|
+
direction="left"
|
|
47
|
+
icon="chevron"
|
|
48
|
+
>
|
|
49
|
+
<ForwardRef(SvgIcon)
|
|
50
|
+
className="ds-svg-icon--chevron"
|
|
51
|
+
>
|
|
52
|
+
<ForwardRef(Base)
|
|
53
|
+
aria-hidden="true"
|
|
54
|
+
as="svg"
|
|
55
|
+
className="ds-svg-icon--chevron ds-svg-icon"
|
|
56
|
+
focusable="false"
|
|
57
|
+
viewBox="0 0 24 24"
|
|
58
|
+
>
|
|
59
|
+
<svg
|
|
60
|
+
aria-hidden="true"
|
|
61
|
+
className="ds-svg-icon--chevron ds-svg-icon"
|
|
62
|
+
focusable="false"
|
|
63
|
+
viewBox="0 0 24 24"
|
|
64
|
+
>
|
|
65
|
+
<chevron
|
|
66
|
+
direction="left"
|
|
67
|
+
>
|
|
68
|
+
<path
|
|
69
|
+
d="M14.8,22l2.4-2.3L9.6,12l7.6-7.6L14.8,2l-10,10L14.8,22z"
|
|
70
|
+
/>
|
|
71
|
+
</chevron>
|
|
72
|
+
</svg>
|
|
73
|
+
</ForwardRef(Base)>
|
|
74
|
+
</ForwardRef(SvgIcon)>
|
|
75
|
+
</ForwardRef(Icon)>
|
|
76
|
+
</ChevronIcon>
|
|
77
|
+
`;
|
|
78
|
+
|
|
79
|
+
exports[`renders the ChevronIcon with direction up prop 1`] = `
|
|
80
|
+
<ChevronIcon
|
|
81
|
+
direction="up"
|
|
82
|
+
>
|
|
83
|
+
<ForwardRef(Icon)
|
|
84
|
+
direction="up"
|
|
85
|
+
icon="chevron"
|
|
86
|
+
>
|
|
87
|
+
<ForwardRef(SvgIcon)
|
|
88
|
+
className="ds-svg-icon--chevron"
|
|
89
|
+
>
|
|
90
|
+
<ForwardRef(Base)
|
|
91
|
+
aria-hidden="true"
|
|
92
|
+
as="svg"
|
|
93
|
+
className="ds-svg-icon--chevron ds-svg-icon"
|
|
94
|
+
focusable="false"
|
|
95
|
+
viewBox="0 0 24 24"
|
|
96
|
+
>
|
|
97
|
+
<svg
|
|
98
|
+
aria-hidden="true"
|
|
99
|
+
className="ds-svg-icon--chevron ds-svg-icon"
|
|
100
|
+
focusable="false"
|
|
101
|
+
viewBox="0 0 24 24"
|
|
102
|
+
>
|
|
103
|
+
<chevron
|
|
104
|
+
direction="up"
|
|
105
|
+
>
|
|
106
|
+
<path
|
|
107
|
+
d="M2,15.8l2.3,2.4l7.7-7.6l7.6,7.6l2.4-2.4l-10-10L2,15.8z"
|
|
108
|
+
/>
|
|
109
|
+
</chevron>
|
|
110
|
+
</svg>
|
|
111
|
+
</ForwardRef(Base)>
|
|
112
|
+
</ForwardRef(SvgIcon)>
|
|
113
|
+
</ForwardRef(Icon)>
|
|
114
|
+
</ChevronIcon>
|
|
115
|
+
`;
|
|
116
|
+
|
|
117
|
+
exports[`renders the ChevronIcon with no props, direction prop is right by default 1`] = `
|
|
118
|
+
<ChevronIcon>
|
|
119
|
+
<ForwardRef(Icon)
|
|
120
|
+
icon="chevron"
|
|
121
|
+
>
|
|
122
|
+
<ForwardRef(SvgIcon)
|
|
123
|
+
className="ds-svg-icon--chevron"
|
|
124
|
+
>
|
|
125
|
+
<ForwardRef(Base)
|
|
126
|
+
aria-hidden="true"
|
|
127
|
+
as="svg"
|
|
128
|
+
className="ds-svg-icon--chevron ds-svg-icon"
|
|
129
|
+
focusable="false"
|
|
130
|
+
viewBox="0 0 24 24"
|
|
131
|
+
>
|
|
132
|
+
<svg
|
|
133
|
+
aria-hidden="true"
|
|
134
|
+
className="ds-svg-icon--chevron ds-svg-icon"
|
|
135
|
+
focusable="false"
|
|
136
|
+
viewBox="0 0 24 24"
|
|
137
|
+
>
|
|
138
|
+
<chevron>
|
|
139
|
+
<path
|
|
140
|
+
d="M8.5,2L6.1,4.3l7.6,7.7l-7.6,7.6L8.5,22l10-10L8.5,2z"
|
|
141
|
+
/>
|
|
142
|
+
</chevron>
|
|
143
|
+
</svg>
|
|
144
|
+
</ForwardRef(Base)>
|
|
145
|
+
</ForwardRef(SvgIcon)>
|
|
146
|
+
</ForwardRef(Icon)>
|
|
147
|
+
</ChevronIcon>
|
|
148
|
+
`;
|
|
@@ -0,0 +1,318 @@
|
|
|
1
|
+
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
+
|
|
3
|
+
exports[`renders the DownloadIcon with no props 1`] = `
|
|
4
|
+
<DownloadIcon>
|
|
5
|
+
<ForwardRef(Icon)
|
|
6
|
+
icon="download"
|
|
7
|
+
>
|
|
8
|
+
<ForwardRef(SvgIcon)
|
|
9
|
+
className="ds-svg-icon--download"
|
|
10
|
+
>
|
|
11
|
+
<ForwardRef(Base)
|
|
12
|
+
aria-hidden="true"
|
|
13
|
+
as="svg"
|
|
14
|
+
className="ds-svg-icon--download ds-svg-icon"
|
|
15
|
+
focusable="false"
|
|
16
|
+
viewBox="0 0 24 24"
|
|
17
|
+
>
|
|
18
|
+
<svg
|
|
19
|
+
aria-hidden="true"
|
|
20
|
+
className="ds-svg-icon--download ds-svg-icon"
|
|
21
|
+
focusable="false"
|
|
22
|
+
viewBox="0 0 24 24"
|
|
23
|
+
>
|
|
24
|
+
<download>
|
|
25
|
+
<g>
|
|
26
|
+
<polygon
|
|
27
|
+
points="12 18 20 10 15.3 10 15.3 2 8.7 2 8.7 10 4 10 12 18"
|
|
28
|
+
/>
|
|
29
|
+
<rect
|
|
30
|
+
height="3.301"
|
|
31
|
+
width="12"
|
|
32
|
+
x="6"
|
|
33
|
+
y="18.699"
|
|
34
|
+
/>
|
|
35
|
+
</g>
|
|
36
|
+
</download>
|
|
37
|
+
</svg>
|
|
38
|
+
</ForwardRef(Base)>
|
|
39
|
+
</ForwardRef(SvgIcon)>
|
|
40
|
+
</ForwardRef(Icon)>
|
|
41
|
+
</DownloadIcon>
|
|
42
|
+
`;
|
|
43
|
+
|
|
44
|
+
exports[`renders the DownloadIcon with prop color=error and size= xl 1`] = `
|
|
45
|
+
<DownloadIcon
|
|
46
|
+
color="warning"
|
|
47
|
+
size="xl"
|
|
48
|
+
>
|
|
49
|
+
<ForwardRef(Icon)
|
|
50
|
+
color="warning"
|
|
51
|
+
icon="download"
|
|
52
|
+
size="xl"
|
|
53
|
+
>
|
|
54
|
+
<ForwardRef(SvgIcon)
|
|
55
|
+
className="ds-svg-icon--download"
|
|
56
|
+
color="warning"
|
|
57
|
+
size="xl"
|
|
58
|
+
>
|
|
59
|
+
<ForwardRef(Base)
|
|
60
|
+
aria-hidden="true"
|
|
61
|
+
as="svg"
|
|
62
|
+
className="ds-svg-icon--download ds-svg-icon--warning ds-svg-icon--xl ds-svg-icon"
|
|
63
|
+
focusable="false"
|
|
64
|
+
viewBox="0 0 24 24"
|
|
65
|
+
>
|
|
66
|
+
<svg
|
|
67
|
+
aria-hidden="true"
|
|
68
|
+
className="ds-svg-icon--download ds-svg-icon--warning ds-svg-icon--xl ds-svg-icon"
|
|
69
|
+
focusable="false"
|
|
70
|
+
viewBox="0 0 24 24"
|
|
71
|
+
>
|
|
72
|
+
<download>
|
|
73
|
+
<g>
|
|
74
|
+
<polygon
|
|
75
|
+
points="12 18 20 10 15.3 10 15.3 2 8.7 2 8.7 10 4 10 12 18"
|
|
76
|
+
/>
|
|
77
|
+
<rect
|
|
78
|
+
height="3.301"
|
|
79
|
+
width="12"
|
|
80
|
+
x="6"
|
|
81
|
+
y="18.699"
|
|
82
|
+
/>
|
|
83
|
+
</g>
|
|
84
|
+
</download>
|
|
85
|
+
</svg>
|
|
86
|
+
</ForwardRef(Base)>
|
|
87
|
+
</ForwardRef(SvgIcon)>
|
|
88
|
+
</ForwardRef(Icon)>
|
|
89
|
+
</DownloadIcon>
|
|
90
|
+
`;
|
|
91
|
+
|
|
92
|
+
exports[`renders the DownloadIcon with prop color=warning 1`] = `
|
|
93
|
+
<DownloadIcon
|
|
94
|
+
color="warning"
|
|
95
|
+
>
|
|
96
|
+
<ForwardRef(Icon)
|
|
97
|
+
color="warning"
|
|
98
|
+
icon="download"
|
|
99
|
+
>
|
|
100
|
+
<ForwardRef(SvgIcon)
|
|
101
|
+
className="ds-svg-icon--download"
|
|
102
|
+
color="warning"
|
|
103
|
+
>
|
|
104
|
+
<ForwardRef(Base)
|
|
105
|
+
aria-hidden="true"
|
|
106
|
+
as="svg"
|
|
107
|
+
className="ds-svg-icon--download ds-svg-icon--warning ds-svg-icon"
|
|
108
|
+
focusable="false"
|
|
109
|
+
viewBox="0 0 24 24"
|
|
110
|
+
>
|
|
111
|
+
<svg
|
|
112
|
+
aria-hidden="true"
|
|
113
|
+
className="ds-svg-icon--download ds-svg-icon--warning ds-svg-icon"
|
|
114
|
+
focusable="false"
|
|
115
|
+
viewBox="0 0 24 24"
|
|
116
|
+
>
|
|
117
|
+
<download>
|
|
118
|
+
<g>
|
|
119
|
+
<polygon
|
|
120
|
+
points="12 18 20 10 15.3 10 15.3 2 8.7 2 8.7 10 4 10 12 18"
|
|
121
|
+
/>
|
|
122
|
+
<rect
|
|
123
|
+
height="3.301"
|
|
124
|
+
width="12"
|
|
125
|
+
x="6"
|
|
126
|
+
y="18.699"
|
|
127
|
+
/>
|
|
128
|
+
</g>
|
|
129
|
+
</download>
|
|
130
|
+
</svg>
|
|
131
|
+
</ForwardRef(Base)>
|
|
132
|
+
</ForwardRef(SvgIcon)>
|
|
133
|
+
</ForwardRef(Icon)>
|
|
134
|
+
</DownloadIcon>
|
|
135
|
+
`;
|
|
136
|
+
|
|
137
|
+
exports[`renders the DownloadIcon with prop color=warning and size=s 1`] = `
|
|
138
|
+
<DownloadIcon
|
|
139
|
+
color="warning"
|
|
140
|
+
size="sm"
|
|
141
|
+
>
|
|
142
|
+
<ForwardRef(Icon)
|
|
143
|
+
color="warning"
|
|
144
|
+
icon="download"
|
|
145
|
+
size="sm"
|
|
146
|
+
>
|
|
147
|
+
<ForwardRef(SvgIcon)
|
|
148
|
+
className="ds-svg-icon--download"
|
|
149
|
+
color="warning"
|
|
150
|
+
size="sm"
|
|
151
|
+
>
|
|
152
|
+
<ForwardRef(Base)
|
|
153
|
+
aria-hidden="true"
|
|
154
|
+
as="svg"
|
|
155
|
+
className="ds-svg-icon--download ds-svg-icon--warning ds-svg-icon--sm ds-svg-icon"
|
|
156
|
+
focusable="false"
|
|
157
|
+
viewBox="0 0 24 24"
|
|
158
|
+
>
|
|
159
|
+
<svg
|
|
160
|
+
aria-hidden="true"
|
|
161
|
+
className="ds-svg-icon--download ds-svg-icon--warning ds-svg-icon--sm ds-svg-icon"
|
|
162
|
+
focusable="false"
|
|
163
|
+
viewBox="0 0 24 24"
|
|
164
|
+
>
|
|
165
|
+
<download>
|
|
166
|
+
<g>
|
|
167
|
+
<polygon
|
|
168
|
+
points="12 18 20 10 15.3 10 15.3 2 8.7 2 8.7 10 4 10 12 18"
|
|
169
|
+
/>
|
|
170
|
+
<rect
|
|
171
|
+
height="3.301"
|
|
172
|
+
width="12"
|
|
173
|
+
x="6"
|
|
174
|
+
y="18.699"
|
|
175
|
+
/>
|
|
176
|
+
</g>
|
|
177
|
+
</download>
|
|
178
|
+
</svg>
|
|
179
|
+
</ForwardRef(Base)>
|
|
180
|
+
</ForwardRef(SvgIcon)>
|
|
181
|
+
</ForwardRef(Icon)>
|
|
182
|
+
</DownloadIcon>
|
|
183
|
+
`;
|
|
184
|
+
|
|
185
|
+
exports[`renders the DownloadIcon with prop color=white 1`] = `
|
|
186
|
+
<DownloadIcon
|
|
187
|
+
color="white"
|
|
188
|
+
>
|
|
189
|
+
<ForwardRef(Icon)
|
|
190
|
+
color="white"
|
|
191
|
+
icon="download"
|
|
192
|
+
>
|
|
193
|
+
<ForwardRef(SvgIcon)
|
|
194
|
+
className="ds-svg-icon--download"
|
|
195
|
+
color="white"
|
|
196
|
+
>
|
|
197
|
+
<ForwardRef(Base)
|
|
198
|
+
aria-hidden="true"
|
|
199
|
+
as="svg"
|
|
200
|
+
className="ds-svg-icon--download ds-svg-icon--white ds-svg-icon"
|
|
201
|
+
focusable="false"
|
|
202
|
+
viewBox="0 0 24 24"
|
|
203
|
+
>
|
|
204
|
+
<svg
|
|
205
|
+
aria-hidden="true"
|
|
206
|
+
className="ds-svg-icon--download ds-svg-icon--white ds-svg-icon"
|
|
207
|
+
focusable="false"
|
|
208
|
+
viewBox="0 0 24 24"
|
|
209
|
+
>
|
|
210
|
+
<download>
|
|
211
|
+
<g>
|
|
212
|
+
<polygon
|
|
213
|
+
points="12 18 20 10 15.3 10 15.3 2 8.7 2 8.7 10 4 10 12 18"
|
|
214
|
+
/>
|
|
215
|
+
<rect
|
|
216
|
+
height="3.301"
|
|
217
|
+
width="12"
|
|
218
|
+
x="6"
|
|
219
|
+
y="18.699"
|
|
220
|
+
/>
|
|
221
|
+
</g>
|
|
222
|
+
</download>
|
|
223
|
+
</svg>
|
|
224
|
+
</ForwardRef(Base)>
|
|
225
|
+
</ForwardRef(SvgIcon)>
|
|
226
|
+
</ForwardRef(Icon)>
|
|
227
|
+
</DownloadIcon>
|
|
228
|
+
`;
|
|
229
|
+
|
|
230
|
+
exports[`renders the DownloadIcon with prop size=m 1`] = `
|
|
231
|
+
<DownloadIcon
|
|
232
|
+
size="md"
|
|
233
|
+
>
|
|
234
|
+
<ForwardRef(Icon)
|
|
235
|
+
icon="download"
|
|
236
|
+
size="md"
|
|
237
|
+
>
|
|
238
|
+
<ForwardRef(SvgIcon)
|
|
239
|
+
className="ds-svg-icon--download"
|
|
240
|
+
size="md"
|
|
241
|
+
>
|
|
242
|
+
<ForwardRef(Base)
|
|
243
|
+
aria-hidden="true"
|
|
244
|
+
as="svg"
|
|
245
|
+
className="ds-svg-icon--download ds-svg-icon--md ds-svg-icon"
|
|
246
|
+
focusable="false"
|
|
247
|
+
viewBox="0 0 24 24"
|
|
248
|
+
>
|
|
249
|
+
<svg
|
|
250
|
+
aria-hidden="true"
|
|
251
|
+
className="ds-svg-icon--download ds-svg-icon--md ds-svg-icon"
|
|
252
|
+
focusable="false"
|
|
253
|
+
viewBox="0 0 24 24"
|
|
254
|
+
>
|
|
255
|
+
<download>
|
|
256
|
+
<g>
|
|
257
|
+
<polygon
|
|
258
|
+
points="12 18 20 10 15.3 10 15.3 2 8.7 2 8.7 10 4 10 12 18"
|
|
259
|
+
/>
|
|
260
|
+
<rect
|
|
261
|
+
height="3.301"
|
|
262
|
+
width="12"
|
|
263
|
+
x="6"
|
|
264
|
+
y="18.699"
|
|
265
|
+
/>
|
|
266
|
+
</g>
|
|
267
|
+
</download>
|
|
268
|
+
</svg>
|
|
269
|
+
</ForwardRef(Base)>
|
|
270
|
+
</ForwardRef(SvgIcon)>
|
|
271
|
+
</ForwardRef(Icon)>
|
|
272
|
+
</DownloadIcon>
|
|
273
|
+
`;
|
|
274
|
+
|
|
275
|
+
exports[`renders the DownloadIcon with prop size=xl 1`] = `
|
|
276
|
+
<DownloadIcon
|
|
277
|
+
size="xl"
|
|
278
|
+
>
|
|
279
|
+
<ForwardRef(Icon)
|
|
280
|
+
icon="download"
|
|
281
|
+
size="xl"
|
|
282
|
+
>
|
|
283
|
+
<ForwardRef(SvgIcon)
|
|
284
|
+
className="ds-svg-icon--download"
|
|
285
|
+
size="xl"
|
|
286
|
+
>
|
|
287
|
+
<ForwardRef(Base)
|
|
288
|
+
aria-hidden="true"
|
|
289
|
+
as="svg"
|
|
290
|
+
className="ds-svg-icon--download ds-svg-icon--xl ds-svg-icon"
|
|
291
|
+
focusable="false"
|
|
292
|
+
viewBox="0 0 24 24"
|
|
293
|
+
>
|
|
294
|
+
<svg
|
|
295
|
+
aria-hidden="true"
|
|
296
|
+
className="ds-svg-icon--download ds-svg-icon--xl ds-svg-icon"
|
|
297
|
+
focusable="false"
|
|
298
|
+
viewBox="0 0 24 24"
|
|
299
|
+
>
|
|
300
|
+
<download>
|
|
301
|
+
<g>
|
|
302
|
+
<polygon
|
|
303
|
+
points="12 18 20 10 15.3 10 15.3 2 8.7 2 8.7 10 4 10 12 18"
|
|
304
|
+
/>
|
|
305
|
+
<rect
|
|
306
|
+
height="3.301"
|
|
307
|
+
width="12"
|
|
308
|
+
x="6"
|
|
309
|
+
y="18.699"
|
|
310
|
+
/>
|
|
311
|
+
</g>
|
|
312
|
+
</download>
|
|
313
|
+
</svg>
|
|
314
|
+
</ForwardRef(Base)>
|
|
315
|
+
</ForwardRef(SvgIcon)>
|
|
316
|
+
</ForwardRef(Icon)>
|
|
317
|
+
</DownloadIcon>
|
|
318
|
+
`;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
var _ref = /*#__PURE__*/React.createElement("g", null, /*#__PURE__*/React.createElement("polygon", {
|
|
3
|
+
points: "12 18 20 10 15.3 10 15.3 2 8.7 2 8.7 10 4 10 12 18"
|
|
4
|
+
}), /*#__PURE__*/React.createElement("rect", {
|
|
5
|
+
x: "6",
|
|
6
|
+
y: "18.699",
|
|
7
|
+
width: "12",
|
|
8
|
+
height: "3.301"
|
|
9
|
+
}));
|
|
10
|
+
export function download() {
|
|
11
|
+
return _ref;
|
|
12
|
+
}
|
|
13
|
+
download.props = [];
|
|
14
|
+
export default download;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import Icon from '@digigov/react-icons/Icon';
|
|
4
|
+
export var DownloadIcon = function DownloadIcon(props) {
|
|
5
|
+
return /*#__PURE__*/React.createElement(Icon, _extends({}, props, {
|
|
6
|
+
icon: "download"
|
|
7
|
+
}));
|
|
8
|
+
};
|
|
9
|
+
export default DownloadIcon;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { mount } from 'enzyme';
|
|
3
|
+
import DownloadIcon from '@digigov/react-icons/DownloadIcon';
|
|
4
|
+
var _ref = /*#__PURE__*/React.createElement(DownloadIcon, null);
|
|
5
|
+
it('renders the DownloadIcon with no props', function () {
|
|
6
|
+
expect(mount(_ref)).toMatchSnapshot();
|
|
7
|
+
});
|
|
8
|
+
var _ref2 = /*#__PURE__*/React.createElement(DownloadIcon, {
|
|
9
|
+
size: "md"
|
|
10
|
+
});
|
|
11
|
+
it('renders the DownloadIcon with prop size=m', function () {
|
|
12
|
+
expect(mount(_ref2)).toMatchSnapshot();
|
|
13
|
+
});
|
|
14
|
+
var _ref3 = /*#__PURE__*/React.createElement(DownloadIcon, {
|
|
15
|
+
size: "xl"
|
|
16
|
+
});
|
|
17
|
+
it('renders the DownloadIcon with prop size=xl', function () {
|
|
18
|
+
expect(mount(_ref3)).toMatchSnapshot();
|
|
19
|
+
});
|
|
20
|
+
var _ref4 = /*#__PURE__*/React.createElement(DownloadIcon, {
|
|
21
|
+
color: "white"
|
|
22
|
+
});
|
|
23
|
+
it('renders the DownloadIcon with prop color=white', function () {
|
|
24
|
+
expect(mount(_ref4)).toMatchSnapshot();
|
|
25
|
+
});
|
|
26
|
+
var _ref5 = /*#__PURE__*/React.createElement(DownloadIcon, {
|
|
27
|
+
color: "warning"
|
|
28
|
+
});
|
|
29
|
+
it('renders the DownloadIcon with prop color=warning', function () {
|
|
30
|
+
expect(mount(_ref5)).toMatchSnapshot();
|
|
31
|
+
});
|
|
32
|
+
var _ref6 = /*#__PURE__*/React.createElement(DownloadIcon, {
|
|
33
|
+
color: "warning",
|
|
34
|
+
size: "sm"
|
|
35
|
+
});
|
|
36
|
+
it('renders the DownloadIcon with prop color=warning and size=s', function () {
|
|
37
|
+
expect(mount(_ref6)).toMatchSnapshot();
|
|
38
|
+
});
|
|
39
|
+
var _ref7 = /*#__PURE__*/React.createElement(DownloadIcon, {
|
|
40
|
+
color: "warning",
|
|
41
|
+
size: "xl"
|
|
42
|
+
});
|
|
43
|
+
it('renders the DownloadIcon with prop color=error and size= xl', function () {
|
|
44
|
+
expect(mount(_ref7)).toMatchSnapshot();
|
|
45
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|