@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.
Files changed (171) hide show
  1. package/CHANGELOG.md +85 -3
  2. package/README.md +5 -32
  3. package/lib/MailSent/index.js +14 -3
  4. package/lib/MailSent/index.mjs +14 -3
  5. package/lib/cjs/index.js +7 -8
  6. package/lib/cjs/index.js.map +1 -1
  7. package/lib/es6/index.js +6 -8
  8. package/lib/es6/index.js.map +1 -1
  9. package/lib/esm/index.mjs +6 -8
  10. package/package.json +171 -178
  11. package/svg/MailSent.svg +1 -27
  12. package/transform.ts +21 -20
  13. package/types/svg-to-jsx.d.ts +1 -1
  14. package/vite.config.ts +24 -0
  15. package/AccessDenied/index.d.ts +0 -28
  16. package/AccessDenied/index.js +0 -242
  17. package/AccessDenied/index.mjs +0 -220
  18. package/AccessLogIn/index.d.ts +0 -28
  19. package/AccessLogIn/index.js +0 -344
  20. package/AccessLogIn/index.mjs +0 -322
  21. package/AreaChart/index.d.ts +0 -28
  22. package/AreaChart/index.js +0 -89
  23. package/AreaChart/index.mjs +0 -67
  24. package/Blocked/index.d.ts +0 -28
  25. package/Blocked/index.js +0 -493
  26. package/Blocked/index.mjs +0 -471
  27. package/ChoroplethMapChart/index.d.ts +0 -28
  28. package/ChoroplethMapChart/index.js +0 -111
  29. package/ChoroplethMapChart/index.mjs +0 -89
  30. package/Coffee/index.d.ts +0 -28
  31. package/Coffee/index.js +0 -96
  32. package/Coffee/index.mjs +0 -74
  33. package/Collection/index.d.ts +0 -28
  34. package/Collection/index.js +0 -90
  35. package/Collection/index.mjs +0 -68
  36. package/CombinedChart/index.d.ts +0 -28
  37. package/CombinedChart/index.js +0 -118
  38. package/CombinedChart/index.mjs +0 -96
  39. package/Configuration/index.d.ts +0 -28
  40. package/Configuration/index.js +0 -197
  41. package/Configuration/index.mjs +0 -175
  42. package/Confirmation/index.d.ts +0 -28
  43. package/Confirmation/index.js +0 -267
  44. package/Confirmation/index.mjs +0 -245
  45. package/Congrats/index.d.ts +0 -28
  46. package/Congrats/index.js +0 -147
  47. package/Congrats/index.mjs +0 -125
  48. package/ConnectionLost/index.d.ts +0 -28
  49. package/ConnectionLost/index.js +0 -299
  50. package/ConnectionLost/index.mjs +0 -277
  51. package/DeletedAccount/index.d.ts +0 -28
  52. package/DeletedAccount/index.js +0 -376
  53. package/DeletedAccount/index.mjs +0 -354
  54. package/DeletedPage/index.d.ts +0 -28
  55. package/DeletedPage/index.js +0 -81
  56. package/DeletedPage/index.mjs +0 -59
  57. package/Dns/index.d.ts +0 -28
  58. package/Dns/index.js +0 -180
  59. package/Dns/index.mjs +0 -158
  60. package/DonutChart/index.d.ts +0 -28
  61. package/DonutChart/index.js +0 -131
  62. package/DonutChart/index.mjs +0 -109
  63. package/Duplicates/index.d.ts +0 -28
  64. package/Duplicates/index.js +0 -108
  65. package/Duplicates/index.mjs +0 -86
  66. package/Feedback/index.d.ts +0 -28
  67. package/Feedback/index.js +0 -96
  68. package/Feedback/index.mjs +0 -74
  69. package/FunnelChart/index.d.ts +0 -28
  70. package/FunnelChart/index.js +0 -98
  71. package/FunnelChart/index.mjs +0 -76
  72. package/Good/index.d.ts +0 -28
  73. package/Good/index.js +0 -131
  74. package/Good/index.mjs +0 -109
  75. package/HeatMapChart/index.d.ts +0 -28
  76. package/HeatMapChart/index.js +0 -116
  77. package/HeatMapChart/index.mjs +0 -94
  78. package/HorizontalBarChart/index.d.ts +0 -28
  79. package/HorizontalBarChart/index.js +0 -102
  80. package/HorizontalBarChart/index.mjs +0 -80
  81. package/KagiChart/index.d.ts +0 -28
  82. package/KagiChart/index.js +0 -83
  83. package/KagiChart/index.mjs +0 -61
  84. package/LineChart/index.d.ts +0 -28
  85. package/LineChart/index.js +0 -86
  86. package/LineChart/index.mjs +0 -64
  87. package/LollipopChart/index.d.ts +0 -28
  88. package/LollipopChart/index.js +0 -103
  89. package/LollipopChart/index.mjs +0 -81
  90. package/MailSent/index.d.ts +0 -28
  91. package/MailSent/index.js +0 -142
  92. package/MailSent/index.mjs +0 -120
  93. package/Maintenance/index.d.ts +0 -28
  94. package/Maintenance/index.js +0 -363
  95. package/Maintenance/index.mjs +0 -341
  96. package/Nexttime/index.d.ts +0 -28
  97. package/Nexttime/index.js +0 -110
  98. package/Nexttime/index.mjs +0 -88
  99. package/NoPayment/index.d.ts +0 -28
  100. package/NoPayment/index.js +0 -304
  101. package/NoPayment/index.mjs +0 -282
  102. package/NothingFound/index.d.ts +0 -28
  103. package/NothingFound/index.js +0 -134
  104. package/NothingFound/index.mjs +0 -112
  105. package/OtherData/index.d.ts +0 -28
  106. package/OtherData/index.js +0 -117
  107. package/OtherData/index.mjs +0 -95
  108. package/PageError/index.d.ts +0 -28
  109. package/PageError/index.js +0 -224
  110. package/PageError/index.mjs +0 -202
  111. package/PageNotFound/index.d.ts +0 -28
  112. package/PageNotFound/index.js +0 -284
  113. package/PageNotFound/index.mjs +0 -262
  114. package/PieChart/index.d.ts +0 -28
  115. package/PieChart/index.js +0 -116
  116. package/PieChart/index.mjs +0 -94
  117. package/Processing/index.d.ts +0 -28
  118. package/Processing/index.js +0 -96
  119. package/Processing/index.mjs +0 -74
  120. package/ProjectNotFound/index.d.ts +0 -28
  121. package/ProjectNotFound/index.js +0 -247
  122. package/ProjectNotFound/index.mjs +0 -225
  123. package/RadarChart/index.d.ts +0 -28
  124. package/RadarChart/index.js +0 -95
  125. package/RadarChart/index.mjs +0 -73
  126. package/RadialTreeChart/index.d.ts +0 -28
  127. package/RadialTreeChart/index.js +0 -137
  128. package/RadialTreeChart/index.mjs +0 -115
  129. package/SankeyChart/index.d.ts +0 -28
  130. package/SankeyChart/index.js +0 -123
  131. package/SankeyChart/index.mjs +0 -101
  132. package/ScatterPlotChart/index.d.ts +0 -28
  133. package/ScatterPlotChart/index.js +0 -108
  134. package/ScatterPlotChart/index.mjs +0 -86
  135. package/StackedAreaChart/index.d.ts +0 -28
  136. package/StackedAreaChart/index.js +0 -110
  137. package/StackedAreaChart/index.mjs +0 -88
  138. package/Suggestion/index.d.ts +0 -28
  139. package/Suggestion/index.js +0 -94
  140. package/Suggestion/index.mjs +0 -72
  141. package/Suggestions/index.d.ts +0 -28
  142. package/Suggestions/index.js +0 -97
  143. package/Suggestions/index.mjs +0 -75
  144. package/Table/index.d.ts +0 -28
  145. package/Table/index.js +0 -81
  146. package/Table/index.mjs +0 -59
  147. package/TagCloud/index.d.ts +0 -28
  148. package/TagCloud/index.js +0 -108
  149. package/TagCloud/index.mjs +0 -86
  150. package/TextLinksEtc/index.d.ts +0 -28
  151. package/TextLinksEtc/index.js +0 -84
  152. package/TextLinksEtc/index.mjs +0 -62
  153. package/Timeout/index.d.ts +0 -28
  154. package/Timeout/index.js +0 -381
  155. package/Timeout/index.mjs +0 -359
  156. package/UnderConstruction/index.d.ts +0 -28
  157. package/UnderConstruction/index.js +0 -143
  158. package/UnderConstruction/index.mjs +0 -121
  159. package/VennChart/index.d.ts +0 -28
  160. package/VennChart/index.js +0 -109
  161. package/VennChart/index.mjs +0 -87
  162. package/VerticalBarChart/index.d.ts +0 -28
  163. package/VerticalBarChart/index.js +0 -103
  164. package/VerticalBarChart/index.mjs +0 -81
  165. package/Waiting/index.d.ts +0 -28
  166. package/Waiting/index.js +0 -96
  167. package/Waiting/index.mjs +0 -74
  168. package/Warning/index.d.ts +0 -28
  169. package/Warning/index.js +0 -91
  170. package/Warning/index.mjs +0 -69
  171. 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.1-prerelease.0",
4
+ "version": "17.0.2-prerelease.0",
5
5
  "main": "lib/cjs/index.js",
6
- "module": "lib/es6/index.js",
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/core": "^17.0.1-prerelease.0",
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
- "esbuild": "0.14.29",
28
- "happy-dom": "9.20.3",
20
+ "@types/fs-extra": "8.1.0",
21
+ "colorjs.io": "0.6.1",
29
22
  "fs-extra": "8.1.0",
30
- "svg-to-jsx": "^1.0.4",
31
- "@semcore/testing-utils": "1.0.0",
32
- "@types/react": "18.0.21",
33
- "@types/fs-extra": "8.1.0"
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
- "require": "./lib/cjs/index.js",
38
- "import": "./lib/es6/index.js",
39
- "types": "./lib/types/index.d.ts"
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
- "require": "./AccessDenied/index.js",
43
- "import": "./AccessDenied/index.mjs",
44
- "types": "./AccessDenied/index.d.ts"
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
- "require": "./AccessLogIn/index.js",
48
- "import": "./AccessLogIn/index.mjs",
49
- "types": "./AccessLogIn/index.d.ts"
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
- "require": "./AreaChart/index.js",
53
- "import": "./AreaChart/index.mjs",
54
- "types": "./AreaChart/index.d.ts"
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
- "require": "./Blocked/index.js",
58
- "import": "./Blocked/index.mjs",
59
- "types": "./Blocked/index.d.ts"
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
- "require": "./ChoroplethMapChart/index.js",
63
- "import": "./ChoroplethMapChart/index.mjs",
64
- "types": "./ChoroplethMapChart/index.d.ts"
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
- "require": "./Coffee/index.js",
68
- "import": "./Coffee/index.mjs",
69
- "types": "./Coffee/index.d.ts"
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
- "require": "./Collection/index.js",
73
- "import": "./Collection/index.mjs",
74
- "types": "./Collection/index.d.ts"
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
- "require": "./CombinedChart/index.js",
78
- "import": "./CombinedChart/index.mjs",
79
- "types": "./CombinedChart/index.d.ts"
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
- "require": "./Configuration/index.js",
83
- "import": "./Configuration/index.mjs",
84
- "types": "./Configuration/index.d.ts"
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
- "require": "./Confirmation/index.js",
88
- "import": "./Confirmation/index.mjs",
89
- "types": "./Confirmation/index.d.ts"
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
- "require": "./Congrats/index.js",
93
- "import": "./Congrats/index.mjs",
94
- "types": "./Congrats/index.d.ts"
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
- "require": "./ConnectionLost/index.js",
98
- "import": "./ConnectionLost/index.mjs",
99
- "types": "./ConnectionLost/index.d.ts"
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
- "require": "./DeletedAccount/index.js",
103
- "import": "./DeletedAccount/index.mjs",
104
- "types": "./DeletedAccount/index.d.ts"
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
- "require": "./DeletedPage/index.js",
108
- "import": "./DeletedPage/index.mjs",
109
- "types": "./DeletedPage/index.d.ts"
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
- "require": "./Dns/index.js",
113
- "import": "./Dns/index.mjs",
114
- "types": "./Dns/index.d.ts"
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
- "require": "./DonutChart/index.js",
118
- "import": "./DonutChart/index.mjs",
119
- "types": "./DonutChart/index.d.ts"
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
- "require": "./Duplicates/index.js",
123
- "import": "./Duplicates/index.mjs",
124
- "types": "./Duplicates/index.d.ts"
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
- "require": "./Feedback/index.js",
128
- "import": "./Feedback/index.mjs",
129
- "types": "./Feedback/index.d.ts"
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
- "require": "./FunnelChart/index.js",
133
- "import": "./FunnelChart/index.mjs",
134
- "types": "./FunnelChart/index.d.ts"
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
- "require": "./Good/index.js",
138
- "import": "./Good/index.mjs",
139
- "types": "./Good/index.d.ts"
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
- "require": "./HeatMapChart/index.js",
143
- "import": "./HeatMapChart/index.mjs",
144
- "types": "./HeatMapChart/index.d.ts"
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
- "require": "./HorizontalBarChart/index.js",
148
- "import": "./HorizontalBarChart/index.mjs",
149
- "types": "./HorizontalBarChart/index.d.ts"
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
- "require": "./KagiChart/index.js",
153
- "import": "./KagiChart/index.mjs",
154
- "types": "./KagiChart/index.d.ts"
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
- "require": "./LineChart/index.js",
158
- "import": "./LineChart/index.mjs",
159
- "types": "./LineChart/index.d.ts"
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
- "require": "./LollipopChart/index.js",
163
- "import": "./LollipopChart/index.mjs",
164
- "types": "./LollipopChart/index.d.ts"
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
- "require": "./MailSent/index.js",
168
- "import": "./MailSent/index.mjs",
169
- "types": "./MailSent/index.d.ts"
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
- "require": "./Maintenance/index.js",
173
- "import": "./Maintenance/index.mjs",
174
- "types": "./Maintenance/index.d.ts"
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
- "require": "./Nexttime/index.js",
178
- "import": "./Nexttime/index.mjs",
179
- "types": "./Nexttime/index.d.ts"
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
- "require": "./NoPayment/index.js",
183
- "import": "./NoPayment/index.mjs",
184
- "types": "./NoPayment/index.d.ts"
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
- "require": "./NothingFound/index.js",
188
- "import": "./NothingFound/index.mjs",
189
- "types": "./NothingFound/index.d.ts"
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
- "require": "./OtherData/index.js",
193
- "import": "./OtherData/index.mjs",
194
- "types": "./OtherData/index.d.ts"
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
- "require": "./PageError/index.js",
198
- "import": "./PageError/index.mjs",
199
- "types": "./PageError/index.d.ts"
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
- "require": "./PageNotFound/index.js",
203
- "import": "./PageNotFound/index.mjs",
204
- "types": "./PageNotFound/index.d.ts"
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
- "require": "./PieChart/index.js",
208
- "import": "./PieChart/index.mjs",
209
- "types": "./PieChart/index.d.ts"
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
- "require": "./Processing/index.js",
213
- "import": "./Processing/index.mjs",
214
- "types": "./Processing/index.d.ts"
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
- "require": "./ProjectNotFound/index.js",
218
- "import": "./ProjectNotFound/index.mjs",
219
- "types": "./ProjectNotFound/index.d.ts"
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
- "require": "./RadarChart/index.js",
223
- "import": "./RadarChart/index.mjs",
224
- "types": "./RadarChart/index.d.ts"
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
- "require": "./RadialTreeChart/index.js",
228
- "import": "./RadialTreeChart/index.mjs",
229
- "types": "./RadialTreeChart/index.d.ts"
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
- "require": "./SankeyChart/index.js",
233
- "import": "./SankeyChart/index.mjs",
234
- "types": "./SankeyChart/index.d.ts"
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
- "require": "./ScatterPlotChart/index.js",
238
- "import": "./ScatterPlotChart/index.mjs",
239
- "types": "./ScatterPlotChart/index.d.ts"
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
- "require": "./StackedAreaChart/index.js",
243
- "import": "./StackedAreaChart/index.mjs",
244
- "types": "./StackedAreaChart/index.d.ts"
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
- "require": "./Suggestion/index.js",
248
- "import": "./Suggestion/index.mjs",
249
- "types": "./Suggestion/index.d.ts"
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
- "require": "./Suggestions/index.js",
253
- "import": "./Suggestions/index.mjs",
254
- "types": "./Suggestions/index.d.ts"
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
- "require": "./Table/index.js",
258
- "import": "./Table/index.mjs",
259
- "types": "./Table/index.d.ts"
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
- "require": "./TagCloud/index.js",
263
- "import": "./TagCloud/index.mjs",
264
- "types": "./TagCloud/index.d.ts"
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
- "require": "./TextLinksEtc/index.js",
268
- "import": "./TextLinksEtc/index.mjs",
269
- "types": "./TextLinksEtc/index.d.ts"
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
- "require": "./Timeout/index.js",
273
- "import": "./Timeout/index.mjs",
274
- "types": "./Timeout/index.d.ts"
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
- "require": "./UnderConstruction/index.js",
278
- "import": "./UnderConstruction/index.mjs",
279
- "types": "./UnderConstruction/index.d.ts"
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
- "require": "./VennChart/index.js",
283
- "import": "./VennChart/index.mjs",
284
- "types": "./VennChart/index.d.ts"
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
- "require": "./VerticalBarChart/index.js",
288
- "import": "./VerticalBarChart/index.mjs",
289
- "types": "./VerticalBarChart/index.d.ts"
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
- "require": "./Waiting/index.js",
293
- "import": "./Waiting/index.mjs",
294
- "types": "./Waiting/index.d.ts"
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
- "require": "./Warning/index.js",
298
- "import": "./Warning/index.mjs",
299
- "types": "./Warning/index.d.ts"
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 clear && pnpm semcore-builder --source=js && pnpm run transform",
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
- "clear": "tsm --require=../../.ci/tsm-filter-warnings.js clear.ts",
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="none" xmlns="http://www.w3.org/2000/svg">
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
- import svgToJsx from 'svg-to-jsx';
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/flex-box';
111
- import { useColorResolver } from '@semcore/utils/lib/use/useColorResolver';
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/flex-box';
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
- require: `./${name}/index.js`,
203
- import: `./${name}/index.mjs`,
204
- types: `./${name}/index.d.ts`,
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
- // biome-ignore lint/suspicious/noConsoleLog:
213
+ // eslint-disable-next-line no-console
213
214
  console.log('Patched exports in package.json.');
214
215
  }
215
216