@seed-design/figma 0.2.3 → 0.2.5

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 (55) hide show
  1. package/lib/codegen/index.cjs +5581 -5168
  2. package/lib/codegen/index.d.ts +460 -68
  3. package/lib/codegen/index.d.ts.map +1 -1
  4. package/lib/codegen/index.js +5581 -5168
  5. package/lib/codegen/targets/react/index.cjs +6143 -5348
  6. package/lib/codegen/targets/react/index.d.ts.map +1 -1
  7. package/lib/codegen/targets/react/index.js +6143 -5348
  8. package/lib/index.cjs +5567 -5165
  9. package/lib/index.d.ts.map +1 -1
  10. package/lib/index.js +5567 -5165
  11. package/package.json +5 -4
  12. package/src/codegen/component-properties.ts +82 -6
  13. package/src/codegen/core/jsx.ts +14 -2
  14. package/src/codegen/core/value-resolver.ts +8 -4
  15. package/src/codegen/targets/react/component/handlers/checkbox.ts +7 -0
  16. package/src/codegen/targets/react/component/handlers/checkmark.ts +29 -0
  17. package/src/codegen/targets/react/component/handlers/chip.ts +5 -2
  18. package/src/codegen/targets/react/component/handlers/divider.ts +8 -2
  19. package/src/codegen/targets/react/component/handlers/help-bubble.ts +2 -0
  20. package/src/codegen/targets/react/component/handlers/list-item.ts +155 -0
  21. package/src/codegen/targets/react/component/handlers/radio-group.ts +31 -0
  22. package/src/codegen/targets/react/component/handlers/radio-mark.ts +27 -0
  23. package/src/codegen/targets/react/component/handlers/switch.ts +7 -0
  24. package/src/codegen/targets/react/component/handlers/tabs.ts +288 -5
  25. package/src/codegen/targets/react/component/index.ts +12 -2
  26. package/src/entities/data/__generated__/component-sets/checkbox.d.ts +9 -2
  27. package/src/entities/data/__generated__/component-sets/checkbox.mjs +9 -2
  28. package/src/entities/data/__generated__/component-sets/checkmark.d.ts +13 -6
  29. package/src/entities/data/__generated__/component-sets/checkmark.mjs +13 -6
  30. package/src/entities/data/__generated__/component-sets/divider.d.ts +2 -2
  31. package/src/entities/data/__generated__/component-sets/divider.mjs +2 -2
  32. package/src/entities/data/__generated__/component-sets/help-bubble.d.ts +3 -0
  33. package/src/entities/data/__generated__/component-sets/help-bubble.mjs +3 -0
  34. package/src/entities/data/__generated__/component-sets/index.d.ts +2 -0
  35. package/src/entities/data/__generated__/component-sets/index.mjs +2 -0
  36. package/src/entities/data/__generated__/component-sets/list-header.d.ts +24 -0
  37. package/src/entities/data/__generated__/component-sets/list-header.mjs +24 -0
  38. package/src/entities/data/__generated__/component-sets/list-item.d.ts +152 -0
  39. package/src/entities/data/__generated__/component-sets/list-item.mjs +152 -0
  40. package/src/entities/data/__generated__/component-sets/radio-mark.d.ts +7 -0
  41. package/src/entities/data/__generated__/component-sets/radio-mark.mjs +7 -0
  42. package/src/entities/data/__generated__/component-sets/radio.d.ts +14 -0
  43. package/src/entities/data/__generated__/component-sets/radio.mjs +14 -0
  44. package/src/entities/data/__generated__/component-sets/switch.d.ts +10 -3
  45. package/src/entities/data/__generated__/component-sets/switch.mjs +10 -3
  46. package/src/entities/data/__generated__/component-sets/tabs.d.ts +1 -1
  47. package/src/entities/data/__generated__/component-sets/tabs.mjs +1 -1
  48. package/src/entities/data/__generated__/variable-collections/index.d.ts +3 -0
  49. package/src/entities/data/{variable-collections.ts → __generated__/variable-collections/index.mjs} +229 -116
  50. package/src/entities/data/__generated__/variables/index.d.ts +3 -0
  51. package/src/entities/data/__generated__/variables/index.mjs +6442 -0
  52. package/src/entities/index.ts +2 -2
  53. package/src/entities/data/__generated__/component-sets/inline-banner.d.ts +0 -40
  54. package/src/entities/data/__generated__/component-sets/inline-banner.mjs +0 -40
  55. package/src/entities/data/variables.ts +0 -4706
@@ -0,0 +1,152 @@
1
+ export declare const metadata: {
2
+ "name": "🟢 List Item",
3
+ "key": "b51b7d07c659fee5d696565b8e1151636573b27c",
4
+ "componentPropertyDefinitions": {
5
+ "Divider#28441:0": {
6
+ "type": "BOOLEAN"
7
+ },
8
+ "Suffix Type#28441:42": {
9
+ "type": "INSTANCE_SWAP",
10
+ "preferredValues": [
11
+ {
12
+ "type": "COMPONENT",
13
+ "key": "8c52207687ffed15cd5931d71ed9d196b3358a68"
14
+ },
15
+ {
16
+ "type": "COMPONENT",
17
+ "key": "fe0e25f4fecda59d0a3730ead7c5bc0a66a41e7e"
18
+ },
19
+ {
20
+ "type": "COMPONENT",
21
+ "key": "abf9810103ae6e6afe8fa253ec5f05d6a7304b38"
22
+ },
23
+ {
24
+ "type": "COMPONENT",
25
+ "key": "0a9464ad270bfd7f56438f62bb0155a25ca146a9"
26
+ },
27
+ {
28
+ "type": "COMPONENT",
29
+ "key": "4cc7e9b84a8388a36cb3898c6c02e6110a3281b9"
30
+ },
31
+ {
32
+ "type": "COMPONENT",
33
+ "key": "1e933f75dd6bb4b21c3289b5c3b4402d2c623125"
34
+ },
35
+ {
36
+ "type": "COMPONENT",
37
+ "key": "11ba71b11b336199654cd2801967a44996705449"
38
+ },
39
+ {
40
+ "type": "COMPONENT",
41
+ "key": "c0eaee6146c6dc92bfd9b081d667f45ee611b1d2"
42
+ },
43
+ {
44
+ "type": "COMPONENT_SET",
45
+ "key": "3d788f28c785d1c60b937b253c39ce582dbe1ed3"
46
+ },
47
+ {
48
+ "type": "COMPONENT_SET",
49
+ "key": "5636566f6de6f58200dce388f7b1ac9f517b30e1"
50
+ },
51
+ {
52
+ "type": "COMPONENT",
53
+ "key": "3a70bf5bb9856c13893931b7a0df652bcf0be895"
54
+ }
55
+ ]
56
+ },
57
+ "Title#28452:21": {
58
+ "type": "TEXT"
59
+ },
60
+ "Has Suffix#28452:64": {
61
+ "type": "BOOLEAN"
62
+ },
63
+ "Has Prefix#28452:85": {
64
+ "type": "BOOLEAN"
65
+ },
66
+ "Prefix Type#28452:106": {
67
+ "type": "INSTANCE_SWAP",
68
+ "preferredValues": [
69
+ {
70
+ "type": "COMPONENT",
71
+ "key": "0e4c05f097d3fa2dc0cbfdbf8db2662bcf8439ca"
72
+ },
73
+ {
74
+ "type": "COMPONENT",
75
+ "key": "ef0e8bd6c2f92e620acf204bb9a8079ef25a1e5c"
76
+ },
77
+ {
78
+ "type": "COMPONENT",
79
+ "key": "82239325aa1cb65af7c649fc71a8f2b48fb9b9f3"
80
+ },
81
+ {
82
+ "type": "COMPONENT",
83
+ "key": "f24c9ef42ef08df79483fbae0fa7d9037e566748"
84
+ },
85
+ {
86
+ "type": "COMPONENT",
87
+ "key": "5a77ad37a2291989dfe77c44ddee9aa39e447f90"
88
+ },
89
+ {
90
+ "type": "COMPONENT",
91
+ "key": "81f201fc876e38f016ab7427a6b3da000ee919a2"
92
+ }
93
+ ]
94
+ },
95
+ "Has Detail#28469:1": {
96
+ "type": "BOOLEAN"
97
+ },
98
+ "Detail Type#28469:11": {
99
+ "type": "INSTANCE_SWAP",
100
+ "preferredValues": [
101
+ {
102
+ "type": "COMPONENT",
103
+ "key": "b27f70404d8f055ec39f9049a5a86920c11be979"
104
+ },
105
+ {
106
+ "type": "COMPONENT",
107
+ "key": "43795c2e3e507dc555f9ec08bf4bf1abf8c2051a"
108
+ },
109
+ {
110
+ "type": "COMPONENT",
111
+ "key": "73bcdff1b73998d1f440fb8827df2eafc4338c1d"
112
+ }
113
+ ]
114
+ },
115
+ "Title #28487:0": {
116
+ "type": "TEXT"
117
+ },
118
+ "Detail Type #28487:11": {
119
+ "type": "INSTANCE_SWAP",
120
+ "preferredValues": [
121
+ {
122
+ "type": "COMPONENT",
123
+ "key": "870d50d39feae5bcfd59d7fbf8ae510233a97a8b"
124
+ },
125
+ {
126
+ "type": "COMPONENT",
127
+ "key": "43795c2e3e507dc555f9ec08bf4bf1abf8c2051a"
128
+ },
129
+ {
130
+ "type": "COMPONENT",
131
+ "key": "73bcdff1b73998d1f440fb8827df2eafc4338c1d"
132
+ }
133
+ ]
134
+ },
135
+ "State": {
136
+ "type": "VARIANT",
137
+ "variantOptions": [
138
+ "Enabled",
139
+ "Pressed",
140
+ "Disabled",
141
+ "Highlighted"
142
+ ]
143
+ },
144
+ "Variants": {
145
+ "type": "VARIANT",
146
+ "variantOptions": [
147
+ "Single Line",
148
+ "Multi Line"
149
+ ]
150
+ }
151
+ }
152
+ };
@@ -0,0 +1,152 @@
1
+ export const metadata = {
2
+ "name": "🟢 List Item",
3
+ "key": "b51b7d07c659fee5d696565b8e1151636573b27c",
4
+ "componentPropertyDefinitions": {
5
+ "Divider#28441:0": {
6
+ "type": "BOOLEAN"
7
+ },
8
+ "Suffix Type#28441:42": {
9
+ "type": "INSTANCE_SWAP",
10
+ "preferredValues": [
11
+ {
12
+ "type": "COMPONENT",
13
+ "key": "8c52207687ffed15cd5931d71ed9d196b3358a68"
14
+ },
15
+ {
16
+ "type": "COMPONENT",
17
+ "key": "fe0e25f4fecda59d0a3730ead7c5bc0a66a41e7e"
18
+ },
19
+ {
20
+ "type": "COMPONENT",
21
+ "key": "abf9810103ae6e6afe8fa253ec5f05d6a7304b38"
22
+ },
23
+ {
24
+ "type": "COMPONENT",
25
+ "key": "0a9464ad270bfd7f56438f62bb0155a25ca146a9"
26
+ },
27
+ {
28
+ "type": "COMPONENT",
29
+ "key": "4cc7e9b84a8388a36cb3898c6c02e6110a3281b9"
30
+ },
31
+ {
32
+ "type": "COMPONENT",
33
+ "key": "1e933f75dd6bb4b21c3289b5c3b4402d2c623125"
34
+ },
35
+ {
36
+ "type": "COMPONENT",
37
+ "key": "11ba71b11b336199654cd2801967a44996705449"
38
+ },
39
+ {
40
+ "type": "COMPONENT",
41
+ "key": "c0eaee6146c6dc92bfd9b081d667f45ee611b1d2"
42
+ },
43
+ {
44
+ "type": "COMPONENT_SET",
45
+ "key": "3d788f28c785d1c60b937b253c39ce582dbe1ed3"
46
+ },
47
+ {
48
+ "type": "COMPONENT_SET",
49
+ "key": "5636566f6de6f58200dce388f7b1ac9f517b30e1"
50
+ },
51
+ {
52
+ "type": "COMPONENT",
53
+ "key": "3a70bf5bb9856c13893931b7a0df652bcf0be895"
54
+ }
55
+ ]
56
+ },
57
+ "Title#28452:21": {
58
+ "type": "TEXT"
59
+ },
60
+ "Has Suffix#28452:64": {
61
+ "type": "BOOLEAN"
62
+ },
63
+ "Has Prefix#28452:85": {
64
+ "type": "BOOLEAN"
65
+ },
66
+ "Prefix Type#28452:106": {
67
+ "type": "INSTANCE_SWAP",
68
+ "preferredValues": [
69
+ {
70
+ "type": "COMPONENT",
71
+ "key": "0e4c05f097d3fa2dc0cbfdbf8db2662bcf8439ca"
72
+ },
73
+ {
74
+ "type": "COMPONENT",
75
+ "key": "ef0e8bd6c2f92e620acf204bb9a8079ef25a1e5c"
76
+ },
77
+ {
78
+ "type": "COMPONENT",
79
+ "key": "82239325aa1cb65af7c649fc71a8f2b48fb9b9f3"
80
+ },
81
+ {
82
+ "type": "COMPONENT",
83
+ "key": "f24c9ef42ef08df79483fbae0fa7d9037e566748"
84
+ },
85
+ {
86
+ "type": "COMPONENT",
87
+ "key": "5a77ad37a2291989dfe77c44ddee9aa39e447f90"
88
+ },
89
+ {
90
+ "type": "COMPONENT",
91
+ "key": "81f201fc876e38f016ab7427a6b3da000ee919a2"
92
+ }
93
+ ]
94
+ },
95
+ "Has Detail#28469:1": {
96
+ "type": "BOOLEAN"
97
+ },
98
+ "Detail Type#28469:11": {
99
+ "type": "INSTANCE_SWAP",
100
+ "preferredValues": [
101
+ {
102
+ "type": "COMPONENT",
103
+ "key": "b27f70404d8f055ec39f9049a5a86920c11be979"
104
+ },
105
+ {
106
+ "type": "COMPONENT",
107
+ "key": "43795c2e3e507dc555f9ec08bf4bf1abf8c2051a"
108
+ },
109
+ {
110
+ "type": "COMPONENT",
111
+ "key": "73bcdff1b73998d1f440fb8827df2eafc4338c1d"
112
+ }
113
+ ]
114
+ },
115
+ "Title #28487:0": {
116
+ "type": "TEXT"
117
+ },
118
+ "Detail Type #28487:11": {
119
+ "type": "INSTANCE_SWAP",
120
+ "preferredValues": [
121
+ {
122
+ "type": "COMPONENT",
123
+ "key": "870d50d39feae5bcfd59d7fbf8ae510233a97a8b"
124
+ },
125
+ {
126
+ "type": "COMPONENT",
127
+ "key": "43795c2e3e507dc555f9ec08bf4bf1abf8c2051a"
128
+ },
129
+ {
130
+ "type": "COMPONENT",
131
+ "key": "73bcdff1b73998d1f440fb8827df2eafc4338c1d"
132
+ }
133
+ ]
134
+ },
135
+ "State": {
136
+ "type": "VARIANT",
137
+ "variantOptions": [
138
+ "Enabled",
139
+ "Pressed",
140
+ "Disabled",
141
+ "Highlighted"
142
+ ]
143
+ },
144
+ "Variants": {
145
+ "type": "VARIANT",
146
+ "variantOptions": [
147
+ "Single Line",
148
+ "Multi Line"
149
+ ]
150
+ }
151
+ }
152
+ };
@@ -9,6 +9,13 @@ export declare const metadata: {
9
9
  "Large"
10
10
  ]
11
11
  },
12
+ "Tone": {
13
+ "type": "VARIANT",
14
+ "variantOptions": [
15
+ "Neutral",
16
+ "🚫[Deprecated]Brand"
17
+ ]
18
+ },
12
19
  "Selected": {
13
20
  "type": "VARIANT",
14
21
  "variantOptions": [
@@ -9,6 +9,13 @@ export const metadata = {
9
9
  "Large"
10
10
  ]
11
11
  },
12
+ "Tone": {
13
+ "type": "VARIANT",
14
+ "variantOptions": [
15
+ "Neutral",
16
+ "🚫[Deprecated]Brand"
17
+ ]
18
+ },
12
19
  "Selected": {
13
20
  "type": "VARIANT",
14
21
  "variantOptions": [
@@ -12,6 +12,20 @@ export declare const metadata: {
12
12
  "Large"
13
13
  ]
14
14
  },
15
+ "Tone": {
16
+ "type": "VARIANT",
17
+ "variantOptions": [
18
+ "🚫[Deprecated]Brand",
19
+ "Neutral"
20
+ ]
21
+ },
22
+ "Weight": {
23
+ "type": "VARIANT",
24
+ "variantOptions": [
25
+ "Regular",
26
+ "Bold"
27
+ ]
28
+ },
15
29
  "Selected": {
16
30
  "type": "VARIANT",
17
31
  "variantOptions": [
@@ -12,6 +12,20 @@ export const metadata = {
12
12
  "Large"
13
13
  ]
14
14
  },
15
+ "Tone": {
16
+ "type": "VARIANT",
17
+ "variantOptions": [
18
+ "🚫[Deprecated]Brand",
19
+ "Neutral"
20
+ ]
21
+ },
22
+ "Weight": {
23
+ "type": "VARIANT",
24
+ "variantOptions": [
25
+ "Regular",
26
+ "Bold"
27
+ ]
28
+ },
15
29
  "Selected": {
16
30
  "type": "VARIANT",
17
31
  "variantOptions": [
@@ -13,6 +13,13 @@ export declare const metadata: {
13
13
  "32"
14
14
  ]
15
15
  },
16
+ "Tone": {
17
+ "type": "VARIANT",
18
+ "variantOptions": [
19
+ "Neutral",
20
+ "🚫[Deprecated] Brand"
21
+ ]
22
+ },
16
23
  "Selected": {
17
24
  "type": "VARIANT",
18
25
  "variantOptions": [
@@ -30,9 +37,9 @@ export declare const metadata: {
30
37
  "Label Layout(Figma Only)": {
31
38
  "type": "VARIANT",
32
39
  "variantOptions": [
33
- "None",
34
- "Right",
35
- "Left"
40
+ "Label Last",
41
+ "Label First",
42
+ "Switch Only"
36
43
  ]
37
44
  }
38
45
  }
@@ -13,6 +13,13 @@ export const metadata = {
13
13
  "32"
14
14
  ]
15
15
  },
16
+ "Tone": {
17
+ "type": "VARIANT",
18
+ "variantOptions": [
19
+ "Neutral",
20
+ "🚫[Deprecated] Brand"
21
+ ]
22
+ },
16
23
  "Selected": {
17
24
  "type": "VARIANT",
18
25
  "variantOptions": [
@@ -30,9 +37,9 @@ export const metadata = {
30
37
  "Label Layout(Figma Only)": {
31
38
  "type": "VARIANT",
32
39
  "variantOptions": [
33
- "None",
34
- "Right",
35
- "Left"
40
+ "Label Last",
41
+ "Label First",
42
+ "Switch Only"
36
43
  ]
37
44
  }
38
45
  }
@@ -5,7 +5,7 @@ export declare const metadata: {
5
5
  "Variant": {
6
6
  "type": "VARIANT",
7
7
  "variantOptions": [
8
- "Underline",
8
+ "Line",
9
9
  "Chip"
10
10
  ]
11
11
  }
@@ -5,7 +5,7 @@ export const metadata = {
5
5
  "Variant": {
6
6
  "type": "VARIANT",
7
7
  "variantOptions": [
8
- "Underline",
8
+ "Line",
9
9
  "Chip"
10
10
  ]
11
11
  }
@@ -0,0 +1,3 @@
1
+ import type { VariableCollection } from "../../../variable.interface";
2
+
3
+ export declare const FIGMA_VARIABLE_COLLECTIONS: Record<string, VariableCollection>;