@wix/design-system-illustrations 1.1.1 → 1.1.3

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/Readme.md CHANGED
@@ -12,11 +12,13 @@ yarn add @wix/design-system-illustrations
12
12
 
13
13
  ## Usage
14
14
 
15
- Importing and using our illustrations in your React application is straightforward. Here's an example of how to use an illustration:
15
+ Importing and using illustrations in your React application is straightforward.
16
+
17
+ Here's an example of how to use an illustration for Studio developers:
16
18
 
17
19
  ```jsx
18
20
  import React from 'react';
19
- import { AddingElements } from '@wix/design-system-illustrations';
21
+ import { AddingElements } from '@wix/design-system-illustrations/studio';
20
22
 
21
23
  const MyComponent = () => {
22
24
  return (
@@ -30,10 +32,43 @@ const MyComponent = () => {
30
32
  export default MyComponent;
31
33
  ```
32
34
 
33
- ## Usage between edge and studio illustrations
35
+ Here's an example of how to use an illustration for Business Manager or Editor Classic developers:
34
36
 
35
- Property `skin` has been exposed for every single illustration component to allow switching from edge to studio illustrations theme. The default skin is `edge`.
37
+ ```jsx
38
+ import React from 'react';
39
+ import { AddingElements } from '@wix/design-system-illustrations/edge';
40
+
41
+ const MyComponent = () => {
42
+ return (
43
+ <div>
44
+ <h1>Welcome to My Component</h1>
45
+ <AddingElements />
46
+ </div>
47
+ );
48
+ };
49
+
50
+ export default MyComponent;
51
+ ```
36
52
 
53
+ Here's an example of how to use an illustration for TPA's and Editor Elements team:
54
+
55
+ ```jsx
56
+ import React from 'react';
57
+ import { AddingElements } from '@wix/design-system-illustrations';
58
+
59
+ const MyComponent = (editorType = 'studio') => {
60
+ return (
61
+ <div>
62
+ <h1>Welcome to My Component</h1>
63
+ <AddingElements skin={editor} />
64
+ </div>
65
+ );
66
+ };
67
+
68
+ export default MyComponent;
69
+ ```
70
+
71
+ Property `skin` has been exposed for every single illustration component to allow switching from edge to studio illustrations theme. The default skin is `edge`.
37
72
  ```jsx
38
73
  <AddingElements skin="studio" />
39
74
  <AddingElements skin="edge" />
@@ -1,3 +1,5 @@
1
1
  import React from 'react';
2
+
2
3
  export type AddingElementsProps = React.SVGAttributes<SVGElement>;
3
- declare const AddingElements: React.FC<AddingElementsProps>;
4
+
5
+ export declare const AddingElements: React.FC<AddingElementsProps>;
@@ -1,3 +1,5 @@
1
1
  import React from 'react';
2
+
2
3
  export type BlogPostProps = React.SVGAttributes<SVGElement>;
3
- declare const BlogPost: React.FC<BlogPostProps>;
4
+
5
+ export declare const BlogPost: React.FC<BlogPostProps>;
@@ -1,3 +1,5 @@
1
1
  import React from 'react';
2
+
2
3
  export type CMSProps = React.SVGAttributes<SVGElement>;
3
- declare const CMS: React.FC<CMSProps>;
4
+
5
+ export declare const CMS: React.FC<CMSProps>;
@@ -1,3 +1,5 @@
1
1
  import React from 'react';
2
+
2
3
  export type DiscountProps = React.SVGAttributes<SVGElement>;
3
- declare const Discount: React.FC<DiscountProps>;
4
+
5
+ export declare const Discount: React.FC<DiscountProps>;
@@ -1,3 +1,5 @@
1
1
  import React from 'react';
2
+
2
3
  export type NoResultsProps = React.SVGAttributes<SVGElement>;
3
- declare const NoResults: React.FC<NoResultsProps>;
4
+
5
+ export declare const NoResults: React.FC<NoResultsProps>;
@@ -1,5 +1,15 @@
1
- export { AddingElements } from './AddingElements';
2
- export { BlogPost } from './BlogPost';
3
- export { CMS } from './CMS';
4
- export { Discount } from './Discount';
5
- export { NoResults } from './NoResults';
1
+
2
+ export { AddingElements } from './AddingElements';
3
+ export type { AddingElementsProps } from './AddingElements';
4
+
5
+ export { BlogPost } from './BlogPost';
6
+ export type { BlogPostProps } from './BlogPost';
7
+
8
+ export { CMS } from './CMS';
9
+ export type { CMSProps } from './CMS';
10
+
11
+ export { Discount } from './Discount';
12
+ export type { DiscountProps } from './Discount';
13
+
14
+ export { NoResults } from './NoResults';
15
+ export type { NoResultsProps } from './NoResults';
@@ -1,5 +1,10 @@
1
- export { AddingElements } from './AddingElements';
2
- export { BlogPost } from './BlogPost';
3
- export { CMS } from './CMS';
4
- export { Discount } from './Discount';
5
- export { NoResults } from './NoResults';
1
+
2
+ export { AddingElements } from './AddingElements';
3
+
4
+ export { BlogPost } from './BlogPost';
5
+
6
+ export { CMS } from './CMS';
7
+
8
+ export { Discount } from './Discount';
9
+
10
+ export { NoResults } from './NoResults';
@@ -1,3 +1,5 @@
1
1
  import React from 'react';
2
+
2
3
  export type AddingElementsProps = React.SVGAttributes<SVGElement>;
3
- declare const AddingElements: React.FC<AddingElementsProps>;
4
+
5
+ export declare const AddingElements: React.FC<AddingElementsProps>;
@@ -1,3 +1,5 @@
1
1
  import React from 'react';
2
+
2
3
  export type BlogPostProps = React.SVGAttributes<SVGElement>;
3
- declare const BlogPost: React.FC<BlogPostProps>;
4
+
5
+ export declare const BlogPost: React.FC<BlogPostProps>;
@@ -1,3 +1,5 @@
1
1
  import React from 'react';
2
+
2
3
  export type CMSProps = React.SVGAttributes<SVGElement>;
3
- declare const CMS: React.FC<CMSProps>;
4
+
5
+ export declare const CMS: React.FC<CMSProps>;
@@ -1,3 +1,5 @@
1
1
  import React from 'react';
2
+
2
3
  export type DiscountProps = React.SVGAttributes<SVGElement>;
3
- declare const Discount: React.FC<DiscountProps>;
4
+
5
+ export declare const Discount: React.FC<DiscountProps>;
@@ -1,3 +1,5 @@
1
1
  import React from 'react';
2
+
2
3
  export type NoResultsProps = React.SVGAttributes<SVGElement>;
3
- declare const NoResults: React.FC<NoResultsProps>;
4
+
5
+ export declare const NoResults: React.FC<NoResultsProps>;
@@ -1,5 +1,15 @@
1
- export { AddingElements } from './AddingElements';
2
- export { BlogPost } from './BlogPost';
3
- export { CMS } from './CMS';
4
- export { Discount } from './Discount';
5
- export { NoResults } from './NoResults';
1
+
2
+ export { AddingElements } from './AddingElements';
3
+ export type { AddingElementsProps } from './AddingElements';
4
+
5
+ export { BlogPost } from './BlogPost';
6
+ export type { BlogPostProps } from './BlogPost';
7
+
8
+ export { CMS } from './CMS';
9
+ export type { CMSProps } from './CMS';
10
+
11
+ export { Discount } from './Discount';
12
+ export type { DiscountProps } from './Discount';
13
+
14
+ export { NoResults } from './NoResults';
15
+ export type { NoResultsProps } from './NoResults';
@@ -1,5 +1,10 @@
1
- export { AddingElements } from './AddingElements';
2
- export { BlogPost } from './BlogPost';
3
- export { CMS } from './CMS';
4
- export { Discount } from './Discount';
5
- export { NoResults } from './NoResults';
1
+
2
+ export { AddingElements } from './AddingElements';
3
+
4
+ export { BlogPost } from './BlogPost';
5
+
6
+ export { CMS } from './CMS';
7
+
8
+ export { Discount } from './Discount';
9
+
10
+ export { NoResults } from './NoResults';
@@ -4,4 +4,4 @@ export type AddingElementsProps = {
4
4
  skin?: 'edge' | 'studio';
5
5
  } & React.SVGAttributes<SVGElement>;
6
6
 
7
- declare const AddingElements: React.FC<AddingElementsProps>;
7
+ export declare const AddingElements: React.FC<AddingElementsProps>;
@@ -4,4 +4,4 @@ export type BlogPostProps = {
4
4
  skin?: 'edge' | 'studio';
5
5
  } & React.SVGAttributes<SVGElement>;
6
6
 
7
- declare const BlogPost: React.FC<BlogPostProps>;
7
+ export declare const BlogPost: React.FC<BlogPostProps>;
@@ -4,4 +4,4 @@ export type CMSProps = {
4
4
  skin?: 'edge' | 'studio';
5
5
  } & React.SVGAttributes<SVGElement>;
6
6
 
7
- declare const CMS: React.FC<CMSProps>;
7
+ export declare const CMS: React.FC<CMSProps>;
@@ -4,4 +4,4 @@ export type DiscountProps = {
4
4
  skin?: 'edge' | 'studio';
5
5
  } & React.SVGAttributes<SVGElement>;
6
6
 
7
- declare const Discount: React.FC<DiscountProps>;
7
+ export declare const Discount: React.FC<DiscountProps>;
@@ -4,4 +4,4 @@ export type NoResultsProps = {
4
4
  skin?: 'edge' | 'studio';
5
5
  } & React.SVGAttributes<SVGElement>;
6
6
 
7
- declare const NoResults: React.FC<NoResultsProps>;
7
+ export declare const NoResults: React.FC<NoResultsProps>;
@@ -1,5 +1,15 @@
1
- export { AddingElements } from './AddingElements';
2
- export { BlogPost } from './BlogPost';
3
- export { CMS } from './CMS';
4
- export { Discount } from './Discount';
5
- export { NoResults } from './NoResults';
1
+
2
+ export { AddingElements } from './AddingElements';
3
+ export type { AddingElementsProps } from './AddingElements';
4
+
5
+ export { BlogPost } from './BlogPost';
6
+ export type { BlogPostProps } from './BlogPost';
7
+
8
+ export { CMS } from './CMS';
9
+ export type { CMSProps } from './CMS';
10
+
11
+ export { Discount } from './Discount';
12
+ export type { DiscountProps } from './Discount';
13
+
14
+ export { NoResults } from './NoResults';
15
+ export type { NoResultsProps } from './NoResults';
@@ -1,5 +1,10 @@
1
- export { AddingElements } from './AddingElements';
2
- export { BlogPost } from './BlogPost';
3
- export { CMS } from './CMS';
4
- export { Discount } from './Discount';
5
- export { NoResults } from './NoResults';
1
+
2
+ export { AddingElements } from './AddingElements';
3
+
4
+ export { BlogPost } from './BlogPost';
5
+
6
+ export { CMS } from './CMS';
7
+
8
+ export { Discount } from './Discount';
9
+
10
+ export { NoResults } from './NoResults';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@wix/design-system-illustrations",
3
3
  "type": "module",
4
- "version": "1.1.1",
4
+ "version": "1.1.3",
5
5
  "packageManager": "yarn@4.0.2",
6
6
  "author": "mykolass@wix.com",
7
7
  "license": "MIT",
@@ -16,7 +16,8 @@
16
16
  "exports": {
17
17
  ".": "./dist/unified/index.js",
18
18
  "./studio": "./dist/studio/index.js",
19
- "./edge": "./dist/edge/index.js"
19
+ "./edge": "./dist/edge/index.js",
20
+ "./package.json": "./package.json"
20
21
  },
21
22
  "peerDependencies": {
22
23
  "react": "^16.14.0 || ^17.0.0 || ^18.0.0",
@@ -39,5 +40,5 @@
39
40
  "groupId": "com.wixpress"
40
41
  }
41
42
  },
42
- "falconPackageHash": "d8b03bdeb0456f859f46dea7f3d1bf1bbea7f99f3442b76d8aa8ea87"
43
+ "falconPackageHash": "c7254dc80d3f2b70cbe071285b52736ed4d55c43fd677f2a61f70482"
43
44
  }