@digigov/react-icons 1.2.0-a7ffb5dc → 2.0.0-0c4be34e
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/config/index.js +16 -13
- package/AccessibilityIcon/config.js.map +7 -0
- package/AccessibilityIcon/index.js +10 -8
- package/AccessibilityIcon/index.js.map +7 -0
- package/ArrowIcon/config/index.js +35 -21
- package/ArrowIcon/config.js.map +7 -0
- package/ArrowIcon/index.js +10 -8
- package/ArrowIcon/index.js.map +7 -0
- package/BurgerIcon/config/index.js +47 -27
- package/BurgerIcon/config.d.ts +2 -2
- package/BurgerIcon/config.js.map +7 -0
- package/BurgerIcon/index.js +10 -8
- package/BurgerIcon/index.js.map +7 -0
- package/CancelIcon/config/index.js +18 -0
- package/{CloseIcon/index.test → CancelIcon/config}/package.json +1 -1
- package/CancelIcon/config.d.ts +8 -0
- package/CancelIcon/config.js.map +7 -0
- package/CancelIcon/index.d.ts +4 -0
- package/CancelIcon/index.js +11 -0
- package/CancelIcon/index.js.map +7 -0
- package/CancelIcon/index.test.d.ts +1 -0
- package/{Icon/index.test → CancelIcon}/package.json +1 -1
- package/CaretIcon/config/index.js +11 -21
- package/CaretIcon/config.js.map +7 -0
- package/CaretIcon/index.js +10 -8
- package/CaretIcon/index.js.map +7 -0
- package/ChatIcon/config/index.js +18 -0
- package/{CheckIcon/index.test → ChatIcon/config}/package.json +1 -1
- package/ChatIcon/config.d.ts +11 -0
- package/ChatIcon/config.js.map +7 -0
- package/ChatIcon/index.d.ts +4 -0
- package/ChatIcon/index.js +11 -0
- package/ChatIcon/index.js.map +7 -0
- package/ChatIcon/index.test.d.ts +1 -0
- package/{CaretIcon/index.test → ChatIcon}/package.json +1 -1
- package/CheckIcon/config/index.js +16 -7
- package/CheckIcon/config.js.map +7 -0
- package/CheckIcon/index.js +10 -8
- package/CheckIcon/index.js.map +7 -0
- package/ChevronIcon/config/index.js +35 -21
- package/ChevronIcon/config.js.map +7 -0
- package/ChevronIcon/index.js +10 -8
- package/ChevronIcon/index.js.map +7 -0
- package/CloseIcon/config/index.js +16 -7
- package/CloseIcon/config.js.map +7 -0
- package/CloseIcon/index.js +10 -8
- package/CloseIcon/index.js.map +7 -0
- package/DownloadIcon/config/index.js +18 -0
- package/DownloadIcon/config/package.json +6 -0
- package/DownloadIcon/config.d.ts +8 -0
- package/DownloadIcon/config.js.map +7 -0
- package/DownloadIcon/index.d.ts +4 -0
- package/DownloadIcon/index.js +11 -0
- package/DownloadIcon/index.js.map +7 -0
- package/DownloadIcon/index.test.d.ts +1 -0
- package/DownloadIcon/package.json +6 -0
- package/ExclamationIcon/config/index.js +18 -0
- package/{ArrowIcon/index.test → ExclamationIcon/config}/package.json +1 -1
- package/ExclamationIcon/config.d.ts +8 -0
- package/ExclamationIcon/config.js.map +7 -0
- package/ExclamationIcon/index.d.ts +4 -0
- package/ExclamationIcon/index.js +11 -0
- package/ExclamationIcon/index.js.map +7 -0
- package/ExclamationIcon/index.test.d.ts +1 -0
- package/ExclamationIcon/package.json +6 -0
- package/GlobeIcon/config/index.js +16 -7
- package/GlobeIcon/config.js.map +7 -0
- package/GlobeIcon/index.js +10 -8
- package/GlobeIcon/index.js.map +7 -0
- package/Icon/index.d.ts +2 -2
- package/Icon/index.js +29 -29
- package/Icon/index.js.map +7 -0
- package/IconBase/index.d.ts +95 -0
- package/IconBase/index.js +102 -0
- package/IconBase/index.js.map +7 -0
- package/IconBase/package.json +6 -0
- package/LockIcon/config/index.js +18 -0
- package/LockIcon/config/package.json +6 -0
- package/LockIcon/config.d.ts +8 -0
- package/LockIcon/config.js.map +7 -0
- package/LockIcon/index.d.ts +4 -0
- package/LockIcon/index.js +11 -0
- package/LockIcon/index.js.map +7 -0
- package/LockIcon/index.test.d.ts +1 -0
- package/LockIcon/package.json +6 -0
- package/LoginIcon/config/index.js +24 -0
- package/LoginIcon/config/package.json +6 -0
- package/LoginIcon/config.d.ts +8 -0
- package/LoginIcon/config.js.map +7 -0
- package/LoginIcon/index.d.ts +4 -0
- package/LoginIcon/index.js +11 -0
- package/LoginIcon/index.js.map +7 -0
- package/LoginIcon/index.test.d.ts +1 -0
- package/LoginIcon/package.json +6 -0
- package/MinusIcon/config/index.js +12 -0
- package/MinusIcon/config/package.json +6 -0
- package/MinusIcon/config.d.ts +8 -0
- package/MinusIcon/config.js.map +7 -0
- package/MinusIcon/index.d.ts +4 -0
- package/MinusIcon/index.js +11 -0
- package/MinusIcon/index.js.map +7 -0
- package/MinusIcon/index.test.d.ts +1 -0
- package/MinusIcon/package.json +6 -0
- package/MoreVertIcon/config/index.js +10 -19
- package/MoreVertIcon/config.js.map +7 -0
- package/MoreVertIcon/index.js +10 -8
- package/MoreVertIcon/index.js.map +7 -0
- package/PdfFileIcon/config/index.js +30 -0
- package/PdfFileIcon/config/package.json +6 -0
- package/PdfFileIcon/config.d.ts +8 -0
- package/PdfFileIcon/config.js.map +7 -0
- package/PdfFileIcon/index.d.ts +4 -0
- package/PdfFileIcon/index.js +11 -0
- package/PdfFileIcon/index.js.map +7 -0
- package/PdfFileIcon/index.test.d.ts +1 -0
- package/PdfFileIcon/package.json +6 -0
- package/PlusIcon/config/index.js +18 -0
- package/PlusIcon/config/package.json +6 -0
- package/PlusIcon/config.d.ts +8 -0
- package/PlusIcon/config.js.map +7 -0
- package/PlusIcon/index.d.ts +4 -0
- package/PlusIcon/index.js +11 -0
- package/PlusIcon/index.js.map +7 -0
- package/PlusIcon/index.test.d.ts +1 -0
- package/PlusIcon/package.json +6 -0
- package/PrintIcon/config/index.js +18 -0
- package/PrintIcon/config/package.json +6 -0
- package/PrintIcon/config.d.ts +8 -0
- package/PrintIcon/config.js.map +7 -0
- package/PrintIcon/index.d.ts +4 -0
- package/PrintIcon/index.js +11 -0
- package/PrintIcon/index.js.map +7 -0
- package/PrintIcon/index.test.d.ts +1 -0
- package/PrintIcon/package.json +6 -0
- package/ReplyIcon/config/index.js +18 -0
- package/ReplyIcon/config/package.json +6 -0
- package/ReplyIcon/config.d.ts +8 -0
- package/ReplyIcon/config.js.map +7 -0
- package/ReplyIcon/index.d.ts +4 -0
- package/ReplyIcon/index.js +11 -0
- package/ReplyIcon/index.js.map +7 -0
- package/ReplyIcon/index.test.d.ts +1 -0
- package/ReplyIcon/package.json +6 -0
- package/RestoreIcon/config/index.js +18 -0
- package/RestoreIcon/config/package.json +6 -0
- package/RestoreIcon/config.d.ts +8 -0
- package/RestoreIcon/config.js.map +7 -0
- package/RestoreIcon/index.d.ts +4 -0
- package/RestoreIcon/index.js +11 -0
- package/RestoreIcon/index.js.map +7 -0
- package/RestoreIcon/index.test.d.ts +1 -0
- package/RestoreIcon/package.json +6 -0
- package/SearchIcon/config/index.js +16 -7
- package/SearchIcon/config.js.map +7 -0
- package/SearchIcon/index.js +10 -8
- package/SearchIcon/index.js.map +7 -0
- package/SvgIcon/index.d.ts +37 -0
- package/SvgIcon/index.js +30 -0
- package/SvgIcon/index.js.map +7 -0
- package/SvgIcon/index.test.d.ts +1 -0
- package/SvgIcon/package.json +6 -0
- package/UncheckIcon/config/index.js +16 -7
- package/UncheckIcon/config.js.map +7 -0
- package/UncheckIcon/index.js +10 -8
- package/UncheckIcon/index.js.map +7 -0
- package/cjs/AccessibilityIcon/config/index.js +47 -19
- package/cjs/AccessibilityIcon/config.js.map +7 -0
- package/cjs/AccessibilityIcon/index.js +42 -14
- package/cjs/AccessibilityIcon/index.js.map +7 -0
- package/cjs/ArrowIcon/config/index.js +67 -27
- package/cjs/ArrowIcon/config.js.map +7 -0
- package/cjs/ArrowIcon/index.js +42 -14
- package/cjs/ArrowIcon/index.js.map +7 -0
- package/cjs/BurgerIcon/config/index.js +79 -33
- package/cjs/BurgerIcon/config.js.map +7 -0
- package/cjs/BurgerIcon/index.js +42 -14
- package/cjs/BurgerIcon/index.js.map +7 -0
- package/cjs/CancelIcon/config/index.js +51 -0
- package/cjs/CancelIcon/config.js.map +7 -0
- package/cjs/CancelIcon/index.js +44 -0
- package/cjs/CancelIcon/index.js.map +7 -0
- package/cjs/CaretIcon/config/index.js +43 -27
- package/cjs/CaretIcon/config.js.map +7 -0
- package/cjs/CaretIcon/index.js +42 -14
- package/cjs/CaretIcon/index.js.map +7 -0
- package/cjs/ChatIcon/config/index.js +51 -0
- package/cjs/ChatIcon/config.js.map +7 -0
- package/cjs/ChatIcon/index.js +44 -0
- package/cjs/ChatIcon/index.js.map +7 -0
- package/cjs/CheckIcon/config/index.js +47 -13
- package/cjs/CheckIcon/config.js.map +7 -0
- package/cjs/CheckIcon/index.js +42 -14
- package/cjs/CheckIcon/index.js.map +7 -0
- package/cjs/ChevronIcon/config/index.js +67 -27
- package/cjs/ChevronIcon/config.js.map +7 -0
- package/cjs/ChevronIcon/index.js +42 -14
- package/cjs/ChevronIcon/index.js.map +7 -0
- package/cjs/CloseIcon/config/index.js +47 -13
- package/cjs/CloseIcon/config.js.map +7 -0
- package/cjs/CloseIcon/index.js +42 -14
- package/cjs/CloseIcon/index.js.map +7 -0
- package/cjs/DownloadIcon/config/index.js +51 -0
- package/cjs/DownloadIcon/config.js.map +7 -0
- package/cjs/DownloadIcon/index.js +44 -0
- package/cjs/DownloadIcon/index.js.map +7 -0
- package/cjs/ExclamationIcon/config/index.js +51 -0
- package/cjs/ExclamationIcon/config.js.map +7 -0
- package/cjs/ExclamationIcon/index.js +44 -0
- package/cjs/ExclamationIcon/index.js.map +7 -0
- package/cjs/GlobeIcon/config/index.js +47 -13
- package/cjs/GlobeIcon/config.js.map +7 -0
- package/cjs/GlobeIcon/index.js +42 -14
- package/cjs/GlobeIcon/index.js.map +7 -0
- package/cjs/Icon/index.js +61 -38
- package/cjs/Icon/index.js.map +7 -0
- package/cjs/IconBase/index.js +135 -0
- package/cjs/IconBase/index.js.map +7 -0
- package/cjs/LockIcon/config/index.js +51 -0
- package/cjs/LockIcon/config.js.map +7 -0
- package/cjs/LockIcon/index.js +44 -0
- package/cjs/LockIcon/index.js.map +7 -0
- package/cjs/LoginIcon/config/index.js +57 -0
- package/cjs/LoginIcon/config.js.map +7 -0
- package/cjs/LoginIcon/index.js +44 -0
- package/cjs/LoginIcon/index.js.map +7 -0
- package/cjs/MinusIcon/config/index.js +45 -0
- package/cjs/MinusIcon/config.js.map +7 -0
- package/cjs/MinusIcon/index.js +44 -0
- package/cjs/MinusIcon/index.js.map +7 -0
- package/cjs/MoreVertIcon/config/index.js +41 -25
- package/cjs/MoreVertIcon/config.js.map +7 -0
- package/cjs/MoreVertIcon/index.js +42 -14
- package/cjs/MoreVertIcon/index.js.map +7 -0
- package/cjs/PdfFileIcon/config/index.js +63 -0
- package/cjs/PdfFileIcon/config.js.map +7 -0
- package/cjs/PdfFileIcon/index.js +44 -0
- package/cjs/PdfFileIcon/index.js.map +7 -0
- package/cjs/PlusIcon/config/index.js +51 -0
- package/cjs/PlusIcon/config.js.map +7 -0
- package/cjs/PlusIcon/index.js +44 -0
- package/cjs/PlusIcon/index.js.map +7 -0
- package/cjs/PrintIcon/config/index.js +51 -0
- package/cjs/PrintIcon/config.js.map +7 -0
- package/cjs/PrintIcon/index.js +44 -0
- package/cjs/PrintIcon/index.js.map +7 -0
- package/cjs/ReplyIcon/config/index.js +51 -0
- package/cjs/ReplyIcon/config.js.map +7 -0
- package/cjs/ReplyIcon/index.js +44 -0
- package/cjs/ReplyIcon/index.js.map +7 -0
- package/cjs/RestoreIcon/config/index.js +51 -0
- package/cjs/RestoreIcon/config.js.map +7 -0
- package/cjs/RestoreIcon/index.js +44 -0
- package/cjs/RestoreIcon/index.js.map +7 -0
- package/cjs/SearchIcon/config/index.js +47 -13
- package/cjs/SearchIcon/config.js.map +7 -0
- package/cjs/SearchIcon/index.js +42 -14
- package/cjs/SearchIcon/index.js.map +7 -0
- package/cjs/SvgIcon/index.js +63 -0
- package/cjs/SvgIcon/index.js.map +7 -0
- package/cjs/UncheckIcon/config/index.js +47 -13
- package/cjs/UncheckIcon/config.js.map +7 -0
- package/cjs/UncheckIcon/index.js +42 -14
- package/cjs/UncheckIcon/index.js.map +7 -0
- package/cjs/icons/index.js +65 -125
- package/cjs/icons.js.map +7 -0
- package/cjs/index.js +65 -125
- package/cjs/index.js.map +7 -0
- package/cjs/lazy/index.js +165 -120
- package/cjs/lazy.js.map +7 -0
- package/cjs/registry/index.js +124 -48
- package/cjs/registry.js.map +7 -0
- package/icons/index.js +24 -12
- package/icons.d.ts +36 -0
- package/icons.js.map +7 -0
- package/index.d.ts +12 -0
- package/index.js +25 -12
- package/index.js.map +7 -0
- package/lazy/index.js +137 -87
- package/lazy.d.ts +15 -1
- package/lazy.js.map +7 -0
- package/package.json +4 -7
- package/registry/index.js +96 -40
- package/registry.d.ts +14 -0
- package/registry.js.map +7 -0
- package/src/AccessibilityIcon/__snapshots__/index.test.tsx.snap +288 -371
- package/src/AccessibilityIcon/config.tsx +5 -3
- package/src/AccessibilityIcon/index.test.tsx +24 -16
- package/src/ArrowIcon/__snapshots__/index.test.tsx.snap +65 -132
- package/src/ArrowIcon/config.tsx +17 -4
- package/src/ArrowIcon/index.test.tsx +5 -5
- package/src/BurgerIcon/__snapshots__/index.test.tsx.snap +221 -294
- package/src/BurgerIcon/config.tsx +24 -7
- package/src/BurgerIcon/index.test.tsx +15 -11
- package/src/CancelIcon/__snapshots__/index.test.tsx.snap +141 -0
- package/src/CancelIcon/config.tsx +19 -0
- package/src/CancelIcon/index.test.tsx +30 -0
- package/src/CancelIcon/index.tsx +8 -0
- package/src/CaretIcon/__snapshots__/index.test.tsx.snap +65 -132
- package/src/CaretIcon/config.tsx +5 -4
- package/src/CaretIcon/index.test.tsx +5 -5
- package/src/ChatIcon/__snapshots__/index.test.tsx.snap +161 -0
- package/src/ChatIcon/config.tsx +32 -0
- package/src/ChatIcon/index.test.tsx +33 -0
- package/src/ChatIcon/index.tsx +8 -0
- package/src/CheckIcon/__snapshots__/index.test.tsx.snap +136 -274
- package/src/CheckIcon/config.tsx +5 -1
- package/src/CheckIcon/index.test.tsx +18 -14
- package/src/ChevronIcon/__snapshots__/index.test.tsx.snap +81 -0
- package/src/ChevronIcon/config.tsx +17 -4
- package/src/ChevronIcon/index.test.tsx +9 -5
- package/src/CloseIcon/__snapshots__/index.test.tsx.snap +17 -30
- package/src/CloseIcon/config.tsx +5 -1
- package/src/CloseIcon/index.test.tsx +2 -2
- package/src/DownloadIcon/__snapshots__/index.test.tsx.snap +232 -0
- package/src/DownloadIcon/config.tsx +20 -0
- package/src/DownloadIcon/index.test.tsx +32 -0
- package/src/DownloadIcon/index.tsx +8 -0
- package/src/ExclamationIcon/__snapshots__/index.test.tsx.snap +190 -0
- package/src/ExclamationIcon/config.tsx +20 -0
- package/src/ExclamationIcon/index.test.tsx +34 -0
- package/src/ExclamationIcon/index.tsx +8 -0
- package/src/GlobeIcon/__snapshots__/index.test.tsx.snap +68 -136
- package/src/GlobeIcon/config.tsx +5 -12
- package/src/GlobeIcon/index.test.tsx +10 -8
- package/src/Icon/__snapshots__/index.test.tsx.snap +157 -262
- package/src/Icon/index.test.tsx +13 -11
- package/src/Icon/index.tsx +2 -2
- package/src/IconBase/index.tsx +258 -0
- package/src/LockIcon/__snapshots__/index.test.tsx.snap +141 -0
- package/src/LockIcon/config.tsx +19 -0
- package/src/LockIcon/index.test.tsx +30 -0
- package/src/LockIcon/index.tsx +8 -0
- package/src/LoginIcon/__snapshots__/index.test.tsx.snap +176 -0
- package/src/LoginIcon/config.tsx +23 -0
- package/src/LoginIcon/index.test.tsx +30 -0
- package/src/LoginIcon/index.tsx +8 -0
- package/src/MinusIcon/__snapshots__/index.test.tsx.snap +162 -0
- package/src/MinusIcon/config.tsx +16 -0
- package/src/MinusIcon/index.test.tsx +30 -0
- package/src/MinusIcon/index.tsx +8 -0
- package/src/MoreVertIcon/__snapshots__/index.test.tsx.snap +297 -416
- package/src/MoreVertIcon/config.tsx +4 -3
- package/src/MoreVertIcon/index.test.tsx +24 -16
- package/src/PdfFileIcon/__snapshots__/index.test.tsx.snap +316 -0
- package/src/PdfFileIcon/config.tsx +30 -0
- package/src/PdfFileIcon/index.test.tsx +30 -0
- package/src/PdfFileIcon/index.tsx +8 -0
- package/src/PlusIcon/__snapshots__/index.test.tsx.snap +141 -0
- package/src/PlusIcon/config.tsx +19 -0
- package/src/PlusIcon/index.test.tsx +30 -0
- package/src/PlusIcon/index.tsx +8 -0
- package/src/PrintIcon/__snapshots__/index.test.tsx.snap +197 -0
- package/src/PrintIcon/config.tsx +20 -0
- package/src/PrintIcon/index.test.tsx +30 -0
- package/src/PrintIcon/index.tsx +8 -0
- package/src/ReplyIcon/__snapshots__/index.test.tsx.snap +141 -0
- package/src/ReplyIcon/config.tsx +19 -0
- package/src/ReplyIcon/index.test.tsx +30 -0
- package/src/ReplyIcon/index.tsx +8 -0
- package/src/RestoreIcon/__snapshots__/index.test.tsx.snap +225 -0
- package/src/RestoreIcon/config.tsx +21 -0
- package/src/RestoreIcon/index.test.tsx +30 -0
- package/src/RestoreIcon/index.tsx +8 -0
- package/src/SearchIcon/__snapshots__/index.test.tsx.snap +17 -30
- package/src/SearchIcon/config.tsx +5 -1
- package/src/SearchIcon/index.test.tsx +2 -2
- package/src/SvgIcon/__snapshots__/index.test.tsx.snap +271 -0
- package/src/SvgIcon/index.test.tsx +96 -0
- package/src/SvgIcon/index.tsx +72 -0
- package/src/UncheckIcon/__snapshots__/index.test.tsx.snap +153 -308
- package/src/UncheckIcon/config.tsx +5 -1
- package/src/UncheckIcon/index.test.tsx +20 -16
- package/src/icons.ts +36 -0
- package/src/index.ts +12 -0
- package/src/lazy.js +132 -15
- package/src/registry.js +59 -13
- package/AccessibilityIcon/__snapshots__/index.test.tsx.snap +0 -408
- package/AccessibilityIcon/index.test/index.js +0 -57
- package/AccessibilityIcon/index.test/package.json +0 -6
- package/ArrowIcon/__snapshots__/index.test.tsx.snap +0 -148
- package/ArrowIcon/index.test/index.js +0 -25
- package/BurgerIcon/__snapshots__/index.test.tsx.snap +0 -320
- package/BurgerIcon/index.test/index.js +0 -38
- package/BurgerIcon/index.test/package.json +0 -6
- package/CaretIcon/__snapshots__/index.test.tsx.snap +0 -148
- package/CaretIcon/index.test/index.js +0 -25
- package/CheckIcon/__snapshots__/index.test.tsx.snap +0 -299
- package/CheckIcon/index.test/index.js +0 -51
- package/ChevronIcon/index.test/index.js +0 -25
- package/ChevronIcon/index.test/package.json +0 -6
- package/CloseIcon/__snapshots__/index.test.tsx.snap +0 -34
- package/CloseIcon/index.test/index.js +0 -7
- package/GlobeIcon/__snapshots__/index.test.tsx.snap +0 -149
- package/GlobeIcon/index.test/index.js +0 -25
- package/GlobeIcon/index.test/package.json +0 -6
- package/Icon/__snapshots__/index.test.tsx.snap +0 -343
- package/Icon/index.test/index.js +0 -62
- package/MoreVertIcon/__snapshots__/index.test.tsx.snap +0 -444
- package/MoreVertIcon/index.test/index.js +0 -57
- package/MoreVertIcon/index.test/package.json +0 -6
- package/SearchIcon/__snapshots__/index.test.tsx.snap +0 -34
- package/SearchIcon/index.test/index.js +0 -7
- package/SearchIcon/index.test/package.json +0 -6
- package/UncheckIcon/__snapshots__/index.test.tsx.snap +0 -336
- package/UncheckIcon/index.test/index.js +0 -57
- package/UncheckIcon/index.test/package.json +0 -6
- package/cjs/AccessibilityIcon/__snapshots__/index.test.tsx.snap +0 -408
- package/cjs/AccessibilityIcon/index.test/index.js +0 -60
- package/cjs/ArrowIcon/__snapshots__/index.test.tsx.snap +0 -148
- package/cjs/ArrowIcon/index.test/index.js +0 -28
- package/cjs/BurgerIcon/__snapshots__/index.test.tsx.snap +0 -320
- package/cjs/BurgerIcon/index.test/index.js +0 -41
- package/cjs/CaretIcon/__snapshots__/index.test.tsx.snap +0 -148
- package/cjs/CaretIcon/index.test/index.js +0 -28
- package/cjs/CheckIcon/__snapshots__/index.test.tsx.snap +0 -299
- package/cjs/CheckIcon/index.test/index.js +0 -54
- package/cjs/ChevronIcon/index.test/index.js +0 -28
- package/cjs/CloseIcon/__snapshots__/index.test.tsx.snap +0 -34
- package/cjs/CloseIcon/index.test/index.js +0 -10
- package/cjs/GlobeIcon/__snapshots__/index.test.tsx.snap +0 -149
- package/cjs/GlobeIcon/index.test/index.js +0 -28
- package/cjs/Icon/__snapshots__/index.test.tsx.snap +0 -343
- package/cjs/Icon/index.test/index.js +0 -65
- package/cjs/MoreVertIcon/__snapshots__/index.test.tsx.snap +0 -444
- package/cjs/MoreVertIcon/index.test/index.js +0 -60
- package/cjs/SearchIcon/__snapshots__/index.test.tsx.snap +0 -34
- package/cjs/SearchIcon/index.test/index.js +0 -10
- package/cjs/UncheckIcon/__snapshots__/index.test.tsx.snap +0 -336
- package/cjs/UncheckIcon/index.test/index.js +0 -60
|
@@ -1,20 +1,24 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { render } from '@testing-library/react';
|
|
3
3
|
|
|
4
4
|
import ChevronIcon from '@digigov/react-icons/ChevronIcon';
|
|
5
5
|
|
|
6
6
|
it('renders the ChevronIcon with no props, direction prop is right by default', () => {
|
|
7
|
-
expect(
|
|
7
|
+
expect(render(<ChevronIcon />).baseElement).toMatchSnapshot();
|
|
8
8
|
});
|
|
9
9
|
|
|
10
10
|
it('renders the ChevronIcon with direction left prop', () => {
|
|
11
|
-
expect(
|
|
11
|
+
expect(
|
|
12
|
+
render(<ChevronIcon direction="left" />).baseElement
|
|
13
|
+
).toMatchSnapshot();
|
|
12
14
|
});
|
|
13
15
|
|
|
14
16
|
it('renders the ChevronIcon with direction up prop', () => {
|
|
15
|
-
expect(
|
|
17
|
+
expect(render(<ChevronIcon direction="up" />).baseElement).toMatchSnapshot();
|
|
16
18
|
});
|
|
17
19
|
|
|
18
20
|
it('renders the ChevronIcon with direction down prop', () => {
|
|
19
|
-
expect(
|
|
21
|
+
expect(
|
|
22
|
+
render(<ChevronIcon direction="down" />).baseElement
|
|
23
|
+
).toMatchSnapshot();
|
|
20
24
|
});
|
|
@@ -1,34 +1,21 @@
|
|
|
1
|
-
//
|
|
1
|
+
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
|
|
2
2
|
|
|
3
3
|
exports[`renders the CloseIcon with no props 1`] = `
|
|
4
|
-
<
|
|
5
|
-
<
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
4
|
+
<body>
|
|
5
|
+
<div>
|
|
6
|
+
<svg
|
|
7
|
+
aria-hidden="true"
|
|
8
|
+
as="svg"
|
|
9
|
+
class="ds-svg-icon--close ds-svg-icon"
|
|
10
|
+
focusable="false"
|
|
11
|
+
viewBox="0 0 24 24"
|
|
10
12
|
>
|
|
11
|
-
<
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
aria-hidden="true"
|
|
20
|
-
className="ds-svg-icon--close ds-svg-icon"
|
|
21
|
-
focusable="false"
|
|
22
|
-
viewBox="0 0 24 24"
|
|
23
|
-
>
|
|
24
|
-
<close>
|
|
25
|
-
<polygon
|
|
26
|
-
points="14.4,11.8 22,4.2 19.7,1.8 12,9.4 4.4,1.8 2,4.2 9.7,11.9 2.1,19.5 4.4,21.9 12.1,14.3 19.7,21.9 22.1,19.5 "
|
|
27
|
-
/>
|
|
28
|
-
</close>
|
|
29
|
-
</svg>
|
|
30
|
-
</ForwardRef(Base)>
|
|
31
|
-
</ForwardRef(SvgIcon)>
|
|
32
|
-
</ForwardRef(Icon)>
|
|
33
|
-
</CloseIcon>
|
|
13
|
+
<polygon
|
|
14
|
+
as="polygon"
|
|
15
|
+
class=""
|
|
16
|
+
points="14.4,11.8 22,4.2 19.7,1.8 12,9.4 4.4,1.8 2,4.2 9.7,11.9 2.1,19.5 4.4,21.9 12.1,14.3 19.7,21.9 22.1,19.5 "
|
|
17
|
+
/>
|
|
18
|
+
</svg>
|
|
19
|
+
</div>
|
|
20
|
+
</body>
|
|
34
21
|
`;
|
package/src/CloseIcon/config.tsx
CHANGED
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import IconBase from '@digigov/react-icons/IconBase';
|
|
2
3
|
|
|
3
4
|
export interface CloseType {}
|
|
4
5
|
|
|
5
6
|
export function close(): React.ReactElement {
|
|
6
7
|
return (
|
|
7
8
|
<>
|
|
8
|
-
<
|
|
9
|
+
<IconBase
|
|
10
|
+
as="polygon"
|
|
11
|
+
points="14.4,11.8 22,4.2 19.7,1.8 12,9.4 4.4,1.8 2,4.2 9.7,11.9 2.1,19.5 4.4,21.9 12.1,14.3 19.7,21.9 22.1,19.5 "
|
|
12
|
+
/>
|
|
9
13
|
</>
|
|
10
14
|
);
|
|
11
15
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { render } from '@testing-library/react';
|
|
3
3
|
|
|
4
4
|
import CloseIcon from '@digigov/react-icons/CloseIcon';
|
|
5
5
|
|
|
6
6
|
it('renders the CloseIcon with no props', () => {
|
|
7
|
-
expect(
|
|
7
|
+
expect(render(<CloseIcon />).baseElement).toMatchSnapshot();
|
|
8
8
|
});
|
|
@@ -0,0 +1,232 @@
|
|
|
1
|
+
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
|
|
2
|
+
|
|
3
|
+
exports[`renders the DownloadIcon with no props 1`] = `
|
|
4
|
+
<body>
|
|
5
|
+
<div>
|
|
6
|
+
<svg
|
|
7
|
+
aria-hidden="true"
|
|
8
|
+
as="svg"
|
|
9
|
+
class="ds-svg-icon--download ds-svg-icon"
|
|
10
|
+
focusable="false"
|
|
11
|
+
viewBox="0 0 24 24"
|
|
12
|
+
>
|
|
13
|
+
<g
|
|
14
|
+
as="g"
|
|
15
|
+
class=""
|
|
16
|
+
>
|
|
17
|
+
<polygon
|
|
18
|
+
as="polygon"
|
|
19
|
+
class=""
|
|
20
|
+
points="12 18 20 10 15.3 10 15.3 2 8.7 2 8.7 10 4 10 12 18"
|
|
21
|
+
/>
|
|
22
|
+
<rect
|
|
23
|
+
as="rect"
|
|
24
|
+
class=""
|
|
25
|
+
height="3.301"
|
|
26
|
+
width="12"
|
|
27
|
+
x="6"
|
|
28
|
+
y="18.699"
|
|
29
|
+
/>
|
|
30
|
+
</g>
|
|
31
|
+
</svg>
|
|
32
|
+
</div>
|
|
33
|
+
</body>
|
|
34
|
+
`;
|
|
35
|
+
|
|
36
|
+
exports[`renders the DownloadIcon with prop color=error and size= xl 1`] = `
|
|
37
|
+
<body>
|
|
38
|
+
<div>
|
|
39
|
+
<svg
|
|
40
|
+
aria-hidden="true"
|
|
41
|
+
as="svg"
|
|
42
|
+
class="ds-svg-icon--download ds-svg-icon ds-svg-icon--warning ds-svg-icon--xl"
|
|
43
|
+
focusable="false"
|
|
44
|
+
viewBox="0 0 24 24"
|
|
45
|
+
>
|
|
46
|
+
<g
|
|
47
|
+
as="g"
|
|
48
|
+
class=""
|
|
49
|
+
>
|
|
50
|
+
<polygon
|
|
51
|
+
as="polygon"
|
|
52
|
+
class=""
|
|
53
|
+
points="12 18 20 10 15.3 10 15.3 2 8.7 2 8.7 10 4 10 12 18"
|
|
54
|
+
/>
|
|
55
|
+
<rect
|
|
56
|
+
as="rect"
|
|
57
|
+
class=""
|
|
58
|
+
height="3.301"
|
|
59
|
+
width="12"
|
|
60
|
+
x="6"
|
|
61
|
+
y="18.699"
|
|
62
|
+
/>
|
|
63
|
+
</g>
|
|
64
|
+
</svg>
|
|
65
|
+
</div>
|
|
66
|
+
</body>
|
|
67
|
+
`;
|
|
68
|
+
|
|
69
|
+
exports[`renders the DownloadIcon with prop color=warning 1`] = `
|
|
70
|
+
<body>
|
|
71
|
+
<div>
|
|
72
|
+
<svg
|
|
73
|
+
aria-hidden="true"
|
|
74
|
+
as="svg"
|
|
75
|
+
class="ds-svg-icon--download ds-svg-icon ds-svg-icon--warning"
|
|
76
|
+
focusable="false"
|
|
77
|
+
viewBox="0 0 24 24"
|
|
78
|
+
>
|
|
79
|
+
<g
|
|
80
|
+
as="g"
|
|
81
|
+
class=""
|
|
82
|
+
>
|
|
83
|
+
<polygon
|
|
84
|
+
as="polygon"
|
|
85
|
+
class=""
|
|
86
|
+
points="12 18 20 10 15.3 10 15.3 2 8.7 2 8.7 10 4 10 12 18"
|
|
87
|
+
/>
|
|
88
|
+
<rect
|
|
89
|
+
as="rect"
|
|
90
|
+
class=""
|
|
91
|
+
height="3.301"
|
|
92
|
+
width="12"
|
|
93
|
+
x="6"
|
|
94
|
+
y="18.699"
|
|
95
|
+
/>
|
|
96
|
+
</g>
|
|
97
|
+
</svg>
|
|
98
|
+
</div>
|
|
99
|
+
</body>
|
|
100
|
+
`;
|
|
101
|
+
|
|
102
|
+
exports[`renders the DownloadIcon with prop color=warning and size=s 1`] = `
|
|
103
|
+
<body>
|
|
104
|
+
<div>
|
|
105
|
+
<svg
|
|
106
|
+
aria-hidden="true"
|
|
107
|
+
as="svg"
|
|
108
|
+
class="ds-svg-icon--download ds-svg-icon ds-svg-icon--warning ds-svg-icon--sm"
|
|
109
|
+
focusable="false"
|
|
110
|
+
viewBox="0 0 24 24"
|
|
111
|
+
>
|
|
112
|
+
<g
|
|
113
|
+
as="g"
|
|
114
|
+
class=""
|
|
115
|
+
>
|
|
116
|
+
<polygon
|
|
117
|
+
as="polygon"
|
|
118
|
+
class=""
|
|
119
|
+
points="12 18 20 10 15.3 10 15.3 2 8.7 2 8.7 10 4 10 12 18"
|
|
120
|
+
/>
|
|
121
|
+
<rect
|
|
122
|
+
as="rect"
|
|
123
|
+
class=""
|
|
124
|
+
height="3.301"
|
|
125
|
+
width="12"
|
|
126
|
+
x="6"
|
|
127
|
+
y="18.699"
|
|
128
|
+
/>
|
|
129
|
+
</g>
|
|
130
|
+
</svg>
|
|
131
|
+
</div>
|
|
132
|
+
</body>
|
|
133
|
+
`;
|
|
134
|
+
|
|
135
|
+
exports[`renders the DownloadIcon with prop color=white 1`] = `
|
|
136
|
+
<body>
|
|
137
|
+
<div>
|
|
138
|
+
<svg
|
|
139
|
+
aria-hidden="true"
|
|
140
|
+
as="svg"
|
|
141
|
+
class="ds-svg-icon--download ds-svg-icon ds-svg-icon--white"
|
|
142
|
+
focusable="false"
|
|
143
|
+
viewBox="0 0 24 24"
|
|
144
|
+
>
|
|
145
|
+
<g
|
|
146
|
+
as="g"
|
|
147
|
+
class=""
|
|
148
|
+
>
|
|
149
|
+
<polygon
|
|
150
|
+
as="polygon"
|
|
151
|
+
class=""
|
|
152
|
+
points="12 18 20 10 15.3 10 15.3 2 8.7 2 8.7 10 4 10 12 18"
|
|
153
|
+
/>
|
|
154
|
+
<rect
|
|
155
|
+
as="rect"
|
|
156
|
+
class=""
|
|
157
|
+
height="3.301"
|
|
158
|
+
width="12"
|
|
159
|
+
x="6"
|
|
160
|
+
y="18.699"
|
|
161
|
+
/>
|
|
162
|
+
</g>
|
|
163
|
+
</svg>
|
|
164
|
+
</div>
|
|
165
|
+
</body>
|
|
166
|
+
`;
|
|
167
|
+
|
|
168
|
+
exports[`renders the DownloadIcon with prop size=m 1`] = `
|
|
169
|
+
<body>
|
|
170
|
+
<div>
|
|
171
|
+
<svg
|
|
172
|
+
aria-hidden="true"
|
|
173
|
+
as="svg"
|
|
174
|
+
class="ds-svg-icon--download ds-svg-icon ds-svg-icon--md"
|
|
175
|
+
focusable="false"
|
|
176
|
+
viewBox="0 0 24 24"
|
|
177
|
+
>
|
|
178
|
+
<g
|
|
179
|
+
as="g"
|
|
180
|
+
class=""
|
|
181
|
+
>
|
|
182
|
+
<polygon
|
|
183
|
+
as="polygon"
|
|
184
|
+
class=""
|
|
185
|
+
points="12 18 20 10 15.3 10 15.3 2 8.7 2 8.7 10 4 10 12 18"
|
|
186
|
+
/>
|
|
187
|
+
<rect
|
|
188
|
+
as="rect"
|
|
189
|
+
class=""
|
|
190
|
+
height="3.301"
|
|
191
|
+
width="12"
|
|
192
|
+
x="6"
|
|
193
|
+
y="18.699"
|
|
194
|
+
/>
|
|
195
|
+
</g>
|
|
196
|
+
</svg>
|
|
197
|
+
</div>
|
|
198
|
+
</body>
|
|
199
|
+
`;
|
|
200
|
+
|
|
201
|
+
exports[`renders the DownloadIcon with prop size=xl 1`] = `
|
|
202
|
+
<body>
|
|
203
|
+
<div>
|
|
204
|
+
<svg
|
|
205
|
+
aria-hidden="true"
|
|
206
|
+
as="svg"
|
|
207
|
+
class="ds-svg-icon--download ds-svg-icon ds-svg-icon--xl"
|
|
208
|
+
focusable="false"
|
|
209
|
+
viewBox="0 0 24 24"
|
|
210
|
+
>
|
|
211
|
+
<g
|
|
212
|
+
as="g"
|
|
213
|
+
class=""
|
|
214
|
+
>
|
|
215
|
+
<polygon
|
|
216
|
+
as="polygon"
|
|
217
|
+
class=""
|
|
218
|
+
points="12 18 20 10 15.3 10 15.3 2 8.7 2 8.7 10 4 10 12 18"
|
|
219
|
+
/>
|
|
220
|
+
<rect
|
|
221
|
+
as="rect"
|
|
222
|
+
class=""
|
|
223
|
+
height="3.301"
|
|
224
|
+
width="12"
|
|
225
|
+
x="6"
|
|
226
|
+
y="18.699"
|
|
227
|
+
/>
|
|
228
|
+
</g>
|
|
229
|
+
</svg>
|
|
230
|
+
</div>
|
|
231
|
+
</body>
|
|
232
|
+
`;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import IconBase from '@digigov/react-icons/IconBase';
|
|
3
|
+
|
|
4
|
+
export interface DownloadType {}
|
|
5
|
+
|
|
6
|
+
export function download(): React.ReactElement {
|
|
7
|
+
return (
|
|
8
|
+
<IconBase as="g">
|
|
9
|
+
<IconBase
|
|
10
|
+
as="polygon"
|
|
11
|
+
points="12 18 20 10 15.3 10 15.3 2 8.7 2 8.7 10 4 10 12 18"
|
|
12
|
+
/>
|
|
13
|
+
<IconBase as="rect" x="6" y="18.699" width="12" height="3.301" />
|
|
14
|
+
</IconBase>
|
|
15
|
+
);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
download.props = [];
|
|
19
|
+
|
|
20
|
+
export default download;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { render } from '@testing-library/react';
|
|
3
|
+
|
|
4
|
+
import DownloadIcon from '@digigov/react-icons/DownloadIcon';
|
|
5
|
+
|
|
6
|
+
it('renders the DownloadIcon with no props', () => {
|
|
7
|
+
expect(render(<DownloadIcon />).baseElement).toMatchSnapshot();
|
|
8
|
+
});
|
|
9
|
+
it('renders the DownloadIcon with prop size=m', () => {
|
|
10
|
+
expect(render(<DownloadIcon size="md" />).baseElement).toMatchSnapshot();
|
|
11
|
+
});
|
|
12
|
+
it('renders the DownloadIcon with prop size=xl', () => {
|
|
13
|
+
expect(render(<DownloadIcon size="xl" />).baseElement).toMatchSnapshot();
|
|
14
|
+
});
|
|
15
|
+
it('renders the DownloadIcon with prop color=white', () => {
|
|
16
|
+
expect(render(<DownloadIcon color="white" />).baseElement).toMatchSnapshot();
|
|
17
|
+
});
|
|
18
|
+
it('renders the DownloadIcon with prop color=warning', () => {
|
|
19
|
+
expect(
|
|
20
|
+
render(<DownloadIcon color="warning" />).baseElement
|
|
21
|
+
).toMatchSnapshot();
|
|
22
|
+
});
|
|
23
|
+
it('renders the DownloadIcon with prop color=warning and size=s', () => {
|
|
24
|
+
expect(
|
|
25
|
+
render(<DownloadIcon color="warning" size="sm" />).baseElement
|
|
26
|
+
).toMatchSnapshot();
|
|
27
|
+
});
|
|
28
|
+
it('renders the DownloadIcon with prop color=error and size= xl', () => {
|
|
29
|
+
expect(
|
|
30
|
+
render(<DownloadIcon color="warning" size="xl" />).baseElement
|
|
31
|
+
).toMatchSnapshot();
|
|
32
|
+
});
|
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
|
|
2
|
+
|
|
3
|
+
exports[`renders the ExclamationIcon with no props 1`] = `
|
|
4
|
+
<body>
|
|
5
|
+
<div>
|
|
6
|
+
<svg
|
|
7
|
+
aria-hidden="true"
|
|
8
|
+
as="svg"
|
|
9
|
+
class="ds-svg-icon--exclamation ds-svg-icon"
|
|
10
|
+
focusable="false"
|
|
11
|
+
viewBox="0 0 24 24"
|
|
12
|
+
>
|
|
13
|
+
<path
|
|
14
|
+
as="path"
|
|
15
|
+
class=""
|
|
16
|
+
d="M13.716,16.486h-3.446l-.488-14.486h4.422l-.488,14.486Z"
|
|
17
|
+
/>
|
|
18
|
+
<circle
|
|
19
|
+
as="circle"
|
|
20
|
+
class=""
|
|
21
|
+
cx="11.993"
|
|
22
|
+
cy="19.9"
|
|
23
|
+
r="2.1"
|
|
24
|
+
/>
|
|
25
|
+
</svg>
|
|
26
|
+
</div>
|
|
27
|
+
</body>
|
|
28
|
+
`;
|
|
29
|
+
|
|
30
|
+
exports[`renders the ExclamationIcon with prop color=error and size=sm 1`] = `
|
|
31
|
+
<body>
|
|
32
|
+
<div>
|
|
33
|
+
<svg
|
|
34
|
+
aria-hidden="true"
|
|
35
|
+
as="svg"
|
|
36
|
+
class="ds-svg-icon--exclamation ds-svg-icon ds-svg-icon--error ds-svg-icon--sm"
|
|
37
|
+
focusable="false"
|
|
38
|
+
viewBox="0 0 24 24"
|
|
39
|
+
>
|
|
40
|
+
<path
|
|
41
|
+
as="path"
|
|
42
|
+
class=""
|
|
43
|
+
d="M13.716,16.486h-3.446l-.488-14.486h4.422l-.488,14.486Z"
|
|
44
|
+
/>
|
|
45
|
+
<circle
|
|
46
|
+
as="circle"
|
|
47
|
+
class=""
|
|
48
|
+
cx="11.993"
|
|
49
|
+
cy="19.9"
|
|
50
|
+
r="2.1"
|
|
51
|
+
/>
|
|
52
|
+
</svg>
|
|
53
|
+
</div>
|
|
54
|
+
</body>
|
|
55
|
+
`;
|
|
56
|
+
|
|
57
|
+
exports[`renders the ExclamationIcon with prop color=info and size= xl 1`] = `
|
|
58
|
+
<body>
|
|
59
|
+
<div>
|
|
60
|
+
<svg
|
|
61
|
+
aria-hidden="true"
|
|
62
|
+
as="svg"
|
|
63
|
+
class="ds-svg-icon--exclamation ds-svg-icon ds-svg-icon--info ds-svg-icon--xl"
|
|
64
|
+
focusable="false"
|
|
65
|
+
viewBox="0 0 24 24"
|
|
66
|
+
>
|
|
67
|
+
<path
|
|
68
|
+
as="path"
|
|
69
|
+
class=""
|
|
70
|
+
d="M13.716,16.486h-3.446l-.488-14.486h4.422l-.488,14.486Z"
|
|
71
|
+
/>
|
|
72
|
+
<circle
|
|
73
|
+
as="circle"
|
|
74
|
+
class=""
|
|
75
|
+
cx="11.993"
|
|
76
|
+
cy="19.9"
|
|
77
|
+
r="2.1"
|
|
78
|
+
/>
|
|
79
|
+
</svg>
|
|
80
|
+
</div>
|
|
81
|
+
</body>
|
|
82
|
+
`;
|
|
83
|
+
|
|
84
|
+
exports[`renders the ExclamationIcon with prop color=warning 1`] = `
|
|
85
|
+
<body>
|
|
86
|
+
<div>
|
|
87
|
+
<svg
|
|
88
|
+
aria-hidden="true"
|
|
89
|
+
as="svg"
|
|
90
|
+
class="ds-svg-icon--exclamation ds-svg-icon ds-svg-icon--warning"
|
|
91
|
+
focusable="false"
|
|
92
|
+
viewBox="0 0 24 24"
|
|
93
|
+
>
|
|
94
|
+
<path
|
|
95
|
+
as="path"
|
|
96
|
+
class=""
|
|
97
|
+
d="M13.716,16.486h-3.446l-.488-14.486h4.422l-.488,14.486Z"
|
|
98
|
+
/>
|
|
99
|
+
<circle
|
|
100
|
+
as="circle"
|
|
101
|
+
class=""
|
|
102
|
+
cx="11.993"
|
|
103
|
+
cy="19.9"
|
|
104
|
+
r="2.1"
|
|
105
|
+
/>
|
|
106
|
+
</svg>
|
|
107
|
+
</div>
|
|
108
|
+
</body>
|
|
109
|
+
`;
|
|
110
|
+
|
|
111
|
+
exports[`renders the ExclamationIcon with prop color=white 1`] = `
|
|
112
|
+
<body>
|
|
113
|
+
<div>
|
|
114
|
+
<svg
|
|
115
|
+
aria-hidden="true"
|
|
116
|
+
as="svg"
|
|
117
|
+
class="ds-svg-icon--exclamation ds-svg-icon ds-svg-icon--white"
|
|
118
|
+
focusable="false"
|
|
119
|
+
viewBox="0 0 24 24"
|
|
120
|
+
>
|
|
121
|
+
<path
|
|
122
|
+
as="path"
|
|
123
|
+
class=""
|
|
124
|
+
d="M13.716,16.486h-3.446l-.488-14.486h4.422l-.488,14.486Z"
|
|
125
|
+
/>
|
|
126
|
+
<circle
|
|
127
|
+
as="circle"
|
|
128
|
+
class=""
|
|
129
|
+
cx="11.993"
|
|
130
|
+
cy="19.9"
|
|
131
|
+
r="2.1"
|
|
132
|
+
/>
|
|
133
|
+
</svg>
|
|
134
|
+
</div>
|
|
135
|
+
</body>
|
|
136
|
+
`;
|
|
137
|
+
|
|
138
|
+
exports[`renders the ExclamationIcon with prop size=md 1`] = `
|
|
139
|
+
<body>
|
|
140
|
+
<div>
|
|
141
|
+
<svg
|
|
142
|
+
aria-hidden="true"
|
|
143
|
+
as="svg"
|
|
144
|
+
class="ds-svg-icon--exclamation ds-svg-icon ds-svg-icon--md"
|
|
145
|
+
focusable="false"
|
|
146
|
+
viewBox="0 0 24 24"
|
|
147
|
+
>
|
|
148
|
+
<path
|
|
149
|
+
as="path"
|
|
150
|
+
class=""
|
|
151
|
+
d="M13.716,16.486h-3.446l-.488-14.486h4.422l-.488,14.486Z"
|
|
152
|
+
/>
|
|
153
|
+
<circle
|
|
154
|
+
as="circle"
|
|
155
|
+
class=""
|
|
156
|
+
cx="11.993"
|
|
157
|
+
cy="19.9"
|
|
158
|
+
r="2.1"
|
|
159
|
+
/>
|
|
160
|
+
</svg>
|
|
161
|
+
</div>
|
|
162
|
+
</body>
|
|
163
|
+
`;
|
|
164
|
+
|
|
165
|
+
exports[`renders the ExclamationIcon with prop size=xl 1`] = `
|
|
166
|
+
<body>
|
|
167
|
+
<div>
|
|
168
|
+
<svg
|
|
169
|
+
aria-hidden="true"
|
|
170
|
+
as="svg"
|
|
171
|
+
class="ds-svg-icon--exclamation ds-svg-icon ds-svg-icon--xl"
|
|
172
|
+
focusable="false"
|
|
173
|
+
viewBox="0 0 24 24"
|
|
174
|
+
>
|
|
175
|
+
<path
|
|
176
|
+
as="path"
|
|
177
|
+
class=""
|
|
178
|
+
d="M13.716,16.486h-3.446l-.488-14.486h4.422l-.488,14.486Z"
|
|
179
|
+
/>
|
|
180
|
+
<circle
|
|
181
|
+
as="circle"
|
|
182
|
+
class=""
|
|
183
|
+
cx="11.993"
|
|
184
|
+
cy="19.9"
|
|
185
|
+
r="2.1"
|
|
186
|
+
/>
|
|
187
|
+
</svg>
|
|
188
|
+
</div>
|
|
189
|
+
</body>
|
|
190
|
+
`;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import IconBase from '@digigov/react-icons/IconBase';
|
|
3
|
+
|
|
4
|
+
export interface ExclamationType {}
|
|
5
|
+
|
|
6
|
+
export function exclamation(): React.ReactElement {
|
|
7
|
+
return (
|
|
8
|
+
<>
|
|
9
|
+
<IconBase
|
|
10
|
+
as="path"
|
|
11
|
+
d="M13.716,16.486h-3.446l-.488-14.486h4.422l-.488,14.486Z"
|
|
12
|
+
/>
|
|
13
|
+
<IconBase as="circle" cx="11.993" cy="19.9" r="2.1" />
|
|
14
|
+
</>
|
|
15
|
+
);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
exclamation.props = [];
|
|
19
|
+
|
|
20
|
+
export default exclamation;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { render } from '@testing-library/react';
|
|
3
|
+
|
|
4
|
+
import ExclamationIcon from '@digigov/react-icons/ExclamationIcon';
|
|
5
|
+
|
|
6
|
+
it('renders the ExclamationIcon with no props', () => {
|
|
7
|
+
expect(render(<ExclamationIcon />).baseElement).toMatchSnapshot();
|
|
8
|
+
});
|
|
9
|
+
it('renders the ExclamationIcon with prop size=md', () => {
|
|
10
|
+
expect(render(<ExclamationIcon size="md" />).baseElement).toMatchSnapshot();
|
|
11
|
+
});
|
|
12
|
+
it('renders the ExclamationIcon with prop size=xl', () => {
|
|
13
|
+
expect(render(<ExclamationIcon size="xl" />).baseElement).toMatchSnapshot();
|
|
14
|
+
});
|
|
15
|
+
it('renders the ExclamationIcon with prop color=white', () => {
|
|
16
|
+
expect(
|
|
17
|
+
render(<ExclamationIcon color="white" />).baseElement
|
|
18
|
+
).toMatchSnapshot();
|
|
19
|
+
});
|
|
20
|
+
it('renders the ExclamationIcon with prop color=warning', () => {
|
|
21
|
+
expect(
|
|
22
|
+
render(<ExclamationIcon color="warning" />).baseElement
|
|
23
|
+
).toMatchSnapshot();
|
|
24
|
+
});
|
|
25
|
+
it('renders the ExclamationIcon with prop color=error and size=sm', () => {
|
|
26
|
+
expect(
|
|
27
|
+
render(<ExclamationIcon color="error" size="sm" />).baseElement
|
|
28
|
+
).toMatchSnapshot();
|
|
29
|
+
});
|
|
30
|
+
it('renders the ExclamationIcon with prop color=info and size= xl', () => {
|
|
31
|
+
expect(
|
|
32
|
+
render(<ExclamationIcon color="info" size="xl" />).baseElement
|
|
33
|
+
).toMatchSnapshot();
|
|
34
|
+
});
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import Icon, { IconProps } from '@digigov/react-icons/Icon';
|
|
3
|
+
|
|
4
|
+
export const ExclamationIcon: React.FC<IconProps<'exclamation'>> = (props) => {
|
|
5
|
+
return <Icon {...props} icon="exclamation"></Icon>;
|
|
6
|
+
};
|
|
7
|
+
|
|
8
|
+
export default ExclamationIcon;
|