@digigov/react-icons 1.0.0-rc
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 +723 -0
- package/AccessibilityIcon/config.d.ts +8 -0
- package/AccessibilityIcon/config.js +31 -0
- package/AccessibilityIcon/index.d.ts +4 -0
- package/AccessibilityIcon/index.js +24 -0
- package/AccessibilityIcon/index.test.d.ts +1 -0
- package/AccessibilityIcon/index.test.js +137 -0
- package/ArrowIcon/__snapshots__/index.test.tsx.snap +148 -0
- package/ArrowIcon/config.d.ts +6 -0
- package/ArrowIcon/config.js +39 -0
- package/ArrowIcon/index.d.ts +4 -0
- package/ArrowIcon/index.js +24 -0
- package/ArrowIcon/index.test.d.ts +1 -0
- package/ArrowIcon/index.test.js +39 -0
- package/BurgerIcon/__snapshots__/index.test.tsx.snap +320 -0
- package/BurgerIcon/config.d.ts +6 -0
- package/BurgerIcon/config.js +45 -0
- package/BurgerIcon/index.d.ts +4 -0
- package/BurgerIcon/index.js +24 -0
- package/BurgerIcon/index.test.d.ts +1 -0
- package/BurgerIcon/index.test.js +56 -0
- package/CaretIcon/__snapshots__/index.test.tsx.snap +148 -0
- package/CaretIcon/config.d.ts +6 -0
- package/CaretIcon/config.js +39 -0
- package/CaretIcon/index.d.ts +4 -0
- package/CaretIcon/index.js +24 -0
- package/CaretIcon/index.test.d.ts +1 -0
- package/CaretIcon/index.test.js +39 -0
- package/CheckIcon/__snapshots__/index.test.tsx.snap +558 -0
- package/CheckIcon/config.d.ts +8 -0
- package/CheckIcon/config.js +23 -0
- package/CheckIcon/index.d.ts +4 -0
- package/CheckIcon/index.js +24 -0
- package/CheckIcon/index.test.d.ts +1 -0
- package/CheckIcon/index.test.js +129 -0
- package/CloseIcon/__snapshots__/index.test.tsx.snap +34 -0
- package/CloseIcon/config.d.ts +8 -0
- package/CloseIcon/config.js +23 -0
- package/CloseIcon/index.d.ts +4 -0
- package/CloseIcon/index.js +24 -0
- package/CloseIcon/index.test.d.ts +1 -0
- package/CloseIcon/index.test.js +15 -0
- package/GlobeIcon/__snapshots__/index.test.tsx.snap +149 -0
- package/GlobeIcon/config.d.ts +8 -0
- package/GlobeIcon/config.js +23 -0
- package/GlobeIcon/index.d.ts +4 -0
- package/GlobeIcon/index.js +24 -0
- package/GlobeIcon/index.test.d.ts +1 -0
- package/GlobeIcon/index.test.js +39 -0
- package/LICENSE +0 -0
- package/MoreVertIcon/__snapshots__/index.test.tsx.snap +738 -0
- package/MoreVertIcon/config.d.ts +8 -0
- package/MoreVertIcon/config.js +37 -0
- package/MoreVertIcon/index.d.ts +4 -0
- package/MoreVertIcon/index.js +24 -0
- package/MoreVertIcon/index.test.d.ts +1 -0
- package/MoreVertIcon/index.test.js +129 -0
- package/README.md +0 -0
- package/SearchIcon/__snapshots__/index.test.tsx.snap +34 -0
- package/SearchIcon/config.d.ts +8 -0
- package/SearchIcon/config.js +23 -0
- package/SearchIcon/index.d.ts +4 -0
- package/SearchIcon/index.js +24 -0
- package/SearchIcon/index.test.d.ts +1 -0
- package/SearchIcon/index.test.js +15 -0
- package/UncheckIcon/__snapshots__/index.test.tsx.snap +558 -0
- package/UncheckIcon/config.d.ts +8 -0
- package/UncheckIcon/config.js +23 -0
- package/UncheckIcon/index.d.ts +4 -0
- package/UncheckIcon/index.js +24 -0
- package/UncheckIcon/index.test.d.ts +1 -0
- package/UncheckIcon/index.test.js +129 -0
- package/es/AccessibilityIcon/__snapshots__/index.test.tsx.snap +723 -0
- package/es/AccessibilityIcon/config.js +19 -0
- package/es/AccessibilityIcon/index.js +9 -0
- package/es/AccessibilityIcon/index.test.js +131 -0
- package/es/ArrowIcon/__snapshots__/index.test.tsx.snap +148 -0
- package/es/ArrowIcon/config.js +27 -0
- package/es/ArrowIcon/index.js +9 -0
- package/es/ArrowIcon/index.test.js +33 -0
- package/es/BurgerIcon/__snapshots__/index.test.tsx.snap +320 -0
- package/es/BurgerIcon/config.js +32 -0
- package/es/BurgerIcon/index.js +9 -0
- package/es/BurgerIcon/index.test.js +50 -0
- package/es/CaretIcon/__snapshots__/index.test.tsx.snap +148 -0
- package/es/CaretIcon/config.js +27 -0
- package/es/CaretIcon/index.js +9 -0
- package/es/CaretIcon/index.test.js +33 -0
- package/es/CheckIcon/__snapshots__/index.test.tsx.snap +558 -0
- package/es/CheckIcon/config.js +11 -0
- package/es/CheckIcon/index.js +9 -0
- package/es/CheckIcon/index.test.js +123 -0
- package/es/CloseIcon/__snapshots__/index.test.tsx.snap +34 -0
- package/es/CloseIcon/config.js +11 -0
- package/es/CloseIcon/index.js +9 -0
- package/es/CloseIcon/index.test.js +9 -0
- package/es/GlobeIcon/__snapshots__/index.test.tsx.snap +149 -0
- package/es/GlobeIcon/config.js +11 -0
- package/es/GlobeIcon/index.js +9 -0
- package/es/GlobeIcon/index.test.js +33 -0
- package/es/MoreVertIcon/__snapshots__/index.test.tsx.snap +738 -0
- package/es/MoreVertIcon/config.js +25 -0
- package/es/MoreVertIcon/index.js +9 -0
- package/es/MoreVertIcon/index.test.js +123 -0
- package/es/SearchIcon/__snapshots__/index.test.tsx.snap +34 -0
- package/es/SearchIcon/config.js +11 -0
- package/es/SearchIcon/index.js +9 -0
- package/es/SearchIcon/index.test.js +9 -0
- package/es/UncheckIcon/__snapshots__/index.test.tsx.snap +558 -0
- package/es/UncheckIcon/config.js +11 -0
- package/es/UncheckIcon/index.js +9 -0
- package/es/UncheckIcon/index.test.js +123 -0
- package/es/icons.js +11 -0
- package/es/index.js +10 -0
- package/es/registry.js +42 -0
- package/esm/AccessibilityIcon/__snapshots__/index.test.tsx.snap +723 -0
- package/esm/AccessibilityIcon/config.js +19 -0
- package/esm/AccessibilityIcon/index.js +9 -0
- package/esm/AccessibilityIcon/index.test.js +131 -0
- package/esm/ArrowIcon/__snapshots__/index.test.tsx.snap +148 -0
- package/esm/ArrowIcon/config.js +27 -0
- package/esm/ArrowIcon/index.js +9 -0
- package/esm/ArrowIcon/index.test.js +33 -0
- package/esm/BurgerIcon/__snapshots__/index.test.tsx.snap +320 -0
- package/esm/BurgerIcon/config.js +32 -0
- package/esm/BurgerIcon/index.js +9 -0
- package/esm/BurgerIcon/index.test.js +50 -0
- package/esm/CaretIcon/__snapshots__/index.test.tsx.snap +148 -0
- package/esm/CaretIcon/config.js +27 -0
- package/esm/CaretIcon/index.js +9 -0
- package/esm/CaretIcon/index.test.js +33 -0
- package/esm/CheckIcon/__snapshots__/index.test.tsx.snap +558 -0
- package/esm/CheckIcon/config.js +11 -0
- package/esm/CheckIcon/index.js +9 -0
- package/esm/CheckIcon/index.test.js +123 -0
- package/esm/CloseIcon/__snapshots__/index.test.tsx.snap +34 -0
- package/esm/CloseIcon/config.js +11 -0
- package/esm/CloseIcon/index.js +9 -0
- package/esm/CloseIcon/index.test.js +9 -0
- package/esm/GlobeIcon/__snapshots__/index.test.tsx.snap +149 -0
- package/esm/GlobeIcon/config.js +11 -0
- package/esm/GlobeIcon/index.js +9 -0
- package/esm/GlobeIcon/index.test.js +33 -0
- package/esm/MoreVertIcon/__snapshots__/index.test.tsx.snap +738 -0
- package/esm/MoreVertIcon/config.js +25 -0
- package/esm/MoreVertIcon/index.js +9 -0
- package/esm/MoreVertIcon/index.test.js +123 -0
- package/esm/SearchIcon/__snapshots__/index.test.tsx.snap +34 -0
- package/esm/SearchIcon/config.js +11 -0
- package/esm/SearchIcon/index.js +9 -0
- package/esm/SearchIcon/index.test.js +9 -0
- package/esm/UncheckIcon/__snapshots__/index.test.tsx.snap +558 -0
- package/esm/UncheckIcon/config.js +11 -0
- package/esm/UncheckIcon/index.js +9 -0
- package/esm/UncheckIcon/index.test.js +123 -0
- package/esm/icons.js +11 -0
- package/esm/index.js +10 -0
- package/esm/registry.js +42 -0
- package/icons.d.ts +32 -0
- package/icons.js +135 -0
- package/index.d.ts +10 -0
- package/index.js +135 -0
- package/package.json +25 -0
- package/registry.d.ts +15 -0
- package/registry.js +67 -0
- package/src/AccessibilityIcon/__snapshots__/index.test.tsx.snap +723 -0
- package/src/AccessibilityIcon/config.tsx +22 -0
- package/src/AccessibilityIcon/index.test.tsx +57 -0
- package/src/AccessibilityIcon/index.tsx +10 -0
- package/src/ArrowIcon/__snapshots__/index.test.tsx.snap +148 -0
- package/src/ArrowIcon/config.tsx +29 -0
- package/src/ArrowIcon/index.test.tsx +20 -0
- package/src/ArrowIcon/index.tsx +8 -0
- package/src/BurgerIcon/__snapshots__/index.test.tsx.snap +320 -0
- package/src/BurgerIcon/config.tsx +25 -0
- package/src/BurgerIcon/index.test.tsx +26 -0
- package/src/BurgerIcon/index.tsx +8 -0
- package/src/CaretIcon/__snapshots__/index.test.tsx.snap +148 -0
- package/src/CaretIcon/config.tsx +21 -0
- package/src/CaretIcon/index.test.tsx +20 -0
- package/src/CaretIcon/index.tsx +8 -0
- package/src/CheckIcon/__snapshots__/index.test.tsx.snap +558 -0
- package/src/CheckIcon/config.tsx +15 -0
- package/src/CheckIcon/index.test.tsx +50 -0
- package/src/CheckIcon/index.tsx +8 -0
- package/src/CloseIcon/__snapshots__/index.test.tsx.snap +34 -0
- package/src/CloseIcon/config.tsx +15 -0
- package/src/CloseIcon/index.test.tsx +8 -0
- package/src/CloseIcon/index.tsx +8 -0
- package/src/GlobeIcon/__snapshots__/index.test.tsx.snap +149 -0
- package/src/GlobeIcon/config.tsx +26 -0
- package/src/GlobeIcon/index.test.tsx +19 -0
- package/src/GlobeIcon/index.tsx +8 -0
- package/src/MoreVertIcon/__snapshots__/index.test.tsx.snap +738 -0
- package/src/MoreVertIcon/config.tsx +17 -0
- package/src/MoreVertIcon/index.test.tsx +50 -0
- package/src/MoreVertIcon/index.tsx +8 -0
- package/src/SearchIcon/__snapshots__/index.test.tsx.snap +34 -0
- package/src/SearchIcon/config.tsx +15 -0
- package/src/SearchIcon/index.test.tsx +8 -0
- package/src/SearchIcon/index.tsx +8 -0
- package/src/UncheckIcon/__snapshots__/index.test.tsx.snap +558 -0
- package/src/UncheckIcon/config.tsx +15 -0
- package/src/UncheckIcon/index.test.tsx +50 -0
- package/src/UncheckIcon/index.tsx +8 -0
- package/src/icons.ts +34 -0
- package/src/index.ts +10 -0
- package/src/registry.js +47 -0
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
|
|
5
|
+
var _react = _interopRequireDefault(require("react"));
|
|
6
|
+
|
|
7
|
+
var _enzyme = require("enzyme");
|
|
8
|
+
|
|
9
|
+
var _UncheckIcon = _interopRequireDefault(require("@digigov/react-icons/UncheckIcon"));
|
|
10
|
+
|
|
11
|
+
var _ref = /*#__PURE__*/_react["default"].createElement(_UncheckIcon["default"], null);
|
|
12
|
+
|
|
13
|
+
it('renders the UncheckIcon with no props', function () {
|
|
14
|
+
expect((0, _enzyme.mount)(_ref)).toMatchSnapshot();
|
|
15
|
+
});
|
|
16
|
+
|
|
17
|
+
var _ref2 = /*#__PURE__*/_react["default"].createElement(_UncheckIcon["default"], {
|
|
18
|
+
size: "sm"
|
|
19
|
+
});
|
|
20
|
+
|
|
21
|
+
it('renders the UncheckIcon with prop size=s', function () {
|
|
22
|
+
expect((0, _enzyme.mount)(_ref2)).toMatchSnapshot();
|
|
23
|
+
});
|
|
24
|
+
|
|
25
|
+
var _ref3 = /*#__PURE__*/_react["default"].createElement(_UncheckIcon["default"], {
|
|
26
|
+
size: "md"
|
|
27
|
+
});
|
|
28
|
+
|
|
29
|
+
it('renders the UncheckIcon with prop size=m', function () {
|
|
30
|
+
expect((0, _enzyme.mount)(_ref3)).toMatchSnapshot();
|
|
31
|
+
});
|
|
32
|
+
|
|
33
|
+
var _ref4 = /*#__PURE__*/_react["default"].createElement(_UncheckIcon["default"], {
|
|
34
|
+
size: "lg"
|
|
35
|
+
});
|
|
36
|
+
|
|
37
|
+
it('renders the UncheckIcon with prop size=l', function () {
|
|
38
|
+
expect((0, _enzyme.mount)(_ref4)).toMatchSnapshot();
|
|
39
|
+
});
|
|
40
|
+
|
|
41
|
+
var _ref5 = /*#__PURE__*/_react["default"].createElement(_UncheckIcon["default"], {
|
|
42
|
+
size: "xl"
|
|
43
|
+
});
|
|
44
|
+
|
|
45
|
+
it('renders the UncheckIcon with prop size=xl', function () {
|
|
46
|
+
expect((0, _enzyme.mount)(_ref5)).toMatchSnapshot();
|
|
47
|
+
});
|
|
48
|
+
|
|
49
|
+
var _ref6 = /*#__PURE__*/_react["default"].createElement(_UncheckIcon["default"], {
|
|
50
|
+
variant: "dark"
|
|
51
|
+
});
|
|
52
|
+
|
|
53
|
+
it('renders the UncheckIcon with prop variant=dark', function () {
|
|
54
|
+
expect((0, _enzyme.mount)(_ref6)).toMatchSnapshot();
|
|
55
|
+
});
|
|
56
|
+
|
|
57
|
+
var _ref7 = /*#__PURE__*/_react["default"].createElement(_UncheckIcon["default"], {
|
|
58
|
+
variant: "light"
|
|
59
|
+
});
|
|
60
|
+
|
|
61
|
+
it('renders the UncheckIcon with prop variant=light', function () {
|
|
62
|
+
expect((0, _enzyme.mount)(_ref7)).toMatchSnapshot();
|
|
63
|
+
});
|
|
64
|
+
|
|
65
|
+
var _ref8 = /*#__PURE__*/_react["default"].createElement(_UncheckIcon["default"], {
|
|
66
|
+
variant: "gray"
|
|
67
|
+
});
|
|
68
|
+
|
|
69
|
+
it('renders the UncheckIcon with prop variant=gray', function () {
|
|
70
|
+
expect((0, _enzyme.mount)(_ref8)).toMatchSnapshot();
|
|
71
|
+
});
|
|
72
|
+
|
|
73
|
+
var _ref9 = /*#__PURE__*/_react["default"].createElement(_UncheckIcon["default"], {
|
|
74
|
+
variant: "primary"
|
|
75
|
+
});
|
|
76
|
+
|
|
77
|
+
it('renders the UncheckIcon with prop variant=primary', function () {
|
|
78
|
+
expect((0, _enzyme.mount)(_ref9)).toMatchSnapshot();
|
|
79
|
+
});
|
|
80
|
+
|
|
81
|
+
var _ref10 = /*#__PURE__*/_react["default"].createElement(_UncheckIcon["default"], {
|
|
82
|
+
variant: "success"
|
|
83
|
+
});
|
|
84
|
+
|
|
85
|
+
it('renders the UncheckIcon with prop variant=success', function () {
|
|
86
|
+
expect((0, _enzyme.mount)(_ref10)).toMatchSnapshot();
|
|
87
|
+
});
|
|
88
|
+
|
|
89
|
+
var _ref11 = /*#__PURE__*/_react["default"].createElement(_UncheckIcon["default"], {
|
|
90
|
+
variant: "warning"
|
|
91
|
+
});
|
|
92
|
+
|
|
93
|
+
it('renders the UncheckIcon with prop variant=warning', function () {
|
|
94
|
+
expect((0, _enzyme.mount)(_ref11)).toMatchSnapshot();
|
|
95
|
+
});
|
|
96
|
+
|
|
97
|
+
var _ref12 = /*#__PURE__*/_react["default"].createElement(_UncheckIcon["default"], {
|
|
98
|
+
variant: "error"
|
|
99
|
+
});
|
|
100
|
+
|
|
101
|
+
it('renders the UncheckIcon with prop variant=error', function () {
|
|
102
|
+
expect((0, _enzyme.mount)(_ref12)).toMatchSnapshot();
|
|
103
|
+
});
|
|
104
|
+
|
|
105
|
+
var _ref13 = /*#__PURE__*/_react["default"].createElement(_UncheckIcon["default"], {
|
|
106
|
+
variant: "focus"
|
|
107
|
+
});
|
|
108
|
+
|
|
109
|
+
it('renders the UncheckIcon with prop variant=focus', function () {
|
|
110
|
+
expect((0, _enzyme.mount)(_ref13)).toMatchSnapshot();
|
|
111
|
+
});
|
|
112
|
+
|
|
113
|
+
var _ref14 = /*#__PURE__*/_react["default"].createElement(_UncheckIcon["default"], {
|
|
114
|
+
variant: "warning",
|
|
115
|
+
size: "sm"
|
|
116
|
+
});
|
|
117
|
+
|
|
118
|
+
it('renders the UncheckIcon with prop variant=warning and size=s', function () {
|
|
119
|
+
expect((0, _enzyme.mount)(_ref14)).toMatchSnapshot();
|
|
120
|
+
});
|
|
121
|
+
|
|
122
|
+
var _ref15 = /*#__PURE__*/_react["default"].createElement(_UncheckIcon["default"], {
|
|
123
|
+
variant: "warning",
|
|
124
|
+
size: "xl"
|
|
125
|
+
});
|
|
126
|
+
|
|
127
|
+
it('renders the UncheckIcon with prop variant=error and size= xl', function () {
|
|
128
|
+
expect((0, _enzyme.mount)(_ref15)).toMatchSnapshot();
|
|
129
|
+
});
|