@semcore/illustration 2.44.2 → 16.0.0-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/AccessDenied/index.js +1 -1
- package/AccessDenied/index.mjs +1 -1
- package/AccessLogIn/index.js +1 -1
- package/AccessLogIn/index.mjs +1 -1
- package/AreaChart/index.js +1 -1
- package/AreaChart/index.mjs +1 -1
- package/Blocked/index.js +1 -1
- package/Blocked/index.mjs +1 -1
- package/CHANGELOG.md +6 -0
- package/ChoroplethMapChart/index.js +1 -1
- package/ChoroplethMapChart/index.mjs +1 -1
- package/Coffee/index.js +1 -1
- package/Coffee/index.mjs +1 -1
- package/Collection/index.js +1 -1
- package/Collection/index.mjs +1 -1
- package/CombinedChart/index.js +1 -1
- package/CombinedChart/index.mjs +1 -1
- package/Configuration/index.js +1 -1
- package/Configuration/index.mjs +1 -1
- package/Confirmation/index.js +1 -1
- package/Confirmation/index.mjs +1 -1
- package/Congrats/index.js +1 -1
- package/Congrats/index.mjs +1 -1
- package/ConnectionLost/index.js +1 -1
- package/ConnectionLost/index.mjs +1 -1
- package/DeletedAccount/index.js +1 -1
- package/DeletedAccount/index.mjs +1 -1
- package/DeletedPage/index.js +1 -1
- package/DeletedPage/index.mjs +1 -1
- package/Dns/index.js +1 -1
- package/Dns/index.mjs +1 -1
- package/DonutChart/index.js +1 -1
- package/DonutChart/index.mjs +1 -1
- package/Duplicates/index.js +1 -1
- package/Duplicates/index.mjs +1 -1
- package/Feedback/index.js +1 -1
- package/Feedback/index.mjs +1 -1
- package/FunnelChart/index.js +1 -1
- package/FunnelChart/index.mjs +1 -1
- package/Good/index.js +1 -1
- package/Good/index.mjs +1 -1
- package/HeatMapChart/index.js +1 -1
- package/HeatMapChart/index.mjs +1 -1
- package/HorizontalBarChart/index.js +1 -1
- package/HorizontalBarChart/index.mjs +1 -1
- package/KagiChart/index.js +1 -1
- package/KagiChart/index.mjs +1 -1
- package/LineChart/index.js +1 -1
- package/LineChart/index.mjs +1 -1
- package/LollipopChart/index.js +1 -1
- package/LollipopChart/index.mjs +1 -1
- package/MailSent/index.js +1 -1
- package/MailSent/index.mjs +1 -1
- package/Maintenance/index.js +1 -1
- package/Maintenance/index.mjs +1 -1
- package/Nexttime/index.js +1 -1
- package/Nexttime/index.mjs +1 -1
- package/NoPayment/index.js +1 -1
- package/NoPayment/index.mjs +1 -1
- package/NothingFound/index.js +1 -1
- package/NothingFound/index.mjs +1 -1
- package/OtherData/index.js +1 -1
- package/OtherData/index.mjs +1 -1
- package/PageError/index.js +1 -1
- package/PageError/index.mjs +1 -1
- package/PageNotFound/index.js +1 -1
- package/PageNotFound/index.mjs +1 -1
- package/PieChart/index.js +1 -1
- package/PieChart/index.mjs +1 -1
- package/Processing/index.js +1 -1
- package/Processing/index.mjs +1 -1
- package/ProjectNotFound/index.js +1 -1
- package/ProjectNotFound/index.mjs +1 -1
- package/RadarChart/index.js +1 -1
- package/RadarChart/index.mjs +1 -1
- package/RadialTreeChart/index.js +1 -1
- package/RadialTreeChart/index.mjs +1 -1
- package/SankeyChart/index.js +1 -1
- package/SankeyChart/index.mjs +1 -1
- package/ScatterPlotChart/index.js +1 -1
- package/ScatterPlotChart/index.mjs +1 -1
- package/StackedAreaChart/index.js +1 -1
- package/StackedAreaChart/index.mjs +1 -1
- package/Suggestion/index.js +1 -1
- package/Suggestion/index.mjs +1 -1
- package/Suggestions/index.js +1 -1
- package/Suggestions/index.mjs +1 -1
- package/Table/index.js +1 -1
- package/Table/index.mjs +1 -1
- package/TagCloud/index.js +1 -1
- package/TagCloud/index.mjs +1 -1
- package/TextLinksEtc/index.js +1 -1
- package/TextLinksEtc/index.mjs +1 -1
- package/Timeout/index.js +1 -1
- package/Timeout/index.mjs +1 -1
- package/UnderConstruction/index.js +1 -1
- package/UnderConstruction/index.mjs +1 -1
- package/VennChart/index.js +1 -1
- package/VennChart/index.mjs +1 -1
- package/VerticalBarChart/index.js +1 -1
- package/VerticalBarChart/index.mjs +1 -1
- package/Waiting/index.js +1 -1
- package/Waiting/index.mjs +1 -1
- package/Warning/index.js +1 -1
- package/Warning/index.mjs +1 -1
- package/lib/cjs/index.js +2 -2
- package/lib/cjs/index.js.map +1 -1
- package/lib/es6/index.js +2 -2
- package/lib/es6/index.js.map +1 -1
- package/lib/esm/index.mjs +13 -0
- package/package.json +6 -9
- package/transform.ts +1 -1
- package/vite.config.ts +24 -0
package/package.json
CHANGED
|
@@ -1,22 +1,19 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@semcore/illustration",
|
|
3
3
|
"description": "Semrush Illustration Component",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "16.0.0-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
11
|
"dependencies": {
|
|
12
12
|
"@babel/runtime": "^7.17.9",
|
|
13
|
-
"@semcore/flex-box": "5.41.4",
|
|
14
13
|
"colorjs.io": "0.4.3"
|
|
15
14
|
},
|
|
16
15
|
"peerDependencies": {
|
|
17
|
-
"@semcore/
|
|
18
|
-
"react": "16.8 - 18",
|
|
19
|
-
"react-dom": "16.8 - 18"
|
|
16
|
+
"@semcore/base-components": "^16.0.0-prerelease.0"
|
|
20
17
|
},
|
|
21
18
|
"repository": {
|
|
22
19
|
"type": "git",
|
|
@@ -27,7 +24,7 @@
|
|
|
27
24
|
"esbuild": "0.14.29",
|
|
28
25
|
"happy-dom": "9.20.3",
|
|
29
26
|
"fs-extra": "8.1.0",
|
|
30
|
-
"svg-to-jsx": "
|
|
27
|
+
"svg-to-jsx": "1.0.4",
|
|
31
28
|
"@semcore/testing-utils": "1.0.0",
|
|
32
29
|
"@types/react": "18.0.21",
|
|
33
30
|
"@types/fs-extra": "8.1.0"
|
|
@@ -35,7 +32,7 @@
|
|
|
35
32
|
"exports": {
|
|
36
33
|
".": {
|
|
37
34
|
"require": "./lib/cjs/index.js",
|
|
38
|
-
"import": "./lib/
|
|
35
|
+
"import": "./lib/esm/index.mjs",
|
|
39
36
|
"types": "./lib/types/index.d.ts"
|
|
40
37
|
},
|
|
41
38
|
"./AccessDenied": {
|
|
@@ -300,7 +297,7 @@
|
|
|
300
297
|
}
|
|
301
298
|
},
|
|
302
299
|
"scripts": {
|
|
303
|
-
"build": "pnpm clear && pnpm semcore-builder --source=js && pnpm run transform",
|
|
300
|
+
"build": "pnpm clear && pnpm semcore-builder --source=js && pnpm run transform && pnpm vite build",
|
|
304
301
|
"transform": "tsm --require=../../.ci/tsm-filter-warnings.js transform.ts",
|
|
305
302
|
"clear": "tsm --require=../../.ci/tsm-filter-warnings.js clear.ts",
|
|
306
303
|
"upload-static": "gcs-upload svg/*.svg"
|
package/transform.ts
CHANGED
|
@@ -108,7 +108,7 @@ await Promise.all(
|
|
|
108
108
|
import React from 'react';
|
|
109
109
|
import { createBaseComponent } from '@semcore/core';
|
|
110
110
|
import { Box } from '@semcore/flex-box';
|
|
111
|
-
import { useColorResolver } from '@semcore/
|
|
111
|
+
import { useColorResolver } from '@semcore/core/lib/utils/use/useColorResolver';
|
|
112
112
|
|
|
113
113
|
const ${illustration} = ({${props.join(', ')}, ...props}, ref) => {
|
|
114
114
|
${prerenderLines.join('\n')}
|
package/vite.config.ts
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { defineConfig, mergeConfig } from 'vite';
|
|
2
|
+
|
|
3
|
+
import viteConfig from '../../commonVite.config';
|
|
4
|
+
|
|
5
|
+
export default mergeConfig(
|
|
6
|
+
viteConfig,
|
|
7
|
+
defineConfig({
|
|
8
|
+
build: {
|
|
9
|
+
lib: {
|
|
10
|
+
entry: './src/index.ts',
|
|
11
|
+
},
|
|
12
|
+
rollupOptions: {
|
|
13
|
+
external: [
|
|
14
|
+
'react',
|
|
15
|
+
'react-dom',
|
|
16
|
+
'react/jsx-runtime',
|
|
17
|
+
/@babel\/runtime\/*/,
|
|
18
|
+
/@semcore\/*/,
|
|
19
|
+
'colorjs.io',
|
|
20
|
+
],
|
|
21
|
+
},
|
|
22
|
+
},
|
|
23
|
+
}),
|
|
24
|
+
);
|