@semcore/illustration 1.4.19 → 1.4.21
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/AccessDenied/index.d.ts +1 -2
- package/AccessDenied/index.js +234 -272
- package/AccessDenied/index.mjs +212 -259
- package/AreaChart/index.d.ts +1 -2
- package/AreaChart/index.js +81 -88
- package/AreaChart/index.mjs +59 -75
- package/Blocked/index.d.ts +1 -2
- package/Blocked/index.js +485 -579
- package/Blocked/index.mjs +463 -566
- package/CHANGELOG.md +13 -3
- package/ChoroplethMapChart/index.d.ts +1 -2
- package/ChoroplethMapChart/index.js +103 -112
- package/ChoroplethMapChart/index.mjs +81 -99
- package/Coffee/index.d.ts +1 -2
- package/Coffee/index.js +88 -92
- package/Coffee/index.mjs +66 -79
- package/Collection/index.d.ts +1 -2
- package/Collection/index.js +82 -88
- package/Collection/index.mjs +60 -75
- package/CombinedChart/index.d.ts +1 -2
- package/CombinedChart/index.js +110 -121
- package/CombinedChart/index.mjs +88 -108
- package/Confirmation/index.d.ts +1 -2
- package/Confirmation/index.js +259 -301
- package/Confirmation/index.mjs +237 -288
- package/Congrats/index.d.ts +1 -2
- package/Congrats/index.js +139 -159
- package/Congrats/index.mjs +117 -146
- package/ConnectionLost/index.d.ts +1 -2
- package/ConnectionLost/index.js +291 -343
- package/ConnectionLost/index.mjs +269 -330
- package/DeletedAccount/index.d.ts +1 -2
- package/DeletedAccount/index.js +368 -429
- package/DeletedAccount/index.mjs +346 -416
- package/DeletedPage/index.d.ts +1 -2
- package/DeletedPage/index.js +44 -42
- package/DeletedPage/index.mjs +22 -29
- package/Dns/index.d.ts +1 -2
- package/Dns/index.js +172 -199
- package/Dns/index.mjs +150 -186
- package/DonutChart/index.d.ts +1 -2
- package/DonutChart/index.js +123 -135
- package/DonutChart/index.mjs +101 -122
- package/Duplicates/index.d.ts +1 -2
- package/Duplicates/index.js +100 -109
- package/Duplicates/index.mjs +78 -96
- package/Feedback/index.d.ts +1 -2
- package/Feedback/index.js +88 -94
- package/Feedback/index.mjs +66 -81
- package/FunnelChart/index.d.ts +1 -2
- package/FunnelChart/index.js +90 -98
- package/FunnelChart/index.mjs +68 -85
- package/Good/index.d.ts +1 -2
- package/Good/index.js +123 -136
- package/Good/index.mjs +101 -123
- package/HeatMapChart/index.d.ts +1 -2
- package/HeatMapChart/index.js +108 -118
- package/HeatMapChart/index.mjs +86 -105
- package/HorizontalBarChart/index.d.ts +1 -2
- package/HorizontalBarChart/index.js +94 -102
- package/HorizontalBarChart/index.mjs +72 -89
- package/KagiChart/index.d.ts +1 -2
- package/KagiChart/index.js +75 -80
- package/KagiChart/index.mjs +53 -67
- package/LineChart/index.d.ts +1 -2
- package/LineChart/index.js +78 -84
- package/LineChart/index.mjs +56 -71
- package/LollipopChart/index.d.ts +1 -2
- package/LollipopChart/index.js +95 -103
- package/LollipopChart/index.mjs +73 -90
- package/MailSent/index.d.ts +1 -2
- package/MailSent/index.js +134 -154
- package/MailSent/index.mjs +112 -141
- package/Maintenance/index.d.ts +1 -2
- package/Maintenance/index.js +355 -413
- package/Maintenance/index.mjs +333 -400
- package/Nexttime/index.d.ts +1 -2
- package/Nexttime/index.js +102 -112
- package/Nexttime/index.mjs +80 -99
- package/NoPayment/index.d.ts +1 -2
- package/NoPayment/index.js +296 -358
- package/NoPayment/index.mjs +274 -345
- package/NothingFound/index.d.ts +1 -2
- package/NothingFound/index.js +126 -138
- package/NothingFound/index.mjs +104 -125
- package/OtherData/index.d.ts +1 -2
- package/OtherData/index.js +109 -119
- package/OtherData/index.mjs +87 -106
- package/PageError/index.d.ts +1 -2
- package/PageError/index.js +216 -279
- package/PageError/index.mjs +194 -266
- package/PageNotFound/index.d.ts +1 -2
- package/PageNotFound/index.js +276 -329
- package/PageNotFound/index.mjs +254 -316
- package/PieChart/index.d.ts +1 -2
- package/PieChart/index.js +108 -118
- package/PieChart/index.mjs +86 -105
- package/Processing/index.d.ts +1 -2
- package/Processing/index.js +88 -95
- package/Processing/index.mjs +66 -82
- package/ProjectNotFound/index.d.ts +1 -2
- package/ProjectNotFound/index.js +239 -274
- package/ProjectNotFound/index.mjs +217 -261
- package/RadarChart/index.d.ts +1 -2
- package/RadarChart/index.js +87 -94
- package/RadarChart/index.mjs +65 -81
- package/RadialTreeChart/index.d.ts +1 -2
- package/RadialTreeChart/index.js +129 -142
- package/RadialTreeChart/index.mjs +107 -129
- package/SankeyChart/index.d.ts +1 -2
- package/SankeyChart/index.js +115 -126
- package/SankeyChart/index.mjs +93 -113
- package/ScatterPlotChart/index.d.ts +1 -2
- package/ScatterPlotChart/index.js +100 -109
- package/ScatterPlotChart/index.mjs +78 -96
- package/StackedAreaChart/index.d.ts +1 -2
- package/StackedAreaChart/index.js +102 -113
- package/StackedAreaChart/index.mjs +80 -100
- package/Suggestion/index.d.ts +1 -2
- package/Suggestion/index.js +86 -93
- package/Suggestion/index.mjs +64 -80
- package/Suggestions/index.d.ts +1 -2
- package/Suggestions/index.js +89 -96
- package/Suggestions/index.mjs +67 -83
- package/Table/index.d.ts +1 -2
- package/Table/index.js +73 -77
- package/Table/index.mjs +51 -64
- package/TagCloud/index.d.ts +1 -2
- package/TagCloud/index.js +100 -109
- package/TagCloud/index.mjs +78 -96
- package/TextLinksEtc/index.d.ts +1 -2
- package/TextLinksEtc/index.js +76 -81
- package/TextLinksEtc/index.mjs +54 -68
- package/Timeout/index.d.ts +1 -2
- package/Timeout/index.js +373 -444
- package/Timeout/index.mjs +351 -431
- package/UnderConstruction/index.d.ts +1 -2
- package/UnderConstruction/index.js +135 -150
- package/UnderConstruction/index.mjs +113 -137
- package/VennChart/index.d.ts +1 -2
- package/VennChart/index.js +101 -110
- package/VennChart/index.mjs +79 -97
- package/VerticalBarChart/index.d.ts +1 -2
- package/VerticalBarChart/index.js +95 -103
- package/VerticalBarChart/index.mjs +73 -90
- package/Waiting/index.d.ts +1 -2
- package/Waiting/index.js +88 -96
- package/Waiting/index.mjs +66 -83
- package/Warning/index.d.ts +1 -2
- package/Warning/index.js +83 -89
- package/Warning/index.mjs +61 -76
- package/clear.ts +25 -0
- package/lib/cjs/index.js +1 -1
- package/lib/es6/index.js +1 -1
- package/package.json +9 -7
- package/svg/PageError.svg +40 -46
- package/transform.ts +92 -0
- package/transform-svg.config.js +0 -53
package/svg/PageError.svg
CHANGED
|
@@ -1,47 +1,41 @@
|
|
|
1
|
-
<svg width="260" height="260" viewBox="0 0 260 260"
|
|
2
|
-
<
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
</g>
|
|
42
|
-
<defs>
|
|
43
|
-
<clipPath id="a">
|
|
44
|
-
<path fill="#fff" d="M0 0h260v260H0z"/>
|
|
45
|
-
</clipPath>
|
|
46
|
-
</defs>
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="260" height="260" fill="none" viewBox="0 0 260 260">
|
|
2
|
+
<path fill="#171A22" d="M136.871 149.768c2.492 2.712-4.242 12.261-12.123 7.811-5.542-3.137-16.015-1.739-16.015-1.739l11.035-7.374 17.103 1.302Z"/>
|
|
3
|
+
<path fill="#FF642D" d="M123.388 140.809c.652.218 5.775 3.977 7.291 4.413 1.517.436 6.131-.654 6.783 2.388.652 3.041-1.517 3.19-1.517 3.19a3.809 3.809 0 0 1-1.193 4.253c-2.163 1.957-3.892.33-3.892.33s-.531 2.456-4.513 1.303c-4.741-1.383-9.233-3.908-14.647-3.478-5.415.431 11.688-12.399 11.688-12.399Z"/>
|
|
4
|
+
<path stroke="#171A22" stroke-linecap="round" stroke-linejoin="round" d="M130.352 151.656s2.571 2.169.297 5.226M133.531 148.466s2.302-.132 2.615 2.861"/>
|
|
5
|
+
<path fill="#fff" d="M127.374 135.067s-.647 7.162-9.307 13.457c-8.66 6.295-10.606 7.816-10.606 7.816l5.833-17.583 14.08-3.69Z"/>
|
|
6
|
+
<path fill="#fff" d="M127.374 135.067c-2.007 6.066-.647 7.162-9.307 13.457-8.66 6.295-10.606 7.816-10.606 7.816L45 160.5l-12.5-68s10.36-11.591 19-16c8.944-4.563 14.986-6.725 25-6 10.562.765 16.335 4.413 25 10.5 9.394 6.6 19.5 22 19.5 22s5.797 9.287 7 16c1.107 6.181 1.346 10.105-.626 16.067Z"/>
|
|
7
|
+
<path fill="#FF642D" d="M86 72s3.51-16.765 23.641-26.107c20.131-9.342 34.418-5.205 40.696-3.472 6.279 1.733 19.701 7.816 28.356 3.041 0 0 .218 2.387-3.892 4.339 0 0 17.532 2.823 27.273-4.785 0 0 2.164 6.295-6.278 13.893-8.443 7.598-19.914 9.57-19.914 9.57s2.599 1.154 6.926 0c-1.299 2.313-7.684 8.768-20.151 5.206-12.627-3.605-34.635-6.508-43.73-4.786-9.095 1.723-14.504 4.562-19.7 9.986.02.005-8.465-5.582-13.227-6.885Z"/>
|
|
8
|
+
<path fill="#171A22" d="m85.206 190.278 68.622-.532s6.364 4.631 10.463 3.765c4.099-.867 9.45-2.244 9.667-5.498.218-3.254-1.516-4.785-1.516-4.785l-65.584-4.775-21.652 11.825ZM21.082 169.521c-6.072.223-25.052 1.451-20.337 11.67a10.62 10.62 0 0 0 3.245 3.951c8.846 6.784 21.578 7.04 32.227 8.73 8.65 1.372 17.31 2.749 25.985 3.866 3.534.509 7.095.804 10.665.882a3.404 3.404 0 0 1 1.48.346 16.774 16.774 0 0 0 9.068 1.372c6.061-.649 10.176-3.254 6.93-6.078-.97-.84-8.389.984-17.102-2.169-20.507-7.412-52.161-22.57-52.161-22.57Z"/>
|
|
9
|
+
<path stroke="#171A22" stroke-linecap="round" stroke-linejoin="round" d="M256.862 165.693a9.72 9.72 0 0 1 .78 9.878 15.007 15.007 0 0 1-5.192 5.61c-8.183 5.513-19.123 5.375-28.547 4.392-16.307-1.707-32.439-4.977-48.369-8.789-5.102-1.223-10.607-2.164-15.454-.123-4.847 2.042-8.219 8.242-5.525 12.761 1.994 3.339 6.215 4.386 9.752 5.992 3.537 1.606 7.117 5.243 5.717 8.879-1.4 3.637-6.316 3.924-10.188 3.648-32.826-2.318-66.22-1.308-98.749 3.823-12.032 1.898-23.864 4.54-35.652 7.598"/>
|
|
10
|
+
<path fill="#FF642D" stroke="#171A22" stroke-linecap="round" stroke-linejoin="round" d="M235.026 148.035a1.018 1.018 0 0 0-.18 1.425l4.683 6.072 1.591-1.244-4.688-6.072a1.008 1.008 0 0 0-1.406-.181ZM243.928 141.017a1.018 1.018 0 0 0-.18 1.425l4.683 6.072 1.591-1.244-4.683-6.072a1.012 1.012 0 0 0-1.411-.181Z"/>
|
|
11
|
+
<path fill="#171A22" stroke="#171A22" stroke-linecap="round" stroke-linejoin="round" d="m256.003 161.971-4.168 3.238-7.663-1.303 12.499-9.698-.668 7.763Z"/>
|
|
12
|
+
<path fill="#171A22" stroke="#171A22" stroke-linecap="round" stroke-linejoin="round" d="m252.22 147.702-12.499 9.696 4.816 6.241 12.499-9.696-4.816-6.241Z"/>
|
|
13
|
+
<path fill="#171A22" stroke="#171A22" stroke-linecap="round" stroke-linejoin="round" d="m252.18 145.76-15.003 11.638 2.022 2.62 15.003-11.638-2.022-2.62ZM259.364 166.852l-3.606 2.796-3.956-4.546 4.168-3.238 3.394 4.988Z"/>
|
|
14
|
+
<path fill="#171A22" stroke="#171A22" stroke-linecap="round" stroke-linejoin="round" d="m246.715 153.953 6.247-4.849 1.029 1.329-7.276 3.52ZM200.105 109.971l-23.376 2.403-1.866-2.403V84.662h25.242l1.965 2.529-1.965 22.78Z"/>
|
|
15
|
+
<path fill="#fff" stroke="#171A22" stroke-linecap="round" stroke-linejoin="round" d="M202.013 87.214H176.77v25.309h25.243V87.214Z"/>
|
|
16
|
+
<path fill="#fff" stroke="#171A22" stroke-linecap="round" stroke-linejoin="round" d="M189.366 106.738c3.796 0 6.873-3.085 6.873-6.89 0-3.806-3.077-6.891-6.873-6.891-3.796 0-6.873 3.085-6.873 6.89 0 3.806 3.077 6.891 6.873 6.891Z"/>
|
|
17
|
+
<path fill="#171A22" stroke="#171A22" stroke-linecap="round" stroke-linejoin="round" d="M185.663 100.592c.697 0 1.262-.567 1.262-1.266a1.264 1.264 0 1 0-2.525 0c0 .699.565 1.266 1.263 1.266ZM190.749 100.592c.698 0 1.263-.567 1.263-1.266a1.264 1.264 0 1 0-2.525 0c0 .699.565 1.266 1.262 1.266Z"/>
|
|
18
|
+
<path fill="#171A22" stroke="#171A22" stroke-linecap="round" stroke-linejoin="round" d="M192.307 93.595a6.89 6.89 0 0 1-.732 10.777 6.856 6.856 0 0 1-3.887 1.202 6.922 6.922 0 0 1-2.652-.532 6.889 6.889 0 0 0 5.583 1.84 6.897 6.897 0 0 0 5.994-5.985 6.925 6.925 0 0 0-1.811-5.605 6.889 6.889 0 0 0-2.49-1.697h-.005Z"/>
|
|
19
|
+
<path fill="#FF642D" d="M33.7 91.886a79.929 79.929 0 0 1 33.272-15.318c4.434-.883 7.319 1.18 5.187 5.72-3.235 6.913-8.31 11.533-13.756 16.404a22.262 22.262 0 0 1 9.826.965 22.31 22.31 0 0 1 8.449 5.121 22.381 22.381 0 0 1 5.418 8.275 22.43 22.43 0 0 1 1.327 9.809c-.706 7.933-5.537 14.888-10.861 20.795-4.508 5.009-11.285 12.266-18.672 17.365M92.043 101.815c5.182 0 9.382-1.555 9.382-3.472 0-1.918-4.2-3.472-9.382-3.472-5.18 0-9.38 1.554-9.38 3.472 0 1.917 4.2 3.472 9.38 3.472Z"/>
|
|
20
|
+
<path stroke="#171A22" stroke-linecap="round" stroke-linejoin="round" d="M26.706 99.832S45.294 73.3 65.212 70.472c21.383-3.063 39.163 9.783 51.525 26.042 8.772 11.476 16.463 27.395 10.081 41.749-3.113 6.981-8.331 10.038-14.249 14.185-2.774 1.941-9.779 8.055-7.313 12.001"/>
|
|
21
|
+
<path fill="#FF642D" d="M106.36 162.502s53.105 18.174 56.356 18.376c3.251.202 3.246-1.064 7.356-.654 4.11.409 4.735 2.796 4.772 3.69.069 2.318-1.734 2.169-1.734 2.169s.647 3.477-2.381 4.562c-3.028 1.085-4.773-.218-4.773-.218s-3.463 3.472-6.496.436c-3.033-3.036-12.118-5.402-25.534-6.513-13.417-1.112-29.009-2.388-29.009-2.388l1.443-19.46ZM43.778 167.087s-.865 4.785.87 6.731c1.733 1.946 29.007 14.973 32.253 15.627 3.245.654 9.09-2.175 12.77-.218 3.68 1.957 4.772 6.077.434 6.726 0 0-.864 5.428-7.578 1.063-1.511 2.388-4.327 3.26-7.36-.648-4.545-.218-41.741-1.096-56.494-13.24.543.89.985 1.839 1.315 2.829.265 2.052-2.037.702-2.62 0-1.946-2.387-2.81-5.849-2.81-5.849s.646 5.211-.87 3.908c-1.517-1.302-2.594-7.81-.213-11.936 2.217-3.839 9.323-6.301 8.539-11.464-.229-1.483-.944-2.844-1.591-4.211-3.713-7.975-4.317-17.078-3.5-25.781 0 0-.435 7.38-1.517 7.162-1.082-.218.435-13.452.435-13.452s-1.06 6.508-2.17 4.556c-1.108-1.951 6.364-26.202 20.153-36.761 13.788-10.56 20.528 59.332 20.528 59.332s-9.922 13.021-10.574 15.626Z"/>
|
|
22
|
+
<path stroke="#171A22" stroke-linecap="round" stroke-linejoin="round" d="M82.026 193.766s2.333 1.063.6 4.525M89.021 191.852s2.433 1.425 1.283 5.157M164.689 186.11s3.112 1.063 1.06 5.471M171.047 182.919s2.65.272 2.618 4.334"/>
|
|
23
|
+
<path fill="#fff" d="M88.059 188.688s13.204 1.303 15.803-4.338c2.598-5.642 3.463-16.93 3.028-20.62-.435-3.689-2.593-6.077-7.578-7.597-4.985-1.521-12.558 1.738-12.558 1.738l-11.906-1.738v-21.704s-9.545 2.605-18.83 11.5c-9.287 8.896-12.559 17.583-12.776 21.704-.066 2.567.025 4.976 1.758 6.867 0 0 9.922 5.25 16.5 8.5 6.107 3.017 16 7.5 16 7.5l10.559-1.812Z"/>
|
|
24
|
+
<path stroke="#171A22" stroke-linecap="round" stroke-linejoin="round" d="M76.94 156.946s6.676-.446 11.449.367c0 0 7.19-17.078 20.825-20.332"/>
|
|
25
|
+
<path fill="#171A22" d="M75.187 134.429s-6.926 8.028-9.742 12.915c-2.815 4.886-4.327 9.873-3.574 10.309.753.436 3.712 0 8.66-.76 3.463-.532 5.494-.403 6.47-.653-.045.122.083-.021 0 0 .655-1.785-2.523-13.889-1.814-21.811Z"/>
|
|
26
|
+
<path stroke="#171A22" stroke-linecap="round" stroke-linejoin="round" d="M77.001 156.24c-.976.25-3.007.121-6.47.653-4.948.76-7.907 1.196-8.66.76-.753-.436.758-5.423 3.574-10.309 2.816-4.887 9.742-12.915 9.742-12.915-.71 7.922 2.469 20.026 1.814 21.811Zm0 0c.083-.021-.045.122 0 0Z"/>
|
|
27
|
+
<path fill="#171A22" stroke="#171A22" stroke-linecap="round" stroke-linejoin="round" d="M106.985 162.609s-1.331-6.817-.769-12.607a57.456 57.456 0 0 1 3.028-13.021s-3.028 2.169-6.602 7.704c-3.574 5.535-4.083 13.441-4.083 13.441 1.103.309 6.406 1.532 8.426 4.483Z"/>
|
|
28
|
+
<path fill="#FF642D" d="M89.098 183.507c.075-.149 2.201.144 4.97 0a13.595 13.595 0 0 0 7.201-2.377c3.097-2.211 3.383-7.842 3.182-11.511-.271-4.519-2.429-5.987-6.576-7.21a67.977 67.977 0 0 0-16.44-2.445 54.628 54.628 0 0 0-16.264 2.1c-3.713 1.015-8.082 3.493-9.392 7.38-2.084 6.173 3.314 10.214 8.485 12.064a31.12 31.12 0 0 0 8.692 1.76c.991.058 3.876.117 4.311.064.578-.075 1.002 2.302 3.182 1.696 2.381-.649 3.14-1.191 3.14-1.191s3.537 3.653 5.51-.33Z"/>
|
|
29
|
+
<path stroke="#171A22" stroke-linecap="round" stroke-linejoin="round" d="M83.934 183.137a4.098 4.098 0 0 0 2.455 2.095c1.878.58 3.029-1.01 3.32-2.313"/>
|
|
30
|
+
<path fill="#171A22" stroke="#171A22" stroke-linecap="round" stroke-linejoin="round" d="m83.529 180.17-3.41-2.993 7.25.425-3.84 2.568Z"/>
|
|
31
|
+
<path stroke="#171A22" stroke-linecap="round" stroke-linejoin="round" d="M83.637 180.367v2.882a3.798 3.798 0 0 1-2.45 1.808c-3.612.866-3.612-2.606-3.612-2.606"/>
|
|
32
|
+
<path fill="#171A22" stroke="#fff" stroke-linecap="round" stroke-linejoin="round" d="M70.417 178.751c4.124 0 7.467-3.352 7.467-7.486 0-4.135-3.343-7.487-7.467-7.487s-7.467 3.352-7.467 7.487c0 4.134 3.343 7.486 7.467 7.486Z"/>
|
|
33
|
+
<path fill="#fff" d="M73.433 169.499a2.22 2.22 0 0 0 2.217-2.222 2.22 2.22 0 0 0-2.217-2.223 2.22 2.22 0 0 0-2.216 2.223 2.22 2.22 0 0 0 2.216 2.222ZM74.746 173.413a.988.988 0 0 0 .987-.989.988.988 0 0 0-.987-.989.988.988 0 0 0-.986.989c0 .546.442.989.986.989Z"/>
|
|
34
|
+
<path fill="#171A22" d="M67.261 176.571a6.679 6.679 0 0 1-2.764-3.707 6.694 6.694 0 0 1 .303-4.619"/>
|
|
35
|
+
<path stroke="#FF642D" stroke-linecap="round" stroke-linejoin="round" d="M67.261 176.571a6.679 6.679 0 0 1-2.764-3.707 6.694 6.694 0 0 1 .303-4.619"/>
|
|
36
|
+
<path fill="#171A22" stroke="#fff" stroke-linecap="round" stroke-linejoin="round" d="M94.58 179.389c4.124 0 7.467-3.352 7.467-7.486 0-4.135-3.343-7.486-7.467-7.486s-7.467 3.351-7.467 7.486c0 4.134 3.343 7.486 7.467 7.486Z"/>
|
|
37
|
+
<path fill="#fff" d="M96.325 169.499a2.22 2.22 0 0 0 2.216-2.222 2.22 2.22 0 0 0-2.216-2.223 2.22 2.22 0 0 0-2.217 2.223 2.22 2.22 0 0 0 2.217 2.222ZM99.598 173.519a1.04 1.04 0 0 0 1.039-1.042 1.04 1.04 0 1 0-2.078 0 1.04 1.04 0 0 0 1.039 1.042Z"/>
|
|
38
|
+
<path fill="#171A22" d="M91.417 177.826a6.676 6.676 0 0 1-2.756-3.698 6.694 6.694 0 0 1 .295-4.607"/>
|
|
39
|
+
<path stroke="#FF642D" stroke-linecap="round" stroke-linejoin="round" d="M91.417 177.826a6.676 6.676 0 0 1-2.756-3.698 6.694 6.694 0 0 1 .295-4.607"/>
|
|
40
|
+
<path stroke="#171A22" stroke-linecap="round" stroke-linejoin="round" d="M76.76 156.76c-3.277.146-11.327 1.115-13.174 1.341"/>
|
|
47
41
|
</svg>
|
package/transform.ts
ADDED
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import fs from 'fs/promises';
|
|
2
|
+
import { resolve as resolvePath } from 'path';
|
|
3
|
+
import svgToJsx from 'svg-to-jsx';
|
|
4
|
+
import { Window } from 'happy-dom';
|
|
5
|
+
import esbuild from 'esbuild';
|
|
6
|
+
|
|
7
|
+
const illustrations = await fs.readdir('svg');
|
|
8
|
+
|
|
9
|
+
await Promise.all(
|
|
10
|
+
illustrations.map(async (fileName) => {
|
|
11
|
+
if (!fileName.endsWith('.svg')) return;
|
|
12
|
+
const illustration = fileName.replace('.svg', '');
|
|
13
|
+
const svg = await fs.readFile(resolvePath('svg', fileName), 'utf-8');
|
|
14
|
+
|
|
15
|
+
const window = new Window();
|
|
16
|
+
const document = window.document;
|
|
17
|
+
document.body.innerHTML = svg;
|
|
18
|
+
[...document.querySelectorAll('path')].forEach((element) =>
|
|
19
|
+
element.setAttribute('shape-rendering', 'geometricPrecision'),
|
|
20
|
+
);
|
|
21
|
+
const allIds = [
|
|
22
|
+
...new Set([...document.querySelectorAll('[id]').map((element) => element.id)]),
|
|
23
|
+
];
|
|
24
|
+
const idReplacements: Record<string, string> = {};
|
|
25
|
+
for (let i = 0; i < allIds.length; i++) {
|
|
26
|
+
const oldId = allIds[i];
|
|
27
|
+
const newId = `igc-${illustration.toLowerCase()}-el-${i}`;
|
|
28
|
+
document.getElementById(oldId).setAttribute('id', newId);
|
|
29
|
+
idReplacements[oldId] = newId;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
const {
|
|
33
|
+
fill = 'none',
|
|
34
|
+
width,
|
|
35
|
+
height,
|
|
36
|
+
viewBox: { baseVal: viewBox },
|
|
37
|
+
} = document.querySelector('svg') as any;
|
|
38
|
+
const html = '<svg>' + document.body.querySelector('svg').innerHTML + '</svg>';
|
|
39
|
+
|
|
40
|
+
let jsx: string = await new Promise((resolve, reject) =>
|
|
41
|
+
svgToJsx(html, {}, (error, result) => (error ? reject(error) : resolve(result))),
|
|
42
|
+
);
|
|
43
|
+
|
|
44
|
+
jsx = jsx.replace('<svg>', '').replace('</svg>', '');
|
|
45
|
+
for (const oldId in idReplacements) {
|
|
46
|
+
while (jsx.includes(`url(#${oldId})`)) {
|
|
47
|
+
jsx = jsx.replace(`url(#${oldId})`, `url(#${idReplacements[oldId]})`);
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
const component = `
|
|
52
|
+
import React from 'react';
|
|
53
|
+
import { createBaseComponent } from '@semcore/core';
|
|
54
|
+
import { Box } from '@semcore/flex-box';
|
|
55
|
+
|
|
56
|
+
const ${illustration} = ({fill = '${fill}', width = '${width}', height = '${height}', viewBox = '${viewBox.x} ${viewBox.y} ${viewBox.width} ${viewBox.height}', ...props}, ref) => (
|
|
57
|
+
<Box
|
|
58
|
+
ref={ref}
|
|
59
|
+
width={width}
|
|
60
|
+
height={height}
|
|
61
|
+
viewBox={viewBox}
|
|
62
|
+
fill={fill}
|
|
63
|
+
tag="svg"
|
|
64
|
+
{...props}
|
|
65
|
+
>${jsx}</Box>
|
|
66
|
+
);
|
|
67
|
+
|
|
68
|
+
${illustration}.displayName = '${illustration}'
|
|
69
|
+
|
|
70
|
+
export default createBaseComponent(${illustration})
|
|
71
|
+
`;
|
|
72
|
+
|
|
73
|
+
const typesDeclaration = `
|
|
74
|
+
import { Box } from '@semcore/flex-box';
|
|
75
|
+
declare const _default: typeof Box;
|
|
76
|
+
export default _default;
|
|
77
|
+
`;
|
|
78
|
+
|
|
79
|
+
const { code: cjs } = await esbuild.transform(component, { format: 'cjs', loader: 'tsx' });
|
|
80
|
+
const { code: esm } = await esbuild.transform(component, { format: 'esm', loader: 'tsx' });
|
|
81
|
+
|
|
82
|
+
try {
|
|
83
|
+
await fs.access(illustration);
|
|
84
|
+
} catch {
|
|
85
|
+
await fs.mkdir(illustration);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
await fs.writeFile(resolvePath(illustration, 'index.js'), cjs);
|
|
89
|
+
await fs.writeFile(resolvePath(illustration, 'index.mjs'), esm);
|
|
90
|
+
await fs.writeFile(resolvePath(illustration, 'index.d.ts'), typesDeclaration);
|
|
91
|
+
}),
|
|
92
|
+
);
|
package/transform-svg.config.js
DELETED
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
const path = require('path');
|
|
2
|
-
|
|
3
|
-
function getDescriptionImages(imgPath, outLib) {
|
|
4
|
-
const name = path.basename(imgPath, '.svg');
|
|
5
|
-
return {
|
|
6
|
-
location: `${outLib}/${name}/index.js`,
|
|
7
|
-
group: '',
|
|
8
|
-
name,
|
|
9
|
-
};
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
const getConfig = () => {
|
|
13
|
-
return {
|
|
14
|
-
tasks: ({ generateIcons }) => {
|
|
15
|
-
return [generateIcons('svg', '.', getDescriptionImages)];
|
|
16
|
-
},
|
|
17
|
-
|
|
18
|
-
template: (obj) => `
|
|
19
|
-
import React from 'react';
|
|
20
|
-
import { createBaseComponent } from '@semcore/core';
|
|
21
|
-
import { Box } from '@semcore/flex-box';
|
|
22
|
-
|
|
23
|
-
function ${obj.name}({fill = '${obj.fill}', width = '${obj.width}', height = '${obj.height}', viewBox = '${obj.viewBox}', ...props}, ref) {
|
|
24
|
-
|
|
25
|
-
return (
|
|
26
|
-
<Box
|
|
27
|
-
ref={ref}
|
|
28
|
-
width={width}
|
|
29
|
-
height={height}
|
|
30
|
-
viewBox={viewBox}
|
|
31
|
-
fill={fill}
|
|
32
|
-
tag="svg"
|
|
33
|
-
{...props}
|
|
34
|
-
>
|
|
35
|
-
${obj.sourcePath}
|
|
36
|
-
</Box>
|
|
37
|
-
);
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
${obj.name}.displayName = '${obj.name}'
|
|
41
|
-
|
|
42
|
-
export default createBaseComponent(${obj.name})
|
|
43
|
-
`,
|
|
44
|
-
|
|
45
|
-
templateDTS: () => `
|
|
46
|
-
import { Box } from '@semcore/flex-box';
|
|
47
|
-
declare const _default: typeof Box;
|
|
48
|
-
export default _default;
|
|
49
|
-
`,
|
|
50
|
-
};
|
|
51
|
-
};
|
|
52
|
-
|
|
53
|
-
module.exports = getConfig;
|