@digigov/react-icons 1.2.0-a7ffb5dc → 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
|
@@ -21,40 +21,40 @@ it('renders the AccessibilityIcon with prop size=l', function () {
|
|
|
21
21
|
expect((0, _enzyme.mount)(_ref3)).toMatchSnapshot();
|
|
22
22
|
});
|
|
23
23
|
var _ref4 = /*#__PURE__*/_react["default"].createElement(_AccessibilityIcon["default"], {
|
|
24
|
-
|
|
24
|
+
color: "base-content"
|
|
25
25
|
});
|
|
26
|
-
it('renders the AccessibilityIcon with prop
|
|
26
|
+
it('renders the AccessibilityIcon with prop color=base-content', function () {
|
|
27
27
|
expect((0, _enzyme.mount)(_ref4)).toMatchSnapshot();
|
|
28
28
|
});
|
|
29
29
|
var _ref5 = /*#__PURE__*/_react["default"].createElement(_AccessibilityIcon["default"], {
|
|
30
|
-
|
|
30
|
+
color: "primary"
|
|
31
31
|
});
|
|
32
|
-
it('renders the AccessibilityIcon with prop
|
|
32
|
+
it('renders the AccessibilityIcon with prop color=primary', function () {
|
|
33
33
|
expect((0, _enzyme.mount)(_ref5)).toMatchSnapshot();
|
|
34
34
|
});
|
|
35
35
|
var _ref6 = /*#__PURE__*/_react["default"].createElement(_AccessibilityIcon["default"], {
|
|
36
|
-
|
|
36
|
+
color: "success"
|
|
37
37
|
});
|
|
38
|
-
it('renders the AccessibilityIcon with prop
|
|
38
|
+
it('renders the AccessibilityIcon with prop color=success', function () {
|
|
39
39
|
expect((0, _enzyme.mount)(_ref6)).toMatchSnapshot();
|
|
40
40
|
});
|
|
41
41
|
var _ref7 = /*#__PURE__*/_react["default"].createElement(_AccessibilityIcon["default"], {
|
|
42
|
-
|
|
42
|
+
color: "error"
|
|
43
43
|
});
|
|
44
|
-
it('renders the AccessibilityIcon with prop
|
|
44
|
+
it('renders the AccessibilityIcon with prop color=error', function () {
|
|
45
45
|
expect((0, _enzyme.mount)(_ref7)).toMatchSnapshot();
|
|
46
46
|
});
|
|
47
47
|
var _ref8 = /*#__PURE__*/_react["default"].createElement(_AccessibilityIcon["default"], {
|
|
48
|
-
|
|
48
|
+
color: "warning",
|
|
49
49
|
size: "sm"
|
|
50
50
|
});
|
|
51
|
-
it('renders the AccessibilityIcon with prop
|
|
51
|
+
it('renders the AccessibilityIcon with prop color=warning and size=s', function () {
|
|
52
52
|
expect((0, _enzyme.mount)(_ref8)).toMatchSnapshot();
|
|
53
53
|
});
|
|
54
54
|
var _ref9 = /*#__PURE__*/_react["default"].createElement(_AccessibilityIcon["default"], {
|
|
55
|
-
|
|
55
|
+
color: "warning",
|
|
56
56
|
size: "xl"
|
|
57
57
|
});
|
|
58
|
-
it('renders the AccessibilityIcon with prop
|
|
58
|
+
it('renders the AccessibilityIcon with prop color=error and size= xl', function () {
|
|
59
59
|
expect((0, _enzyme.mount)(_ref9)).toMatchSnapshot();
|
|
60
60
|
});
|
|
@@ -27,8 +27,8 @@ exports[`renders the ArrowIcon with direction down prop 1`] = `
|
|
|
27
27
|
<arrow
|
|
28
28
|
direction="down"
|
|
29
29
|
>
|
|
30
|
-
<
|
|
31
|
-
|
|
30
|
+
<polygon
|
|
31
|
+
points="19.7 9.6 13.7 15.52 13.7 2.07 10.37 2 10.32 15.52 4.4 9.6 2 12 12 22 22 12 19.7 9.6"
|
|
32
32
|
/>
|
|
33
33
|
</arrow>
|
|
34
34
|
</svg>
|
|
@@ -65,8 +65,8 @@ exports[`renders the ArrowIcon with direction left prop 1`] = `
|
|
|
65
65
|
<arrow
|
|
66
66
|
direction="left"
|
|
67
67
|
>
|
|
68
|
-
<
|
|
69
|
-
|
|
68
|
+
<polygon
|
|
69
|
+
points="14.4 19.7 8.48 13.7 21.93 13.7 22 10.37 8.48 10.32 14.4 4.4 12 2 2 12 12 22 14.4 19.7"
|
|
70
70
|
/>
|
|
71
71
|
</arrow>
|
|
72
72
|
</svg>
|
|
@@ -103,8 +103,8 @@ exports[`renders the ArrowIcon with direction up prop 1`] = `
|
|
|
103
103
|
<arrow
|
|
104
104
|
direction="up"
|
|
105
105
|
>
|
|
106
|
-
<
|
|
107
|
-
|
|
106
|
+
<polygon
|
|
107
|
+
points="22 12 12 2 2 12 4.3 14.4 10.3 8.48 10.3 21.93 13.63 22 13.68 8.48 19.6 14.4 22 12"
|
|
108
108
|
/>
|
|
109
109
|
</arrow>
|
|
110
110
|
</svg>
|
|
@@ -136,8 +136,8 @@ exports[`renders the ArrowIcon with no props, direction prop is right by default
|
|
|
136
136
|
viewBox="0 0 24 24"
|
|
137
137
|
>
|
|
138
138
|
<arrow>
|
|
139
|
-
<
|
|
140
|
-
|
|
139
|
+
<polygon
|
|
140
|
+
points="22 12 12 2 2 12 4.3 14.4 10.3 8.48 10.3 21.93 13.63 22 13.68 8.48 19.6 14.4 22 12"
|
|
141
141
|
/>
|
|
142
142
|
</arrow>
|
|
143
143
|
</svg>
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports["default"] = exports.Base = void 0;
|
|
8
|
+
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
9
|
+
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
10
|
+
var _react = _interopRequireDefault(require("react"));
|
|
11
|
+
var _clsx = _interopRequireDefault(require("clsx"));
|
|
12
|
+
var _excluded = ["as", "margin", "marginTop", "marginBottom", "marginLeft", "marginRight", "m", "mt", "mb", "ml", "mr", "mx", "my", "padding", "paddingTop", "paddingBottom", "paddingLeft", "paddingRight", "p", "pt", "pb", "pr", "pl", "px", "py", "printHidden", "printVisible", "hidden", "xsUpHidden", "smUpHidden", "mdUpHidden", "lgUpHidden", "xlUpHidden", "xsHidden", "smHidden", "mdHidden", "lgHidden", "xlHidden", "children", "className"];
|
|
13
|
+
// This is the first reusable type utility we built
|
|
14
|
+
|
|
15
|
+
// This is a new type utitlity with ref!
|
|
16
|
+
|
|
17
|
+
// This is the type for the "ref" only
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* This is the updated component props using PolymorphicComponentPropWithRef
|
|
21
|
+
*/
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* This is the type used in the type annotation for the component
|
|
25
|
+
*/
|
|
26
|
+
|
|
27
|
+
var Base = exports.Base = /*#__PURE__*/_react["default"].forwardRef(function Base(_ref, ref) {
|
|
28
|
+
var as = _ref.as,
|
|
29
|
+
margin = _ref.margin,
|
|
30
|
+
marginTop = _ref.marginTop,
|
|
31
|
+
marginBottom = _ref.marginBottom,
|
|
32
|
+
marginLeft = _ref.marginLeft,
|
|
33
|
+
marginRight = _ref.marginRight,
|
|
34
|
+
m = _ref.m,
|
|
35
|
+
mt = _ref.mt,
|
|
36
|
+
mb = _ref.mb,
|
|
37
|
+
ml = _ref.ml,
|
|
38
|
+
mr = _ref.mr,
|
|
39
|
+
mx = _ref.mx,
|
|
40
|
+
my = _ref.my,
|
|
41
|
+
padding = _ref.padding,
|
|
42
|
+
paddingTop = _ref.paddingTop,
|
|
43
|
+
paddingBottom = _ref.paddingBottom,
|
|
44
|
+
paddingLeft = _ref.paddingLeft,
|
|
45
|
+
paddingRight = _ref.paddingRight,
|
|
46
|
+
p = _ref.p,
|
|
47
|
+
pt = _ref.pt,
|
|
48
|
+
pb = _ref.pb,
|
|
49
|
+
pr = _ref.pr,
|
|
50
|
+
pl = _ref.pl,
|
|
51
|
+
px = _ref.px,
|
|
52
|
+
py = _ref.py,
|
|
53
|
+
printHidden = _ref.printHidden,
|
|
54
|
+
printVisible = _ref.printVisible,
|
|
55
|
+
hidden = _ref.hidden,
|
|
56
|
+
xsUpHidden = _ref.xsUpHidden,
|
|
57
|
+
smUpHidden = _ref.smUpHidden,
|
|
58
|
+
mdUpHidden = _ref.mdUpHidden,
|
|
59
|
+
lgUpHidden = _ref.lgUpHidden,
|
|
60
|
+
xlUpHidden = _ref.xlUpHidden,
|
|
61
|
+
xsHidden = _ref.xsHidden,
|
|
62
|
+
smHidden = _ref.smHidden,
|
|
63
|
+
mdHidden = _ref.mdHidden,
|
|
64
|
+
lgHidden = _ref.lgHidden,
|
|
65
|
+
xlHidden = _ref.xlHidden,
|
|
66
|
+
children = _ref.children,
|
|
67
|
+
className = _ref.className,
|
|
68
|
+
props = (0, _objectWithoutProperties2["default"])(_ref, _excluded);
|
|
69
|
+
var Component = as || 'span';
|
|
70
|
+
return /*#__PURE__*/_react["default"].createElement(Component, (0, _extends2["default"])({
|
|
71
|
+
className: (0, _clsx["default"])(className, (paddingBottom !== undefined ? true : undefined) && "ds-pb-".concat(paddingBottom), (marginBottom !== undefined ? true : undefined) && "ds-mb-".concat(marginBottom), (paddingRight !== undefined ? true : undefined) && "ds-pr-".concat(paddingRight), (marginRight !== undefined ? true : undefined) && "ds-mr-".concat(marginRight), (paddingLeft !== undefined ? true : undefined) && "ds-pl-".concat(paddingLeft), (marginLeft !== undefined ? true : undefined) && "ds-ml-".concat(marginLeft), (paddingTop !== undefined ? true : undefined) && "ds-pt-".concat(paddingTop), (marginTop !== undefined ? true : undefined) && "ds-mt-".concat(marginTop), (padding !== undefined ? true : undefined) && "ds-p-".concat(padding), (margin !== undefined ? true : undefined) && "ds-m-".concat(margin), (mt !== undefined ? true : undefined) && "ds-mt-".concat(mt), (mb !== undefined ? true : undefined) && "ds-mb-".concat(mb), (mr !== undefined ? true : undefined) && "ds-mr-".concat(mr), (ml !== undefined ? true : undefined) && "ds-ml-".concat(ml), (mx !== undefined ? true : undefined) && "ds-mx-".concat(mx), (my !== undefined ? true : undefined) && "ds-my-".concat(my), (pt !== undefined ? true : undefined) && "ds-pt-".concat(pt), (pb !== undefined ? true : undefined) && "ds-pb-".concat(pb), (pr !== undefined ? true : undefined) && "ds-pr-".concat(pr), (pl !== undefined ? true : undefined) && "ds-pl-".concat(pl), (px !== undefined ? true : undefined) && "ds-px-".concat(px), (py !== undefined ? true : undefined) && "ds-py-".concat(py), (m !== undefined ? true : undefined) && "ds-m-".concat(m), (p !== undefined ? true : undefined) && "ds-p-".concat(p), printVisible === 'inline' && 'ds-print-visible-inline', printVisible === 'block' && 'ds-print-visible-block', !!printHidden && 'ds-print-hidden', !!xsUpHidden && 'ds-hidden-xs-up', !!smUpHidden && 'ds-hidden-sm-up', !!mdUpHidden && 'ds-hidden-md-up', !!lgUpHidden && 'ds-hidden-lg-up', !!xlUpHidden && 'ds-hidden-xl-up', !!xsHidden && 'ds-hidden-xs', !!smHidden && 'ds-hidden-sm', !!mdHidden && 'ds-hidden-md', !!lgHidden && 'ds-hidden-lg', !!xlHidden && 'ds-hidden-xl', !!hidden && 'ds-hidden'),
|
|
72
|
+
ref: ref
|
|
73
|
+
}, props), children);
|
|
74
|
+
});
|
|
75
|
+
var _default = exports["default"] = Base;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
2
|
|
|
3
|
-
exports[`renders the BurgerIcon prop
|
|
3
|
+
exports[`renders the BurgerIcon prop color= "error" 1`] = `
|
|
4
4
|
<BurgerIcon
|
|
5
|
-
|
|
5
|
+
color="error"
|
|
6
6
|
>
|
|
7
7
|
<ForwardRef(Icon)
|
|
8
|
+
color="error"
|
|
8
9
|
icon="burger"
|
|
9
|
-
variant="error"
|
|
10
10
|
>
|
|
11
11
|
<ForwardRef(SvgIcon)
|
|
12
12
|
className="ds-svg-icon--burger"
|
|
13
|
-
|
|
13
|
+
color="error"
|
|
14
14
|
>
|
|
15
15
|
<ForwardRef(Base)
|
|
16
16
|
aria-hidden="true"
|
|
@@ -53,28 +53,28 @@ exports[`renders the BurgerIcon prop variant= "error" 1`] = `
|
|
|
53
53
|
</BurgerIcon>
|
|
54
54
|
`;
|
|
55
55
|
|
|
56
|
-
exports[`renders the BurgerIcon prop
|
|
56
|
+
exports[`renders the BurgerIcon prop color= "white" 1`] = `
|
|
57
57
|
<BurgerIcon
|
|
58
|
-
|
|
58
|
+
color="white"
|
|
59
59
|
>
|
|
60
60
|
<ForwardRef(Icon)
|
|
61
|
+
color="white"
|
|
61
62
|
icon="burger"
|
|
62
|
-
variant="light"
|
|
63
63
|
>
|
|
64
64
|
<ForwardRef(SvgIcon)
|
|
65
65
|
className="ds-svg-icon--burger"
|
|
66
|
-
|
|
66
|
+
color="white"
|
|
67
67
|
>
|
|
68
68
|
<ForwardRef(Base)
|
|
69
69
|
aria-hidden="true"
|
|
70
70
|
as="svg"
|
|
71
|
-
className="ds-svg-icon--burger ds-svg-icon--
|
|
71
|
+
className="ds-svg-icon--burger ds-svg-icon--white ds-svg-icon"
|
|
72
72
|
focusable="false"
|
|
73
73
|
viewBox="0 0 24 24"
|
|
74
74
|
>
|
|
75
75
|
<svg
|
|
76
76
|
aria-hidden="true"
|
|
77
|
-
className="ds-svg-icon--burger ds-svg-icon--
|
|
77
|
+
className="ds-svg-icon--burger ds-svg-icon--white ds-svg-icon"
|
|
78
78
|
focusable="false"
|
|
79
79
|
viewBox="0 0 24 24"
|
|
80
80
|
>
|
|
@@ -106,30 +106,30 @@ exports[`renders the BurgerIcon prop variant= "light" 1`] = `
|
|
|
106
106
|
</BurgerIcon>
|
|
107
107
|
`;
|
|
108
108
|
|
|
109
|
-
exports[`renders the BurgerIcon props active
|
|
109
|
+
exports[`renders the BurgerIcon props active color= "white" 1`] = `
|
|
110
110
|
<BurgerIcon
|
|
111
111
|
active={true}
|
|
112
|
-
|
|
112
|
+
color="white"
|
|
113
113
|
>
|
|
114
114
|
<ForwardRef(Icon)
|
|
115
115
|
active={true}
|
|
116
|
+
color="white"
|
|
116
117
|
icon="burger"
|
|
117
|
-
variant="light"
|
|
118
118
|
>
|
|
119
119
|
<ForwardRef(SvgIcon)
|
|
120
120
|
className="ds-svg-icon--burger"
|
|
121
|
-
|
|
121
|
+
color="white"
|
|
122
122
|
>
|
|
123
123
|
<ForwardRef(Base)
|
|
124
124
|
aria-hidden="true"
|
|
125
125
|
as="svg"
|
|
126
|
-
className="ds-svg-icon--burger ds-svg-icon--
|
|
126
|
+
className="ds-svg-icon--burger ds-svg-icon--white ds-svg-icon"
|
|
127
127
|
focusable="false"
|
|
128
128
|
viewBox="0 0 24 24"
|
|
129
129
|
>
|
|
130
130
|
<svg
|
|
131
131
|
aria-hidden="true"
|
|
132
|
-
className="ds-svg-icon--burger ds-svg-icon--
|
|
132
|
+
className="ds-svg-icon--burger ds-svg-icon--white ds-svg-icon"
|
|
133
133
|
focusable="false"
|
|
134
134
|
viewBox="0 0 24 24"
|
|
135
135
|
>
|
|
@@ -266,28 +266,28 @@ exports[`renders the BurgerIcon with prop active=true 1`] = `
|
|
|
266
266
|
</BurgerIcon>
|
|
267
267
|
`;
|
|
268
268
|
|
|
269
|
-
exports[`renders the BurgerIcon with prop
|
|
269
|
+
exports[`renders the BurgerIcon with prop color=base-content 1`] = `
|
|
270
270
|
<BurgerIcon
|
|
271
|
-
|
|
271
|
+
color="base-content"
|
|
272
272
|
>
|
|
273
273
|
<ForwardRef(Icon)
|
|
274
|
+
color="base-content"
|
|
274
275
|
icon="burger"
|
|
275
|
-
variant="dark"
|
|
276
276
|
>
|
|
277
277
|
<ForwardRef(SvgIcon)
|
|
278
278
|
className="ds-svg-icon--burger"
|
|
279
|
-
|
|
279
|
+
color="base-content"
|
|
280
280
|
>
|
|
281
281
|
<ForwardRef(Base)
|
|
282
282
|
aria-hidden="true"
|
|
283
283
|
as="svg"
|
|
284
|
-
className="ds-svg-icon--burger ds-svg-icon--
|
|
284
|
+
className="ds-svg-icon--burger ds-svg-icon--base-content ds-svg-icon"
|
|
285
285
|
focusable="false"
|
|
286
286
|
viewBox="0 0 24 24"
|
|
287
287
|
>
|
|
288
288
|
<svg
|
|
289
289
|
aria-hidden="true"
|
|
290
|
-
className="ds-svg-icon--burger ds-svg-icon--
|
|
290
|
+
className="ds-svg-icon--burger ds-svg-icon--base-content ds-svg-icon"
|
|
291
291
|
focusable="false"
|
|
292
292
|
viewBox="0 0 24 24"
|
|
293
293
|
>
|
|
@@ -15,27 +15,27 @@ it('renders the BurgerIcon with prop active=true', function () {
|
|
|
15
15
|
expect((0, _enzyme.mount)(_ref2)).toMatchSnapshot();
|
|
16
16
|
});
|
|
17
17
|
var _ref3 = /*#__PURE__*/_react["default"].createElement(_BurgerIcon["default"], {
|
|
18
|
-
|
|
18
|
+
color: "base-content"
|
|
19
19
|
});
|
|
20
|
-
it('renders the BurgerIcon with prop
|
|
20
|
+
it('renders the BurgerIcon with prop color=base-content', function () {
|
|
21
21
|
expect((0, _enzyme.mount)(_ref3)).toMatchSnapshot();
|
|
22
22
|
});
|
|
23
23
|
var _ref4 = /*#__PURE__*/_react["default"].createElement(_BurgerIcon["default"], {
|
|
24
|
-
|
|
24
|
+
color: "white"
|
|
25
25
|
});
|
|
26
|
-
it('renders the BurgerIcon prop
|
|
26
|
+
it('renders the BurgerIcon prop color= "white"', function () {
|
|
27
27
|
expect((0, _enzyme.mount)(_ref4)).toMatchSnapshot();
|
|
28
28
|
});
|
|
29
29
|
var _ref5 = /*#__PURE__*/_react["default"].createElement(_BurgerIcon["default"], {
|
|
30
|
-
|
|
30
|
+
color: "error"
|
|
31
31
|
});
|
|
32
|
-
it('renders the BurgerIcon prop
|
|
32
|
+
it('renders the BurgerIcon prop color= "error"', function () {
|
|
33
33
|
expect((0, _enzyme.mount)(_ref5)).toMatchSnapshot();
|
|
34
34
|
});
|
|
35
35
|
var _ref6 = /*#__PURE__*/_react["default"].createElement(_BurgerIcon["default"], {
|
|
36
36
|
active: true,
|
|
37
|
-
|
|
37
|
+
color: "white"
|
|
38
38
|
});
|
|
39
|
-
it('renders the BurgerIcon props active
|
|
39
|
+
it('renders the BurgerIcon props active color= "white"', function () {
|
|
40
40
|
expect((0, _enzyme.mount)(_ref6)).toMatchSnapshot();
|
|
41
41
|
});
|
|
@@ -0,0 +1,262 @@
|
|
|
1
|
+
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
+
|
|
3
|
+
exports[`renders the CancelIcon with no props 1`] = `
|
|
4
|
+
<CancelIcon>
|
|
5
|
+
<ForwardRef(Icon)
|
|
6
|
+
icon="cancel"
|
|
7
|
+
>
|
|
8
|
+
<ForwardRef(SvgIcon)
|
|
9
|
+
className="ds-svg-icon--cancel"
|
|
10
|
+
>
|
|
11
|
+
<ForwardRef(Base)
|
|
12
|
+
aria-hidden="true"
|
|
13
|
+
as="svg"
|
|
14
|
+
className="ds-svg-icon--cancel ds-svg-icon"
|
|
15
|
+
focusable="false"
|
|
16
|
+
viewBox="0 0 24 24"
|
|
17
|
+
>
|
|
18
|
+
<svg
|
|
19
|
+
aria-hidden="true"
|
|
20
|
+
className="ds-svg-icon--cancel ds-svg-icon"
|
|
21
|
+
focusable="false"
|
|
22
|
+
viewBox="0 0 24 24"
|
|
23
|
+
>
|
|
24
|
+
<cancel>
|
|
25
|
+
<path
|
|
26
|
+
d="M12,2C6.477,2,2,6.477,2,12s4.477,10,10,10,10-4.477,10-10S17.523,2,12,2ZM17.419,15.581l-1.838,1.838-3.581-3.581-3.581,3.581-1.838-1.838,3.581-3.581-3.581-3.581,1.838-1.839,3.581,3.581,3.581-3.581,1.838,1.839-3.581,3.581,3.581,3.581Z"
|
|
27
|
+
/>
|
|
28
|
+
</cancel>
|
|
29
|
+
</svg>
|
|
30
|
+
</ForwardRef(Base)>
|
|
31
|
+
</ForwardRef(SvgIcon)>
|
|
32
|
+
</ForwardRef(Icon)>
|
|
33
|
+
</CancelIcon>
|
|
34
|
+
`;
|
|
35
|
+
|
|
36
|
+
exports[`renders the CancelIcon with prop color=error and size= xl 1`] = `
|
|
37
|
+
<CancelIcon
|
|
38
|
+
color="warning"
|
|
39
|
+
size="xl"
|
|
40
|
+
>
|
|
41
|
+
<ForwardRef(Icon)
|
|
42
|
+
color="warning"
|
|
43
|
+
icon="cancel"
|
|
44
|
+
size="xl"
|
|
45
|
+
>
|
|
46
|
+
<ForwardRef(SvgIcon)
|
|
47
|
+
className="ds-svg-icon--cancel"
|
|
48
|
+
color="warning"
|
|
49
|
+
size="xl"
|
|
50
|
+
>
|
|
51
|
+
<ForwardRef(Base)
|
|
52
|
+
aria-hidden="true"
|
|
53
|
+
as="svg"
|
|
54
|
+
className="ds-svg-icon--cancel ds-svg-icon--warning ds-svg-icon--xl ds-svg-icon"
|
|
55
|
+
focusable="false"
|
|
56
|
+
viewBox="0 0 24 24"
|
|
57
|
+
>
|
|
58
|
+
<svg
|
|
59
|
+
aria-hidden="true"
|
|
60
|
+
className="ds-svg-icon--cancel ds-svg-icon--warning ds-svg-icon--xl ds-svg-icon"
|
|
61
|
+
focusable="false"
|
|
62
|
+
viewBox="0 0 24 24"
|
|
63
|
+
>
|
|
64
|
+
<cancel>
|
|
65
|
+
<path
|
|
66
|
+
d="M12,2C6.477,2,2,6.477,2,12s4.477,10,10,10,10-4.477,10-10S17.523,2,12,2ZM17.419,15.581l-1.838,1.838-3.581-3.581-3.581,3.581-1.838-1.838,3.581-3.581-3.581-3.581,1.838-1.839,3.581,3.581,3.581-3.581,1.838,1.839-3.581,3.581,3.581,3.581Z"
|
|
67
|
+
/>
|
|
68
|
+
</cancel>
|
|
69
|
+
</svg>
|
|
70
|
+
</ForwardRef(Base)>
|
|
71
|
+
</ForwardRef(SvgIcon)>
|
|
72
|
+
</ForwardRef(Icon)>
|
|
73
|
+
</CancelIcon>
|
|
74
|
+
`;
|
|
75
|
+
|
|
76
|
+
exports[`renders the CancelIcon with prop color=warning 1`] = `
|
|
77
|
+
<CancelIcon
|
|
78
|
+
color="warning"
|
|
79
|
+
>
|
|
80
|
+
<ForwardRef(Icon)
|
|
81
|
+
color="warning"
|
|
82
|
+
icon="cancel"
|
|
83
|
+
>
|
|
84
|
+
<ForwardRef(SvgIcon)
|
|
85
|
+
className="ds-svg-icon--cancel"
|
|
86
|
+
color="warning"
|
|
87
|
+
>
|
|
88
|
+
<ForwardRef(Base)
|
|
89
|
+
aria-hidden="true"
|
|
90
|
+
as="svg"
|
|
91
|
+
className="ds-svg-icon--cancel ds-svg-icon--warning ds-svg-icon"
|
|
92
|
+
focusable="false"
|
|
93
|
+
viewBox="0 0 24 24"
|
|
94
|
+
>
|
|
95
|
+
<svg
|
|
96
|
+
aria-hidden="true"
|
|
97
|
+
className="ds-svg-icon--cancel ds-svg-icon--warning ds-svg-icon"
|
|
98
|
+
focusable="false"
|
|
99
|
+
viewBox="0 0 24 24"
|
|
100
|
+
>
|
|
101
|
+
<cancel>
|
|
102
|
+
<path
|
|
103
|
+
d="M12,2C6.477,2,2,6.477,2,12s4.477,10,10,10,10-4.477,10-10S17.523,2,12,2ZM17.419,15.581l-1.838,1.838-3.581-3.581-3.581,3.581-1.838-1.838,3.581-3.581-3.581-3.581,1.838-1.839,3.581,3.581,3.581-3.581,1.838,1.839-3.581,3.581,3.581,3.581Z"
|
|
104
|
+
/>
|
|
105
|
+
</cancel>
|
|
106
|
+
</svg>
|
|
107
|
+
</ForwardRef(Base)>
|
|
108
|
+
</ForwardRef(SvgIcon)>
|
|
109
|
+
</ForwardRef(Icon)>
|
|
110
|
+
</CancelIcon>
|
|
111
|
+
`;
|
|
112
|
+
|
|
113
|
+
exports[`renders the CancelIcon with prop color=warning and size=s 1`] = `
|
|
114
|
+
<CancelIcon
|
|
115
|
+
color="warning"
|
|
116
|
+
size="sm"
|
|
117
|
+
>
|
|
118
|
+
<ForwardRef(Icon)
|
|
119
|
+
color="warning"
|
|
120
|
+
icon="cancel"
|
|
121
|
+
size="sm"
|
|
122
|
+
>
|
|
123
|
+
<ForwardRef(SvgIcon)
|
|
124
|
+
className="ds-svg-icon--cancel"
|
|
125
|
+
color="warning"
|
|
126
|
+
size="sm"
|
|
127
|
+
>
|
|
128
|
+
<ForwardRef(Base)
|
|
129
|
+
aria-hidden="true"
|
|
130
|
+
as="svg"
|
|
131
|
+
className="ds-svg-icon--cancel ds-svg-icon--warning ds-svg-icon--sm ds-svg-icon"
|
|
132
|
+
focusable="false"
|
|
133
|
+
viewBox="0 0 24 24"
|
|
134
|
+
>
|
|
135
|
+
<svg
|
|
136
|
+
aria-hidden="true"
|
|
137
|
+
className="ds-svg-icon--cancel ds-svg-icon--warning ds-svg-icon--sm ds-svg-icon"
|
|
138
|
+
focusable="false"
|
|
139
|
+
viewBox="0 0 24 24"
|
|
140
|
+
>
|
|
141
|
+
<cancel>
|
|
142
|
+
<path
|
|
143
|
+
d="M12,2C6.477,2,2,6.477,2,12s4.477,10,10,10,10-4.477,10-10S17.523,2,12,2ZM17.419,15.581l-1.838,1.838-3.581-3.581-3.581,3.581-1.838-1.838,3.581-3.581-3.581-3.581,1.838-1.839,3.581,3.581,3.581-3.581,1.838,1.839-3.581,3.581,3.581,3.581Z"
|
|
144
|
+
/>
|
|
145
|
+
</cancel>
|
|
146
|
+
</svg>
|
|
147
|
+
</ForwardRef(Base)>
|
|
148
|
+
</ForwardRef(SvgIcon)>
|
|
149
|
+
</ForwardRef(Icon)>
|
|
150
|
+
</CancelIcon>
|
|
151
|
+
`;
|
|
152
|
+
|
|
153
|
+
exports[`renders the CancelIcon with prop color=white 1`] = `
|
|
154
|
+
<CancelIcon
|
|
155
|
+
color="white"
|
|
156
|
+
>
|
|
157
|
+
<ForwardRef(Icon)
|
|
158
|
+
color="white"
|
|
159
|
+
icon="cancel"
|
|
160
|
+
>
|
|
161
|
+
<ForwardRef(SvgIcon)
|
|
162
|
+
className="ds-svg-icon--cancel"
|
|
163
|
+
color="white"
|
|
164
|
+
>
|
|
165
|
+
<ForwardRef(Base)
|
|
166
|
+
aria-hidden="true"
|
|
167
|
+
as="svg"
|
|
168
|
+
className="ds-svg-icon--cancel ds-svg-icon--white ds-svg-icon"
|
|
169
|
+
focusable="false"
|
|
170
|
+
viewBox="0 0 24 24"
|
|
171
|
+
>
|
|
172
|
+
<svg
|
|
173
|
+
aria-hidden="true"
|
|
174
|
+
className="ds-svg-icon--cancel ds-svg-icon--white ds-svg-icon"
|
|
175
|
+
focusable="false"
|
|
176
|
+
viewBox="0 0 24 24"
|
|
177
|
+
>
|
|
178
|
+
<cancel>
|
|
179
|
+
<path
|
|
180
|
+
d="M12,2C6.477,2,2,6.477,2,12s4.477,10,10,10,10-4.477,10-10S17.523,2,12,2ZM17.419,15.581l-1.838,1.838-3.581-3.581-3.581,3.581-1.838-1.838,3.581-3.581-3.581-3.581,1.838-1.839,3.581,3.581,3.581-3.581,1.838,1.839-3.581,3.581,3.581,3.581Z"
|
|
181
|
+
/>
|
|
182
|
+
</cancel>
|
|
183
|
+
</svg>
|
|
184
|
+
</ForwardRef(Base)>
|
|
185
|
+
</ForwardRef(SvgIcon)>
|
|
186
|
+
</ForwardRef(Icon)>
|
|
187
|
+
</CancelIcon>
|
|
188
|
+
`;
|
|
189
|
+
|
|
190
|
+
exports[`renders the CancelIcon with prop size=m 1`] = `
|
|
191
|
+
<CancelIcon
|
|
192
|
+
size="md"
|
|
193
|
+
>
|
|
194
|
+
<ForwardRef(Icon)
|
|
195
|
+
icon="cancel"
|
|
196
|
+
size="md"
|
|
197
|
+
>
|
|
198
|
+
<ForwardRef(SvgIcon)
|
|
199
|
+
className="ds-svg-icon--cancel"
|
|
200
|
+
size="md"
|
|
201
|
+
>
|
|
202
|
+
<ForwardRef(Base)
|
|
203
|
+
aria-hidden="true"
|
|
204
|
+
as="svg"
|
|
205
|
+
className="ds-svg-icon--cancel ds-svg-icon--md ds-svg-icon"
|
|
206
|
+
focusable="false"
|
|
207
|
+
viewBox="0 0 24 24"
|
|
208
|
+
>
|
|
209
|
+
<svg
|
|
210
|
+
aria-hidden="true"
|
|
211
|
+
className="ds-svg-icon--cancel ds-svg-icon--md ds-svg-icon"
|
|
212
|
+
focusable="false"
|
|
213
|
+
viewBox="0 0 24 24"
|
|
214
|
+
>
|
|
215
|
+
<cancel>
|
|
216
|
+
<path
|
|
217
|
+
d="M12,2C6.477,2,2,6.477,2,12s4.477,10,10,10,10-4.477,10-10S17.523,2,12,2ZM17.419,15.581l-1.838,1.838-3.581-3.581-3.581,3.581-1.838-1.838,3.581-3.581-3.581-3.581,1.838-1.839,3.581,3.581,3.581-3.581,1.838,1.839-3.581,3.581,3.581,3.581Z"
|
|
218
|
+
/>
|
|
219
|
+
</cancel>
|
|
220
|
+
</svg>
|
|
221
|
+
</ForwardRef(Base)>
|
|
222
|
+
</ForwardRef(SvgIcon)>
|
|
223
|
+
</ForwardRef(Icon)>
|
|
224
|
+
</CancelIcon>
|
|
225
|
+
`;
|
|
226
|
+
|
|
227
|
+
exports[`renders the CancelIcon with prop size=xl 1`] = `
|
|
228
|
+
<CancelIcon
|
|
229
|
+
size="xl"
|
|
230
|
+
>
|
|
231
|
+
<ForwardRef(Icon)
|
|
232
|
+
icon="cancel"
|
|
233
|
+
size="xl"
|
|
234
|
+
>
|
|
235
|
+
<ForwardRef(SvgIcon)
|
|
236
|
+
className="ds-svg-icon--cancel"
|
|
237
|
+
size="xl"
|
|
238
|
+
>
|
|
239
|
+
<ForwardRef(Base)
|
|
240
|
+
aria-hidden="true"
|
|
241
|
+
as="svg"
|
|
242
|
+
className="ds-svg-icon--cancel ds-svg-icon--xl ds-svg-icon"
|
|
243
|
+
focusable="false"
|
|
244
|
+
viewBox="0 0 24 24"
|
|
245
|
+
>
|
|
246
|
+
<svg
|
|
247
|
+
aria-hidden="true"
|
|
248
|
+
className="ds-svg-icon--cancel ds-svg-icon--xl ds-svg-icon"
|
|
249
|
+
focusable="false"
|
|
250
|
+
viewBox="0 0 24 24"
|
|
251
|
+
>
|
|
252
|
+
<cancel>
|
|
253
|
+
<path
|
|
254
|
+
d="M12,2C6.477,2,2,6.477,2,12s4.477,10,10,10,10-4.477,10-10S17.523,2,12,2ZM17.419,15.581l-1.838,1.838-3.581-3.581-3.581,3.581-1.838-1.838,3.581-3.581-3.581-3.581,1.838-1.839,3.581,3.581,3.581-3.581,1.838,1.839-3.581,3.581,3.581,3.581Z"
|
|
255
|
+
/>
|
|
256
|
+
</cancel>
|
|
257
|
+
</svg>
|
|
258
|
+
</ForwardRef(Base)>
|
|
259
|
+
</ForwardRef(SvgIcon)>
|
|
260
|
+
</ForwardRef(Icon)>
|
|
261
|
+
</CancelIcon>
|
|
262
|
+
`;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.cancel = cancel;
|
|
8
|
+
exports["default"] = void 0;
|
|
9
|
+
var _react = _interopRequireDefault(require("react"));
|
|
10
|
+
var _ref = /*#__PURE__*/_react["default"].createElement("path", {
|
|
11
|
+
d: "M12,2C6.477,2,2,6.477,2,12s4.477,10,10,10,10-4.477,10-10S17.523,2,12,2ZM17.419,15.581l-1.838,1.838-3.581-3.581-3.581,3.581-1.838-1.838,3.581-3.581-3.581-3.581,1.838-1.839,3.581,3.581,3.581-3.581,1.838,1.839-3.581,3.581,3.581,3.581Z"
|
|
12
|
+
});
|
|
13
|
+
function cancel() {
|
|
14
|
+
return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, _ref);
|
|
15
|
+
}
|
|
16
|
+
cancel.props = [];
|
|
17
|
+
var _default = exports["default"] = cancel;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports["default"] = exports.CancelIcon = void 0;
|
|
8
|
+
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
9
|
+
var _react = _interopRequireDefault(require("react"));
|
|
10
|
+
var _Icon = _interopRequireDefault(require("@digigov/react-icons/Icon"));
|
|
11
|
+
var CancelIcon = exports.CancelIcon = function CancelIcon(props) {
|
|
12
|
+
return /*#__PURE__*/_react["default"].createElement(_Icon["default"], (0, _extends2["default"])({}, props, {
|
|
13
|
+
icon: "cancel"
|
|
14
|
+
}));
|
|
15
|
+
};
|
|
16
|
+
var _default = exports["default"] = CancelIcon;
|