@semcore/illustration 17.0.1-prerelease.0 → 17.0.2-prerelease.0
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/CHANGELOG.md +85 -3
- package/README.md +5 -32
- package/lib/MailSent/index.js +14 -3
- package/lib/MailSent/index.mjs +14 -3
- package/lib/cjs/index.js +7 -8
- package/lib/cjs/index.js.map +1 -1
- package/lib/es6/index.js +6 -8
- package/lib/es6/index.js.map +1 -1
- package/lib/esm/index.mjs +6 -8
- package/package.json +171 -178
- package/svg/MailSent.svg +1 -27
- package/transform.ts +21 -20
- package/types/svg-to-jsx.d.ts +1 -1
- package/vite.config.ts +24 -0
- package/AccessDenied/index.d.ts +0 -28
- package/AccessDenied/index.js +0 -242
- package/AccessDenied/index.mjs +0 -220
- package/AccessLogIn/index.d.ts +0 -28
- package/AccessLogIn/index.js +0 -344
- package/AccessLogIn/index.mjs +0 -322
- package/AreaChart/index.d.ts +0 -28
- package/AreaChart/index.js +0 -89
- package/AreaChart/index.mjs +0 -67
- package/Blocked/index.d.ts +0 -28
- package/Blocked/index.js +0 -493
- package/Blocked/index.mjs +0 -471
- package/ChoroplethMapChart/index.d.ts +0 -28
- package/ChoroplethMapChart/index.js +0 -111
- package/ChoroplethMapChart/index.mjs +0 -89
- package/Coffee/index.d.ts +0 -28
- package/Coffee/index.js +0 -96
- package/Coffee/index.mjs +0 -74
- package/Collection/index.d.ts +0 -28
- package/Collection/index.js +0 -90
- package/Collection/index.mjs +0 -68
- package/CombinedChart/index.d.ts +0 -28
- package/CombinedChart/index.js +0 -118
- package/CombinedChart/index.mjs +0 -96
- package/Configuration/index.d.ts +0 -28
- package/Configuration/index.js +0 -197
- package/Configuration/index.mjs +0 -175
- package/Confirmation/index.d.ts +0 -28
- package/Confirmation/index.js +0 -267
- package/Confirmation/index.mjs +0 -245
- package/Congrats/index.d.ts +0 -28
- package/Congrats/index.js +0 -147
- package/Congrats/index.mjs +0 -125
- package/ConnectionLost/index.d.ts +0 -28
- package/ConnectionLost/index.js +0 -299
- package/ConnectionLost/index.mjs +0 -277
- package/DeletedAccount/index.d.ts +0 -28
- package/DeletedAccount/index.js +0 -376
- package/DeletedAccount/index.mjs +0 -354
- package/DeletedPage/index.d.ts +0 -28
- package/DeletedPage/index.js +0 -81
- package/DeletedPage/index.mjs +0 -59
- package/Dns/index.d.ts +0 -28
- package/Dns/index.js +0 -180
- package/Dns/index.mjs +0 -158
- package/DonutChart/index.d.ts +0 -28
- package/DonutChart/index.js +0 -131
- package/DonutChart/index.mjs +0 -109
- package/Duplicates/index.d.ts +0 -28
- package/Duplicates/index.js +0 -108
- package/Duplicates/index.mjs +0 -86
- package/Feedback/index.d.ts +0 -28
- package/Feedback/index.js +0 -96
- package/Feedback/index.mjs +0 -74
- package/FunnelChart/index.d.ts +0 -28
- package/FunnelChart/index.js +0 -98
- package/FunnelChart/index.mjs +0 -76
- package/Good/index.d.ts +0 -28
- package/Good/index.js +0 -131
- package/Good/index.mjs +0 -109
- package/HeatMapChart/index.d.ts +0 -28
- package/HeatMapChart/index.js +0 -116
- package/HeatMapChart/index.mjs +0 -94
- package/HorizontalBarChart/index.d.ts +0 -28
- package/HorizontalBarChart/index.js +0 -102
- package/HorizontalBarChart/index.mjs +0 -80
- package/KagiChart/index.d.ts +0 -28
- package/KagiChart/index.js +0 -83
- package/KagiChart/index.mjs +0 -61
- package/LineChart/index.d.ts +0 -28
- package/LineChart/index.js +0 -86
- package/LineChart/index.mjs +0 -64
- package/LollipopChart/index.d.ts +0 -28
- package/LollipopChart/index.js +0 -103
- package/LollipopChart/index.mjs +0 -81
- package/MailSent/index.d.ts +0 -28
- package/MailSent/index.js +0 -142
- package/MailSent/index.mjs +0 -120
- package/Maintenance/index.d.ts +0 -28
- package/Maintenance/index.js +0 -363
- package/Maintenance/index.mjs +0 -341
- package/Nexttime/index.d.ts +0 -28
- package/Nexttime/index.js +0 -110
- package/Nexttime/index.mjs +0 -88
- package/NoPayment/index.d.ts +0 -28
- package/NoPayment/index.js +0 -304
- package/NoPayment/index.mjs +0 -282
- package/NothingFound/index.d.ts +0 -28
- package/NothingFound/index.js +0 -134
- package/NothingFound/index.mjs +0 -112
- package/OtherData/index.d.ts +0 -28
- package/OtherData/index.js +0 -117
- package/OtherData/index.mjs +0 -95
- package/PageError/index.d.ts +0 -28
- package/PageError/index.js +0 -224
- package/PageError/index.mjs +0 -202
- package/PageNotFound/index.d.ts +0 -28
- package/PageNotFound/index.js +0 -284
- package/PageNotFound/index.mjs +0 -262
- package/PieChart/index.d.ts +0 -28
- package/PieChart/index.js +0 -116
- package/PieChart/index.mjs +0 -94
- package/Processing/index.d.ts +0 -28
- package/Processing/index.js +0 -96
- package/Processing/index.mjs +0 -74
- package/ProjectNotFound/index.d.ts +0 -28
- package/ProjectNotFound/index.js +0 -247
- package/ProjectNotFound/index.mjs +0 -225
- package/RadarChart/index.d.ts +0 -28
- package/RadarChart/index.js +0 -95
- package/RadarChart/index.mjs +0 -73
- package/RadialTreeChart/index.d.ts +0 -28
- package/RadialTreeChart/index.js +0 -137
- package/RadialTreeChart/index.mjs +0 -115
- package/SankeyChart/index.d.ts +0 -28
- package/SankeyChart/index.js +0 -123
- package/SankeyChart/index.mjs +0 -101
- package/ScatterPlotChart/index.d.ts +0 -28
- package/ScatterPlotChart/index.js +0 -108
- package/ScatterPlotChart/index.mjs +0 -86
- package/StackedAreaChart/index.d.ts +0 -28
- package/StackedAreaChart/index.js +0 -110
- package/StackedAreaChart/index.mjs +0 -88
- package/Suggestion/index.d.ts +0 -28
- package/Suggestion/index.js +0 -94
- package/Suggestion/index.mjs +0 -72
- package/Suggestions/index.d.ts +0 -28
- package/Suggestions/index.js +0 -97
- package/Suggestions/index.mjs +0 -75
- package/Table/index.d.ts +0 -28
- package/Table/index.js +0 -81
- package/Table/index.mjs +0 -59
- package/TagCloud/index.d.ts +0 -28
- package/TagCloud/index.js +0 -108
- package/TagCloud/index.mjs +0 -86
- package/TextLinksEtc/index.d.ts +0 -28
- package/TextLinksEtc/index.js +0 -84
- package/TextLinksEtc/index.mjs +0 -62
- package/Timeout/index.d.ts +0 -28
- package/Timeout/index.js +0 -381
- package/Timeout/index.mjs +0 -359
- package/UnderConstruction/index.d.ts +0 -28
- package/UnderConstruction/index.js +0 -143
- package/UnderConstruction/index.mjs +0 -121
- package/VennChart/index.d.ts +0 -28
- package/VennChart/index.js +0 -109
- package/VennChart/index.mjs +0 -87
- package/VerticalBarChart/index.d.ts +0 -28
- package/VerticalBarChart/index.js +0 -103
- package/VerticalBarChart/index.mjs +0 -81
- package/Waiting/index.d.ts +0 -28
- package/Waiting/index.js +0 -96
- package/Waiting/index.mjs +0 -74
- package/Warning/index.d.ts +0 -28
- package/Warning/index.js +0 -91
- package/Warning/index.mjs +0 -69
- package/clear.ts +0 -25
package/package.json
CHANGED
|
@@ -1,22 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@semcore/illustration",
|
|
3
3
|
"description": "Semrush Illustration Component",
|
|
4
|
-
"version": "17.0.
|
|
4
|
+
"version": "17.0.2-prerelease.0",
|
|
5
5
|
"main": "lib/cjs/index.js",
|
|
6
|
-
"module": "lib/
|
|
6
|
+
"module": "lib/esm/index.mjs",
|
|
7
7
|
"typings": "lib/types/index.d.ts",
|
|
8
8
|
"sideEffects": false,
|
|
9
9
|
"author": "UI-kit team <ui-kit-team@semrush.com>",
|
|
10
10
|
"license": "MIT",
|
|
11
|
-
"dependencies": {
|
|
12
|
-
"@babel/runtime": "^7.17.9",
|
|
13
|
-
"@semcore/flex-box": "16.0.11-prerelease.0",
|
|
14
|
-
"colorjs.io": "0.4.3"
|
|
15
|
-
},
|
|
16
11
|
"peerDependencies": {
|
|
17
|
-
"@semcore/
|
|
18
|
-
"react": "16.8 - 18",
|
|
19
|
-
"react-dom": "16.8 - 18"
|
|
12
|
+
"@semcore/base-components": "^17.0.1"
|
|
20
13
|
},
|
|
21
14
|
"repository": {
|
|
22
15
|
"type": "git",
|
|
@@ -24,285 +17,285 @@
|
|
|
24
17
|
"directory": "semcore/illustration"
|
|
25
18
|
},
|
|
26
19
|
"devDependencies": {
|
|
27
|
-
"
|
|
28
|
-
"
|
|
20
|
+
"@types/fs-extra": "8.1.0",
|
|
21
|
+
"colorjs.io": "0.6.1",
|
|
29
22
|
"fs-extra": "8.1.0",
|
|
30
|
-
"
|
|
31
|
-
"
|
|
32
|
-
"@
|
|
33
|
-
"@
|
|
23
|
+
"happy-dom": "9.20.3",
|
|
24
|
+
"svg-to-jsx": "1.0.4",
|
|
25
|
+
"@semcore/core": "17.1.0",
|
|
26
|
+
"@semcore/testing-utils": "1.0.0"
|
|
34
27
|
},
|
|
35
28
|
"exports": {
|
|
36
29
|
".": {
|
|
37
|
-
"
|
|
38
|
-
"import": "./lib/
|
|
39
|
-
"
|
|
30
|
+
"types": "./lib/types/index.d.ts",
|
|
31
|
+
"import": "./lib/esm/index.mjs",
|
|
32
|
+
"require": "./lib/cjs/index.js"
|
|
40
33
|
},
|
|
41
34
|
"./AccessDenied": {
|
|
42
|
-
"
|
|
43
|
-
"import": "./AccessDenied/index.mjs",
|
|
44
|
-
"
|
|
35
|
+
"types": "./lib/AccessDenied/index.d.ts",
|
|
36
|
+
"import": "./lib/AccessDenied/index.mjs",
|
|
37
|
+
"require": "./lib/AccessDenied/index.js"
|
|
45
38
|
},
|
|
46
39
|
"./AccessLogIn": {
|
|
47
|
-
"
|
|
48
|
-
"import": "./AccessLogIn/index.mjs",
|
|
49
|
-
"
|
|
40
|
+
"types": "./lib/AccessLogIn/index.d.ts",
|
|
41
|
+
"import": "./lib/AccessLogIn/index.mjs",
|
|
42
|
+
"require": "./lib/AccessLogIn/index.js"
|
|
50
43
|
},
|
|
51
44
|
"./AreaChart": {
|
|
52
|
-
"
|
|
53
|
-
"import": "./AreaChart/index.mjs",
|
|
54
|
-
"
|
|
45
|
+
"types": "./lib/AreaChart/index.d.ts",
|
|
46
|
+
"import": "./lib/AreaChart/index.mjs",
|
|
47
|
+
"require": "./lib/AreaChart/index.js"
|
|
55
48
|
},
|
|
56
49
|
"./Blocked": {
|
|
57
|
-
"
|
|
58
|
-
"import": "./Blocked/index.mjs",
|
|
59
|
-
"
|
|
50
|
+
"types": "./lib/Blocked/index.d.ts",
|
|
51
|
+
"import": "./lib/Blocked/index.mjs",
|
|
52
|
+
"require": "./lib/Blocked/index.js"
|
|
60
53
|
},
|
|
61
54
|
"./ChoroplethMapChart": {
|
|
62
|
-
"
|
|
63
|
-
"import": "./ChoroplethMapChart/index.mjs",
|
|
64
|
-
"
|
|
55
|
+
"types": "./lib/ChoroplethMapChart/index.d.ts",
|
|
56
|
+
"import": "./lib/ChoroplethMapChart/index.mjs",
|
|
57
|
+
"require": "./lib/ChoroplethMapChart/index.js"
|
|
65
58
|
},
|
|
66
59
|
"./Coffee": {
|
|
67
|
-
"
|
|
68
|
-
"import": "./Coffee/index.mjs",
|
|
69
|
-
"
|
|
60
|
+
"types": "./lib/Coffee/index.d.ts",
|
|
61
|
+
"import": "./lib/Coffee/index.mjs",
|
|
62
|
+
"require": "./lib/Coffee/index.js"
|
|
70
63
|
},
|
|
71
64
|
"./Collection": {
|
|
72
|
-
"
|
|
73
|
-
"import": "./Collection/index.mjs",
|
|
74
|
-
"
|
|
65
|
+
"types": "./lib/Collection/index.d.ts",
|
|
66
|
+
"import": "./lib/Collection/index.mjs",
|
|
67
|
+
"require": "./lib/Collection/index.js"
|
|
75
68
|
},
|
|
76
69
|
"./CombinedChart": {
|
|
77
|
-
"
|
|
78
|
-
"import": "./CombinedChart/index.mjs",
|
|
79
|
-
"
|
|
70
|
+
"types": "./lib/CombinedChart/index.d.ts",
|
|
71
|
+
"import": "./lib/CombinedChart/index.mjs",
|
|
72
|
+
"require": "./lib/CombinedChart/index.js"
|
|
80
73
|
},
|
|
81
74
|
"./Configuration": {
|
|
82
|
-
"
|
|
83
|
-
"import": "./Configuration/index.mjs",
|
|
84
|
-
"
|
|
75
|
+
"types": "./lib/Configuration/index.d.ts",
|
|
76
|
+
"import": "./lib/Configuration/index.mjs",
|
|
77
|
+
"require": "./lib/Configuration/index.js"
|
|
85
78
|
},
|
|
86
79
|
"./Confirmation": {
|
|
87
|
-
"
|
|
88
|
-
"import": "./Confirmation/index.mjs",
|
|
89
|
-
"
|
|
80
|
+
"types": "./lib/Confirmation/index.d.ts",
|
|
81
|
+
"import": "./lib/Confirmation/index.mjs",
|
|
82
|
+
"require": "./lib/Confirmation/index.js"
|
|
90
83
|
},
|
|
91
84
|
"./Congrats": {
|
|
92
|
-
"
|
|
93
|
-
"import": "./Congrats/index.mjs",
|
|
94
|
-
"
|
|
85
|
+
"types": "./lib/Congrats/index.d.ts",
|
|
86
|
+
"import": "./lib/Congrats/index.mjs",
|
|
87
|
+
"require": "./lib/Congrats/index.js"
|
|
95
88
|
},
|
|
96
89
|
"./ConnectionLost": {
|
|
97
|
-
"
|
|
98
|
-
"import": "./ConnectionLost/index.mjs",
|
|
99
|
-
"
|
|
90
|
+
"types": "./lib/ConnectionLost/index.d.ts",
|
|
91
|
+
"import": "./lib/ConnectionLost/index.mjs",
|
|
92
|
+
"require": "./lib/ConnectionLost/index.js"
|
|
100
93
|
},
|
|
101
94
|
"./DeletedAccount": {
|
|
102
|
-
"
|
|
103
|
-
"import": "./DeletedAccount/index.mjs",
|
|
104
|
-
"
|
|
95
|
+
"types": "./lib/DeletedAccount/index.d.ts",
|
|
96
|
+
"import": "./lib/DeletedAccount/index.mjs",
|
|
97
|
+
"require": "./lib/DeletedAccount/index.js"
|
|
105
98
|
},
|
|
106
99
|
"./DeletedPage": {
|
|
107
|
-
"
|
|
108
|
-
"import": "./DeletedPage/index.mjs",
|
|
109
|
-
"
|
|
100
|
+
"types": "./lib/DeletedPage/index.d.ts",
|
|
101
|
+
"import": "./lib/DeletedPage/index.mjs",
|
|
102
|
+
"require": "./lib/DeletedPage/index.js"
|
|
110
103
|
},
|
|
111
104
|
"./Dns": {
|
|
112
|
-
"
|
|
113
|
-
"import": "./Dns/index.mjs",
|
|
114
|
-
"
|
|
105
|
+
"types": "./lib/Dns/index.d.ts",
|
|
106
|
+
"import": "./lib/Dns/index.mjs",
|
|
107
|
+
"require": "./lib/Dns/index.js"
|
|
115
108
|
},
|
|
116
109
|
"./DonutChart": {
|
|
117
|
-
"
|
|
118
|
-
"import": "./DonutChart/index.mjs",
|
|
119
|
-
"
|
|
110
|
+
"types": "./lib/DonutChart/index.d.ts",
|
|
111
|
+
"import": "./lib/DonutChart/index.mjs",
|
|
112
|
+
"require": "./lib/DonutChart/index.js"
|
|
120
113
|
},
|
|
121
114
|
"./Duplicates": {
|
|
122
|
-
"
|
|
123
|
-
"import": "./Duplicates/index.mjs",
|
|
124
|
-
"
|
|
115
|
+
"types": "./lib/Duplicates/index.d.ts",
|
|
116
|
+
"import": "./lib/Duplicates/index.mjs",
|
|
117
|
+
"require": "./lib/Duplicates/index.js"
|
|
125
118
|
},
|
|
126
119
|
"./Feedback": {
|
|
127
|
-
"
|
|
128
|
-
"import": "./Feedback/index.mjs",
|
|
129
|
-
"
|
|
120
|
+
"types": "./lib/Feedback/index.d.ts",
|
|
121
|
+
"import": "./lib/Feedback/index.mjs",
|
|
122
|
+
"require": "./lib/Feedback/index.js"
|
|
130
123
|
},
|
|
131
124
|
"./FunnelChart": {
|
|
132
|
-
"
|
|
133
|
-
"import": "./FunnelChart/index.mjs",
|
|
134
|
-
"
|
|
125
|
+
"types": "./lib/FunnelChart/index.d.ts",
|
|
126
|
+
"import": "./lib/FunnelChart/index.mjs",
|
|
127
|
+
"require": "./lib/FunnelChart/index.js"
|
|
135
128
|
},
|
|
136
129
|
"./Good": {
|
|
137
|
-
"
|
|
138
|
-
"import": "./Good/index.mjs",
|
|
139
|
-
"
|
|
130
|
+
"types": "./lib/Good/index.d.ts",
|
|
131
|
+
"import": "./lib/Good/index.mjs",
|
|
132
|
+
"require": "./lib/Good/index.js"
|
|
140
133
|
},
|
|
141
134
|
"./HeatMapChart": {
|
|
142
|
-
"
|
|
143
|
-
"import": "./HeatMapChart/index.mjs",
|
|
144
|
-
"
|
|
135
|
+
"types": "./lib/HeatMapChart/index.d.ts",
|
|
136
|
+
"import": "./lib/HeatMapChart/index.mjs",
|
|
137
|
+
"require": "./lib/HeatMapChart/index.js"
|
|
145
138
|
},
|
|
146
139
|
"./HorizontalBarChart": {
|
|
147
|
-
"
|
|
148
|
-
"import": "./HorizontalBarChart/index.mjs",
|
|
149
|
-
"
|
|
140
|
+
"types": "./lib/HorizontalBarChart/index.d.ts",
|
|
141
|
+
"import": "./lib/HorizontalBarChart/index.mjs",
|
|
142
|
+
"require": "./lib/HorizontalBarChart/index.js"
|
|
150
143
|
},
|
|
151
144
|
"./KagiChart": {
|
|
152
|
-
"
|
|
153
|
-
"import": "./KagiChart/index.mjs",
|
|
154
|
-
"
|
|
145
|
+
"types": "./lib/KagiChart/index.d.ts",
|
|
146
|
+
"import": "./lib/KagiChart/index.mjs",
|
|
147
|
+
"require": "./lib/KagiChart/index.js"
|
|
155
148
|
},
|
|
156
149
|
"./LineChart": {
|
|
157
|
-
"
|
|
158
|
-
"import": "./LineChart/index.mjs",
|
|
159
|
-
"
|
|
150
|
+
"types": "./lib/LineChart/index.d.ts",
|
|
151
|
+
"import": "./lib/LineChart/index.mjs",
|
|
152
|
+
"require": "./lib/LineChart/index.js"
|
|
160
153
|
},
|
|
161
154
|
"./LollipopChart": {
|
|
162
|
-
"
|
|
163
|
-
"import": "./LollipopChart/index.mjs",
|
|
164
|
-
"
|
|
155
|
+
"types": "./lib/LollipopChart/index.d.ts",
|
|
156
|
+
"import": "./lib/LollipopChart/index.mjs",
|
|
157
|
+
"require": "./lib/LollipopChart/index.js"
|
|
165
158
|
},
|
|
166
159
|
"./MailSent": {
|
|
167
|
-
"
|
|
168
|
-
"import": "./MailSent/index.mjs",
|
|
169
|
-
"
|
|
160
|
+
"types": "./lib/MailSent/index.d.ts",
|
|
161
|
+
"import": "./lib/MailSent/index.mjs",
|
|
162
|
+
"require": "./lib/MailSent/index.js"
|
|
170
163
|
},
|
|
171
164
|
"./Maintenance": {
|
|
172
|
-
"
|
|
173
|
-
"import": "./Maintenance/index.mjs",
|
|
174
|
-
"
|
|
165
|
+
"types": "./lib/Maintenance/index.d.ts",
|
|
166
|
+
"import": "./lib/Maintenance/index.mjs",
|
|
167
|
+
"require": "./lib/Maintenance/index.js"
|
|
175
168
|
},
|
|
176
169
|
"./Nexttime": {
|
|
177
|
-
"
|
|
178
|
-
"import": "./Nexttime/index.mjs",
|
|
179
|
-
"
|
|
170
|
+
"types": "./lib/Nexttime/index.d.ts",
|
|
171
|
+
"import": "./lib/Nexttime/index.mjs",
|
|
172
|
+
"require": "./lib/Nexttime/index.js"
|
|
180
173
|
},
|
|
181
174
|
"./NoPayment": {
|
|
182
|
-
"
|
|
183
|
-
"import": "./NoPayment/index.mjs",
|
|
184
|
-
"
|
|
175
|
+
"types": "./lib/NoPayment/index.d.ts",
|
|
176
|
+
"import": "./lib/NoPayment/index.mjs",
|
|
177
|
+
"require": "./lib/NoPayment/index.js"
|
|
185
178
|
},
|
|
186
179
|
"./NothingFound": {
|
|
187
|
-
"
|
|
188
|
-
"import": "./NothingFound/index.mjs",
|
|
189
|
-
"
|
|
180
|
+
"types": "./lib/NothingFound/index.d.ts",
|
|
181
|
+
"import": "./lib/NothingFound/index.mjs",
|
|
182
|
+
"require": "./lib/NothingFound/index.js"
|
|
190
183
|
},
|
|
191
184
|
"./OtherData": {
|
|
192
|
-
"
|
|
193
|
-
"import": "./OtherData/index.mjs",
|
|
194
|
-
"
|
|
185
|
+
"types": "./lib/OtherData/index.d.ts",
|
|
186
|
+
"import": "./lib/OtherData/index.mjs",
|
|
187
|
+
"require": "./lib/OtherData/index.js"
|
|
195
188
|
},
|
|
196
189
|
"./PageError": {
|
|
197
|
-
"
|
|
198
|
-
"import": "./PageError/index.mjs",
|
|
199
|
-
"
|
|
190
|
+
"types": "./lib/PageError/index.d.ts",
|
|
191
|
+
"import": "./lib/PageError/index.mjs",
|
|
192
|
+
"require": "./lib/PageError/index.js"
|
|
200
193
|
},
|
|
201
194
|
"./PageNotFound": {
|
|
202
|
-
"
|
|
203
|
-
"import": "./PageNotFound/index.mjs",
|
|
204
|
-
"
|
|
195
|
+
"types": "./lib/PageNotFound/index.d.ts",
|
|
196
|
+
"import": "./lib/PageNotFound/index.mjs",
|
|
197
|
+
"require": "./lib/PageNotFound/index.js"
|
|
205
198
|
},
|
|
206
199
|
"./PieChart": {
|
|
207
|
-
"
|
|
208
|
-
"import": "./PieChart/index.mjs",
|
|
209
|
-
"
|
|
200
|
+
"types": "./lib/PieChart/index.d.ts",
|
|
201
|
+
"import": "./lib/PieChart/index.mjs",
|
|
202
|
+
"require": "./lib/PieChart/index.js"
|
|
210
203
|
},
|
|
211
204
|
"./Processing": {
|
|
212
|
-
"
|
|
213
|
-
"import": "./Processing/index.mjs",
|
|
214
|
-
"
|
|
205
|
+
"types": "./lib/Processing/index.d.ts",
|
|
206
|
+
"import": "./lib/Processing/index.mjs",
|
|
207
|
+
"require": "./lib/Processing/index.js"
|
|
215
208
|
},
|
|
216
209
|
"./ProjectNotFound": {
|
|
217
|
-
"
|
|
218
|
-
"import": "./ProjectNotFound/index.mjs",
|
|
219
|
-
"
|
|
210
|
+
"types": "./lib/ProjectNotFound/index.d.ts",
|
|
211
|
+
"import": "./lib/ProjectNotFound/index.mjs",
|
|
212
|
+
"require": "./lib/ProjectNotFound/index.js"
|
|
220
213
|
},
|
|
221
214
|
"./RadarChart": {
|
|
222
|
-
"
|
|
223
|
-
"import": "./RadarChart/index.mjs",
|
|
224
|
-
"
|
|
215
|
+
"types": "./lib/RadarChart/index.d.ts",
|
|
216
|
+
"import": "./lib/RadarChart/index.mjs",
|
|
217
|
+
"require": "./lib/RadarChart/index.js"
|
|
225
218
|
},
|
|
226
219
|
"./RadialTreeChart": {
|
|
227
|
-
"
|
|
228
|
-
"import": "./RadialTreeChart/index.mjs",
|
|
229
|
-
"
|
|
220
|
+
"types": "./lib/RadialTreeChart/index.d.ts",
|
|
221
|
+
"import": "./lib/RadialTreeChart/index.mjs",
|
|
222
|
+
"require": "./lib/RadialTreeChart/index.js"
|
|
230
223
|
},
|
|
231
224
|
"./SankeyChart": {
|
|
232
|
-
"
|
|
233
|
-
"import": "./SankeyChart/index.mjs",
|
|
234
|
-
"
|
|
225
|
+
"types": "./lib/SankeyChart/index.d.ts",
|
|
226
|
+
"import": "./lib/SankeyChart/index.mjs",
|
|
227
|
+
"require": "./lib/SankeyChart/index.js"
|
|
235
228
|
},
|
|
236
229
|
"./ScatterPlotChart": {
|
|
237
|
-
"
|
|
238
|
-
"import": "./ScatterPlotChart/index.mjs",
|
|
239
|
-
"
|
|
230
|
+
"types": "./lib/ScatterPlotChart/index.d.ts",
|
|
231
|
+
"import": "./lib/ScatterPlotChart/index.mjs",
|
|
232
|
+
"require": "./lib/ScatterPlotChart/index.js"
|
|
240
233
|
},
|
|
241
234
|
"./StackedAreaChart": {
|
|
242
|
-
"
|
|
243
|
-
"import": "./StackedAreaChart/index.mjs",
|
|
244
|
-
"
|
|
235
|
+
"types": "./lib/StackedAreaChart/index.d.ts",
|
|
236
|
+
"import": "./lib/StackedAreaChart/index.mjs",
|
|
237
|
+
"require": "./lib/StackedAreaChart/index.js"
|
|
245
238
|
},
|
|
246
239
|
"./Suggestion": {
|
|
247
|
-
"
|
|
248
|
-
"import": "./Suggestion/index.mjs",
|
|
249
|
-
"
|
|
240
|
+
"types": "./lib/Suggestion/index.d.ts",
|
|
241
|
+
"import": "./lib/Suggestion/index.mjs",
|
|
242
|
+
"require": "./lib/Suggestion/index.js"
|
|
250
243
|
},
|
|
251
244
|
"./Suggestions": {
|
|
252
|
-
"
|
|
253
|
-
"import": "./Suggestions/index.mjs",
|
|
254
|
-
"
|
|
245
|
+
"types": "./lib/Suggestions/index.d.ts",
|
|
246
|
+
"import": "./lib/Suggestions/index.mjs",
|
|
247
|
+
"require": "./lib/Suggestions/index.js"
|
|
255
248
|
},
|
|
256
249
|
"./Table": {
|
|
257
|
-
"
|
|
258
|
-
"import": "./Table/index.mjs",
|
|
259
|
-
"
|
|
250
|
+
"types": "./lib/Table/index.d.ts",
|
|
251
|
+
"import": "./lib/Table/index.mjs",
|
|
252
|
+
"require": "./lib/Table/index.js"
|
|
260
253
|
},
|
|
261
254
|
"./TagCloud": {
|
|
262
|
-
"
|
|
263
|
-
"import": "./TagCloud/index.mjs",
|
|
264
|
-
"
|
|
255
|
+
"types": "./lib/TagCloud/index.d.ts",
|
|
256
|
+
"import": "./lib/TagCloud/index.mjs",
|
|
257
|
+
"require": "./lib/TagCloud/index.js"
|
|
265
258
|
},
|
|
266
259
|
"./TextLinksEtc": {
|
|
267
|
-
"
|
|
268
|
-
"import": "./TextLinksEtc/index.mjs",
|
|
269
|
-
"
|
|
260
|
+
"types": "./lib/TextLinksEtc/index.d.ts",
|
|
261
|
+
"import": "./lib/TextLinksEtc/index.mjs",
|
|
262
|
+
"require": "./lib/TextLinksEtc/index.js"
|
|
270
263
|
},
|
|
271
264
|
"./Timeout": {
|
|
272
|
-
"
|
|
273
|
-
"import": "./Timeout/index.mjs",
|
|
274
|
-
"
|
|
265
|
+
"types": "./lib/Timeout/index.d.ts",
|
|
266
|
+
"import": "./lib/Timeout/index.mjs",
|
|
267
|
+
"require": "./lib/Timeout/index.js"
|
|
275
268
|
},
|
|
276
269
|
"./UnderConstruction": {
|
|
277
|
-
"
|
|
278
|
-
"import": "./UnderConstruction/index.mjs",
|
|
279
|
-
"
|
|
270
|
+
"types": "./lib/UnderConstruction/index.d.ts",
|
|
271
|
+
"import": "./lib/UnderConstruction/index.mjs",
|
|
272
|
+
"require": "./lib/UnderConstruction/index.js"
|
|
280
273
|
},
|
|
281
274
|
"./VennChart": {
|
|
282
|
-
"
|
|
283
|
-
"import": "./VennChart/index.mjs",
|
|
284
|
-
"
|
|
275
|
+
"types": "./lib/VennChart/index.d.ts",
|
|
276
|
+
"import": "./lib/VennChart/index.mjs",
|
|
277
|
+
"require": "./lib/VennChart/index.js"
|
|
285
278
|
},
|
|
286
279
|
"./VerticalBarChart": {
|
|
287
|
-
"
|
|
288
|
-
"import": "./VerticalBarChart/index.mjs",
|
|
289
|
-
"
|
|
280
|
+
"types": "./lib/VerticalBarChart/index.d.ts",
|
|
281
|
+
"import": "./lib/VerticalBarChart/index.mjs",
|
|
282
|
+
"require": "./lib/VerticalBarChart/index.js"
|
|
290
283
|
},
|
|
291
284
|
"./Waiting": {
|
|
292
|
-
"
|
|
293
|
-
"import": "./Waiting/index.mjs",
|
|
294
|
-
"
|
|
285
|
+
"types": "./lib/Waiting/index.d.ts",
|
|
286
|
+
"import": "./lib/Waiting/index.mjs",
|
|
287
|
+
"require": "./lib/Waiting/index.js"
|
|
295
288
|
},
|
|
296
289
|
"./Warning": {
|
|
297
|
-
"
|
|
298
|
-
"import": "./Warning/index.mjs",
|
|
299
|
-
"
|
|
290
|
+
"types": "./lib/Warning/index.d.ts",
|
|
291
|
+
"import": "./lib/Warning/index.mjs",
|
|
292
|
+
"require": "./lib/Warning/index.js"
|
|
300
293
|
}
|
|
301
294
|
},
|
|
302
295
|
"scripts": {
|
|
303
|
-
"build": "pnpm
|
|
296
|
+
"build": "pnpm clean && pnpm semcore-builder --source=js && pnpm run transform && pnpm vite build",
|
|
304
297
|
"transform": "tsm --require=../../.ci/tsm-filter-warnings.js transform.ts",
|
|
305
|
-
"
|
|
306
|
-
"upload-static": "gcs-upload svg/*.svg"
|
|
298
|
+
"clean": "rm -rf ./lib",
|
|
299
|
+
"upload-static": "gcs-upload intergalactic-illustrations svg/*.svg"
|
|
307
300
|
}
|
|
308
301
|
}
|
package/svg/MailSent.svg
CHANGED
|
@@ -1,27 +1 @@
|
|
|
1
|
-
<svg width="80" height="80" viewBox="0 0 80 80" fill="
|
|
2
|
-
<g clip-path="url(#clip0_2_104)">
|
|
3
|
-
<path d="M27.945 5.04601C27.7367 5.04597 27.5305 5.08702 27.3382 5.16681C27.1458 5.24661 26.9711 5.36357 26.824 5.51101L13.909 18.426C7.41941 24.9156 3.77361 33.7174 3.77361 42.895C3.77361 52.0727 7.41941 60.8744 13.909 67.364C20.3986 73.8536 29.2003 77.4994 38.378 77.4994C47.5556 77.4994 56.3574 73.8536 62.847 67.364L75.762 54.448C75.9093 54.3011 76.0261 54.1265 76.1057 53.9343C76.1853 53.7421 76.2262 53.536 76.226 53.328V5.94401C76.226 5.70531 76.1312 5.47639 75.9624 5.30761C75.7936 5.13883 75.5647 5.04401 75.326 5.04401L27.945 5.04601Z" fill="#45E0A8"/>
|
|
4
|
-
<path d="M28.615 44.751L28.815 45.104C34.956 41.652 52.997 31.426 56.346 34.573C55.208 31.466 39.307 34.9 28.615 44.751Z" fill="white"/>
|
|
5
|
-
<path d="M28.513 31.03C26.7 37.072 19.3 55.5 15.07 61.342L18.083 62.254L19.659 60.925C23.878 51.385 29.639 34.972 29.971 29.467C29.462 29.182 28.947 29.583 28.513 31.03Z" fill="white"/>
|
|
6
|
-
<path d="M15.07 61.342C19.3 55.5 26.7 37.072 28.513 31.03C30.326 24.988 33.555 37.039 31.743 42.145" stroke="black" stroke-width="0.75" stroke-linecap="round" stroke-linejoin="round"/>
|
|
7
|
-
<path d="M27.909 45.411C38.592 35.046 55.183 31.4 56.342 34.573C57.03 36.459 42.913 40.832 37.934 46.889" stroke="black" stroke-width="0.75" stroke-linecap="round" stroke-linejoin="round"/>
|
|
8
|
-
<path d="M44.281 21.43C41.036 20.27 35.689 18.539 32.832 17.741C36.95 15.907 69.787 3.753 72.5 2.5C71.578 6.606 67.576 20.78 65.784 27.433C60.957 25.751 56.056 24.275 52.862 23.24C50.8607 25.8918 49.0505 28.6825 47.445 31.591C46.272 27.731 45.116 23.274 44.281 21.43Z" fill="white" stroke="black" stroke-width="0.75" stroke-linecap="round" stroke-linejoin="round"/>
|
|
9
|
-
<path d="M44.281 21.43L61.026 10.352" stroke="black" stroke-width="0.75" stroke-linecap="round" stroke-linejoin="round"/>
|
|
10
|
-
<path d="M52.864 23.24L72.502 2.5" stroke="black" stroke-width="0.75" stroke-linecap="round" stroke-linejoin="round"/>
|
|
11
|
-
<path d="M47.447 31.591L55.299 24.015" stroke="black" stroke-width="0.75" stroke-linecap="round" stroke-linejoin="round"/>
|
|
12
|
-
<path d="M48.436 30.173L51.891 24.532L52.864 23.405L54.928 24.015L55.364 23.884L52.009 27.311L49.53 29.581L48.204 30.695L48.436 30.173Z" fill="black"/>
|
|
13
|
-
<path d="M34.013 21.451L23.202 26.58" stroke="white" stroke-width="0.75" stroke-linecap="round" stroke-linejoin="round"/>
|
|
14
|
-
<path d="M40.905 22.5L34.013 26.862" stroke="white" stroke-width="0.75" stroke-linecap="round" stroke-linejoin="round"/>
|
|
15
|
-
<path d="M62.293 28.365L58.253 38.215" stroke="white" stroke-width="0.75" stroke-linecap="round" stroke-linejoin="round"/>
|
|
16
|
-
<path d="M46.09 40.849C49.703 43.274 44.221 49.374 42.408 50.967" stroke="black" stroke-width="0.75" stroke-linecap="round" stroke-linejoin="round"/>
|
|
17
|
-
<path d="M47.258 43.6C51.4 45.7 48.418 51.364 46.09 54.2" stroke="black" stroke-width="0.75" stroke-linecap="round" stroke-linejoin="round"/>
|
|
18
|
-
<path d="M49.023 48.9C54.523 53.376 36.467 72.622 35.159 73.683" stroke="black" stroke-width="0.75" stroke-linecap="round" stroke-linejoin="round"/>
|
|
19
|
-
<path d="M5.177 73.321C7.669 70.98 13.419 62.372 14.7 59.88C28.358 57.763 34.9 69.927 35.159 73.4C32.9025 78.2847 30.3099 83.007 27.4 87.533" fill="black"/>
|
|
20
|
-
<path d="M5.177 73.321C7.669 70.98 13.419 62.372 14.7 59.88C28.358 57.763 34.9 69.927 35.159 73.4C32.9025 78.2847 30.3099 83.007 27.4 87.533" stroke="black" stroke-width="0.75" stroke-linecap="round" stroke-linejoin="round"/>
|
|
21
|
-
</g>
|
|
22
|
-
<defs>
|
|
23
|
-
<clipPath id="clip0_2_104">
|
|
24
|
-
<rect width="80" height="80" fill="white"/>
|
|
25
|
-
</clipPath>
|
|
26
|
-
</defs>
|
|
27
|
-
</svg>
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="80" height="80" fill="none" viewBox="0 0 80 80"><path fill="#45e0a8" d="M28.012 5.982a1.56 1.56 0 0 0-1.113.457L14.07 19.283A34.4 34.4 0 0 0 38.388 78a34.38 34.38 0 0 0 24.317-10.078l12.829-12.833A1.57 1.57 0 0 0 76 53.975V6.867a.895.895 0 0 0-.894-.885z"/><path fill="#fff" d="m28.844 45.034.198.348c6.152-3.43 24.04-13.589 27.358-10.467-1.123-3.082-16.923.328-27.556 10.12M28.287 31.464c-1.799 5.965-9.152 24.325-13.356 30.13l2.982.905 1.57-1.312c4.193-9.494 9.937-25.846 10.245-31.274-.497-.258-.954.14-1.44 1.551"/><path stroke="#000" stroke-linecap="round" stroke-linejoin="round" stroke-width=".75" d="M14.931 61.657c4.204-5.805 11.558-24.126 13.356-30.16s5.019 5.965 3.21 11.054"/><path stroke="#000" stroke-linecap="round" stroke-linejoin="round" stroke-width=".75" d="M27.85 45.687c10.613-10.298 27.1-13.916 28.252-10.775.686 1.879-13.346 6.223-18.295 12.246"/><path fill="#fff" stroke="#000" stroke-linecap="round" stroke-linejoin="round" stroke-width=".75" d="M44.197 21.818c-3.22-1.154-8.536-2.873-11.378-3.669C36.913 16.33 69.587 4.233 72.24 3c-.914 4.086-4.889 18.171-6.668 24.782-4.8-1.67-9.669-3.131-12.849-4.165a69 69 0 0 0-5.376 8.3c-1.172-3.837-2.315-8.27-3.15-10.1"/><path stroke="#000" stroke-linecap="round" stroke-linejoin="round" stroke-width=".75" d="m44.744 21.967 16.635-11.015M52.694 23.607 72.21 3M47.725 32.404l7.81-7.535"/><path fill="#000" d="m47.953 30.605 3.439-5.607.964-1.123 2.057.607.427-.13-3.339 3.41-2.454 2.256-1.322 1.104z"/><path stroke="#fff" stroke-linecap="round" stroke-linejoin="round" stroke-width=".75" d="m33.624 21.887-10.743 5.09M40.66 22.881l-6.848 4.344M61.677 28.846l-4.015 9.79"/><path stroke="#000" stroke-linecap="round" stroke-linejoin="round" stroke-width=".75" d="M46.413 40.774c3.588 2.406-1.858 8.47-3.657 10.06"/><path stroke="#000" stroke-linecap="round" stroke-linejoin="round" stroke-width=".75" d="M46.9 43.756c4.114 2.078 1.153 7.714-1.163 10.537"/><path stroke="#000" stroke-linecap="round" stroke-linejoin="round" stroke-width=".75" d="M48.58 48.727c5.475 4.453-12.472 23.579-13.774 24.633"/><mask id="a" width="72" height="73" x="4" y="5" maskUnits="userSpaceOnUse" style="mask-type:alpha"><path fill="#45dfa7" d="M28.012 5.982a1.56 1.56 0 0 0-1.113.457L14.07 19.283A34.4 34.4 0 0 0 38.388 78a34.38 34.38 0 0 0 24.317-10.078l12.829-12.833A1.57 1.57 0 0 0 76 53.975V6.867a.895.895 0 0 0-.894-.885z"/></mask><g mask="url(#a)"><path fill="#000" d="M4.994 74.261c2.474-2.326 8.188-10.934 9.46-13.36 13.575-2.107 20.064 9.94 20.332 13.44a116 116 0 0 1-7.711 14.046"/><path stroke="#000" stroke-linecap="round" stroke-linejoin="round" stroke-width=".75" d="M4.994 74.261c2.474-2.326 8.188-10.934 9.46-13.36 13.575-2.107 20.064 9.94 20.332 13.44a116 116 0 0 1-7.711 14.046"/></g></svg>
|
package/transform.ts
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import fs from 'fs-extra';
|
|
2
1
|
import path, { resolve as resolvePath } from 'path';
|
|
3
|
-
|
|
4
|
-
import { Window } from 'happy-dom';
|
|
5
|
-
import esbuild from 'esbuild';
|
|
2
|
+
|
|
6
3
|
import ColorJSIO from 'colorjs.io';
|
|
4
|
+
import esbuild from 'esbuild';
|
|
5
|
+
import fs from 'fs-extra';
|
|
6
|
+
import { Window } from 'happy-dom';
|
|
7
|
+
import svgToJsx from 'svg-to-jsx';
|
|
7
8
|
const Color = ColorJSIO as any;
|
|
8
9
|
|
|
9
10
|
const illustrations = await fs.readdir('svg');
|
|
@@ -107,13 +108,13 @@ await Promise.all(
|
|
|
107
108
|
const component = `
|
|
108
109
|
import React from 'react';
|
|
109
110
|
import { createBaseComponent } from '@semcore/core';
|
|
110
|
-
import { Box } from '@semcore/
|
|
111
|
-
import { useColorResolver } from '@semcore/
|
|
111
|
+
import { Box } from '@semcore/base-components';
|
|
112
|
+
import { useColorResolver } from '@semcore/core/lib/utils/use/useColorResolver';
|
|
112
113
|
|
|
113
114
|
const ${illustration} = ({${props.join(', ')}, ...props}, ref) => {
|
|
114
115
|
${prerenderLines.join('\n')}
|
|
115
116
|
return (
|
|
116
|
-
<Box
|
|
117
|
+
<Box
|
|
117
118
|
ref={ref}
|
|
118
119
|
width={width}
|
|
119
120
|
height={height}
|
|
@@ -132,7 +133,7 @@ export default createBaseComponent(${illustration})
|
|
|
132
133
|
`;
|
|
133
134
|
|
|
134
135
|
const typesDeclaration = `
|
|
135
|
-
import { BoxProps } from '@semcore/
|
|
136
|
+
import { BoxProps } from '@semcore/base-components';
|
|
136
137
|
import { Intergalactic } from '@semcore/core';
|
|
137
138
|
|
|
138
139
|
type IllustrationProps = BoxProps & {
|
|
@@ -158,7 +159,7 @@ type IllustrationProps = BoxProps & {
|
|
|
158
159
|
height?: string | number;
|
|
159
160
|
}
|
|
160
161
|
declare const Illustration: Intergalactic.Component<'svg', IllustrationProps>;
|
|
161
|
-
export default Illustration;
|
|
162
|
+
export default Illustration;
|
|
162
163
|
`;
|
|
163
164
|
|
|
164
165
|
const { code: cjs } = await esbuild.transform(component, {
|
|
@@ -171,14 +172,14 @@ export default Illustration;
|
|
|
171
172
|
});
|
|
172
173
|
|
|
173
174
|
try {
|
|
174
|
-
await fs.access(illustration);
|
|
175
|
+
await fs.access(resolvePath('lib', illustration));
|
|
175
176
|
} catch {
|
|
176
|
-
await fs.mkdir(illustration);
|
|
177
|
+
await fs.mkdir(resolvePath('lib', illustration));
|
|
177
178
|
}
|
|
178
179
|
|
|
179
|
-
await fs.writeFile(resolvePath(illustration, 'index.js'), cjs);
|
|
180
|
-
await fs.writeFile(resolvePath(illustration, 'index.mjs'), esm);
|
|
181
|
-
await fs.writeFile(resolvePath(illustration, 'index.d.ts'), typesDeclaration);
|
|
180
|
+
await fs.writeFile(resolvePath('lib', illustration, 'index.js'), cjs);
|
|
181
|
+
await fs.writeFile(resolvePath('lib', illustration, 'index.mjs'), esm);
|
|
182
|
+
await fs.writeFile(resolvePath('lib', illustration, 'index.d.ts'), typesDeclaration);
|
|
182
183
|
}),
|
|
183
184
|
);
|
|
184
185
|
|
|
@@ -189,9 +190,9 @@ async function patchExports(illustrations: string[]) {
|
|
|
189
190
|
|
|
190
191
|
const exports: Record<string, any> = {
|
|
191
192
|
'.': {
|
|
192
|
-
require: './lib/cjs/index.js',
|
|
193
|
-
import: './lib/es6/index.js',
|
|
194
193
|
types: './lib/types/index.d.ts',
|
|
194
|
+
import: './lib/esm/index.mjs',
|
|
195
|
+
require: './lib/cjs/index.js',
|
|
195
196
|
},
|
|
196
197
|
};
|
|
197
198
|
|
|
@@ -199,9 +200,9 @@ async function patchExports(illustrations: string[]) {
|
|
|
199
200
|
const name = item.replace('.svg', '');
|
|
200
201
|
|
|
201
202
|
exports[`./${name}`] = {
|
|
202
|
-
|
|
203
|
-
import:
|
|
204
|
-
|
|
203
|
+
types: `./lib/${name}/index.d.ts`,
|
|
204
|
+
import: `./lib/${name}/index.mjs`,
|
|
205
|
+
require: `./lib/${name}/index.js`,
|
|
205
206
|
};
|
|
206
207
|
});
|
|
207
208
|
|
|
@@ -209,7 +210,7 @@ async function patchExports(illustrations: string[]) {
|
|
|
209
210
|
|
|
210
211
|
await fs.writeJSON(packageJsonPath, packageJson, { spaces: 2 });
|
|
211
212
|
|
|
212
|
-
//
|
|
213
|
+
// eslint-disable-next-line no-console
|
|
213
214
|
console.log('Patched exports in package.json.');
|
|
214
215
|
}
|
|
215
216
|
|