@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"
@@ -1,4 +1,4 @@
1
1
  import React from 'react';
2
- import { IconProps } from '@digigov/react-core/Icon';
2
+ import { IconProps } from '@digigov/react-icons/Icon';
3
3
  export declare const AccessibilityIcon: React.FC<IconProps<'accessibility'>>;
4
4
  export default AccessibilityIcon;
@@ -11,7 +11,7 @@ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends")
11
11
 
12
12
  var _react = _interopRequireDefault(require("react"));
13
13
 
14
- var _Icon = _interopRequireDefault(require("@digigov/react-core/Icon"));
14
+ var _Icon = _interopRequireDefault(require("@digigov/react-icons/Icon"));
15
15
 
16
16
  var AccessibilityIcon = function AccessibilityIcon(props) {
17
17
  return /*#__PURE__*/_react["default"].createElement(_Icon["default"], (0, _extends2["default"])({}, props, {
@@ -23,115 +23,59 @@ it('renders the AccessibilityIcon with prop size=s', function () {
23
23
  });
24
24
 
25
25
  var _ref3 = /*#__PURE__*/_react["default"].createElement(_AccessibilityIcon["default"], {
26
- size: "md"
27
- });
28
-
29
- it('renders the AccessibilityIcon with prop size=m', function () {
30
- expect((0, _enzyme.mount)(_ref3)).toMatchSnapshot();
31
- });
32
-
33
- var _ref4 = /*#__PURE__*/_react["default"].createElement(_AccessibilityIcon["default"], {
34
26
  size: "lg"
35
27
  });
36
28
 
37
29
  it('renders the AccessibilityIcon with prop size=l', function () {
38
- expect((0, _enzyme.mount)(_ref4)).toMatchSnapshot();
39
- });
40
-
41
- var _ref5 = /*#__PURE__*/_react["default"].createElement(_AccessibilityIcon["default"], {
42
- size: "xl"
43
- });
44
-
45
- it('renders the AccessibilityIcon with prop size=xl', function () {
46
- expect((0, _enzyme.mount)(_ref5)).toMatchSnapshot();
47
- });
48
-
49
- var _ref6 = /*#__PURE__*/_react["default"].createElement(_AccessibilityIcon["default"], {
50
- size: "xxl"
51
- });
52
-
53
- it('renders the AccessibilityIcon with prop size=xl', function () {
54
- expect((0, _enzyme.mount)(_ref6)).toMatchSnapshot();
30
+ expect((0, _enzyme.mount)(_ref3)).toMatchSnapshot();
55
31
  });
56
32
 
57
- var _ref7 = /*#__PURE__*/_react["default"].createElement(_AccessibilityIcon["default"], {
33
+ var _ref4 = /*#__PURE__*/_react["default"].createElement(_AccessibilityIcon["default"], {
58
34
  variant: "dark"
59
35
  });
60
36
 
61
37
  it('renders the AccessibilityIcon with prop variant=dark', function () {
62
- expect((0, _enzyme.mount)(_ref7)).toMatchSnapshot();
63
- });
64
-
65
- var _ref8 = /*#__PURE__*/_react["default"].createElement(_AccessibilityIcon["default"], {
66
- variant: "light"
67
- });
68
-
69
- it('renders the AccessibilityIcon with prop variant=light', function () {
70
- expect((0, _enzyme.mount)(_ref8)).toMatchSnapshot();
71
- });
72
-
73
- var _ref9 = /*#__PURE__*/_react["default"].createElement(_AccessibilityIcon["default"], {
74
- variant: "gray"
75
- });
76
-
77
- it('renders the AccessibilityIcon with prop variant=gray', function () {
78
- expect((0, _enzyme.mount)(_ref9)).toMatchSnapshot();
38
+ expect((0, _enzyme.mount)(_ref4)).toMatchSnapshot();
79
39
  });
80
40
 
81
- var _ref10 = /*#__PURE__*/_react["default"].createElement(_AccessibilityIcon["default"], {
41
+ var _ref5 = /*#__PURE__*/_react["default"].createElement(_AccessibilityIcon["default"], {
82
42
  variant: "primary"
83
43
  });
84
44
 
85
45
  it('renders the AccessibilityIcon with prop variant=primary', function () {
86
- expect((0, _enzyme.mount)(_ref10)).toMatchSnapshot();
46
+ expect((0, _enzyme.mount)(_ref5)).toMatchSnapshot();
87
47
  });
88
48
 
89
- var _ref11 = /*#__PURE__*/_react["default"].createElement(_AccessibilityIcon["default"], {
49
+ var _ref6 = /*#__PURE__*/_react["default"].createElement(_AccessibilityIcon["default"], {
90
50
  variant: "success"
91
51
  });
92
52
 
93
53
  it('renders the AccessibilityIcon with prop variant=success', function () {
94
- expect((0, _enzyme.mount)(_ref11)).toMatchSnapshot();
95
- });
96
-
97
- var _ref12 = /*#__PURE__*/_react["default"].createElement(_AccessibilityIcon["default"], {
98
- variant: "warning"
99
- });
100
-
101
- it('renders the AccessibilityIcon with prop variant=warning', function () {
102
- expect((0, _enzyme.mount)(_ref12)).toMatchSnapshot();
54
+ expect((0, _enzyme.mount)(_ref6)).toMatchSnapshot();
103
55
  });
104
56
 
105
- var _ref13 = /*#__PURE__*/_react["default"].createElement(_AccessibilityIcon["default"], {
57
+ var _ref7 = /*#__PURE__*/_react["default"].createElement(_AccessibilityIcon["default"], {
106
58
  variant: "error"
107
59
  });
108
60
 
109
61
  it('renders the AccessibilityIcon with prop variant=error', function () {
110
- expect((0, _enzyme.mount)(_ref13)).toMatchSnapshot();
111
- });
112
-
113
- var _ref14 = /*#__PURE__*/_react["default"].createElement(_AccessibilityIcon["default"], {
114
- variant: "focus"
115
- });
116
-
117
- it('renders the AccessibilityIcon with prop variant=focus', function () {
118
- expect((0, _enzyme.mount)(_ref14)).toMatchSnapshot();
62
+ expect((0, _enzyme.mount)(_ref7)).toMatchSnapshot();
119
63
  });
120
64
 
121
- var _ref15 = /*#__PURE__*/_react["default"].createElement(_AccessibilityIcon["default"], {
65
+ var _ref8 = /*#__PURE__*/_react["default"].createElement(_AccessibilityIcon["default"], {
122
66
  variant: "warning",
123
67
  size: "sm"
124
68
  });
125
69
 
126
70
  it('renders the AccessibilityIcon with prop variant=warning and size=s', function () {
127
- expect((0, _enzyme.mount)(_ref15)).toMatchSnapshot();
71
+ expect((0, _enzyme.mount)(_ref8)).toMatchSnapshot();
128
72
  });
129
73
 
130
- var _ref16 = /*#__PURE__*/_react["default"].createElement(_AccessibilityIcon["default"], {
74
+ var _ref9 = /*#__PURE__*/_react["default"].createElement(_AccessibilityIcon["default"], {
131
75
  variant: "warning",
132
76
  size: "xl"
133
77
  });
134
78
 
135
79
  it('renders the AccessibilityIcon with prop variant=error and size= xl', function () {
136
- expect((0, _enzyme.mount)(_ref16)).toMatchSnapshot();
80
+ expect((0, _enzyme.mount)(_ref9)).toMatchSnapshot();
137
81
  });
@@ -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,5 +1,12 @@
1
1
  import React from 'react';
2
2
  export interface ArrowType {
3
+ /**
4
+ * @value 'left'
5
+ * @value 'right'
6
+ * @value 'up'
7
+ * @value 'down'
8
+ * @default 'right'
9
+ */
3
10
  direction?: 'left' | 'right' | 'up' | 'down';
4
11
  }
5
12
  export declare const arrow: React.FC<ArrowType>;
@@ -1,4 +1,4 @@
1
1
  import React from 'react';
2
- import { IconProps } from '@digigov/react-core/Icon';
2
+ import { IconProps } from '@digigov/react-icons/Icon';
3
3
  export declare const ArrowIcon: React.FC<IconProps<'arrow'>>;
4
4
  export default ArrowIcon;
@@ -11,7 +11,7 @@ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends")
11
11
 
12
12
  var _react = _interopRequireDefault(require("react"));
13
13
 
14
- var _Icon = _interopRequireDefault(require("@digigov/react-core/Icon"));
14
+ var _Icon = _interopRequireDefault(require("@digigov/react-icons/Icon"));
15
15
 
16
16
  var ArrowIcon = function ArrowIcon(props) {
17
17
  return /*#__PURE__*/_react["default"].createElement(_Icon["default"], (0, _extends2["default"])({}, props, {
@@ -1,4 +1,4 @@
1
1
  import React from 'react';
2
- import { IconProps } from '@digigov/react-core/Icon';
2
+ import { IconProps } from '@digigov/react-icons/Icon';
3
3
  export declare const BurgerIcon: React.FC<IconProps<'burger'>>;
4
4
  export default BurgerIcon;
@@ -11,7 +11,7 @@ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends")
11
11
 
12
12
  var _react = _interopRequireDefault(require("react"));
13
13
 
14
- var _Icon = _interopRequireDefault(require("@digigov/react-core/Icon"));
14
+ var _Icon = _interopRequireDefault(require("@digigov/react-icons/Icon"));
15
15
 
16
16
  var BurgerIcon = function BurgerIcon(props) {
17
17
  return /*#__PURE__*/_react["default"].createElement(_Icon["default"], (0, _extends2["default"])({}, props, {
@@ -1,5 +1,12 @@
1
1
  import React from 'react';
2
2
  export interface CaretType {
3
+ /**
4
+ * @value 'left'
5
+ * @value 'right'
6
+ * @value 'up'
7
+ * @value 'down'
8
+ * @default 'left'
9
+ */
3
10
  direction?: 'left' | 'right' | 'up' | 'down';
4
11
  }
5
12
  export declare const caret: React.FC<CaretType>;
@@ -1,4 +1,4 @@
1
1
  import React from 'react';
2
- import { IconProps } from '@digigov/react-core/Icon';
2
+ import { IconProps } from '@digigov/react-icons/Icon';
3
3
  export declare const CaretIcon: React.FC<IconProps<'caret'>>;
4
4
  export default CaretIcon;
@@ -11,7 +11,7 @@ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends")
11
11
 
12
12
  var _react = _interopRequireDefault(require("react"));
13
13
 
14
- var _Icon = _interopRequireDefault(require("@digigov/react-core/Icon"));
14
+ var _Icon = _interopRequireDefault(require("@digigov/react-icons/Icon"));
15
15
 
16
16
  var CaretIcon = function CaretIcon(props) {
17
17
  return /*#__PURE__*/_react["default"].createElement(_Icon["default"], (0, _extends2["default"])({}, props, {