@digigov/react-icons 1.2.0-a7ffb5dc → 2.0.0-7d9a8d86
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 +15 -13
- package/AccessibilityIcon/config.js.map +7 -0
- package/AccessibilityIcon/index.js +12 -7
- package/AccessibilityIcon/index.js.map +7 -0
- package/AccessibilityIcon/index.test/index.js +49 -57
- package/AccessibilityIcon/index.test.js.map +7 -0
- package/ArrowIcon/config/index.js +18 -21
- package/ArrowIcon/config.js.map +7 -0
- package/ArrowIcon/index.js +12 -7
- package/ArrowIcon/index.js.map +7 -0
- package/ArrowIcon/index.test/index.js +18 -21
- package/ArrowIcon/index.test.js.map +7 -0
- package/BurgerIcon/config/index.js +27 -27
- package/BurgerIcon/config.js.map +7 -0
- package/BurgerIcon/index.js +12 -7
- package/BurgerIcon/index.js.map +7 -0
- package/BurgerIcon/index.test/index.js +33 -38
- package/BurgerIcon/index.test.js.map +7 -0
- package/CancelIcon/config/index.js +13 -0
- package/CancelIcon/config/package.json +6 -0
- 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 +14 -0
- package/CancelIcon/index.js.map +7 -0
- package/CancelIcon/index.test/index.js +39 -0
- package/CancelIcon/index.test/package.json +6 -0
- package/CancelIcon/index.test.d.ts +1 -0
- package/CancelIcon/index.test.js.map +7 -0
- package/CancelIcon/package.json +6 -0
- package/CaretIcon/config/index.js +18 -21
- package/CaretIcon/config.js.map +7 -0
- package/CaretIcon/index.js +12 -7
- package/CaretIcon/index.js.map +7 -0
- package/CaretIcon/index.test/index.js +18 -21
- package/CaretIcon/index.test.js.map +7 -0
- package/ChatIcon/config/index.js +15 -0
- package/ChatIcon/config/package.json +6 -0
- 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 +14 -0
- package/ChatIcon/index.js.map +7 -0
- package/ChatIcon/index.test/index.js +44 -0
- package/ChatIcon/index.test/package.json +6 -0
- package/ChatIcon/index.test.d.ts +1 -0
- package/ChatIcon/index.test.js.map +7 -0
- package/ChatIcon/package.json +6 -0
- package/CheckIcon/config/index.js +11 -7
- package/CheckIcon/config.js.map +7 -0
- package/CheckIcon/index.js +12 -7
- package/CheckIcon/index.js.map +7 -0
- package/CheckIcon/index.test/index.js +44 -51
- package/CheckIcon/index.test.js.map +7 -0
- package/ChevronIcon/config/index.js +18 -21
- package/ChevronIcon/config.js.map +7 -0
- package/ChevronIcon/index.js +12 -7
- package/ChevronIcon/index.js.map +7 -0
- package/ChevronIcon/index.test/index.js +18 -21
- package/ChevronIcon/index.test.js.map +7 -0
- package/CloseIcon/config/index.js +11 -7
- package/CloseIcon/config.js.map +7 -0
- package/CloseIcon/index.js +12 -7
- package/CloseIcon/index.js.map +7 -0
- package/CloseIcon/index.test/index.js +7 -7
- package/CloseIcon/index.test.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 +14 -0
- package/DownloadIcon/index.js.map +7 -0
- package/DownloadIcon/index.test/index.js +39 -0
- package/DownloadIcon/index.test/package.json +6 -0
- package/DownloadIcon/index.test.d.ts +1 -0
- package/DownloadIcon/index.test.js.map +7 -0
- package/DownloadIcon/package.json +6 -0
- package/ExclamationIcon/config/index.js +17 -0
- package/ExclamationIcon/config/package.json +6 -0
- 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 +14 -0
- package/ExclamationIcon/index.js.map +7 -0
- package/ExclamationIcon/index.test/index.js +39 -0
- package/ExclamationIcon/index.test/package.json +6 -0
- package/ExclamationIcon/index.test.d.ts +1 -0
- package/ExclamationIcon/index.test.js.map +7 -0
- package/ExclamationIcon/package.json +6 -0
- package/GlobeIcon/config/index.js +11 -7
- package/GlobeIcon/config.js.map +7 -0
- package/GlobeIcon/index.js +12 -7
- package/GlobeIcon/index.js.map +7 -0
- package/GlobeIcon/index.test/index.js +18 -21
- package/GlobeIcon/index.test.js.map +7 -0
- package/Icon/index.js +27 -29
- package/Icon/index.js.map +7 -0
- package/Icon/index.test/index.js +53 -62
- package/Icon/index.test.js.map +7 -0
- package/LockIcon/config/index.js +13 -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 +14 -0
- package/LockIcon/index.js.map +7 -0
- package/LockIcon/index.test/index.js +39 -0
- package/LockIcon/index.test/package.json +6 -0
- package/LockIcon/index.test.d.ts +1 -0
- package/LockIcon/index.test.js.map +7 -0
- package/LockIcon/package.json +6 -0
- package/LoginIcon/config/index.js +15 -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 +14 -0
- package/LoginIcon/index.js.map +7 -0
- package/LoginIcon/index.test/index.js +39 -0
- package/LoginIcon/index.test/package.json +6 -0
- package/LoginIcon/index.test.d.ts +1 -0
- package/LoginIcon/index.test.js.map +7 -0
- package/LoginIcon/package.json +6 -0
- package/MinusIcon/config/index.js +16 -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 +14 -0
- package/MinusIcon/index.js.map +7 -0
- package/MinusIcon/index.test/index.js +39 -0
- package/MinusIcon/index.test/package.json +6 -0
- package/MinusIcon/index.test.d.ts +1 -0
- package/MinusIcon/index.test.js.map +7 -0
- package/MinusIcon/package.json +6 -0
- package/MoreVertIcon/config/index.js +21 -19
- package/MoreVertIcon/config.js.map +7 -0
- package/MoreVertIcon/index.js +12 -7
- package/MoreVertIcon/index.js.map +7 -0
- package/MoreVertIcon/index.test/index.js +49 -57
- package/MoreVertIcon/index.test.js.map +7 -0
- package/PdfFileIcon/config/index.js +19 -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 +14 -0
- package/PdfFileIcon/index.js.map +7 -0
- package/PdfFileIcon/index.test/index.js +39 -0
- package/PdfFileIcon/index.test/package.json +6 -0
- package/PdfFileIcon/index.test.d.ts +1 -0
- package/PdfFileIcon/index.test.js.map +7 -0
- package/PdfFileIcon/package.json +6 -0
- package/PlusIcon/config/index.js +13 -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 +14 -0
- package/PlusIcon/index.js.map +7 -0
- package/PlusIcon/index.test/index.js +39 -0
- package/PlusIcon/index.test/package.json +6 -0
- package/PlusIcon/index.test.d.ts +1 -0
- package/PlusIcon/index.test.js.map +7 -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 +14 -0
- package/PrintIcon/index.js.map +7 -0
- package/PrintIcon/index.test/index.js +39 -0
- package/PrintIcon/index.test/package.json +6 -0
- package/PrintIcon/index.test.d.ts +1 -0
- package/PrintIcon/index.test.js.map +7 -0
- package/PrintIcon/package.json +6 -0
- package/ReplyIcon/config/index.js +13 -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 +14 -0
- package/ReplyIcon/index.js.map +7 -0
- package/ReplyIcon/index.test/index.js +39 -0
- package/ReplyIcon/index.test/package.json +6 -0
- package/ReplyIcon/index.test.d.ts +1 -0
- package/ReplyIcon/index.test.js.map +7 -0
- package/ReplyIcon/package.json +6 -0
- package/RestoreIcon/config/index.js +19 -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 +14 -0
- package/RestoreIcon/index.js.map +7 -0
- package/RestoreIcon/index.test/index.js +39 -0
- package/RestoreIcon/index.test/package.json +6 -0
- package/RestoreIcon/index.test.d.ts +1 -0
- package/RestoreIcon/index.test.js.map +7 -0
- package/RestoreIcon/package.json +6 -0
- package/SearchIcon/config/index.js +11 -7
- package/SearchIcon/config.js.map +7 -0
- package/SearchIcon/index.js +12 -7
- package/SearchIcon/index.js.map +7 -0
- package/SearchIcon/index.test/index.js +7 -7
- package/SearchIcon/index.test.js.map +7 -0
- package/UncheckIcon/config/index.js +11 -7
- package/UncheckIcon/config.js.map +7 -0
- package/UncheckIcon/index.js +12 -7
- package/UncheckIcon/index.js.map +7 -0
- package/UncheckIcon/index.test/index.js +49 -57
- package/UncheckIcon/index.test.js.map +7 -0
- package/cjs/AccessibilityIcon/config/index.js +40 -19
- package/cjs/AccessibilityIcon/config.js.map +7 -0
- package/cjs/AccessibilityIcon/index.js +38 -13
- package/cjs/AccessibilityIcon/index.js.map +7 -0
- package/cjs/AccessibilityIcon/index.test/index.js +67 -60
- package/cjs/AccessibilityIcon/index.test.js.map +7 -0
- package/cjs/ArrowIcon/config/index.js +44 -27
- package/cjs/ArrowIcon/config.js.map +7 -0
- package/cjs/ArrowIcon/index.js +38 -13
- package/cjs/ArrowIcon/index.js.map +7 -0
- package/cjs/ArrowIcon/index.test/index.js +36 -24
- package/cjs/ArrowIcon/index.test.js.map +7 -0
- package/cjs/BurgerIcon/config/index.js +53 -33
- package/cjs/BurgerIcon/config.js.map +7 -0
- package/cjs/BurgerIcon/index.js +38 -13
- package/cjs/BurgerIcon/index.js.map +7 -0
- package/cjs/BurgerIcon/index.test/index.js +51 -41
- package/cjs/BurgerIcon/index.test.js.map +7 -0
- package/cjs/CancelIcon/config/index.js +40 -0
- package/cjs/CancelIcon/config.js.map +7 -0
- package/cjs/CancelIcon/index.js +41 -0
- package/cjs/CancelIcon/index.js.map +7 -0
- package/cjs/CancelIcon/index.test/index.js +57 -0
- package/cjs/CancelIcon/index.test.js.map +7 -0
- package/cjs/CaretIcon/config/index.js +44 -27
- package/cjs/CaretIcon/config.js.map +7 -0
- package/cjs/CaretIcon/index.js +38 -13
- package/cjs/CaretIcon/index.js.map +7 -0
- package/cjs/CaretIcon/index.test/index.js +36 -24
- package/cjs/CaretIcon/index.test.js.map +7 -0
- package/cjs/ChatIcon/config/index.js +42 -0
- package/cjs/ChatIcon/config.js.map +7 -0
- package/cjs/ChatIcon/index.js +41 -0
- package/cjs/ChatIcon/index.js.map +7 -0
- package/cjs/ChatIcon/index.test/index.js +62 -0
- package/cjs/ChatIcon/index.test.js.map +7 -0
- package/cjs/CheckIcon/config/index.js +36 -13
- package/cjs/CheckIcon/config.js.map +7 -0
- package/cjs/CheckIcon/index.js +38 -13
- package/cjs/CheckIcon/index.js.map +7 -0
- package/cjs/CheckIcon/index.test/index.js +62 -54
- package/cjs/CheckIcon/index.test.js.map +7 -0
- package/cjs/ChevronIcon/config/index.js +44 -27
- package/cjs/ChevronIcon/config.js.map +7 -0
- package/cjs/ChevronIcon/index.js +38 -13
- package/cjs/ChevronIcon/index.js.map +7 -0
- package/cjs/ChevronIcon/index.test/index.js +36 -24
- package/cjs/ChevronIcon/index.test.js.map +7 -0
- package/cjs/CloseIcon/config/index.js +36 -13
- package/cjs/CloseIcon/config.js.map +7 -0
- package/cjs/CloseIcon/index.js +38 -13
- package/cjs/CloseIcon/index.js.map +7 -0
- package/cjs/CloseIcon/index.test/index.js +25 -10
- package/cjs/CloseIcon/index.test.js.map +7 -0
- package/cjs/DownloadIcon/config/index.js +45 -0
- package/cjs/DownloadIcon/config.js.map +7 -0
- package/cjs/DownloadIcon/index.js +41 -0
- package/cjs/DownloadIcon/index.js.map +7 -0
- package/cjs/DownloadIcon/index.test/index.js +57 -0
- package/cjs/DownloadIcon/index.test.js.map +7 -0
- package/cjs/ExclamationIcon/config/index.js +44 -0
- package/cjs/ExclamationIcon/config.js.map +7 -0
- package/cjs/ExclamationIcon/index.js +41 -0
- package/cjs/ExclamationIcon/index.js.map +7 -0
- package/cjs/ExclamationIcon/index.test/index.js +57 -0
- package/cjs/ExclamationIcon/index.test.js.map +7 -0
- package/cjs/GlobeIcon/config/index.js +36 -13
- package/cjs/GlobeIcon/config.js.map +7 -0
- package/cjs/GlobeIcon/index.js +38 -13
- package/cjs/GlobeIcon/index.js.map +7 -0
- package/cjs/GlobeIcon/index.test/index.js +36 -24
- package/cjs/GlobeIcon/index.test.js.map +7 -0
- package/cjs/Icon/index.js +53 -38
- package/cjs/Icon/index.js.map +7 -0
- package/cjs/Icon/index.test/index.js +71 -65
- package/cjs/Icon/index.test.js.map +7 -0
- package/cjs/LockIcon/config/index.js +40 -0
- package/cjs/LockIcon/config.js.map +7 -0
- package/cjs/LockIcon/index.js +41 -0
- package/cjs/LockIcon/index.js.map +7 -0
- package/cjs/LockIcon/index.test/index.js +57 -0
- package/cjs/LockIcon/index.test.js.map +7 -0
- package/cjs/LoginIcon/config/index.js +42 -0
- package/cjs/LoginIcon/config.js.map +7 -0
- package/cjs/LoginIcon/index.js +41 -0
- package/cjs/LoginIcon/index.js.map +7 -0
- package/cjs/LoginIcon/index.test/index.js +57 -0
- package/cjs/LoginIcon/index.test.js.map +7 -0
- package/cjs/MinusIcon/config/index.js +43 -0
- package/cjs/MinusIcon/config.js.map +7 -0
- package/cjs/MinusIcon/index.js +41 -0
- package/cjs/MinusIcon/index.js.map +7 -0
- package/cjs/MinusIcon/index.test/index.js +57 -0
- package/cjs/MinusIcon/index.test.js.map +7 -0
- package/cjs/MoreVertIcon/config/index.js +46 -25
- package/cjs/MoreVertIcon/config.js.map +7 -0
- package/cjs/MoreVertIcon/index.js +38 -13
- package/cjs/MoreVertIcon/index.js.map +7 -0
- package/cjs/MoreVertIcon/index.test/index.js +67 -60
- package/cjs/MoreVertIcon/index.test.js.map +7 -0
- package/cjs/PdfFileIcon/config/index.js +46 -0
- package/cjs/PdfFileIcon/config.js.map +7 -0
- package/cjs/PdfFileIcon/index.js +41 -0
- package/cjs/PdfFileIcon/index.js.map +7 -0
- package/cjs/PdfFileIcon/index.test/index.js +57 -0
- package/cjs/PdfFileIcon/index.test.js.map +7 -0
- package/cjs/PlusIcon/config/index.js +40 -0
- package/cjs/PlusIcon/config.js.map +7 -0
- package/cjs/PlusIcon/index.js +41 -0
- package/cjs/PlusIcon/index.js.map +7 -0
- package/cjs/PlusIcon/index.test/index.js +57 -0
- package/cjs/PlusIcon/index.test.js.map +7 -0
- package/cjs/PrintIcon/config/index.js +45 -0
- package/cjs/PrintIcon/config.js.map +7 -0
- package/cjs/PrintIcon/index.js +41 -0
- package/cjs/PrintIcon/index.js.map +7 -0
- package/cjs/PrintIcon/index.test/index.js +57 -0
- package/cjs/PrintIcon/index.test.js.map +7 -0
- package/cjs/ReplyIcon/config/index.js +40 -0
- package/cjs/ReplyIcon/config.js.map +7 -0
- package/cjs/ReplyIcon/index.js +41 -0
- package/cjs/ReplyIcon/index.js.map +7 -0
- package/cjs/ReplyIcon/index.test/index.js +57 -0
- package/cjs/ReplyIcon/index.test.js.map +7 -0
- package/cjs/RestoreIcon/config/index.js +46 -0
- package/cjs/RestoreIcon/config.js.map +7 -0
- package/cjs/RestoreIcon/index.js +41 -0
- package/cjs/RestoreIcon/index.js.map +7 -0
- package/cjs/RestoreIcon/index.test/index.js +57 -0
- package/cjs/RestoreIcon/index.test.js.map +7 -0
- package/cjs/SearchIcon/config/index.js +36 -13
- package/cjs/SearchIcon/config.js.map +7 -0
- package/cjs/SearchIcon/index.js +38 -13
- package/cjs/SearchIcon/index.js.map +7 -0
- package/cjs/SearchIcon/index.test/index.js +25 -10
- package/cjs/SearchIcon/index.test.js.map +7 -0
- package/cjs/UncheckIcon/config/index.js +36 -13
- package/cjs/UncheckIcon/config.js.map +7 -0
- package/cjs/UncheckIcon/index.js +38 -13
- package/cjs/UncheckIcon/index.js.map +7 -0
- package/cjs/UncheckIcon/index.test/index.js +67 -60
- package/cjs/UncheckIcon/index.test.js.map +7 -0
- package/cjs/icons/index.js +43 -126
- package/cjs/icons.js.map +7 -0
- package/cjs/index.js +43 -126
- package/cjs/index.js.map +7 -0
- package/cjs/lazy/index.js +55 -120
- package/cjs/lazy.js.map +7 -0
- package/cjs/registry/index.js +86 -43
- 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 +31 -87
- package/lazy.d.ts +12 -0
- package/lazy.js.map +7 -0
- package/package.json +4 -6
- package/registry/index.js +62 -35
- package/registry.d.ts +12 -0
- package/registry.js.map +7 -0
- package/src/AccessibilityIcon/__snapshots__/index.test.tsx.snap +51 -51
- package/src/AccessibilityIcon/index.test.tsx +12 -12
- package/src/ArrowIcon/__snapshots__/index.test.tsx.snap +8 -8
- package/src/BurgerIcon/__snapshots__/index.test.tsx.snap +22 -22
- package/src/BurgerIcon/index.test.tsx +8 -8
- package/src/CancelIcon/__snapshots__/index.test.tsx.snap +262 -0
- package/src/CancelIcon/config.tsx +15 -0
- package/src/CancelIcon/index.test.tsx +26 -0
- package/src/CancelIcon/index.tsx +8 -0
- package/src/ChatIcon/__snapshots__/index.test.tsx.snap +300 -0
- package/src/ChatIcon/config.tsx +28 -0
- package/src/ChatIcon/index.test.tsx +29 -0
- package/src/ChatIcon/index.tsx +8 -0
- package/src/CheckIcon/__snapshots__/index.test.tsx.snap +48 -48
- package/src/CheckIcon/index.test.tsx +10 -10
- package/{cjs/ArrowIcon → src/ChevronIcon}/__snapshots__/index.test.tsx.snap +36 -36
- package/src/DownloadIcon/__snapshots__/index.test.tsx.snap +318 -0
- package/src/DownloadIcon/config.tsx +16 -0
- package/src/DownloadIcon/index.test.tsx +26 -0
- package/src/DownloadIcon/index.tsx +8 -0
- package/src/ExclamationIcon/__snapshots__/index.test.tsx.snap +297 -0
- package/src/ExclamationIcon/config.tsx +16 -0
- package/src/ExclamationIcon/index.test.tsx +26 -0
- package/src/ExclamationIcon/index.tsx +8 -0
- package/src/GlobeIcon/__snapshots__/index.test.tsx.snap +20 -24
- package/src/GlobeIcon/config.tsx +1 -12
- package/src/GlobeIcon/index.test.tsx +6 -6
- package/src/Icon/__snapshots__/index.test.tsx.snap +11 -12
- package/src/LockIcon/__snapshots__/index.test.tsx.snap +262 -0
- package/src/LockIcon/config.tsx +15 -0
- package/src/LockIcon/index.test.tsx +26 -0
- package/src/LockIcon/index.tsx +8 -0
- package/src/LoginIcon/__snapshots__/index.test.tsx.snap +283 -0
- package/src/LoginIcon/config.tsx +16 -0
- package/src/LoginIcon/index.test.tsx +26 -0
- package/src/LoginIcon/index.tsx +8 -0
- package/src/MinusIcon/__snapshots__/index.test.tsx.snap +283 -0
- package/src/MinusIcon/config.tsx +15 -0
- package/src/MinusIcon/index.test.tsx +26 -0
- package/src/MinusIcon/index.tsx +8 -0
- package/src/MoreVertIcon/__snapshots__/index.test.tsx.snap +51 -51
- package/src/MoreVertIcon/index.test.tsx +12 -12
- package/src/PdfFileIcon/__snapshots__/index.test.tsx.snap +353 -0
- package/src/PdfFileIcon/config.tsx +20 -0
- package/src/PdfFileIcon/index.test.tsx +26 -0
- package/src/PdfFileIcon/index.tsx +8 -0
- package/src/PlusIcon/__snapshots__/index.test.tsx.snap +262 -0
- package/src/PlusIcon/config.tsx +15 -0
- package/src/PlusIcon/index.test.tsx +26 -0
- package/src/PlusIcon/index.tsx +8 -0
- package/src/PrintIcon/__snapshots__/index.test.tsx.snap +304 -0
- package/src/PrintIcon/config.tsx +16 -0
- package/src/PrintIcon/index.test.tsx +26 -0
- package/src/PrintIcon/index.tsx +8 -0
- package/src/ReplyIcon/__snapshots__/index.test.tsx.snap +262 -0
- package/src/ReplyIcon/config.tsx +15 -0
- package/src/ReplyIcon/index.test.tsx +26 -0
- package/src/ReplyIcon/index.tsx +8 -0
- package/src/RestoreIcon/__snapshots__/index.test.tsx.snap +318 -0
- package/src/RestoreIcon/config.tsx +17 -0
- package/src/RestoreIcon/index.test.tsx +26 -0
- package/src/RestoreIcon/index.tsx +8 -0
- package/src/UncheckIcon/__snapshots__/index.test.tsx.snap +54 -54
- package/src/UncheckIcon/index.test.tsx +12 -12
- package/src/icons.ts +37 -0
- package/src/index.ts +12 -0
- package/src/lazy.js +12 -0
- package/src/registry.js +24 -0
- package/AccessibilityIcon/__snapshots__/index.test.tsx.snap +0 -408
- package/ArrowIcon/__snapshots__/index.test.tsx.snap +0 -148
- package/BurgerIcon/__snapshots__/index.test.tsx.snap +0 -320
- package/CaretIcon/__snapshots__/index.test.tsx.snap +0 -148
- package/CheckIcon/__snapshots__/index.test.tsx.snap +0 -299
- package/CloseIcon/__snapshots__/index.test.tsx.snap +0 -34
- package/GlobeIcon/__snapshots__/index.test.tsx.snap +0 -149
- package/Icon/__snapshots__/index.test.tsx.snap +0 -343
- package/MoreVertIcon/__snapshots__/index.test.tsx.snap +0 -444
- package/SearchIcon/__snapshots__/index.test.tsx.snap +0 -34
- package/UncheckIcon/__snapshots__/index.test.tsx.snap +0 -336
- package/cjs/AccessibilityIcon/__snapshots__/index.test.tsx.snap +0 -408
- package/cjs/BurgerIcon/__snapshots__/index.test.tsx.snap +0 -320
- package/cjs/CaretIcon/__snapshots__/index.test.tsx.snap +0 -148
- package/cjs/CheckIcon/__snapshots__/index.test.tsx.snap +0 -299
- package/cjs/CloseIcon/__snapshots__/index.test.tsx.snap +0 -34
- package/cjs/GlobeIcon/__snapshots__/index.test.tsx.snap +0 -149
- package/cjs/Icon/__snapshots__/index.test.tsx.snap +0 -343
- package/cjs/MoreVertIcon/__snapshots__/index.test.tsx.snap +0 -444
- package/cjs/SearchIcon/__snapshots__/index.test.tsx.snap +0 -34
- package/cjs/UncheckIcon/__snapshots__/index.test.tsx.snap +0 -336
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import {mount} from "enzyme";
|
|
3
|
+
import CancelIcon from "@digigov/react-icons/CancelIcon";
|
|
4
|
+
it("renders the CancelIcon with no props", () => {
|
|
5
|
+
expect(mount(/* @__PURE__ */ React.createElement(CancelIcon, null))).toMatchSnapshot();
|
|
6
|
+
});
|
|
7
|
+
it("renders the CancelIcon with prop size=m", () => {
|
|
8
|
+
expect(mount(/* @__PURE__ */ React.createElement(CancelIcon, {
|
|
9
|
+
size: "md"
|
|
10
|
+
}))).toMatchSnapshot();
|
|
11
|
+
});
|
|
12
|
+
it("renders the CancelIcon with prop size=xl", () => {
|
|
13
|
+
expect(mount(/* @__PURE__ */ React.createElement(CancelIcon, {
|
|
14
|
+
size: "xl"
|
|
15
|
+
}))).toMatchSnapshot();
|
|
16
|
+
});
|
|
17
|
+
it("renders the CancelIcon with prop color=white", () => {
|
|
18
|
+
expect(mount(/* @__PURE__ */ React.createElement(CancelIcon, {
|
|
19
|
+
color: "white"
|
|
20
|
+
}))).toMatchSnapshot();
|
|
21
|
+
});
|
|
22
|
+
it("renders the CancelIcon with prop color=warning", () => {
|
|
23
|
+
expect(mount(/* @__PURE__ */ React.createElement(CancelIcon, {
|
|
24
|
+
color: "warning"
|
|
25
|
+
}))).toMatchSnapshot();
|
|
26
|
+
});
|
|
27
|
+
it("renders the CancelIcon with prop color=warning and size=s", () => {
|
|
28
|
+
expect(mount(/* @__PURE__ */ React.createElement(CancelIcon, {
|
|
29
|
+
color: "warning",
|
|
30
|
+
size: "sm"
|
|
31
|
+
}))).toMatchSnapshot();
|
|
32
|
+
});
|
|
33
|
+
it("renders the CancelIcon with prop color=error and size= xl", () => {
|
|
34
|
+
expect(mount(/* @__PURE__ */ React.createElement(CancelIcon, {
|
|
35
|
+
color: "warning",
|
|
36
|
+
size: "xl"
|
|
37
|
+
}))).toMatchSnapshot();
|
|
38
|
+
});
|
|
39
|
+
//# sourceMappingURL=index.test.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/CancelIcon/index.test.tsx"],
|
|
4
|
+
"sourcesContent": ["import React from 'react';\nimport { mount } from 'enzyme';\n\nimport CancelIcon from '@digigov/react-icons/CancelIcon';\n\nit('renders the CancelIcon with no props', () => {\n expect(mount(<CancelIcon />)).toMatchSnapshot();\n});\nit('renders the CancelIcon with prop size=m', () => {\n expect(mount(<CancelIcon size=\"md\" />)).toMatchSnapshot();\n});\nit('renders the CancelIcon with prop size=xl', () => {\n expect(mount(<CancelIcon size=\"xl\" />)).toMatchSnapshot();\n});\nit('renders the CancelIcon with prop color=white', () => {\n expect(mount(<CancelIcon color=\"white\" />)).toMatchSnapshot();\n});\nit('renders the CancelIcon with prop color=warning', () => {\n expect(mount(<CancelIcon color=\"warning\" />)).toMatchSnapshot();\n});\nit('renders the CancelIcon with prop color=warning and size=s', () => {\n expect(mount(<CancelIcon color=\"warning\" size=\"sm\" />)).toMatchSnapshot();\n});\nit('renders the CancelIcon with prop color=error and size= xl', () => {\n expect(mount(<CancelIcon color=\"warning\" size=\"xl\" />)).toMatchSnapshot();\n});\n"],
|
|
5
|
+
"mappings": "AAAA;AACA;AAEA;AAEA,GAAG,wCAAwC,MAAM;AAC/C,SAAO,MAAM,oCAAC,YAAD,QAAiB;AAAA;AAEhC,GAAG,2CAA2C,MAAM;AAClD,SAAO,MAAM,oCAAC,YAAD;AAAA,IAAY,MAAK;AAAA,OAAU;AAAA;AAE1C,GAAG,4CAA4C,MAAM;AACnD,SAAO,MAAM,oCAAC,YAAD;AAAA,IAAY,MAAK;AAAA,OAAU;AAAA;AAE1C,GAAG,gDAAgD,MAAM;AACvD,SAAO,MAAM,oCAAC,YAAD;AAAA,IAAY,OAAM;AAAA,OAAa;AAAA;AAE9C,GAAG,kDAAkD,MAAM;AACzD,SAAO,MAAM,oCAAC,YAAD;AAAA,IAAY,OAAM;AAAA,OAAe;AAAA;AAEhD,GAAG,6DAA6D,MAAM;AACpE,SAAO,MAAM,oCAAC,YAAD;AAAA,IAAY,OAAM;AAAA,IAAU,MAAK;AAAA,OAAU;AAAA;AAE1D,GAAG,6DAA6D,MAAM;AACpE,SAAO,MAAM,oCAAC,YAAD;AAAA,IAAY,OAAM;AAAA,IAAU,MAAK;AAAA,OAAU;AAAA;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -1,22 +1,19 @@
|
|
|
1
|
-
import React from
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
})
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
d: "M22,6H2l10,12L22,6z"
|
|
13
|
-
});
|
|
14
|
-
export var caret = function caret(_ref) {
|
|
15
|
-
var _ref$direction = _ref.direction,
|
|
16
|
-
direction = _ref$direction === void 0 ? 'left' : _ref$direction;
|
|
17
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, direction === 'left' && _ref2, direction === 'right' && _ref3, direction === 'up' && _ref4, direction === 'down' && _ref5);
|
|
1
|
+
import React from "react";
|
|
2
|
+
const caret = ({direction = "left"}) => {
|
|
3
|
+
return /* @__PURE__ */ React.createElement(React.Fragment, null, direction === "left" && /* @__PURE__ */ React.createElement("path", {
|
|
4
|
+
d: "M18,22V2L6,12L18,22z"
|
|
5
|
+
}), direction === "right" && /* @__PURE__ */ React.createElement("path", {
|
|
6
|
+
d: "M6,2v20l12-10L6,2z"
|
|
7
|
+
}), direction === "up" && /* @__PURE__ */ React.createElement("path", {
|
|
8
|
+
d: "M2,18h20L12,6L2,18z"
|
|
9
|
+
}), direction === "down" && /* @__PURE__ */ React.createElement("path", {
|
|
10
|
+
d: "M22,6H2l10,12L22,6z"
|
|
11
|
+
}));
|
|
18
12
|
};
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
13
|
+
caret.props = ["direction"];
|
|
14
|
+
var config_default = caret;
|
|
15
|
+
export {
|
|
16
|
+
caret,
|
|
17
|
+
config_default as default
|
|
18
|
+
};
|
|
19
|
+
//# sourceMappingURL=config.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/CaretIcon/config.tsx"],
|
|
4
|
+
"sourcesContent": ["import React from 'react';\n\nexport interface CaretType {\n /**\n * @value 'left'\n * @value 'right'\n * @value 'up'\n * @value 'down'\n * @default 'left'\n */\n direction?: 'left' | 'right' | 'up' | 'down';\n}\n\nexport const caret: React.FC<CaretType> = ({ direction = 'left' }) => {\n return (\n <>\n {direction === 'left' && <path d=\"M18,22V2L6,12L18,22z\" />}\n {direction === 'right' && <path d=\"M6,2v20l12-10L6,2z\" />}\n {direction === 'up' && <path d=\"M2,18h20L12,6L2,18z\" />}\n {direction === 'down' && <path d=\"M22,6H2l10,12L22,6z\" />}\n </>\n );\n};\n// eslint-disable-next-line @typescript-eslint/ban-ts-comment\n// @ts-ignore\ncaret.props = ['direction'];\n\nexport default caret;\n"],
|
|
5
|
+
"mappings": "AAAA;AAaO,MAAM,QAA6B,CAAC,CAAE,YAAY,YAAa;AACpE,SACE,0DACG,cAAc,UAAU,oCAAC,QAAD;AAAA,IAAM,GAAE;AAAA,MAChC,cAAc,WAAW,oCAAC,QAAD;AAAA,IAAM,GAAE;AAAA,MACjC,cAAc,QAAQ,oCAAC,QAAD;AAAA,IAAM,GAAE;AAAA,MAC9B,cAAc,UAAU,oCAAC,QAAD;AAAA,IAAM,GAAE;AAAA;AAAA;AAMvC,MAAM,QAAQ,CAAC;AAEf,IAAO,iBAAQ;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
package/CaretIcon/index.js
CHANGED
|
@@ -1,9 +1,14 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import React from "react";
|
|
2
|
+
import Icon from "@digigov/react-icons/Icon";
|
|
3
|
+
const CaretIcon = (props) => {
|
|
4
|
+
return /* @__PURE__ */ React.createElement(Icon, {
|
|
5
|
+
...props,
|
|
6
6
|
icon: "caret"
|
|
7
|
-
})
|
|
7
|
+
});
|
|
8
8
|
};
|
|
9
|
-
|
|
9
|
+
var CaretIcon_default = CaretIcon;
|
|
10
|
+
export {
|
|
11
|
+
CaretIcon,
|
|
12
|
+
CaretIcon_default as default
|
|
13
|
+
};
|
|
14
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/CaretIcon/index.tsx"],
|
|
4
|
+
"sourcesContent": ["import React from 'react';\nimport Icon, { IconProps } from '@digigov/react-icons/Icon';\n\nexport const CaretIcon: React.FC<IconProps<'caret'>> = (props) => {\n return <Icon {...props} icon=\"caret\"></Icon>;\n};\n\nexport default CaretIcon;\n"],
|
|
5
|
+
"mappings": "AAAA;AACA;AAEO,MAAM,YAA0C,CAAC,UAAU;AAChE,SAAO,oCAAC,MAAD;AAAA,OAAU;AAAA,IAAO,MAAK;AAAA;AAAA;AAG/B,IAAO,oBAAQ;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -1,25 +1,22 @@
|
|
|
1
|
-
import React from
|
|
2
|
-
import {
|
|
3
|
-
import CaretIcon from
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
expect(mount(_ref)).toMatchSnapshot();
|
|
1
|
+
import React from "react";
|
|
2
|
+
import {mount} from "enzyme";
|
|
3
|
+
import CaretIcon from "@digigov/react-icons/CaretIcon";
|
|
4
|
+
it("renders the CaretIcon with no props, direction prop is left by default", () => {
|
|
5
|
+
expect(mount(/* @__PURE__ */ React.createElement(CaretIcon, null))).toMatchSnapshot();
|
|
7
6
|
});
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
it("renders the CaretIcon with direction right prop", () => {
|
|
8
|
+
expect(mount(/* @__PURE__ */ React.createElement(CaretIcon, {
|
|
9
|
+
direction: "right"
|
|
10
|
+
}))).toMatchSnapshot();
|
|
10
11
|
});
|
|
11
|
-
it(
|
|
12
|
-
expect(mount(
|
|
12
|
+
it("renders the CaretIcon with direction up prop", () => {
|
|
13
|
+
expect(mount(/* @__PURE__ */ React.createElement(CaretIcon, {
|
|
14
|
+
direction: "up"
|
|
15
|
+
}))).toMatchSnapshot();
|
|
13
16
|
});
|
|
14
|
-
|
|
15
|
-
|
|
17
|
+
it("renders the CaretIcon with direction down prop", () => {
|
|
18
|
+
expect(mount(/* @__PURE__ */ React.createElement(CaretIcon, {
|
|
19
|
+
direction: "down"
|
|
20
|
+
}))).toMatchSnapshot();
|
|
16
21
|
});
|
|
17
|
-
|
|
18
|
-
expect(mount(_ref3)).toMatchSnapshot();
|
|
19
|
-
});
|
|
20
|
-
var _ref4 = /*#__PURE__*/React.createElement(CaretIcon, {
|
|
21
|
-
direction: "down"
|
|
22
|
-
});
|
|
23
|
-
it('renders the CaretIcon with direction down prop', function () {
|
|
24
|
-
expect(mount(_ref4)).toMatchSnapshot();
|
|
25
|
-
});
|
|
22
|
+
//# sourceMappingURL=index.test.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/CaretIcon/index.test.tsx"],
|
|
4
|
+
"sourcesContent": ["import React from 'react';\nimport { mount } from 'enzyme';\n\nimport CaretIcon from '@digigov/react-icons/CaretIcon';\n\nit('renders the CaretIcon with no props, direction prop is left by default', () => {\n expect(mount(<CaretIcon />)).toMatchSnapshot();\n});\n\nit('renders the CaretIcon with direction right prop', () => {\n expect(mount(<CaretIcon direction=\"right\" />)).toMatchSnapshot();\n});\n\nit('renders the CaretIcon with direction up prop', () => {\n expect(mount(<CaretIcon direction=\"up\" />)).toMatchSnapshot();\n});\n\nit('renders the CaretIcon with direction down prop', () => {\n expect(mount(<CaretIcon direction=\"down\" />)).toMatchSnapshot();\n});\n"],
|
|
5
|
+
"mappings": "AAAA;AACA;AAEA;AAEA,GAAG,0EAA0E,MAAM;AACjF,SAAO,MAAM,oCAAC,WAAD,QAAgB;AAAA;AAG/B,GAAG,mDAAmD,MAAM;AAC1D,SAAO,MAAM,oCAAC,WAAD;AAAA,IAAW,WAAU;AAAA,OAAa;AAAA;AAGjD,GAAG,gDAAgD,MAAM;AACvD,SAAO,MAAM,oCAAC,WAAD;AAAA,IAAW,WAAU;AAAA,OAAU;AAAA;AAG9C,GAAG,kDAAkD,MAAM;AACzD,SAAO,MAAM,oCAAC,WAAD;AAAA,IAAW,WAAU;AAAA,OAAY;AAAA;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
const chat = ({dots = false}) => {
|
|
3
|
+
return /* @__PURE__ */ React.createElement(React.Fragment, null, dots ? /* @__PURE__ */ React.createElement("path", {
|
|
4
|
+
d: "M2,3.5v13h4.35l2.5,3,2.5-3h10.65V3.5H2ZM7.65,11.3c-.718,0-1.3-.582-1.3-1.3s.582-1.3,1.3-1.3,1.3.582,1.3,1.3-.582,1.3-1.3,1.3ZM12,11.3c-.718,0-1.3-.582-1.3-1.3s.582-1.3,1.3-1.3,1.3.582,1.3,1.3-.582,1.3-1.3,1.3ZM16.35,11.3c-.718,0-1.3-.582-1.3-1.3s.582-1.3,1.3-1.3,1.3.582,1.3,1.3-.582,1.3-1.3,1.3Z"
|
|
5
|
+
}) : /* @__PURE__ */ React.createElement("path", {
|
|
6
|
+
d: "M2,3.5v13h4.35l2.5,3,2.5-3h10.65V3.5H2Z"
|
|
7
|
+
}));
|
|
8
|
+
};
|
|
9
|
+
chat.props = ["dots"];
|
|
10
|
+
var config_default = chat;
|
|
11
|
+
export {
|
|
12
|
+
chat,
|
|
13
|
+
config_default as default
|
|
14
|
+
};
|
|
15
|
+
//# sourceMappingURL=config.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/ChatIcon/config.tsx"],
|
|
4
|
+
"sourcesContent": ["import React from 'react';\n\nexport interface ChatType {\n /**\n * @value 'false'\n * @value 'true'\n * @default 'false'\n */\n dots?: boolean;\n}\n\nexport const chat: React.FC<ChatType> = ({ dots = false }) => {\n return (\n <>\n {dots ? (\n <path d=\"M2,3.5v13h4.35l2.5,3,2.5-3h10.65V3.5H2ZM7.65,11.3c-.718,0-1.3-.582-1.3-1.3s.582-1.3,1.3-1.3,1.3.582,1.3,1.3-.582,1.3-1.3,1.3ZM12,11.3c-.718,0-1.3-.582-1.3-1.3s.582-1.3,1.3-1.3,1.3.582,1.3,1.3-.582,1.3-1.3,1.3ZM16.35,11.3c-.718,0-1.3-.582-1.3-1.3s.582-1.3,1.3-1.3,1.3.582,1.3,1.3-.582,1.3-1.3,1.3Z\" />\n ) : (\n <path d=\"M2,3.5v13h4.35l2.5,3,2.5-3h10.65V3.5H2Z\" />\n )}\n </>\n );\n};\n\n// eslint-disable-next-line @typescript-eslint/ban-ts-comment\n// @ts-ignore\nchat.props = ['dots'];\n\nexport default chat;\n"],
|
|
5
|
+
"mappings": "AAAA;AAWO,MAAM,OAA2B,CAAC,CAAE,OAAO,WAAY;AAC5D,SACE,0DACG,OACC,oCAAC,QAAD;AAAA,IAAM,GAAE;AAAA,OAER,oCAAC,QAAD;AAAA,IAAM,GAAE;AAAA;AAAA;AAQhB,KAAK,QAAQ,CAAC;AAEd,IAAO,iBAAQ;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import Icon from "@digigov/react-icons/Icon";
|
|
3
|
+
const ChatIcon = (props) => {
|
|
4
|
+
return /* @__PURE__ */ React.createElement(Icon, {
|
|
5
|
+
...props,
|
|
6
|
+
icon: "chat"
|
|
7
|
+
});
|
|
8
|
+
};
|
|
9
|
+
var ChatIcon_default = ChatIcon;
|
|
10
|
+
export {
|
|
11
|
+
ChatIcon,
|
|
12
|
+
ChatIcon_default as default
|
|
13
|
+
};
|
|
14
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/ChatIcon/index.tsx"],
|
|
4
|
+
"sourcesContent": ["import React from 'react';\nimport Icon, { IconProps } from '@digigov/react-icons/Icon';\n\nexport const ChatIcon: React.FC<IconProps<'chat'>> = (props) => {\n return <Icon {...props} icon=\"chat\"></Icon>;\n};\n\nexport default ChatIcon;\n"],
|
|
5
|
+
"mappings": "AAAA;AACA;AAEO,MAAM,WAAwC,CAAC,UAAU;AAC9D,SAAO,oCAAC,MAAD;AAAA,OAAU;AAAA,IAAO,MAAK;AAAA;AAAA;AAG/B,IAAO,mBAAQ;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import {mount} from "enzyme";
|
|
3
|
+
import ChatIcon from "@digigov/react-icons/ChatIcon";
|
|
4
|
+
it("renders the ChatIcon with no props", () => {
|
|
5
|
+
expect(mount(/* @__PURE__ */ React.createElement(ChatIcon, null))).toMatchSnapshot();
|
|
6
|
+
});
|
|
7
|
+
it("renders the ChatIcon with dots", () => {
|
|
8
|
+
expect(mount(/* @__PURE__ */ React.createElement(ChatIcon, {
|
|
9
|
+
dots: true
|
|
10
|
+
}))).toMatchSnapshot();
|
|
11
|
+
});
|
|
12
|
+
it("renders the ChatIcon with prop size=md", () => {
|
|
13
|
+
expect(mount(/* @__PURE__ */ React.createElement(ChatIcon, {
|
|
14
|
+
size: "md"
|
|
15
|
+
}))).toMatchSnapshot();
|
|
16
|
+
});
|
|
17
|
+
it("renders the ChatIcon with prop size=xl", () => {
|
|
18
|
+
expect(mount(/* @__PURE__ */ React.createElement(ChatIcon, {
|
|
19
|
+
size: "xl"
|
|
20
|
+
}))).toMatchSnapshot();
|
|
21
|
+
});
|
|
22
|
+
it("renders the ChatIcon with prop color=white", () => {
|
|
23
|
+
expect(mount(/* @__PURE__ */ React.createElement(ChatIcon, {
|
|
24
|
+
color: "white"
|
|
25
|
+
}))).toMatchSnapshot();
|
|
26
|
+
});
|
|
27
|
+
it("renders the ChatIcon with prop color=warning", () => {
|
|
28
|
+
expect(mount(/* @__PURE__ */ React.createElement(ChatIcon, {
|
|
29
|
+
color: "warning"
|
|
30
|
+
}))).toMatchSnapshot();
|
|
31
|
+
});
|
|
32
|
+
it("renders the ChatIcon with prop color=warning and size=sm", () => {
|
|
33
|
+
expect(mount(/* @__PURE__ */ React.createElement(ChatIcon, {
|
|
34
|
+
color: "warning",
|
|
35
|
+
size: "sm"
|
|
36
|
+
}))).toMatchSnapshot();
|
|
37
|
+
});
|
|
38
|
+
it("renders the ChatIcon with prop color=error and size= xl", () => {
|
|
39
|
+
expect(mount(/* @__PURE__ */ React.createElement(ChatIcon, {
|
|
40
|
+
color: "warning",
|
|
41
|
+
size: "xl"
|
|
42
|
+
}))).toMatchSnapshot();
|
|
43
|
+
});
|
|
44
|
+
//# sourceMappingURL=index.test.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/ChatIcon/index.test.tsx"],
|
|
4
|
+
"sourcesContent": ["import React from 'react';\nimport { mount } from 'enzyme';\n\nimport ChatIcon from '@digigov/react-icons/ChatIcon';\n\nit('renders the ChatIcon with no props', () => {\n expect(mount(<ChatIcon />)).toMatchSnapshot();\n});\nit('renders the ChatIcon with dots', () => {\n expect(mount(<ChatIcon dots/>)).toMatchSnapshot();\n});\nit('renders the ChatIcon with prop size=md', () => {\n expect(mount(<ChatIcon size=\"md\" />)).toMatchSnapshot();\n});\nit('renders the ChatIcon with prop size=xl', () => {\n expect(mount(<ChatIcon size=\"xl\" />)).toMatchSnapshot();\n});\nit('renders the ChatIcon with prop color=white', () => {\n expect(mount(<ChatIcon color=\"white\" />)).toMatchSnapshot();\n});\nit('renders the ChatIcon with prop color=warning', () => {\n expect(mount(<ChatIcon color=\"warning\" />)).toMatchSnapshot();\n});\nit('renders the ChatIcon with prop color=warning and size=sm', () => {\n expect(mount(<ChatIcon color=\"warning\" size=\"sm\" />)).toMatchSnapshot();\n});\nit('renders the ChatIcon with prop color=error and size= xl', () => {\n expect(mount(<ChatIcon color=\"warning\" size=\"xl\" />)).toMatchSnapshot();\n});\n"],
|
|
5
|
+
"mappings": "AAAA;AACA;AAEA;AAEA,GAAG,sCAAsC,MAAM;AAC7C,SAAO,MAAM,oCAAC,UAAD,QAAe;AAAA;AAE9B,GAAG,kCAAkC,MAAM;AACzC,SAAO,MAAM,oCAAC,UAAD;AAAA,IAAU,MAAI;AAAA,OAAK;AAAA;AAElC,GAAG,0CAA0C,MAAM;AACjD,SAAO,MAAM,oCAAC,UAAD;AAAA,IAAU,MAAK;AAAA,OAAU;AAAA;AAExC,GAAG,0CAA0C,MAAM;AACjD,SAAO,MAAM,oCAAC,UAAD;AAAA,IAAU,MAAK;AAAA,OAAU;AAAA;AAExC,GAAG,8CAA8C,MAAM;AACrD,SAAO,MAAM,oCAAC,UAAD;AAAA,IAAU,OAAM;AAAA,OAAa;AAAA;AAE5C,GAAG,gDAAgD,MAAM;AACvD,SAAO,MAAM,oCAAC,UAAD;AAAA,IAAU,OAAM;AAAA,OAAe;AAAA;AAE9C,GAAG,4DAA4D,MAAM;AACnE,SAAO,MAAM,oCAAC,UAAD;AAAA,IAAU,OAAM;AAAA,IAAU,MAAK;AAAA,OAAU;AAAA;AAExD,GAAG,2DAA2D,MAAM;AAClE,SAAO,MAAM,oCAAC,UAAD;AAAA,IAAU,OAAM;AAAA,IAAU,MAAK;AAAA,OAAU;AAAA;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -1,9 +1,13 @@
|
|
|
1
|
-
import React from
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, _ref);
|
|
1
|
+
import React from "react";
|
|
2
|
+
function check() {
|
|
3
|
+
return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement("polygon", {
|
|
4
|
+
points: "9.49 14.94 4.16 9.67 1.84 12.01 9.5 19.6 22.16 7.05 19.84 4.7 9.5 14.94"
|
|
5
|
+
}));
|
|
7
6
|
}
|
|
8
7
|
check.props = [];
|
|
9
|
-
|
|
8
|
+
var config_default = check;
|
|
9
|
+
export {
|
|
10
|
+
check,
|
|
11
|
+
config_default as default
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=config.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/CheckIcon/config.tsx"],
|
|
4
|
+
"sourcesContent": ["import React from 'react';\n\nexport interface CheckType {}\n\nexport function check(): React.ReactElement {\n return (\n <>\n <polygon points=\"9.49 14.94 4.16 9.67 1.84 12.01 9.5 19.6 22.16 7.05 19.84 4.7 9.5 14.94\" />\n </>\n );\n}\n\ncheck.props = [];\n\nexport default check;\n"],
|
|
5
|
+
"mappings": "AAAA;AAIO,iBAAqC;AAC1C,SACE,0DACE,oCAAC,WAAD;AAAA,IAAS,QAAO;AAAA;AAAA;AAKtB,MAAM,QAAQ;AAEd,IAAO,iBAAQ;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
package/CheckIcon/index.js
CHANGED
|
@@ -1,9 +1,14 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import React from "react";
|
|
2
|
+
import Icon from "@digigov/react-icons/Icon";
|
|
3
|
+
const CheckIcon = (props) => {
|
|
4
|
+
return /* @__PURE__ */ React.createElement(Icon, {
|
|
5
|
+
...props,
|
|
6
6
|
icon: "check"
|
|
7
|
-
})
|
|
7
|
+
});
|
|
8
8
|
};
|
|
9
|
-
|
|
9
|
+
var CheckIcon_default = CheckIcon;
|
|
10
|
+
export {
|
|
11
|
+
CheckIcon,
|
|
12
|
+
CheckIcon_default as default
|
|
13
|
+
};
|
|
14
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/CheckIcon/index.tsx"],
|
|
4
|
+
"sourcesContent": ["import React from 'react';\nimport Icon, { IconProps } from '@digigov/react-icons/Icon';\n\nexport const CheckIcon: React.FC<IconProps<'check'>> = (props) => {\n return <Icon {...props} icon=\"check\"></Icon>;\n};\n\nexport default CheckIcon;\n"],
|
|
5
|
+
"mappings": "AAAA;AACA;AAEO,MAAM,YAA0C,CAAC,UAAU;AAChE,SAAO,oCAAC,MAAD;AAAA,OAAU;AAAA,IAAO,MAAK;AAAA;AAAA;AAG/B,IAAO,oBAAQ;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -1,51 +1,44 @@
|
|
|
1
|
-
import React from
|
|
2
|
-
import {
|
|
3
|
-
import CheckIcon from
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
});
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
});
|
|
17
|
-
it(
|
|
18
|
-
expect(mount(
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
});
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
});
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
});
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
var _ref8 = /*#__PURE__*/React.createElement(CheckIcon, {
|
|
46
|
-
variant: "warning",
|
|
47
|
-
size: "xl"
|
|
48
|
-
});
|
|
49
|
-
it('renders the CheckIcon with prop variant=error and size= xl', function () {
|
|
50
|
-
expect(mount(_ref8)).toMatchSnapshot();
|
|
51
|
-
});
|
|
1
|
+
import React from "react";
|
|
2
|
+
import {mount} from "enzyme";
|
|
3
|
+
import CheckIcon from "@digigov/react-icons/CheckIcon";
|
|
4
|
+
it("renders the CheckIcon with no props", () => {
|
|
5
|
+
expect(mount(/* @__PURE__ */ React.createElement(CheckIcon, null))).toMatchSnapshot();
|
|
6
|
+
});
|
|
7
|
+
it("renders the CheckIcon with prop size=m", () => {
|
|
8
|
+
expect(mount(/* @__PURE__ */ React.createElement(CheckIcon, {
|
|
9
|
+
size: "md"
|
|
10
|
+
}))).toMatchSnapshot();
|
|
11
|
+
});
|
|
12
|
+
it("renders the CheckIcon with prop size=xl", () => {
|
|
13
|
+
expect(mount(/* @__PURE__ */ React.createElement(CheckIcon, {
|
|
14
|
+
size: "xl"
|
|
15
|
+
}))).toMatchSnapshot();
|
|
16
|
+
});
|
|
17
|
+
it("renders the CheckIcon with prop color=white", () => {
|
|
18
|
+
expect(mount(/* @__PURE__ */ React.createElement(CheckIcon, {
|
|
19
|
+
color: "white"
|
|
20
|
+
}))).toMatchSnapshot();
|
|
21
|
+
});
|
|
22
|
+
it("renders the CheckIcon with prop color=success", () => {
|
|
23
|
+
expect(mount(/* @__PURE__ */ React.createElement(CheckIcon, {
|
|
24
|
+
color: "success"
|
|
25
|
+
}))).toMatchSnapshot();
|
|
26
|
+
});
|
|
27
|
+
it("renders the CheckIcon with prop color=warning", () => {
|
|
28
|
+
expect(mount(/* @__PURE__ */ React.createElement(CheckIcon, {
|
|
29
|
+
color: "warning"
|
|
30
|
+
}))).toMatchSnapshot();
|
|
31
|
+
});
|
|
32
|
+
it("renders the CheckIcon with prop color=warning and size=s", () => {
|
|
33
|
+
expect(mount(/* @__PURE__ */ React.createElement(CheckIcon, {
|
|
34
|
+
color: "warning",
|
|
35
|
+
size: "sm"
|
|
36
|
+
}))).toMatchSnapshot();
|
|
37
|
+
});
|
|
38
|
+
it("renders the CheckIcon with prop color=error and size= xl", () => {
|
|
39
|
+
expect(mount(/* @__PURE__ */ React.createElement(CheckIcon, {
|
|
40
|
+
color: "warning",
|
|
41
|
+
size: "xl"
|
|
42
|
+
}))).toMatchSnapshot();
|
|
43
|
+
});
|
|
44
|
+
//# sourceMappingURL=index.test.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/CheckIcon/index.test.tsx"],
|
|
4
|
+
"sourcesContent": ["import React from 'react';\nimport { mount } from 'enzyme';\n\nimport CheckIcon from '@digigov/react-icons/CheckIcon';\n\nit('renders the CheckIcon with no props', () => {\n expect(mount(<CheckIcon />)).toMatchSnapshot();\n});\nit('renders the CheckIcon with prop size=m', () => {\n expect(mount(<CheckIcon size=\"md\" />)).toMatchSnapshot();\n});\nit('renders the CheckIcon with prop size=xl', () => {\n expect(mount(<CheckIcon size=\"xl\" />)).toMatchSnapshot();\n});\nit('renders the CheckIcon with prop color=white', () => {\n expect(mount(<CheckIcon color=\"white\" />)).toMatchSnapshot();\n});\nit('renders the CheckIcon with prop color=success', () => {\n expect(mount(<CheckIcon color=\"success\" />)).toMatchSnapshot();\n});\nit('renders the CheckIcon with prop color=warning', () => {\n expect(mount(<CheckIcon color=\"warning\" />)).toMatchSnapshot();\n});\nit('renders the CheckIcon with prop color=warning and size=s', () => {\n expect(mount(<CheckIcon color=\"warning\" size=\"sm\" />)).toMatchSnapshot();\n});\nit('renders the CheckIcon with prop color=error and size= xl', () => {\n expect(mount(<CheckIcon color=\"warning\" size=\"xl\" />)).toMatchSnapshot();\n});\n"],
|
|
5
|
+
"mappings": "AAAA;AACA;AAEA;AAEA,GAAG,uCAAuC,MAAM;AAC9C,SAAO,MAAM,oCAAC,WAAD,QAAgB;AAAA;AAE/B,GAAG,0CAA0C,MAAM;AACjD,SAAO,MAAM,oCAAC,WAAD;AAAA,IAAW,MAAK;AAAA,OAAU;AAAA;AAEzC,GAAG,2CAA2C,MAAM;AAClD,SAAO,MAAM,oCAAC,WAAD;AAAA,IAAW,MAAK;AAAA,OAAU;AAAA;AAEzC,GAAG,+CAA+C,MAAM;AACtD,SAAO,MAAM,oCAAC,WAAD;AAAA,IAAW,OAAM;AAAA,OAAa;AAAA;AAE7C,GAAG,iDAAiD,MAAM;AACxD,SAAO,MAAM,oCAAC,WAAD;AAAA,IAAW,OAAM;AAAA,OAAe;AAAA;AAE/C,GAAG,iDAAiD,MAAM;AACxD,SAAO,MAAM,oCAAC,WAAD;AAAA,IAAW,OAAM;AAAA,OAAe;AAAA;AAE/C,GAAG,4DAA4D,MAAM;AACnE,SAAO,MAAM,oCAAC,WAAD;AAAA,IAAW,OAAM;AAAA,IAAU,MAAK;AAAA,OAAU;AAAA;AAEzD,GAAG,4DAA4D,MAAM;AACnE,SAAO,MAAM,oCAAC,WAAD;AAAA,IAAW,OAAM;AAAA,IAAU,MAAK;AAAA,OAAU;AAAA;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -1,22 +1,19 @@
|
|
|
1
|
-
import React from
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
})
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
d: "M22,8.2l-2.3-2.4L12,13.4L4.4,5.8L2,8.2l10,10L22,8.2z"
|
|
13
|
-
});
|
|
14
|
-
export var chevron = function chevron(_ref) {
|
|
15
|
-
var _ref$direction = _ref.direction,
|
|
16
|
-
direction = _ref$direction === void 0 ? 'right' : _ref$direction;
|
|
17
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, direction === 'left' && _ref2, direction === 'right' && _ref3, direction === 'up' && _ref4, direction === 'down' && _ref5);
|
|
1
|
+
import React from "react";
|
|
2
|
+
const chevron = ({direction = "right"}) => {
|
|
3
|
+
return /* @__PURE__ */ React.createElement(React.Fragment, null, direction === "left" && /* @__PURE__ */ React.createElement("path", {
|
|
4
|
+
d: "M14.8,22l2.4-2.3L9.6,12l7.6-7.6L14.8,2l-10,10L14.8,22z"
|
|
5
|
+
}), direction === "right" && /* @__PURE__ */ React.createElement("path", {
|
|
6
|
+
d: "M8.5,2L6.1,4.3l7.6,7.7l-7.6,7.6L8.5,22l10-10L8.5,2z"
|
|
7
|
+
}), direction === "up" && /* @__PURE__ */ React.createElement("path", {
|
|
8
|
+
d: "M2,15.8l2.3,2.4l7.7-7.6l7.6,7.6l2.4-2.4l-10-10L2,15.8z"
|
|
9
|
+
}), direction === "down" && /* @__PURE__ */ React.createElement("path", {
|
|
10
|
+
d: "M22,8.2l-2.3-2.4L12,13.4L4.4,5.8L2,8.2l10,10L22,8.2z"
|
|
11
|
+
}));
|
|
18
12
|
};
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
13
|
+
chevron.props = ["direction"];
|
|
14
|
+
var config_default = chevron;
|
|
15
|
+
export {
|
|
16
|
+
chevron,
|
|
17
|
+
config_default as default
|
|
18
|
+
};
|
|
19
|
+
//# sourceMappingURL=config.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/ChevronIcon/config.tsx"],
|
|
4
|
+
"sourcesContent": ["import React from 'react';\n\nexport interface ChevronType {\n /**\n * direction sets the direction of the chevron icon.\n * @value 'left'\n * @value 'right'\n * @value 'up'\n * @value 'down'\n * @default 'right'\n */\n direction?: 'left' | 'right' | 'up' | 'down';\n}\n\nexport const chevron: React.FC<ChevronType> = ({ direction = 'right' }) => {\n return (\n <>\n {direction === 'left' && (\n <path d=\"M14.8,22l2.4-2.3L9.6,12l7.6-7.6L14.8,2l-10,10L14.8,22z\" />\n )}\n {direction === 'right' && (\n <path d=\"M8.5,2L6.1,4.3l7.6,7.7l-7.6,7.6L8.5,22l10-10L8.5,2z\" />\n )}\n {direction === 'up' && (\n <path d=\"M2,15.8l2.3,2.4l7.7-7.6l7.6,7.6l2.4-2.4l-10-10L2,15.8z\" />\n )}\n {direction === 'down' && (\n <path d=\"M22,8.2l-2.3-2.4L12,13.4L4.4,5.8L2,8.2l10,10L22,8.2z\" />\n )}\n </>\n );\n};\n// eslint-disable-next-line @typescript-eslint/ban-ts-comment\n// @ts-ignore\nchevron.props = ['direction'];\n\nexport default chevron;\n"],
|
|
5
|
+
"mappings": "AAAA;AAcO,MAAM,UAAiC,CAAC,CAAE,YAAY,aAAc;AACzE,SACE,0DACG,cAAc,UACb,oCAAC,QAAD;AAAA,IAAM,GAAE;AAAA,MAET,cAAc,WACb,oCAAC,QAAD;AAAA,IAAM,GAAE;AAAA,MAET,cAAc,QACb,oCAAC,QAAD;AAAA,IAAM,GAAE;AAAA,MAET,cAAc,UACb,oCAAC,QAAD;AAAA,IAAM,GAAE;AAAA;AAAA;AAOhB,QAAQ,QAAQ,CAAC;AAEjB,IAAO,iBAAQ;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
package/ChevronIcon/index.js
CHANGED
|
@@ -1,9 +1,14 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import React from "react";
|
|
2
|
+
import Icon from "@digigov/react-icons/Icon";
|
|
3
|
+
const ChevronIcon = (props) => {
|
|
4
|
+
return /* @__PURE__ */ React.createElement(Icon, {
|
|
5
|
+
...props,
|
|
6
6
|
icon: "chevron"
|
|
7
|
-
})
|
|
7
|
+
});
|
|
8
8
|
};
|
|
9
|
-
|
|
9
|
+
var ChevronIcon_default = ChevronIcon;
|
|
10
|
+
export {
|
|
11
|
+
ChevronIcon,
|
|
12
|
+
ChevronIcon_default as default
|
|
13
|
+
};
|
|
14
|
+
//# sourceMappingURL=index.js.map
|