@payfit/unity-illustrations 2.28.0 → 2.28.2

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 (17) hide show
  1. package/dist/esm/components/illustration/figma/IllustratedIcon.figma.d.ts +6 -6
  2. package/dist/esm/components/illustration/figma/IllustratedPictureLarge.figma.d.ts +6 -6
  3. package/dist/esm/components/illustration/figma/IllustratedPictureMedium.figma.d.ts +6 -6
  4. package/dist/esm/components/illustration/figma/IllustratedPictureSmall.figma.d.ts +6 -6
  5. package/dist/esm/components/lazy-illustration/figma/LazyIllustratedIcon.figma.d.ts +6 -6
  6. package/dist/esm/components/lazy-illustration/figma/LazyIllustratedPictureLarge.figma.d.ts +6 -6
  7. package/dist/esm/components/lazy-illustration/figma/LazyIllustratedPictureMedium.figma.d.ts +6 -6
  8. package/dist/esm/components/lazy-illustration/figma/LazyIllustratedPictureSmall.figma.d.ts +6 -6
  9. package/package.json +4 -4
  10. package/src/components/illustration/figma/{IllustratedIcon.figma.js → IllustratedIcon.figma.ts} +3 -1
  11. package/src/components/illustration/figma/{IllustratedPictureLarge.figma.js → IllustratedPictureLarge.figma.ts} +3 -2
  12. package/src/components/illustration/figma/{IllustratedPictureMedium.figma.js → IllustratedPictureMedium.figma.ts} +3 -2
  13. package/src/components/illustration/figma/{IllustratedPictureSmall.figma.js → IllustratedPictureSmall.figma.ts} +3 -2
  14. package/src/components/lazy-illustration/figma/{LazyIllustratedIcon.figma.js → LazyIllustratedIcon.figma.ts} +3 -1
  15. package/src/components/lazy-illustration/figma/{LazyIllustratedPictureLarge.figma.js → LazyIllustratedPictureLarge.figma.ts} +3 -2
  16. package/src/components/lazy-illustration/figma/{LazyIllustratedPictureMedium.figma.js → LazyIllustratedPictureMedium.figma.ts} +3 -2
  17. package/src/components/lazy-illustration/figma/{LazyIllustratedPictureSmall.figma.js → LazyIllustratedPictureSmall.figma.ts} +3 -2
@@ -1,7 +1,7 @@
1
- declare namespace _default {
2
- export let id: string;
3
- export { code as example };
4
- export let imports: string[];
5
- }
1
+ import { default as figma } from 'figma';
2
+ declare const _default: {
3
+ id: string;
4
+ example: figma.TemplateStringResult;
5
+ imports: string[];
6
+ };
6
7
  export default _default;
7
- declare const code: any;
@@ -1,7 +1,7 @@
1
- declare namespace _default {
2
- export let id: string;
3
- export { code as example };
4
- export let imports: string[];
5
- }
1
+ import { default as figma } from 'figma';
2
+ declare const _default: {
3
+ id: string;
4
+ example: figma.TemplateStringResult;
5
+ imports: string[];
6
+ };
6
7
  export default _default;
7
- declare const code: any;
@@ -1,7 +1,7 @@
1
- declare namespace _default {
2
- export let id: string;
3
- export { code as example };
4
- export let imports: string[];
5
- }
1
+ import { default as figma } from 'figma';
2
+ declare const _default: {
3
+ id: string;
4
+ example: figma.TemplateStringResult;
5
+ imports: string[];
6
+ };
6
7
  export default _default;
7
- declare const code: any;
@@ -1,7 +1,7 @@
1
- declare namespace _default {
2
- export let id: string;
3
- export { code as example };
4
- export let imports: string[];
5
- }
1
+ import { default as figma } from 'figma';
2
+ declare const _default: {
3
+ id: string;
4
+ example: figma.TemplateStringResult;
5
+ imports: string[];
6
+ };
6
7
  export default _default;
7
- declare const code: any;
@@ -1,7 +1,7 @@
1
- declare namespace _default {
2
- export let id: string;
3
- export { code as example };
4
- export let imports: string[];
5
- }
1
+ import { default as figma } from 'figma';
2
+ declare const _default: {
3
+ id: string;
4
+ example: figma.TemplateStringResult;
5
+ imports: string[];
6
+ };
6
7
  export default _default;
7
- declare const code: any;
@@ -1,7 +1,7 @@
1
- declare namespace _default {
2
- export let id: string;
3
- export { code as example };
4
- export let imports: string[];
5
- }
1
+ import { default as figma } from 'figma';
2
+ declare const _default: {
3
+ id: string;
4
+ example: figma.TemplateStringResult;
5
+ imports: string[];
6
+ };
6
7
  export default _default;
7
- declare const code: any;
@@ -1,7 +1,7 @@
1
- declare namespace _default {
2
- export let id: string;
3
- export { code as example };
4
- export let imports: string[];
5
- }
1
+ import { default as figma } from 'figma';
2
+ declare const _default: {
3
+ id: string;
4
+ example: figma.TemplateStringResult;
5
+ imports: string[];
6
+ };
6
7
  export default _default;
7
- declare const code: any;
@@ -1,7 +1,7 @@
1
- declare namespace _default {
2
- export let id: string;
3
- export { code as example };
4
- export let imports: string[];
5
- }
1
+ import { default as figma } from 'figma';
2
+ declare const _default: {
3
+ id: string;
4
+ example: figma.TemplateStringResult;
5
+ imports: string[];
6
+ };
6
7
  export default _default;
7
- declare const code: any;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@payfit/unity-illustrations",
3
- "version": "2.28.0",
3
+ "version": "2.28.2",
4
4
  "module": "./dist/esm/index.js",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -33,8 +33,8 @@
33
33
  "svgo": "3.3.2"
34
34
  },
35
35
  "devDependencies": {
36
- "@figma/code-connect": "1.4.1",
37
- "@payfit/unity-themes": "2.28.0",
36
+ "@figma/code-connect": "1.4.3",
37
+ "@payfit/unity-themes": "2.28.2",
38
38
  "@storybook/addon-a11y": "10.3.5",
39
39
  "@storybook/addon-docs": "10.3.5",
40
40
  "@storybook/addon-links": "10.3.5",
@@ -60,7 +60,7 @@
60
60
  "@payfit/vite-configs": "0.0.0-use.local"
61
61
  },
62
62
  "peerDependencies": {
63
- "@payfit/unity-themes": "2.28.0",
63
+ "@payfit/unity-themes": "2.28.2",
64
64
  "react": "18.3.1",
65
65
  "react-dom": "18.3.1"
66
66
  }
@@ -13,7 +13,8 @@
13
13
  * - Size property -> React size value
14
14
  */
15
15
 
16
- const figma = require('figma')
16
+ import figma from 'figma'
17
+
17
18
  const instance = figma.selectedInstance
18
19
 
19
20
  const nameValue = instance.getEnum('Name', {
@@ -134,6 +135,7 @@ const sizeValue = instance.getEnum('Size', {
134
135
  large: 'lg',
135
136
  })
136
137
 
138
+ // eslint-disable-next-line @typescript-eslint/restrict-plus-operands
137
139
  const finalSrc = withBackgroundValue ? nameValue + 'WithBackground' : nameValue
138
140
 
139
141
  const code = figma.tsx`<Illustration
@@ -12,7 +12,8 @@
12
12
  * - Type property -> "EmptyState" prefix for empty-state type
13
13
  */
14
14
 
15
- const figma = require('figma')
15
+ import figma from 'figma'
16
+
16
17
  const instance = figma.selectedInstance
17
18
 
18
19
  const nameValue = instance.getEnum('Name', {
@@ -128,7 +129,7 @@ const typeValue = instance.getEnum('Type', {
128
129
 
129
130
  // Apply EmptyState prefix dynamically based on Type
130
131
  const finalSrc =
131
- typeValue === 'empty-state' ? 'EmptyState' + nameValue : nameValue
132
+ typeValue === 'empty-state' ? `EmptyState${nameValue ?? ''}` : nameValue
132
133
 
133
134
  const code = figma.tsx`<Illustration
134
135
  src={${finalSrc}}
@@ -12,7 +12,8 @@
12
12
  * - Type property -> "EmptyState" prefix for empty-state type
13
13
  */
14
14
 
15
- const figma = require('figma')
15
+ import figma from 'figma'
16
+
16
17
  const instance = figma.selectedInstance
17
18
 
18
19
  const nameValue = instance.getEnum('Name', {
@@ -128,7 +129,7 @@ const typeValue = instance.getEnum('Type', {
128
129
 
129
130
  // Apply EmptyState prefix dynamically based on Type
130
131
  const finalSrc =
131
- typeValue === 'empty-state' ? 'EmptyState' + nameValue : nameValue
132
+ typeValue === 'empty-state' ? `EmptyState${nameValue ?? ''}` : nameValue
132
133
 
133
134
  const code = figma.tsx`<Illustration
134
135
  src={${finalSrc}}
@@ -12,7 +12,8 @@
12
12
  * - Type property -> "EmptyState" prefix for empty-state type
13
13
  */
14
14
 
15
- const figma = require('figma')
15
+ import figma from 'figma'
16
+
16
17
  const instance = figma.selectedInstance
17
18
 
18
19
  const nameValue = instance.getEnum('Name', {
@@ -128,7 +129,7 @@ const typeValue = instance.getEnum('Type', {
128
129
 
129
130
  // Apply EmptyState prefix dynamically based on Type
130
131
  const finalSrc =
131
- typeValue === 'empty-state' ? 'EmptyState' + nameValue : nameValue
132
+ typeValue === 'empty-state' ? `EmptyState${nameValue ?? ''}` : nameValue
132
133
 
133
134
  const code = figma.tsx`<Illustration
134
135
  src={${finalSrc}}
@@ -13,7 +13,8 @@
13
13
  * - Size property -> React size value
14
14
  */
15
15
 
16
- const figma = require('figma')
16
+ import figma from 'figma'
17
+
17
18
  const instance = figma.selectedInstance
18
19
 
19
20
  const nameValue = instance.getEnum('Name', {
@@ -134,6 +135,7 @@ const sizeValue = instance.getEnum('Size', {
134
135
  large: 'lg',
135
136
  })
136
137
 
138
+ // eslint-disable-next-line @typescript-eslint/restrict-plus-operands
137
139
  const finalSrc = withBackgroundValue ? nameValue + 'WithBackground' : nameValue
138
140
 
139
141
  const code = figma.tsx`<LazyIllustration
@@ -12,7 +12,8 @@
12
12
  * - Type property -> "EmptyState" prefix for empty-state type
13
13
  */
14
14
 
15
- const figma = require('figma')
15
+ import figma from 'figma'
16
+
16
17
  const instance = figma.selectedInstance
17
18
 
18
19
  const nameValue = instance.getEnum('Name', {
@@ -128,7 +129,7 @@ const typeValue = instance.getEnum('Type', {
128
129
 
129
130
  // Apply EmptyState prefix dynamically based on Type
130
131
  const finalSrc =
131
- typeValue === 'empty-state' ? 'EmptyState' + nameValue : nameValue
132
+ typeValue === 'empty-state' ? `EmptyState${nameValue ?? ''}` : nameValue
132
133
 
133
134
  const code = figma.tsx`<LazyIllustration
134
135
  src="${finalSrc}"
@@ -12,7 +12,8 @@
12
12
  * - Type property -> "EmptyState" prefix for empty-state type
13
13
  */
14
14
 
15
- const figma = require('figma')
15
+ import figma from 'figma'
16
+
16
17
  const instance = figma.selectedInstance
17
18
 
18
19
  const nameValue = instance.getEnum('Name', {
@@ -128,7 +129,7 @@ const typeValue = instance.getEnum('Type', {
128
129
 
129
130
  // Apply EmptyState prefix dynamically based on Type
130
131
  const finalSrc =
131
- typeValue === 'empty-state' ? 'EmptyState' + nameValue : nameValue
132
+ typeValue === 'empty-state' ? `EmptyState${nameValue ?? ''}` : nameValue
132
133
 
133
134
  const code = figma.tsx`<LazyIllustration
134
135
  src="${finalSrc}"
@@ -12,7 +12,8 @@
12
12
  * - Type property -> "EmptyState" prefix for empty-state type
13
13
  */
14
14
 
15
- const figma = require('figma')
15
+ import figma from 'figma'
16
+
16
17
  const instance = figma.selectedInstance
17
18
 
18
19
  const nameValue = instance.getEnum('Name', {
@@ -128,7 +129,7 @@ const typeValue = instance.getEnum('Type', {
128
129
 
129
130
  // Apply EmptyState prefix dynamically based on Type
130
131
  const finalSrc =
131
- typeValue === 'empty-state' ? 'EmptyState' + nameValue : nameValue
132
+ typeValue === 'empty-state' ? `EmptyState${nameValue ?? ''}` : nameValue
132
133
 
133
134
  const code = figma.tsx`<LazyIllustration
134
135
  src="${finalSrc}"