@digigov/react-icons 1.0.0-rc → 1.0.0-rc.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (110) hide show
  1. package/AccessibilityIcon/__snapshots__/index.test.tsx.snap +0 -315
  2. package/AccessibilityIcon/index.d.ts +1 -1
  3. package/AccessibilityIcon/index.js +1 -1
  4. package/AccessibilityIcon/index.test.js +13 -69
  5. package/ArrowIcon/__snapshots__/index.test.tsx.snap +1 -1
  6. package/ArrowIcon/config.d.ts +7 -0
  7. package/ArrowIcon/index.d.ts +1 -1
  8. package/ArrowIcon/index.js +1 -1
  9. package/BurgerIcon/index.d.ts +1 -1
  10. package/BurgerIcon/index.js +1 -1
  11. package/CaretIcon/config.d.ts +7 -0
  12. package/CaretIcon/index.d.ts +1 -1
  13. package/CaretIcon/index.js +1 -1
  14. package/CheckIcon/__snapshots__/index.test.tsx.snap +0 -259
  15. package/CheckIcon/index.d.ts +1 -1
  16. package/CheckIcon/index.js +1 -1
  17. package/CheckIcon/index.test.js +13 -69
  18. package/CloseIcon/index.d.ts +1 -1
  19. package/CloseIcon/index.js +1 -1
  20. package/GlobeIcon/index.d.ts +1 -1
  21. package/GlobeIcon/index.js +1 -1
  22. package/Icon/__snapshots__/index.test.tsx.snap +343 -0
  23. package/Icon/index.d.ts +25 -0
  24. package/Icon/index.js +58 -0
  25. package/Icon/index.test.d.ts +1 -0
  26. package/Icon/index.test.js +88 -0
  27. package/MoreVertIcon/__snapshots__/index.test.tsx.snap +0 -294
  28. package/MoreVertIcon/index.d.ts +1 -1
  29. package/MoreVertIcon/index.js +1 -1
  30. package/MoreVertIcon/index.test.js +13 -61
  31. package/SearchIcon/index.d.ts +1 -1
  32. package/SearchIcon/index.js +1 -1
  33. package/UncheckIcon/__snapshots__/index.test.tsx.snap +0 -222
  34. package/UncheckIcon/index.d.ts +1 -1
  35. package/UncheckIcon/index.js +1 -1
  36. package/UncheckIcon/index.test.js +15 -63
  37. package/es/AccessibilityIcon/__snapshots__/index.test.tsx.snap +0 -315
  38. package/es/AccessibilityIcon/index.js +1 -1
  39. package/es/AccessibilityIcon/index.test.js +13 -69
  40. package/es/ArrowIcon/__snapshots__/index.test.tsx.snap +1 -1
  41. package/es/ArrowIcon/index.js +1 -1
  42. package/es/BurgerIcon/index.js +1 -1
  43. package/es/CaretIcon/index.js +1 -1
  44. package/es/CheckIcon/__snapshots__/index.test.tsx.snap +0 -259
  45. package/es/CheckIcon/index.js +1 -1
  46. package/es/CheckIcon/index.test.js +13 -69
  47. package/es/CloseIcon/index.js +1 -1
  48. package/es/GlobeIcon/index.js +1 -1
  49. package/es/Icon/__snapshots__/index.test.tsx.snap +343 -0
  50. package/es/Icon/index.js +34 -0
  51. package/es/Icon/index.test.js +82 -0
  52. package/es/MoreVertIcon/__snapshots__/index.test.tsx.snap +0 -294
  53. package/es/MoreVertIcon/index.js +1 -1
  54. package/es/MoreVertIcon/index.test.js +13 -61
  55. package/es/SearchIcon/index.js +1 -1
  56. package/es/UncheckIcon/__snapshots__/index.test.tsx.snap +0 -222
  57. package/es/UncheckIcon/index.js +1 -1
  58. package/es/UncheckIcon/index.test.js +15 -63
  59. package/es/registry.js +2 -0
  60. package/esm/AccessibilityIcon/__snapshots__/index.test.tsx.snap +0 -315
  61. package/esm/AccessibilityIcon/index.js +1 -1
  62. package/esm/AccessibilityIcon/index.test.js +13 -69
  63. package/esm/ArrowIcon/__snapshots__/index.test.tsx.snap +1 -1
  64. package/esm/ArrowIcon/index.js +1 -1
  65. package/esm/BurgerIcon/index.js +1 -1
  66. package/esm/CaretIcon/index.js +1 -1
  67. package/esm/CheckIcon/__snapshots__/index.test.tsx.snap +0 -259
  68. package/esm/CheckIcon/index.js +1 -1
  69. package/esm/CheckIcon/index.test.js +13 -69
  70. package/esm/CloseIcon/index.js +1 -1
  71. package/esm/GlobeIcon/index.js +1 -1
  72. package/esm/Icon/__snapshots__/index.test.tsx.snap +343 -0
  73. package/esm/Icon/index.js +34 -0
  74. package/esm/Icon/index.test.js +82 -0
  75. package/esm/MoreVertIcon/__snapshots__/index.test.tsx.snap +0 -294
  76. package/esm/MoreVertIcon/index.js +1 -1
  77. package/esm/MoreVertIcon/index.test.js +13 -61
  78. package/esm/SearchIcon/index.js +1 -1
  79. package/esm/UncheckIcon/__snapshots__/index.test.tsx.snap +0 -222
  80. package/esm/UncheckIcon/index.js +1 -1
  81. package/esm/UncheckIcon/index.test.js +15 -63
  82. package/esm/registry.js +2 -0
  83. package/package.json +2 -3
  84. package/registry.d.ts +1 -0
  85. package/registry.js +3 -0
  86. package/src/AccessibilityIcon/__snapshots__/index.test.tsx.snap +0 -315
  87. package/src/AccessibilityIcon/index.test.tsx +0 -21
  88. package/src/AccessibilityIcon/index.tsx +1 -1
  89. package/src/ArrowIcon/__snapshots__/index.test.tsx.snap +1 -1
  90. package/src/ArrowIcon/config.tsx +8 -1
  91. package/src/ArrowIcon/index.tsx +1 -1
  92. package/src/BurgerIcon/index.tsx +1 -1
  93. package/src/CaretIcon/config.tsx +8 -1
  94. package/src/CaretIcon/index.tsx +1 -1
  95. package/src/CheckIcon/__snapshots__/index.test.tsx.snap +0 -259
  96. package/src/CheckIcon/index.test.tsx +0 -21
  97. package/src/CheckIcon/index.tsx +1 -1
  98. package/src/CloseIcon/index.tsx +1 -1
  99. package/src/GlobeIcon/index.tsx +1 -1
  100. package/src/Icon/__snapshots__/index.test.tsx.snap +343 -0
  101. package/src/Icon/index.test.tsx +36 -0
  102. package/src/Icon/index.tsx +63 -0
  103. package/src/MoreVertIcon/__snapshots__/index.test.tsx.snap +0 -294
  104. package/src/MoreVertIcon/index.test.tsx +0 -18
  105. package/src/MoreVertIcon/index.tsx +1 -1
  106. package/src/SearchIcon/index.tsx +1 -1
  107. package/src/UncheckIcon/__snapshots__/index.test.tsx.snap +0 -222
  108. package/src/UncheckIcon/index.test.tsx +0 -18
  109. package/src/UncheckIcon/index.tsx +1 -1
  110. package/src/registry.js +2 -0
@@ -107,80 +107,6 @@ exports[`renders the UncheckIcon with prop size=m 1`] = `
107
107
  </UncheckIcon>
108
108
  `;
109
109
 
110
- exports[`renders the UncheckIcon with prop size=s 1`] = `
111
- <UncheckIcon
112
- size="sm"
113
- >
114
- <ForwardRef(Icon)
115
- icon="uncheck"
116
- size="sm"
117
- >
118
- <ForwardRef(SvgIcon)
119
- className="govgr-svg-icon--uncheck"
120
- size="sm"
121
- >
122
- <ForwardRef(Base)
123
- aria-hidden="true"
124
- as="svg"
125
- className="govgr-svg-icon--uncheck govgr-svg-icon--sm govgr-svg-icon"
126
- focusable="false"
127
- viewBox="0 0 24 24"
128
- >
129
- <svg
130
- aria-hidden="true"
131
- className="govgr-svg-icon--uncheck govgr-svg-icon--sm govgr-svg-icon"
132
- focusable="false"
133
- viewBox="0 0 24 24"
134
- >
135
- <uncheck>
136
- <polygon
137
- points="20.59 5.74 18.26 3.41 12 9.67 5.742 3.41 3.41 5.74 9.67 12 3.41 18.26 5.74 20.6 12 14.33 18.26 20.59 20.59 18.26 14.33 12 20.59 5.74"
138
- />
139
- </uncheck>
140
- </svg>
141
- </ForwardRef(Base)>
142
- </ForwardRef(SvgIcon)>
143
- </ForwardRef(Icon)>
144
- </UncheckIcon>
145
- `;
146
-
147
- exports[`renders the UncheckIcon with prop size=xl 1`] = `
148
- <UncheckIcon
149
- size="xl"
150
- >
151
- <ForwardRef(Icon)
152
- icon="uncheck"
153
- size="xl"
154
- >
155
- <ForwardRef(SvgIcon)
156
- className="govgr-svg-icon--uncheck"
157
- size="xl"
158
- >
159
- <ForwardRef(Base)
160
- aria-hidden="true"
161
- as="svg"
162
- className="govgr-svg-icon--uncheck govgr-svg-icon--xl govgr-svg-icon"
163
- focusable="false"
164
- viewBox="0 0 24 24"
165
- >
166
- <svg
167
- aria-hidden="true"
168
- className="govgr-svg-icon--uncheck govgr-svg-icon--xl govgr-svg-icon"
169
- focusable="false"
170
- viewBox="0 0 24 24"
171
- >
172
- <uncheck>
173
- <polygon
174
- points="20.59 5.74 18.26 3.41 12 9.67 5.742 3.41 3.41 5.74 9.67 12 3.41 18.26 5.74 20.6 12 14.33 18.26 20.59 20.59 18.26 14.33 12 20.59 5.74"
175
- />
176
- </uncheck>
177
- </svg>
178
- </ForwardRef(Base)>
179
- </ForwardRef(SvgIcon)>
180
- </ForwardRef(Icon)>
181
- </UncheckIcon>
182
- `;
183
-
184
110
  exports[`renders the UncheckIcon with prop variant=dark 1`] = `
185
111
  <UncheckIcon
186
112
  variant="dark"
@@ -218,43 +144,6 @@ exports[`renders the UncheckIcon with prop variant=dark 1`] = `
218
144
  </UncheckIcon>
219
145
  `;
220
146
 
221
- exports[`renders the UncheckIcon with prop variant=error 1`] = `
222
- <UncheckIcon
223
- variant="error"
224
- >
225
- <ForwardRef(Icon)
226
- icon="uncheck"
227
- variant="error"
228
- >
229
- <ForwardRef(SvgIcon)
230
- className="govgr-svg-icon--uncheck"
231
- variant="error"
232
- >
233
- <ForwardRef(Base)
234
- aria-hidden="true"
235
- as="svg"
236
- className="govgr-svg-icon--uncheck govgr-svg-icon--error govgr-svg-icon"
237
- focusable="false"
238
- viewBox="0 0 24 24"
239
- >
240
- <svg
241
- aria-hidden="true"
242
- className="govgr-svg-icon--uncheck govgr-svg-icon--error govgr-svg-icon"
243
- focusable="false"
244
- viewBox="0 0 24 24"
245
- >
246
- <uncheck>
247
- <polygon
248
- points="20.59 5.74 18.26 3.41 12 9.67 5.742 3.41 3.41 5.74 9.67 12 3.41 18.26 5.74 20.6 12 14.33 18.26 20.59 20.59 18.26 14.33 12 20.59 5.74"
249
- />
250
- </uncheck>
251
- </svg>
252
- </ForwardRef(Base)>
253
- </ForwardRef(SvgIcon)>
254
- </ForwardRef(Icon)>
255
- </UncheckIcon>
256
- `;
257
-
258
147
  exports[`renders the UncheckIcon with prop variant=error and size= xl 1`] = `
259
148
  <UncheckIcon
260
149
  size="xl"
@@ -295,43 +184,6 @@ exports[`renders the UncheckIcon with prop variant=error and size= xl 1`] = `
295
184
  </UncheckIcon>
296
185
  `;
297
186
 
298
- exports[`renders the UncheckIcon with prop variant=focus 1`] = `
299
- <UncheckIcon
300
- variant="focus"
301
- >
302
- <ForwardRef(Icon)
303
- icon="uncheck"
304
- variant="focus"
305
- >
306
- <ForwardRef(SvgIcon)
307
- className="govgr-svg-icon--uncheck"
308
- variant="focus"
309
- >
310
- <ForwardRef(Base)
311
- aria-hidden="true"
312
- as="svg"
313
- className="govgr-svg-icon--uncheck govgr-svg-icon--focus govgr-svg-icon"
314
- focusable="false"
315
- viewBox="0 0 24 24"
316
- >
317
- <svg
318
- aria-hidden="true"
319
- className="govgr-svg-icon--uncheck govgr-svg-icon--focus govgr-svg-icon"
320
- focusable="false"
321
- viewBox="0 0 24 24"
322
- >
323
- <uncheck>
324
- <polygon
325
- points="20.59 5.74 18.26 3.41 12 9.67 5.742 3.41 3.41 5.74 9.67 12 3.41 18.26 5.74 20.6 12 14.33 18.26 20.59 20.59 18.26 14.33 12 20.59 5.74"
326
- />
327
- </uncheck>
328
- </svg>
329
- </ForwardRef(Base)>
330
- </ForwardRef(SvgIcon)>
331
- </ForwardRef(Icon)>
332
- </UncheckIcon>
333
- `;
334
-
335
187
  exports[`renders the UncheckIcon with prop variant=gray 1`] = `
336
188
  <UncheckIcon
337
189
  variant="gray"
@@ -443,80 +295,6 @@ exports[`renders the UncheckIcon with prop variant=primary 1`] = `
443
295
  </UncheckIcon>
444
296
  `;
445
297
 
446
- exports[`renders the UncheckIcon with prop variant=success 1`] = `
447
- <UncheckIcon
448
- variant="success"
449
- >
450
- <ForwardRef(Icon)
451
- icon="uncheck"
452
- variant="success"
453
- >
454
- <ForwardRef(SvgIcon)
455
- className="govgr-svg-icon--uncheck"
456
- variant="success"
457
- >
458
- <ForwardRef(Base)
459
- aria-hidden="true"
460
- as="svg"
461
- className="govgr-svg-icon--uncheck govgr-svg-icon--success govgr-svg-icon"
462
- focusable="false"
463
- viewBox="0 0 24 24"
464
- >
465
- <svg
466
- aria-hidden="true"
467
- className="govgr-svg-icon--uncheck govgr-svg-icon--success govgr-svg-icon"
468
- focusable="false"
469
- viewBox="0 0 24 24"
470
- >
471
- <uncheck>
472
- <polygon
473
- points="20.59 5.74 18.26 3.41 12 9.67 5.742 3.41 3.41 5.74 9.67 12 3.41 18.26 5.74 20.6 12 14.33 18.26 20.59 20.59 18.26 14.33 12 20.59 5.74"
474
- />
475
- </uncheck>
476
- </svg>
477
- </ForwardRef(Base)>
478
- </ForwardRef(SvgIcon)>
479
- </ForwardRef(Icon)>
480
- </UncheckIcon>
481
- `;
482
-
483
- exports[`renders the UncheckIcon with prop variant=warning 1`] = `
484
- <UncheckIcon
485
- variant="warning"
486
- >
487
- <ForwardRef(Icon)
488
- icon="uncheck"
489
- variant="warning"
490
- >
491
- <ForwardRef(SvgIcon)
492
- className="govgr-svg-icon--uncheck"
493
- variant="warning"
494
- >
495
- <ForwardRef(Base)
496
- aria-hidden="true"
497
- as="svg"
498
- className="govgr-svg-icon--uncheck govgr-svg-icon--warning govgr-svg-icon"
499
- focusable="false"
500
- viewBox="0 0 24 24"
501
- >
502
- <svg
503
- aria-hidden="true"
504
- className="govgr-svg-icon--uncheck govgr-svg-icon--warning govgr-svg-icon"
505
- focusable="false"
506
- viewBox="0 0 24 24"
507
- >
508
- <uncheck>
509
- <polygon
510
- points="20.59 5.74 18.26 3.41 12 9.67 5.742 3.41 3.41 5.74 9.67 12 3.41 18.26 5.74 20.6 12 14.33 18.26 20.59 20.59 18.26 14.33 12 20.59 5.74"
511
- />
512
- </uncheck>
513
- </svg>
514
- </ForwardRef(Base)>
515
- </ForwardRef(SvgIcon)>
516
- </ForwardRef(Icon)>
517
- </UncheckIcon>
518
- `;
519
-
520
298
  exports[`renders the UncheckIcon with prop variant=warning and size=s 1`] = `
521
299
  <UncheckIcon
522
300
  size="sm"
@@ -6,18 +6,12 @@ import UncheckIcon from '@digigov/react-icons/UncheckIcon';
6
6
  it('renders the UncheckIcon with no props', () => {
7
7
  expect(mount(<UncheckIcon />)).toMatchSnapshot();
8
8
  });
9
- it('renders the UncheckIcon with prop size=s', () => {
10
- expect(mount(<UncheckIcon size="sm" />)).toMatchSnapshot();
11
- });
12
9
  it('renders the UncheckIcon with prop size=m', () => {
13
10
  expect(mount(<UncheckIcon size="md" />)).toMatchSnapshot();
14
11
  });
15
12
  it('renders the UncheckIcon with prop size=l', () => {
16
13
  expect(mount(<UncheckIcon size="lg" />)).toMatchSnapshot();
17
14
  });
18
- it('renders the UncheckIcon with prop size=xl', () => {
19
- expect(mount(<UncheckIcon size="xl" />)).toMatchSnapshot();
20
- });
21
15
  it('renders the UncheckIcon with prop variant=dark', () => {
22
16
  expect(mount(<UncheckIcon variant="dark" />)).toMatchSnapshot();
23
17
  });
@@ -30,18 +24,6 @@ it('renders the UncheckIcon with prop variant=gray', () => {
30
24
  it('renders the UncheckIcon with prop variant=primary', () => {
31
25
  expect(mount(<UncheckIcon variant="primary" />)).toMatchSnapshot();
32
26
  });
33
- it('renders the UncheckIcon with prop variant=success', () => {
34
- expect(mount(<UncheckIcon variant="success" />)).toMatchSnapshot();
35
- });
36
- it('renders the UncheckIcon with prop variant=warning', () => {
37
- expect(mount(<UncheckIcon variant="warning" />)).toMatchSnapshot();
38
- });
39
- it('renders the UncheckIcon with prop variant=error', () => {
40
- expect(mount(<UncheckIcon variant="error" />)).toMatchSnapshot();
41
- });
42
- it('renders the UncheckIcon with prop variant=focus', () => {
43
- expect(mount(<UncheckIcon variant="focus" />)).toMatchSnapshot();
44
- });
45
27
  it('renders the UncheckIcon with prop variant=warning and size=s', () => {
46
28
  expect(mount(<UncheckIcon variant="warning" size="sm" />)).toMatchSnapshot();
47
29
  });
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import Icon, { IconProps } from '@digigov/react-core/Icon';
2
+ import Icon, { IconProps } from '@digigov/react-icons/Icon';
3
3
 
4
4
  export const UncheckIcon: React.FC<IconProps<'uncheck'>> = (props) => {
5
5
  return <Icon {...props} icon="uncheck"></Icon>;
package/src/registry.js CHANGED
@@ -6,6 +6,7 @@ import * as _digigov_react_icons_CaretIcon from '@digigov/react-icons/CaretIcon'
6
6
  import * as _digigov_react_icons_CheckIcon from '@digigov/react-icons/CheckIcon';
7
7
  import * as _digigov_react_icons_CloseIcon from '@digigov/react-icons/CloseIcon';
8
8
  import * as _digigov_react_icons_GlobeIcon from '@digigov/react-icons/GlobeIcon';
9
+ import * as _digigov_react_icons_Icon from '@digigov/react-icons/Icon';
9
10
  import * as _digigov_react_icons_icons from '@digigov/react-icons/icons';
10
11
  import * as _digigov_react_icons from '@digigov/react-icons';
11
12
  import * as _digigov_react_icons_MoreVertIcon from '@digigov/react-icons/MoreVertIcon';
@@ -38,6 +39,7 @@ export default {
38
39
  '@digigov/react-icons/CheckIcon': lazyImport(_digigov_react_icons_CheckIcon),
39
40
  '@digigov/react-icons/CloseIcon': lazyImport(_digigov_react_icons_CloseIcon),
40
41
  '@digigov/react-icons/GlobeIcon': lazyImport(_digigov_react_icons_GlobeIcon),
42
+ '@digigov/react-icons/Icon': lazyImport(_digigov_react_icons_Icon),
41
43
  '@digigov/react-icons/icons': lazyImport(_digigov_react_icons_icons),
42
44
  '@digigov/react-icons': lazyImport(_digigov_react_icons),
43
45
  '@digigov/react-icons/MoreVertIcon': lazyImport(_digigov_react_icons_MoreVertIcon),