@semcore/illustration 16.0.2 → 16.0.3-prerelease.1

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 (65) hide show
  1. package/AccessDenied/index.d.ts +1 -1
  2. package/AccessLogIn/index.d.ts +1 -1
  3. package/AreaChart/index.d.ts +1 -1
  4. package/Blocked/index.d.ts +1 -1
  5. package/CHANGELOG.md +6 -0
  6. package/ChoroplethMapChart/index.d.ts +1 -1
  7. package/Coffee/index.d.ts +1 -1
  8. package/Collection/index.d.ts +1 -1
  9. package/CombinedChart/index.d.ts +1 -1
  10. package/Configuration/index.d.ts +1 -1
  11. package/Confirmation/index.d.ts +1 -1
  12. package/Congrats/index.d.ts +1 -1
  13. package/ConnectionLost/index.d.ts +1 -1
  14. package/DeletedAccount/index.d.ts +1 -1
  15. package/DeletedPage/index.d.ts +1 -1
  16. package/Dns/index.d.ts +1 -1
  17. package/DonutChart/index.d.ts +1 -1
  18. package/Duplicates/index.d.ts +1 -1
  19. package/Feedback/index.d.ts +1 -1
  20. package/FunnelChart/index.d.ts +1 -1
  21. package/Good/index.d.ts +1 -1
  22. package/HeatMapChart/index.d.ts +1 -1
  23. package/HorizontalBarChart/index.d.ts +1 -1
  24. package/KagiChart/index.d.ts +1 -1
  25. package/LineChart/index.d.ts +1 -1
  26. package/LollipopChart/index.d.ts +1 -1
  27. package/MailSent/index.d.ts +1 -1
  28. package/Maintenance/index.d.ts +1 -1
  29. package/Nexttime/index.d.ts +1 -1
  30. package/NoPayment/index.d.ts +1 -1
  31. package/NothingFound/index.d.ts +1 -1
  32. package/OtherData/index.d.ts +1 -1
  33. package/PageError/index.d.ts +1 -1
  34. package/PageNotFound/index.d.ts +1 -1
  35. package/PieChart/index.d.ts +1 -1
  36. package/Processing/index.d.ts +1 -1
  37. package/ProjectNotFound/index.d.ts +1 -1
  38. package/README.md +1 -28
  39. package/RadarChart/index.d.ts +1 -1
  40. package/RadialTreeChart/index.d.ts +1 -1
  41. package/SankeyChart/index.d.ts +1 -1
  42. package/ScatterPlotChart/index.d.ts +1 -1
  43. package/StackedAreaChart/index.d.ts +1 -1
  44. package/Suggestion/index.d.ts +1 -1
  45. package/Suggestions/index.d.ts +1 -1
  46. package/Table/index.d.ts +1 -1
  47. package/TagCloud/index.d.ts +1 -1
  48. package/TextLinksEtc/index.d.ts +1 -1
  49. package/Timeout/index.d.ts +1 -1
  50. package/UnderConstruction/index.d.ts +1 -1
  51. package/VennChart/index.d.ts +1 -1
  52. package/VerticalBarChart/index.d.ts +1 -1
  53. package/Waiting/index.d.ts +1 -1
  54. package/Warning/index.d.ts +1 -1
  55. package/lib/cjs/index.d.js.map +1 -1
  56. package/lib/cjs/index.js +2 -3
  57. package/lib/cjs/index.js.map +1 -1
  58. package/lib/es6/index.d.js.map +1 -1
  59. package/lib/es6/index.js +1 -1
  60. package/lib/es6/index.js.map +1 -1
  61. package/lib/esm/index.mjs +1 -1
  62. package/lib/types/index.d.ts +11 -12
  63. package/package.json +6 -6
  64. package/transform.ts +7 -7
  65. package/types/svg-to-jsx.d.ts +1 -1
@@ -25,4 +25,4 @@ type IllustrationProps = BoxProps & {
25
25
  height?: string | number;
26
26
  }
27
27
  declare const Illustration: Intergalactic.Component<'svg', IllustrationProps>;
28
- export default Illustration;
28
+ export default Illustration;
@@ -25,4 +25,4 @@ type IllustrationProps = BoxProps & {
25
25
  height?: string | number;
26
26
  }
27
27
  declare const Illustration: Intergalactic.Component<'svg', IllustrationProps>;
28
- export default Illustration;
28
+ export default Illustration;
@@ -25,4 +25,4 @@ type IllustrationProps = BoxProps & {
25
25
  height?: string | number;
26
26
  }
27
27
  declare const Illustration: Intergalactic.Component<'svg', IllustrationProps>;
28
- export default Illustration;
28
+ export default Illustration;
@@ -25,4 +25,4 @@ type IllustrationProps = BoxProps & {
25
25
  height?: string | number;
26
26
  }
27
27
  declare const Illustration: Intergalactic.Component<'svg', IllustrationProps>;
28
- export default Illustration;
28
+ export default Illustration;
package/CHANGELOG.md CHANGED
@@ -2,6 +2,12 @@
2
2
 
3
3
  CHANGELOG.md standards are inspired by [keepachangelog.com](https://keepachangelog.com/en/1.0.0/).
4
4
 
5
+ ## [16.0.3] - 2025-06-13
6
+
7
+ ### Changed
8
+
9
+ - Version patch update due to children dependencies update (`@semcore/base-components` [16.0.1 ~> 16.0.2]).
10
+
5
11
  ## [16.0.2] - 2025-05-30
6
12
 
7
13
  ### Changed
@@ -25,4 +25,4 @@ type IllustrationProps = BoxProps & {
25
25
  height?: string | number;
26
26
  }
27
27
  declare const Illustration: Intergalactic.Component<'svg', IllustrationProps>;
28
- export default Illustration;
28
+ export default Illustration;
package/Coffee/index.d.ts CHANGED
@@ -25,4 +25,4 @@ type IllustrationProps = BoxProps & {
25
25
  height?: string | number;
26
26
  }
27
27
  declare const Illustration: Intergalactic.Component<'svg', IllustrationProps>;
28
- export default Illustration;
28
+ export default Illustration;
@@ -25,4 +25,4 @@ type IllustrationProps = BoxProps & {
25
25
  height?: string | number;
26
26
  }
27
27
  declare const Illustration: Intergalactic.Component<'svg', IllustrationProps>;
28
- export default Illustration;
28
+ export default Illustration;
@@ -25,4 +25,4 @@ type IllustrationProps = BoxProps & {
25
25
  height?: string | number;
26
26
  }
27
27
  declare const Illustration: Intergalactic.Component<'svg', IllustrationProps>;
28
- export default Illustration;
28
+ export default Illustration;
@@ -25,4 +25,4 @@ type IllustrationProps = BoxProps & {
25
25
  height?: string | number;
26
26
  }
27
27
  declare const Illustration: Intergalactic.Component<'svg', IllustrationProps>;
28
- export default Illustration;
28
+ export default Illustration;
@@ -25,4 +25,4 @@ type IllustrationProps = BoxProps & {
25
25
  height?: string | number;
26
26
  }
27
27
  declare const Illustration: Intergalactic.Component<'svg', IllustrationProps>;
28
- export default Illustration;
28
+ export default Illustration;
@@ -25,4 +25,4 @@ type IllustrationProps = BoxProps & {
25
25
  height?: string | number;
26
26
  }
27
27
  declare const Illustration: Intergalactic.Component<'svg', IllustrationProps>;
28
- export default Illustration;
28
+ export default Illustration;
@@ -25,4 +25,4 @@ type IllustrationProps = BoxProps & {
25
25
  height?: string | number;
26
26
  }
27
27
  declare const Illustration: Intergalactic.Component<'svg', IllustrationProps>;
28
- export default Illustration;
28
+ export default Illustration;
@@ -25,4 +25,4 @@ type IllustrationProps = BoxProps & {
25
25
  height?: string | number;
26
26
  }
27
27
  declare const Illustration: Intergalactic.Component<'svg', IllustrationProps>;
28
- export default Illustration;
28
+ export default Illustration;
@@ -25,4 +25,4 @@ type IllustrationProps = BoxProps & {
25
25
  height?: string | number;
26
26
  }
27
27
  declare const Illustration: Intergalactic.Component<'svg', IllustrationProps>;
28
- export default Illustration;
28
+ export default Illustration;
package/Dns/index.d.ts CHANGED
@@ -25,4 +25,4 @@ type IllustrationProps = BoxProps & {
25
25
  height?: string | number;
26
26
  }
27
27
  declare const Illustration: Intergalactic.Component<'svg', IllustrationProps>;
28
- export default Illustration;
28
+ export default Illustration;
@@ -25,4 +25,4 @@ type IllustrationProps = BoxProps & {
25
25
  height?: string | number;
26
26
  }
27
27
  declare const Illustration: Intergalactic.Component<'svg', IllustrationProps>;
28
- export default Illustration;
28
+ export default Illustration;
@@ -25,4 +25,4 @@ type IllustrationProps = BoxProps & {
25
25
  height?: string | number;
26
26
  }
27
27
  declare const Illustration: Intergalactic.Component<'svg', IllustrationProps>;
28
- export default Illustration;
28
+ export default Illustration;
@@ -25,4 +25,4 @@ type IllustrationProps = BoxProps & {
25
25
  height?: string | number;
26
26
  }
27
27
  declare const Illustration: Intergalactic.Component<'svg', IllustrationProps>;
28
- export default Illustration;
28
+ export default Illustration;
@@ -25,4 +25,4 @@ type IllustrationProps = BoxProps & {
25
25
  height?: string | number;
26
26
  }
27
27
  declare const Illustration: Intergalactic.Component<'svg', IllustrationProps>;
28
- export default Illustration;
28
+ export default Illustration;
package/Good/index.d.ts CHANGED
@@ -25,4 +25,4 @@ type IllustrationProps = BoxProps & {
25
25
  height?: string | number;
26
26
  }
27
27
  declare const Illustration: Intergalactic.Component<'svg', IllustrationProps>;
28
- export default Illustration;
28
+ export default Illustration;
@@ -25,4 +25,4 @@ type IllustrationProps = BoxProps & {
25
25
  height?: string | number;
26
26
  }
27
27
  declare const Illustration: Intergalactic.Component<'svg', IllustrationProps>;
28
- export default Illustration;
28
+ export default Illustration;
@@ -25,4 +25,4 @@ type IllustrationProps = BoxProps & {
25
25
  height?: string | number;
26
26
  }
27
27
  declare const Illustration: Intergalactic.Component<'svg', IllustrationProps>;
28
- export default Illustration;
28
+ export default Illustration;
@@ -25,4 +25,4 @@ type IllustrationProps = BoxProps & {
25
25
  height?: string | number;
26
26
  }
27
27
  declare const Illustration: Intergalactic.Component<'svg', IllustrationProps>;
28
- export default Illustration;
28
+ export default Illustration;
@@ -25,4 +25,4 @@ type IllustrationProps = BoxProps & {
25
25
  height?: string | number;
26
26
  }
27
27
  declare const Illustration: Intergalactic.Component<'svg', IllustrationProps>;
28
- export default Illustration;
28
+ export default Illustration;
@@ -25,4 +25,4 @@ type IllustrationProps = BoxProps & {
25
25
  height?: string | number;
26
26
  }
27
27
  declare const Illustration: Intergalactic.Component<'svg', IllustrationProps>;
28
- export default Illustration;
28
+ export default Illustration;
@@ -25,4 +25,4 @@ type IllustrationProps = BoxProps & {
25
25
  height?: string | number;
26
26
  }
27
27
  declare const Illustration: Intergalactic.Component<'svg', IllustrationProps>;
28
- export default Illustration;
28
+ export default Illustration;
@@ -25,4 +25,4 @@ type IllustrationProps = BoxProps & {
25
25
  height?: string | number;
26
26
  }
27
27
  declare const Illustration: Intergalactic.Component<'svg', IllustrationProps>;
28
- export default Illustration;
28
+ export default Illustration;
@@ -25,4 +25,4 @@ type IllustrationProps = BoxProps & {
25
25
  height?: string | number;
26
26
  }
27
27
  declare const Illustration: Intergalactic.Component<'svg', IllustrationProps>;
28
- export default Illustration;
28
+ export default Illustration;
@@ -25,4 +25,4 @@ type IllustrationProps = BoxProps & {
25
25
  height?: string | number;
26
26
  }
27
27
  declare const Illustration: Intergalactic.Component<'svg', IllustrationProps>;
28
- export default Illustration;
28
+ export default Illustration;
@@ -25,4 +25,4 @@ type IllustrationProps = BoxProps & {
25
25
  height?: string | number;
26
26
  }
27
27
  declare const Illustration: Intergalactic.Component<'svg', IllustrationProps>;
28
- export default Illustration;
28
+ export default Illustration;
@@ -25,4 +25,4 @@ type IllustrationProps = BoxProps & {
25
25
  height?: string | number;
26
26
  }
27
27
  declare const Illustration: Intergalactic.Component<'svg', IllustrationProps>;
28
- export default Illustration;
28
+ export default Illustration;
@@ -25,4 +25,4 @@ type IllustrationProps = BoxProps & {
25
25
  height?: string | number;
26
26
  }
27
27
  declare const Illustration: Intergalactic.Component<'svg', IllustrationProps>;
28
- export default Illustration;
28
+ export default Illustration;
@@ -25,4 +25,4 @@ type IllustrationProps = BoxProps & {
25
25
  height?: string | number;
26
26
  }
27
27
  declare const Illustration: Intergalactic.Component<'svg', IllustrationProps>;
28
- export default Illustration;
28
+ export default Illustration;
@@ -25,4 +25,4 @@ type IllustrationProps = BoxProps & {
25
25
  height?: string | number;
26
26
  }
27
27
  declare const Illustration: Intergalactic.Component<'svg', IllustrationProps>;
28
- export default Illustration;
28
+ export default Illustration;
@@ -25,4 +25,4 @@ type IllustrationProps = BoxProps & {
25
25
  height?: string | number;
26
26
  }
27
27
  declare const Illustration: Intergalactic.Component<'svg', IllustrationProps>;
28
- export default Illustration;
28
+ export default Illustration;
@@ -25,4 +25,4 @@ type IllustrationProps = BoxProps & {
25
25
  height?: string | number;
26
26
  }
27
27
  declare const Illustration: Intergalactic.Component<'svg', IllustrationProps>;
28
- export default Illustration;
28
+ export default Illustration;
package/README.md CHANGED
@@ -13,43 +13,16 @@
13
13
  ## Install
14
14
 
15
15
  ```sh
16
- npm install intergalactic
16
+ npm install @semcore/illustration
17
17
  ```
18
18
 
19
19
  ## Usage
20
20
 
21
- ```jsx
22
- import MailSentReact from 'intergalactic/illustration/MailSent';
23
- import MailSentSVG from 'intergalactic/illustration/svg/MailSent.svg';
24
- ```
25
-
26
- <details>
27
- <summary>Alternative installation and use</summary>
28
-
29
- **We do not recommend this usage path due to possible dependency and update issues.**
30
-
31
- ### Install
32
-
33
- You can only install one package from the design system
34
-
35
- ```sh
36
- npm install @semcore/illustration @semcore/core
37
- ```
38
-
39
- `@semcore/core` - _is the basic package by which we create our components, and it contains all of the common logic
40
- of the components that is discussed below. There should only be one version of the package in the project._
41
-
42
- ### Usage
43
-
44
- You can use the package the same way but without `/ui/` in the import path.
45
-
46
21
  ```jsx
47
22
  import MailSentReact from '@semcore/illustration/MailSent';
48
23
  import MailSentSVG from '@semcore/illustration/svg/MailSent.svg';
49
24
  ```
50
25
 
51
- </details>
52
-
53
26
  ## 👤 Author
54
27
 
55
28
  [UI-kit team](https://github.com/semrush/intergalactic/blob/master/MAINTAINERS) and [others ❤️](https://github.com/semrush/intergalactic/graphs/contributors)
@@ -25,4 +25,4 @@ type IllustrationProps = BoxProps & {
25
25
  height?: string | number;
26
26
  }
27
27
  declare const Illustration: Intergalactic.Component<'svg', IllustrationProps>;
28
- export default Illustration;
28
+ export default Illustration;
@@ -25,4 +25,4 @@ type IllustrationProps = BoxProps & {
25
25
  height?: string | number;
26
26
  }
27
27
  declare const Illustration: Intergalactic.Component<'svg', IllustrationProps>;
28
- export default Illustration;
28
+ export default Illustration;
@@ -25,4 +25,4 @@ type IllustrationProps = BoxProps & {
25
25
  height?: string | number;
26
26
  }
27
27
  declare const Illustration: Intergalactic.Component<'svg', IllustrationProps>;
28
- export default Illustration;
28
+ export default Illustration;
@@ -25,4 +25,4 @@ type IllustrationProps = BoxProps & {
25
25
  height?: string | number;
26
26
  }
27
27
  declare const Illustration: Intergalactic.Component<'svg', IllustrationProps>;
28
- export default Illustration;
28
+ export default Illustration;
@@ -25,4 +25,4 @@ type IllustrationProps = BoxProps & {
25
25
  height?: string | number;
26
26
  }
27
27
  declare const Illustration: Intergalactic.Component<'svg', IllustrationProps>;
28
- export default Illustration;
28
+ export default Illustration;
@@ -25,4 +25,4 @@ type IllustrationProps = BoxProps & {
25
25
  height?: string | number;
26
26
  }
27
27
  declare const Illustration: Intergalactic.Component<'svg', IllustrationProps>;
28
- export default Illustration;
28
+ export default Illustration;
@@ -25,4 +25,4 @@ type IllustrationProps = BoxProps & {
25
25
  height?: string | number;
26
26
  }
27
27
  declare const Illustration: Intergalactic.Component<'svg', IllustrationProps>;
28
- export default Illustration;
28
+ export default Illustration;
package/Table/index.d.ts CHANGED
@@ -25,4 +25,4 @@ type IllustrationProps = BoxProps & {
25
25
  height?: string | number;
26
26
  }
27
27
  declare const Illustration: Intergalactic.Component<'svg', IllustrationProps>;
28
- export default Illustration;
28
+ export default Illustration;
@@ -25,4 +25,4 @@ type IllustrationProps = BoxProps & {
25
25
  height?: string | number;
26
26
  }
27
27
  declare const Illustration: Intergalactic.Component<'svg', IllustrationProps>;
28
- export default Illustration;
28
+ export default Illustration;
@@ -25,4 +25,4 @@ type IllustrationProps = BoxProps & {
25
25
  height?: string | number;
26
26
  }
27
27
  declare const Illustration: Intergalactic.Component<'svg', IllustrationProps>;
28
- export default Illustration;
28
+ export default Illustration;
@@ -25,4 +25,4 @@ type IllustrationProps = BoxProps & {
25
25
  height?: string | number;
26
26
  }
27
27
  declare const Illustration: Intergalactic.Component<'svg', IllustrationProps>;
28
- export default Illustration;
28
+ export default Illustration;
@@ -25,4 +25,4 @@ type IllustrationProps = BoxProps & {
25
25
  height?: string | number;
26
26
  }
27
27
  declare const Illustration: Intergalactic.Component<'svg', IllustrationProps>;
28
- export default Illustration;
28
+ export default Illustration;
@@ -25,4 +25,4 @@ type IllustrationProps = BoxProps & {
25
25
  height?: string | number;
26
26
  }
27
27
  declare const Illustration: Intergalactic.Component<'svg', IllustrationProps>;
28
- export default Illustration;
28
+ export default Illustration;
@@ -25,4 +25,4 @@ type IllustrationProps = BoxProps & {
25
25
  height?: string | number;
26
26
  }
27
27
  declare const Illustration: Intergalactic.Component<'svg', IllustrationProps>;
28
- export default Illustration;
28
+ export default Illustration;
@@ -25,4 +25,4 @@ type IllustrationProps = BoxProps & {
25
25
  height?: string | number;
26
26
  }
27
27
  declare const Illustration: Intergalactic.Component<'svg', IllustrationProps>;
28
- export default Illustration;
28
+ export default Illustration;
@@ -25,4 +25,4 @@ type IllustrationProps = BoxProps & {
25
25
  height?: string | number;
26
26
  }
27
27
  declare const Illustration: Intergalactic.Component<'svg', IllustrationProps>;
28
- export default Illustration;
28
+ export default Illustration;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.js","names":[],"sources":["../../src/index.d.ts"],"sourcesContent":["\nexport type IllustrationProps = {\n /**\n * Main color of the illustration\n **/\n primaryColor?: string;\n /**\n * Secondary color of the illustration\n **/\n secondaryColor?: string;\n /**\n * Changes background fill of the illustration\n **/\n fill?: string;\n /**\n * Width of the illustration\n **/\n width?: string | number;\n /**\n * Height of the illustration\n **/\n height?: string | number;\n}\n\nexport type TIllustrationNamesErrors =\n | 'access_denied'\n | 'blocked'\n | 'confirmation'\n | 'connection_lost'\n | 'deleted_account'\n | 'dns'\n | 'maintenance'\n | 'no_payment'\n | 'page_error'\n | 'page_not_found'\n | 'project_not_found'\n | 'timeout';\n\nexport type TIllustrationNamesWidgetEmpty =\n | 'area-chart'\n | 'choropleth-map-chart'\n | 'coffee'\n | 'combined-chart'\n | 'congrats'\n | 'deleted-page'\n | 'donut-chart'\n | 'duplicates'\n | 'funnel-chart'\n | 'good'\n | 'heat-map-chart'\n | 'horizontal-bar-chart'\n | 'kagi-chart'\n | 'line-chart'\n | 'lollipop-chart'\n | 'nexttime'\n | 'nothing-found'\n | 'other-data'\n | 'pie-chart'\n | 'processing'\n | 'radar-chart'\n | 'radial-tree-chart'\n | 'sankey-chart'\n | 'scatter-plot-chart'\n | 'stacked-area-chart'\n | 'suggestion'\n | 'suggestions'\n | 'table'\n | 'tag-cloud'\n | 'text-links-etc'\n | 'under-construction'\n | 'venn-chart'\n | 'vertical-bar-chart'\n | 'warning';\n\ndeclare const getIllustrationPath: (\n name: TIllustrationNamesErrors | TIllustrationNamesWidgetEmpty,\n) => string;\n\nexport { getIllustrationPath };\n"],"mappings":""}
1
+ {"version":3,"file":"index.d.js","names":[],"sources":["../../src/index.d.ts"],"sourcesContent":["export type IllustrationProps = {\n /**\n * Main color of the illustration\n **/\n primaryColor?: string;\n /**\n * Secondary color of the illustration\n **/\n secondaryColor?: string;\n /**\n * Changes background fill of the illustration\n **/\n fill?: string;\n /**\n * Width of the illustration\n **/\n width?: string | number;\n /**\n * Height of the illustration\n **/\n height?: string | number;\n};\n\nexport type TIllustrationNamesErrors =\n | 'access_denied'\n | 'blocked'\n | 'confirmation'\n | 'connection_lost'\n | 'deleted_account'\n | 'dns'\n | 'maintenance'\n | 'no_payment'\n | 'page_error'\n | 'page_not_found'\n | 'project_not_found'\n | 'timeout';\n\nexport type TIllustrationNamesWidgetEmpty =\n | 'area-chart'\n | 'choropleth-map-chart'\n | 'coffee'\n | 'combined-chart'\n | 'congrats'\n | 'deleted-page'\n | 'donut-chart'\n | 'duplicates'\n | 'funnel-chart'\n | 'good'\n | 'heat-map-chart'\n | 'horizontal-bar-chart'\n | 'kagi-chart'\n | 'line-chart'\n | 'lollipop-chart'\n | 'nexttime'\n | 'nothing-found'\n | 'other-data'\n | 'pie-chart'\n | 'processing'\n | 'radar-chart'\n | 'radial-tree-chart'\n | 'sankey-chart'\n | 'scatter-plot-chart'\n | 'stacked-area-chart'\n | 'suggestion'\n | 'suggestions'\n | 'table'\n | 'tag-cloud'\n | 'text-links-etc'\n | 'under-construction'\n | 'venn-chart'\n | 'vertical-bar-chart'\n | 'warning';\n\ndeclare const getIllustrationPath: (\n name: TIllustrationNamesErrors | TIllustrationNamesWidgetEmpty,\n) => string;\n\nexport { getIllustrationPath };\n"],"mappings":"","ignoreList":[]}
package/lib/cjs/index.js CHANGED
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.getIllustrationPath = void 0;
7
- var version = "16.0.2";
7
+ var version = "16.0.3";
8
8
 
9
9
  /**
10
10
  * Formats string from `access_denied` or `access-denied` to `AccessDenied`
@@ -14,9 +14,8 @@ var formatName = function formatName(name) {
14
14
  return el[0].toUpperCase() + el.slice(1);
15
15
  }).join('');
16
16
  };
17
- var getIllustrationPath = function getIllustrationPath(name) {
17
+ var getIllustrationPath = exports.getIllustrationPath = function getIllustrationPath(name) {
18
18
  var formattedName = formatName(name);
19
19
  return "https://static.semrush.com/intergalactic/illustrations/".concat(version, "/").concat(formattedName, ".svg");
20
20
  };
21
- exports.getIllustrationPath = getIllustrationPath;
22
21
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["version","formatName","name","split","map","el","toUpperCase","slice","join","getIllustrationPath","formattedName","concat","exports"],"sources":["../../src/index.ts"],"sourcesContent":["declare const preval: any;\n\nconst version = preval`module.exports = require('../package.json').version`;\n\n/**\n * Formats string from `access_denied` or `access-denied` to `AccessDenied`\n */\nconst formatName = (name: string) => {\n return name\n .split(/_|-/)\n .map((el) => el[0].toUpperCase() + el.slice(1))\n .join('');\n};\n\nexport const getIllustrationPath = (name: string) => {\n const formattedName = formatName(name);\n\n return `https://static.semrush.com/intergalactic/illustrations/${version}/${formattedName}.svg`;\n};\n"],"mappings":";;;;;;AAEA,IAAMA,OAAO,WAA8D;;AAE3E;AACA;AACA;AACA,IAAMC,UAAU,GAAG,SAAbA,UAAUA,CAAIC,IAAY,EAAK;EACnC,OAAOA,IAAI,CACRC,KAAK,CAAC,KAAK,CAAC,CACZC,GAAG,CAAC,UAACC,EAAE;IAAA,OAAKA,EAAE,CAAC,CAAC,CAAC,CAACC,WAAW,EAAE,GAAGD,EAAE,CAACE,KAAK,CAAC,CAAC,CAAC;EAAA,EAAC,CAC9CC,IAAI,CAAC,EAAE,CAAC;AACb,CAAC;AAEM,IAAMC,mBAAmB,GAAG,SAAtBA,mBAAmBA,CAAIP,IAAY,EAAK;EACnD,IAAMQ,aAAa,GAAGT,UAAU,CAACC,IAAI,CAAC;EAEtC,iEAAAS,MAAA,CAAiEX,OAAO,OAAAW,MAAA,CAAID,aAAa;AAC3F,CAAC;AAACE,OAAA,CAAAH,mBAAA,GAAAA,mBAAA"}
1
+ {"version":3,"file":"index.js","names":["version","formatName","name","split","map","el","toUpperCase","slice","join","getIllustrationPath","exports","formattedName","concat"],"sources":["../../src/index.ts"],"sourcesContent":["declare const preval: any;\n\nconst version = preval`module.exports = require('../package.json').version`;\n\n/**\n * Formats string from `access_denied` or `access-denied` to `AccessDenied`\n */\nconst formatName = (name: string) => {\n return name\n .split(/_|-/)\n .map((el) => el[0].toUpperCase() + el.slice(1))\n .join('');\n};\n\nexport const getIllustrationPath = (name: string) => {\n const formattedName = formatName(name);\n\n return `https://static.semrush.com/intergalactic/illustrations/${version}/${formattedName}.svg`;\n};\n"],"mappings":";;;;;;AAEA,IAAMA,OAAO,WAA8D;;AAE3E;AACA;AACA;AACA,IAAMC,UAAU,GAAG,SAAbA,UAAUA,CAAIC,IAAY,EAAK;EACnC,OAAOA,IAAI,CACRC,KAAK,CAAC,KAAK,CAAC,CACZC,GAAG,CAAC,UAACC,EAAE;IAAA,OAAKA,EAAE,CAAC,CAAC,CAAC,CAACC,WAAW,CAAC,CAAC,GAAGD,EAAE,CAACE,KAAK,CAAC,CAAC,CAAC;EAAA,EAAC,CAC9CC,IAAI,CAAC,EAAE,CAAC;AACb,CAAC;AAEM,IAAMC,mBAAmB,GAAAC,OAAA,CAAAD,mBAAA,GAAG,SAAtBA,mBAAmBA,CAAIP,IAAY,EAAK;EACnD,IAAMS,aAAa,GAAGV,UAAU,CAACC,IAAI,CAAC;EAEtC,iEAAAU,MAAA,CAAiEZ,OAAO,OAAAY,MAAA,CAAID,aAAa;AAC3F,CAAC","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.js","names":[],"sources":["../../src/index.d.ts"],"sourcesContent":["\nexport type IllustrationProps = {\n /**\n * Main color of the illustration\n **/\n primaryColor?: string;\n /**\n * Secondary color of the illustration\n **/\n secondaryColor?: string;\n /**\n * Changes background fill of the illustration\n **/\n fill?: string;\n /**\n * Width of the illustration\n **/\n width?: string | number;\n /**\n * Height of the illustration\n **/\n height?: string | number;\n}\n\nexport type TIllustrationNamesErrors =\n | 'access_denied'\n | 'blocked'\n | 'confirmation'\n | 'connection_lost'\n | 'deleted_account'\n | 'dns'\n | 'maintenance'\n | 'no_payment'\n | 'page_error'\n | 'page_not_found'\n | 'project_not_found'\n | 'timeout';\n\nexport type TIllustrationNamesWidgetEmpty =\n | 'area-chart'\n | 'choropleth-map-chart'\n | 'coffee'\n | 'combined-chart'\n | 'congrats'\n | 'deleted-page'\n | 'donut-chart'\n | 'duplicates'\n | 'funnel-chart'\n | 'good'\n | 'heat-map-chart'\n | 'horizontal-bar-chart'\n | 'kagi-chart'\n | 'line-chart'\n | 'lollipop-chart'\n | 'nexttime'\n | 'nothing-found'\n | 'other-data'\n | 'pie-chart'\n | 'processing'\n | 'radar-chart'\n | 'radial-tree-chart'\n | 'sankey-chart'\n | 'scatter-plot-chart'\n | 'stacked-area-chart'\n | 'suggestion'\n | 'suggestions'\n | 'table'\n | 'tag-cloud'\n | 'text-links-etc'\n | 'under-construction'\n | 'venn-chart'\n | 'vertical-bar-chart'\n | 'warning';\n\ndeclare const getIllustrationPath: (\n name: TIllustrationNamesErrors | TIllustrationNamesWidgetEmpty,\n) => string;\n\nexport { getIllustrationPath };\n"],"mappings":""}
1
+ {"version":3,"file":"index.d.js","names":[],"sources":["../../src/index.d.ts"],"sourcesContent":["export type IllustrationProps = {\n /**\n * Main color of the illustration\n **/\n primaryColor?: string;\n /**\n * Secondary color of the illustration\n **/\n secondaryColor?: string;\n /**\n * Changes background fill of the illustration\n **/\n fill?: string;\n /**\n * Width of the illustration\n **/\n width?: string | number;\n /**\n * Height of the illustration\n **/\n height?: string | number;\n};\n\nexport type TIllustrationNamesErrors =\n | 'access_denied'\n | 'blocked'\n | 'confirmation'\n | 'connection_lost'\n | 'deleted_account'\n | 'dns'\n | 'maintenance'\n | 'no_payment'\n | 'page_error'\n | 'page_not_found'\n | 'project_not_found'\n | 'timeout';\n\nexport type TIllustrationNamesWidgetEmpty =\n | 'area-chart'\n | 'choropleth-map-chart'\n | 'coffee'\n | 'combined-chart'\n | 'congrats'\n | 'deleted-page'\n | 'donut-chart'\n | 'duplicates'\n | 'funnel-chart'\n | 'good'\n | 'heat-map-chart'\n | 'horizontal-bar-chart'\n | 'kagi-chart'\n | 'line-chart'\n | 'lollipop-chart'\n | 'nexttime'\n | 'nothing-found'\n | 'other-data'\n | 'pie-chart'\n | 'processing'\n | 'radar-chart'\n | 'radial-tree-chart'\n | 'sankey-chart'\n | 'scatter-plot-chart'\n | 'stacked-area-chart'\n | 'suggestion'\n | 'suggestions'\n | 'table'\n | 'tag-cloud'\n | 'text-links-etc'\n | 'under-construction'\n | 'venn-chart'\n | 'vertical-bar-chart'\n | 'warning';\n\ndeclare const getIllustrationPath: (\n name: TIllustrationNamesErrors | TIllustrationNamesWidgetEmpty,\n) => string;\n\nexport { getIllustrationPath };\n"],"mappings":"","ignoreList":[]}
package/lib/es6/index.js CHANGED
@@ -1,4 +1,4 @@
1
- var version = "16.0.2";
1
+ var version = "16.0.3";
2
2
 
3
3
  /**
4
4
  * Formats string from `access_denied` or `access-denied` to `AccessDenied`
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["version","formatName","name","split","map","el","toUpperCase","slice","join","getIllustrationPath","formattedName","concat"],"sources":["../../src/index.ts"],"sourcesContent":["declare const preval: any;\n\nconst version = preval`module.exports = require('../package.json').version`;\n\n/**\n * Formats string from `access_denied` or `access-denied` to `AccessDenied`\n */\nconst formatName = (name: string) => {\n return name\n .split(/_|-/)\n .map((el) => el[0].toUpperCase() + el.slice(1))\n .join('');\n};\n\nexport const getIllustrationPath = (name: string) => {\n const formattedName = formatName(name);\n\n return `https://static.semrush.com/intergalactic/illustrations/${version}/${formattedName}.svg`;\n};\n"],"mappings":"AAEA,IAAMA,OAAO,WAA8D;;AAE3E;AACA;AACA;AACA,IAAMC,UAAU,GAAG,SAAbA,UAAUA,CAAIC,IAAY,EAAK;EACnC,OAAOA,IAAI,CACRC,KAAK,CAAC,KAAK,CAAC,CACZC,GAAG,CAAC,UAACC,EAAE;IAAA,OAAKA,EAAE,CAAC,CAAC,CAAC,CAACC,WAAW,EAAE,GAAGD,EAAE,CAACE,KAAK,CAAC,CAAC,CAAC;EAAA,EAAC,CAC9CC,IAAI,CAAC,EAAE,CAAC;AACb,CAAC;AAED,OAAO,IAAMC,mBAAmB,GAAG,SAAtBA,mBAAmBA,CAAIP,IAAY,EAAK;EACnD,IAAMQ,aAAa,GAAGT,UAAU,CAACC,IAAI,CAAC;EAEtC,iEAAAS,MAAA,CAAiEX,OAAO,OAAAW,MAAA,CAAID,aAAa;AAC3F,CAAC"}
1
+ {"version":3,"file":"index.js","names":["version","formatName","name","split","map","el","toUpperCase","slice","join","getIllustrationPath","formattedName","concat"],"sources":["../../src/index.ts"],"sourcesContent":["declare const preval: any;\n\nconst version = preval`module.exports = require('../package.json').version`;\n\n/**\n * Formats string from `access_denied` or `access-denied` to `AccessDenied`\n */\nconst formatName = (name: string) => {\n return name\n .split(/_|-/)\n .map((el) => el[0].toUpperCase() + el.slice(1))\n .join('');\n};\n\nexport const getIllustrationPath = (name: string) => {\n const formattedName = formatName(name);\n\n return `https://static.semrush.com/intergalactic/illustrations/${version}/${formattedName}.svg`;\n};\n"],"mappings":"AAEA,IAAMA,OAAO,WAA8D;;AAE3E;AACA;AACA;AACA,IAAMC,UAAU,GAAG,SAAbA,UAAUA,CAAIC,IAAY,EAAK;EACnC,OAAOA,IAAI,CACRC,KAAK,CAAC,KAAK,CAAC,CACZC,GAAG,CAAC,UAACC,EAAE;IAAA,OAAKA,EAAE,CAAC,CAAC,CAAC,CAACC,WAAW,CAAC,CAAC,GAAGD,EAAE,CAACE,KAAK,CAAC,CAAC,CAAC;EAAA,EAAC,CAC9CC,IAAI,CAAC,EAAE,CAAC;AACb,CAAC;AAED,OAAO,IAAMC,mBAAmB,GAAG,SAAtBA,mBAAmBA,CAAIP,IAAY,EAAK;EACnD,IAAMQ,aAAa,GAAGT,UAAU,CAACC,IAAI,CAAC;EAEtC,iEAAAS,MAAA,CAAiEX,OAAO,OAAAW,MAAA,CAAID,aAAa;AAC3F,CAAC","ignoreList":[]}
package/lib/esm/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- var version = "16.0.2";
1
+ var version = "16.0.3";
2
2
  var formatName = function formatName2(name) {
3
3
  return name.split(/_|-/).map(function(el) {
4
4
  return el[0].toUpperCase() + el.slice(1);
@@ -1,26 +1,25 @@
1
-
2
1
  export type IllustrationProps = {
3
- /**
2
+ /**
4
3
  * Main color of the illustration
5
4
  **/
6
- primaryColor?: string;
7
- /**
5
+ primaryColor?: string;
6
+ /**
8
7
  * Secondary color of the illustration
9
8
  **/
10
- secondaryColor?: string;
11
- /**
9
+ secondaryColor?: string;
10
+ /**
12
11
  * Changes background fill of the illustration
13
12
  **/
14
- fill?: string;
15
- /**
13
+ fill?: string;
14
+ /**
16
15
  * Width of the illustration
17
16
  **/
18
- width?: string | number;
19
- /**
17
+ width?: string | number;
18
+ /**
20
19
  * Height of the illustration
21
20
  **/
22
- height?: string | number;
23
- }
21
+ height?: string | number;
22
+ };
24
23
 
25
24
  export type TIllustrationNamesErrors =
26
25
  | 'access_denied'
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@semcore/illustration",
3
3
  "description": "Semrush Illustration Component",
4
- "version": "16.0.2",
4
+ "version": "16.0.3-prerelease.1",
5
5
  "main": "lib/cjs/index.js",
6
6
  "module": "lib/esm/index.mjs",
7
7
  "typings": "lib/types/index.d.ts",
@@ -9,11 +9,11 @@
9
9
  "author": "UI-kit team <ui-kit-team@semrush.com>",
10
10
  "license": "MIT",
11
11
  "dependencies": {
12
- "@babel/runtime": "^7.17.9",
12
+ "@babel/runtime": "7.19.0",
13
13
  "colorjs.io": "0.4.3"
14
14
  },
15
15
  "peerDependencies": {
16
- "@semcore/base-components": "^16.0.0"
16
+ "@semcore/base-components": "^16.0.2-prerelease.1"
17
17
  },
18
18
  "repository": {
19
19
  "type": "git",
@@ -21,13 +21,13 @@
21
21
  "directory": "semcore/illustration"
22
22
  },
23
23
  "devDependencies": {
24
+ "@types/fs-extra": "8.1.0",
24
25
  "esbuild": "0.14.29",
25
- "happy-dom": "9.20.3",
26
26
  "fs-extra": "8.1.0",
27
+ "happy-dom": "9.20.3",
27
28
  "svg-to-jsx": "1.0.4",
28
29
  "@semcore/testing-utils": "1.0.0",
29
- "@types/react": "18.0.21",
30
- "@types/fs-extra": "8.1.0"
30
+ "@semcore/core": "16.0.0"
31
31
  },
32
32
  "exports": {
33
33
  ".": {
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');
@@ -113,7 +114,7 @@ import { useColorResolver } from '@semcore/core/lib/utils/use/useColorResolver';
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}
@@ -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, {
@@ -209,7 +210,6 @@ 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
213
  console.log('Patched exports in package.json.');
214
214
  }
215
215
 
@@ -1,4 +1,4 @@
1
1
  declare module 'svg-to-jsx' {
2
2
  const svgToJsx: (html: string, options?: {}, callback?: (error: Error, result: string) => void) => Promise<string>;
3
3
  export default svgToJsx;
4
- }
4
+ }