@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
@@ -86,51 +86,6 @@ exports[`renders the AccessibilityIcon with prop size=l 1`] = `
86
86
  </AccessibilityIcon>
87
87
  `;
88
88
 
89
- exports[`renders the AccessibilityIcon with prop size=m 1`] = `
90
- <AccessibilityIcon
91
- size="md"
92
- >
93
- <ForwardRef(Icon)
94
- icon="accessibility"
95
- size="md"
96
- >
97
- <ForwardRef(SvgIcon)
98
- className="govgr-svg-icon--accessibility"
99
- size="md"
100
- >
101
- <ForwardRef(Base)
102
- aria-hidden="true"
103
- as="svg"
104
- className="govgr-svg-icon--accessibility govgr-svg-icon--md govgr-svg-icon"
105
- focusable="false"
106
- viewBox="0 0 24 24"
107
- >
108
- <svg
109
- aria-hidden="true"
110
- className="govgr-svg-icon--accessibility govgr-svg-icon--md govgr-svg-icon"
111
- focusable="false"
112
- viewBox="0 0 24 24"
113
- >
114
- <accessibility>
115
- <title>
116
- Μενού Προσβασιμότητας
117
- </title>
118
- <circle
119
- cx="12"
120
- cy="3"
121
- r="3"
122
- />
123
- <path
124
- d="M19.76,6.13c-4.94,2.01-10.57,2.01-15.51,0c-0.71-0.3-1.55-0.04-1.98,0.66c-1.41,2.6,3.27,3.76,4.94,4.37 c0.4,0.11,0.81,0.2,1.22,0.28c0.56,0.11,0.92,0.67,0.79,1.25c-0.79,3.66-1.96,9.1-1.96,9.1c-0.46,2.27,2.72,3.15,3.39,0.92L12,17.93 l1.36,4.78c0.67,2.22,3.85,1.36,3.39-0.92c0,0-1.16-5.4-1.95-9.06c-0.12-0.57,0.22-1.16,0.77-1.27c2.01-0.41,3.94-1.17,5.68-2.31 C22.89,8.04,21.58,5.38,19.76,6.13z"
125
- />
126
- </accessibility>
127
- </svg>
128
- </ForwardRef(Base)>
129
- </ForwardRef(SvgIcon)>
130
- </ForwardRef(Icon)>
131
- </AccessibilityIcon>
132
- `;
133
-
134
89
  exports[`renders the AccessibilityIcon with prop size=s 1`] = `
135
90
  <AccessibilityIcon
136
91
  size="sm"
@@ -176,96 +131,6 @@ exports[`renders the AccessibilityIcon with prop size=s 1`] = `
176
131
  </AccessibilityIcon>
177
132
  `;
178
133
 
179
- exports[`renders the AccessibilityIcon with prop size=xl 1`] = `
180
- <AccessibilityIcon
181
- size="xl"
182
- >
183
- <ForwardRef(Icon)
184
- icon="accessibility"
185
- size="xl"
186
- >
187
- <ForwardRef(SvgIcon)
188
- className="govgr-svg-icon--accessibility"
189
- size="xl"
190
- >
191
- <ForwardRef(Base)
192
- aria-hidden="true"
193
- as="svg"
194
- className="govgr-svg-icon--accessibility govgr-svg-icon--xl govgr-svg-icon"
195
- focusable="false"
196
- viewBox="0 0 24 24"
197
- >
198
- <svg
199
- aria-hidden="true"
200
- className="govgr-svg-icon--accessibility govgr-svg-icon--xl govgr-svg-icon"
201
- focusable="false"
202
- viewBox="0 0 24 24"
203
- >
204
- <accessibility>
205
- <title>
206
- Μενού Προσβασιμότητας
207
- </title>
208
- <circle
209
- cx="12"
210
- cy="3"
211
- r="3"
212
- />
213
- <path
214
- d="M19.76,6.13c-4.94,2.01-10.57,2.01-15.51,0c-0.71-0.3-1.55-0.04-1.98,0.66c-1.41,2.6,3.27,3.76,4.94,4.37 c0.4,0.11,0.81,0.2,1.22,0.28c0.56,0.11,0.92,0.67,0.79,1.25c-0.79,3.66-1.96,9.1-1.96,9.1c-0.46,2.27,2.72,3.15,3.39,0.92L12,17.93 l1.36,4.78c0.67,2.22,3.85,1.36,3.39-0.92c0,0-1.16-5.4-1.95-9.06c-0.12-0.57,0.22-1.16,0.77-1.27c2.01-0.41,3.94-1.17,5.68-2.31 C22.89,8.04,21.58,5.38,19.76,6.13z"
215
- />
216
- </accessibility>
217
- </svg>
218
- </ForwardRef(Base)>
219
- </ForwardRef(SvgIcon)>
220
- </ForwardRef(Icon)>
221
- </AccessibilityIcon>
222
- `;
223
-
224
- exports[`renders the AccessibilityIcon with prop size=xl 2`] = `
225
- <AccessibilityIcon
226
- size="xxl"
227
- >
228
- <ForwardRef(Icon)
229
- icon="accessibility"
230
- size="xxl"
231
- >
232
- <ForwardRef(SvgIcon)
233
- className="govgr-svg-icon--accessibility"
234
- size="xxl"
235
- >
236
- <ForwardRef(Base)
237
- aria-hidden="true"
238
- as="svg"
239
- className="govgr-svg-icon--accessibility govgr-svg-icon"
240
- focusable="false"
241
- viewBox="0 0 24 24"
242
- >
243
- <svg
244
- aria-hidden="true"
245
- className="govgr-svg-icon--accessibility govgr-svg-icon"
246
- focusable="false"
247
- viewBox="0 0 24 24"
248
- >
249
- <accessibility>
250
- <title>
251
- Μενού Προσβασιμότητας
252
- </title>
253
- <circle
254
- cx="12"
255
- cy="3"
256
- r="3"
257
- />
258
- <path
259
- d="M19.76,6.13c-4.94,2.01-10.57,2.01-15.51,0c-0.71-0.3-1.55-0.04-1.98,0.66c-1.41,2.6,3.27,3.76,4.94,4.37 c0.4,0.11,0.81,0.2,1.22,0.28c0.56,0.11,0.92,0.67,0.79,1.25c-0.79,3.66-1.96,9.1-1.96,9.1c-0.46,2.27,2.72,3.15,3.39,0.92L12,17.93 l1.36,4.78c0.67,2.22,3.85,1.36,3.39-0.92c0,0-1.16-5.4-1.95-9.06c-0.12-0.57,0.22-1.16,0.77-1.27c2.01-0.41,3.94-1.17,5.68-2.31 C22.89,8.04,21.58,5.38,19.76,6.13z"
260
- />
261
- </accessibility>
262
- </svg>
263
- </ForwardRef(Base)>
264
- </ForwardRef(SvgIcon)>
265
- </ForwardRef(Icon)>
266
- </AccessibilityIcon>
267
- `;
268
-
269
134
  exports[`renders the AccessibilityIcon with prop variant=dark 1`] = `
270
135
  <AccessibilityIcon
271
136
  variant="dark"
@@ -404,141 +269,6 @@ exports[`renders the AccessibilityIcon with prop variant=error and size= xl 1`]
404
269
  </AccessibilityIcon>
405
270
  `;
406
271
 
407
- exports[`renders the AccessibilityIcon with prop variant=focus 1`] = `
408
- <AccessibilityIcon
409
- variant="focus"
410
- >
411
- <ForwardRef(Icon)
412
- icon="accessibility"
413
- variant="focus"
414
- >
415
- <ForwardRef(SvgIcon)
416
- className="govgr-svg-icon--accessibility"
417
- variant="focus"
418
- >
419
- <ForwardRef(Base)
420
- aria-hidden="true"
421
- as="svg"
422
- className="govgr-svg-icon--accessibility govgr-svg-icon--focus govgr-svg-icon"
423
- focusable="false"
424
- viewBox="0 0 24 24"
425
- >
426
- <svg
427
- aria-hidden="true"
428
- className="govgr-svg-icon--accessibility govgr-svg-icon--focus govgr-svg-icon"
429
- focusable="false"
430
- viewBox="0 0 24 24"
431
- >
432
- <accessibility>
433
- <title>
434
- Μενού Προσβασιμότητας
435
- </title>
436
- <circle
437
- cx="12"
438
- cy="3"
439
- r="3"
440
- />
441
- <path
442
- d="M19.76,6.13c-4.94,2.01-10.57,2.01-15.51,0c-0.71-0.3-1.55-0.04-1.98,0.66c-1.41,2.6,3.27,3.76,4.94,4.37 c0.4,0.11,0.81,0.2,1.22,0.28c0.56,0.11,0.92,0.67,0.79,1.25c-0.79,3.66-1.96,9.1-1.96,9.1c-0.46,2.27,2.72,3.15,3.39,0.92L12,17.93 l1.36,4.78c0.67,2.22,3.85,1.36,3.39-0.92c0,0-1.16-5.4-1.95-9.06c-0.12-0.57,0.22-1.16,0.77-1.27c2.01-0.41,3.94-1.17,5.68-2.31 C22.89,8.04,21.58,5.38,19.76,6.13z"
443
- />
444
- </accessibility>
445
- </svg>
446
- </ForwardRef(Base)>
447
- </ForwardRef(SvgIcon)>
448
- </ForwardRef(Icon)>
449
- </AccessibilityIcon>
450
- `;
451
-
452
- exports[`renders the AccessibilityIcon with prop variant=gray 1`] = `
453
- <AccessibilityIcon
454
- variant="gray"
455
- >
456
- <ForwardRef(Icon)
457
- icon="accessibility"
458
- variant="gray"
459
- >
460
- <ForwardRef(SvgIcon)
461
- className="govgr-svg-icon--accessibility"
462
- variant="gray"
463
- >
464
- <ForwardRef(Base)
465
- aria-hidden="true"
466
- as="svg"
467
- className="govgr-svg-icon--accessibility govgr-svg-icon--gray govgr-svg-icon"
468
- focusable="false"
469
- viewBox="0 0 24 24"
470
- >
471
- <svg
472
- aria-hidden="true"
473
- className="govgr-svg-icon--accessibility govgr-svg-icon--gray govgr-svg-icon"
474
- focusable="false"
475
- viewBox="0 0 24 24"
476
- >
477
- <accessibility>
478
- <title>
479
- Μενού Προσβασιμότητας
480
- </title>
481
- <circle
482
- cx="12"
483
- cy="3"
484
- r="3"
485
- />
486
- <path
487
- d="M19.76,6.13c-4.94,2.01-10.57,2.01-15.51,0c-0.71-0.3-1.55-0.04-1.98,0.66c-1.41,2.6,3.27,3.76,4.94,4.37 c0.4,0.11,0.81,0.2,1.22,0.28c0.56,0.11,0.92,0.67,0.79,1.25c-0.79,3.66-1.96,9.1-1.96,9.1c-0.46,2.27,2.72,3.15,3.39,0.92L12,17.93 l1.36,4.78c0.67,2.22,3.85,1.36,3.39-0.92c0,0-1.16-5.4-1.95-9.06c-0.12-0.57,0.22-1.16,0.77-1.27c2.01-0.41,3.94-1.17,5.68-2.31 C22.89,8.04,21.58,5.38,19.76,6.13z"
488
- />
489
- </accessibility>
490
- </svg>
491
- </ForwardRef(Base)>
492
- </ForwardRef(SvgIcon)>
493
- </ForwardRef(Icon)>
494
- </AccessibilityIcon>
495
- `;
496
-
497
- exports[`renders the AccessibilityIcon with prop variant=light 1`] = `
498
- <AccessibilityIcon
499
- variant="light"
500
- >
501
- <ForwardRef(Icon)
502
- icon="accessibility"
503
- variant="light"
504
- >
505
- <ForwardRef(SvgIcon)
506
- className="govgr-svg-icon--accessibility"
507
- variant="light"
508
- >
509
- <ForwardRef(Base)
510
- aria-hidden="true"
511
- as="svg"
512
- className="govgr-svg-icon--accessibility govgr-svg-icon--light govgr-svg-icon"
513
- focusable="false"
514
- viewBox="0 0 24 24"
515
- >
516
- <svg
517
- aria-hidden="true"
518
- className="govgr-svg-icon--accessibility govgr-svg-icon--light govgr-svg-icon"
519
- focusable="false"
520
- viewBox="0 0 24 24"
521
- >
522
- <accessibility>
523
- <title>
524
- Μενού Προσβασιμότητας
525
- </title>
526
- <circle
527
- cx="12"
528
- cy="3"
529
- r="3"
530
- />
531
- <path
532
- d="M19.76,6.13c-4.94,2.01-10.57,2.01-15.51,0c-0.71-0.3-1.55-0.04-1.98,0.66c-1.41,2.6,3.27,3.76,4.94,4.37 c0.4,0.11,0.81,0.2,1.22,0.28c0.56,0.11,0.92,0.67,0.79,1.25c-0.79,3.66-1.96,9.1-1.96,9.1c-0.46,2.27,2.72,3.15,3.39,0.92L12,17.93 l1.36,4.78c0.67,2.22,3.85,1.36,3.39-0.92c0,0-1.16-5.4-1.95-9.06c-0.12-0.57,0.22-1.16,0.77-1.27c2.01-0.41,3.94-1.17,5.68-2.31 C22.89,8.04,21.58,5.38,19.76,6.13z"
533
- />
534
- </accessibility>
535
- </svg>
536
- </ForwardRef(Base)>
537
- </ForwardRef(SvgIcon)>
538
- </ForwardRef(Icon)>
539
- </AccessibilityIcon>
540
- `;
541
-
542
272
  exports[`renders the AccessibilityIcon with prop variant=primary 1`] = `
543
273
  <AccessibilityIcon
544
274
  variant="primary"
@@ -629,51 +359,6 @@ exports[`renders the AccessibilityIcon with prop variant=success 1`] = `
629
359
  </AccessibilityIcon>
630
360
  `;
631
361
 
632
- exports[`renders the AccessibilityIcon with prop variant=warning 1`] = `
633
- <AccessibilityIcon
634
- variant="warning"
635
- >
636
- <ForwardRef(Icon)
637
- icon="accessibility"
638
- variant="warning"
639
- >
640
- <ForwardRef(SvgIcon)
641
- className="govgr-svg-icon--accessibility"
642
- variant="warning"
643
- >
644
- <ForwardRef(Base)
645
- aria-hidden="true"
646
- as="svg"
647
- className="govgr-svg-icon--accessibility govgr-svg-icon--warning govgr-svg-icon"
648
- focusable="false"
649
- viewBox="0 0 24 24"
650
- >
651
- <svg
652
- aria-hidden="true"
653
- className="govgr-svg-icon--accessibility govgr-svg-icon--warning govgr-svg-icon"
654
- focusable="false"
655
- viewBox="0 0 24 24"
656
- >
657
- <accessibility>
658
- <title>
659
- Μενού Προσβασιμότητας
660
- </title>
661
- <circle
662
- cx="12"
663
- cy="3"
664
- r="3"
665
- />
666
- <path
667
- d="M19.76,6.13c-4.94,2.01-10.57,2.01-15.51,0c-0.71-0.3-1.55-0.04-1.98,0.66c-1.41,2.6,3.27,3.76,4.94,4.37 c0.4,0.11,0.81,0.2,1.22,0.28c0.56,0.11,0.92,0.67,0.79,1.25c-0.79,3.66-1.96,9.1-1.96,9.1c-0.46,2.27,2.72,3.15,3.39,0.92L12,17.93 l1.36,4.78c0.67,2.22,3.85,1.36,3.39-0.92c0,0-1.16-5.4-1.95-9.06c-0.12-0.57,0.22-1.16,0.77-1.27c2.01-0.41,3.94-1.17,5.68-2.31 C22.89,8.04,21.58,5.38,19.76,6.13z"
668
- />
669
- </accessibility>
670
- </svg>
671
- </ForwardRef(Base)>
672
- </ForwardRef(SvgIcon)>
673
- </ForwardRef(Icon)>
674
- </AccessibilityIcon>
675
- `;
676
-
677
362
  exports[`renders the AccessibilityIcon with prop variant=warning and size=s 1`] = `
678
363
  <AccessibilityIcon
679
364
  size="sm"
@@ -9,42 +9,21 @@ it('renders the AccessibilityIcon with no props', () => {
9
9
  it('renders the AccessibilityIcon with prop size=s', () => {
10
10
  expect(mount(<AccessibilityIcon size="sm" />)).toMatchSnapshot();
11
11
  });
12
- it('renders the AccessibilityIcon with prop size=m', () => {
13
- expect(mount(<AccessibilityIcon size="md" />)).toMatchSnapshot();
14
- });
15
12
  it('renders the AccessibilityIcon with prop size=l', () => {
16
13
  expect(mount(<AccessibilityIcon size="lg" />)).toMatchSnapshot();
17
14
  });
18
- it('renders the AccessibilityIcon with prop size=xl', () => {
19
- expect(mount(<AccessibilityIcon size="xl" />)).toMatchSnapshot();
20
- });
21
- it('renders the AccessibilityIcon with prop size=xl', () => {
22
- expect(mount(<AccessibilityIcon size="xxl" />)).toMatchSnapshot();
23
- });
24
15
  it('renders the AccessibilityIcon with prop variant=dark', () => {
25
16
  expect(mount(<AccessibilityIcon variant="dark" />)).toMatchSnapshot();
26
17
  });
27
- it('renders the AccessibilityIcon with prop variant=light', () => {
28
- expect(mount(<AccessibilityIcon variant="light" />)).toMatchSnapshot();
29
- });
30
- it('renders the AccessibilityIcon with prop variant=gray', () => {
31
- expect(mount(<AccessibilityIcon variant="gray" />)).toMatchSnapshot();
32
- });
33
18
  it('renders the AccessibilityIcon with prop variant=primary', () => {
34
19
  expect(mount(<AccessibilityIcon variant="primary" />)).toMatchSnapshot();
35
20
  });
36
21
  it('renders the AccessibilityIcon with prop variant=success', () => {
37
22
  expect(mount(<AccessibilityIcon variant="success" />)).toMatchSnapshot();
38
23
  });
39
- it('renders the AccessibilityIcon with prop variant=warning', () => {
40
- expect(mount(<AccessibilityIcon variant="warning" />)).toMatchSnapshot();
41
- });
42
24
  it('renders the AccessibilityIcon with prop variant=error', () => {
43
25
  expect(mount(<AccessibilityIcon variant="error" />)).toMatchSnapshot();
44
26
  });
45
- it('renders the AccessibilityIcon with prop variant=focus', () => {
46
- expect(mount(<AccessibilityIcon variant="focus" />)).toMatchSnapshot();
47
- });
48
27
  it('renders the AccessibilityIcon with prop variant=warning and size=s', () => {
49
28
  expect(
50
29
  mount(<AccessibilityIcon variant="warning" size="sm" />)
@@ -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 AccessibilityIcon: React.FC<IconProps<'accessibility'>> = (
5
5
  props
@@ -137,7 +137,7 @@ exports[`renders the ArrowIcon with no props, direction prop is right by default
137
137
  >
138
138
  <arrow>
139
139
  <path
140
- d="M14.8,22l2.4-2.3L9.6,12l7.6-7.6L14.8,2l-10,10L14.8,22z"
140
+ d="M8.5,2L6.1,4.3l7.6,7.7l-7.6,7.6L8.5,22l10-10L8.5,2z"
141
141
  />
142
142
  </arrow>
143
143
  </svg>
@@ -1,7 +1,14 @@
1
1
  import React from 'react';
2
2
 
3
3
  export interface ArrowType {
4
- direction?: 'left' | 'right' | 'up' | 'down';
4
+ /**
5
+ * @value 'left'
6
+ * @value 'right'
7
+ * @value 'up'
8
+ * @value 'down'
9
+ * @default 'right'
10
+ */
11
+ direction?: 'left' | 'right' | 'up' | 'down'
5
12
  }
6
13
 
7
14
  export const arrow: React.FC<ArrowType> = ({ direction = 'right' }) => {
@@ -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 ArrowIcon: React.FC<IconProps<'arrow'>> = (props) => {
5
5
  return <Icon {...props} icon="arrow"></Icon>;
@@ -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 BurgerIcon: React.FC<IconProps<'burger'>> = (props) => {
5
5
  return <Icon {...props} icon="burger"></Icon>;
@@ -1,7 +1,14 @@
1
1
  import React from 'react';
2
2
 
3
3
  export interface CaretType {
4
- direction?: 'left' | 'right' | 'up' | 'down';
4
+ /**
5
+ * @value 'left'
6
+ * @value 'right'
7
+ * @value 'up'
8
+ * @value 'down'
9
+ * @default 'left'
10
+ */
11
+ direction?: 'left' | 'right' | 'up' | 'down'
5
12
  }
6
13
 
7
14
  export const caret: React.FC<CaretType> = ({ direction = 'left' }) => {
@@ -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 CaretIcon: React.FC<IconProps<'caret'>> = (props) => {
5
5
  return <Icon {...props} icon="caret"></Icon>;