@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
@@ -1,8 +1,8 @@
1
1
  import { createStaticIconRepository } from "./icon.repository";
2
2
  import { FIGMA_ICONS } from "./data/icons";
3
3
  import { FIGMA_FILL_STYLES, FIGMA_TEXT_STYLES } from "./data/styles";
4
- import { FIGMA_VARIABLE_COLLECTIONS } from "./data/variable-collections";
5
- import { FIGMA_VARIABLES } from "./data/variables";
4
+ import { FIGMA_VARIABLE_COLLECTIONS } from "./data/__generated__/variable-collections";
5
+ import { FIGMA_VARIABLES } from "./data/__generated__/variables";
6
6
  import * as FIGMA_COMPONENTS from "./data/__generated__/component-sets";
7
7
  import { createStaticStyleRepository } from "./style.repository";
8
8
  import { createStaticVariableRepository } from "./variable.repository";
@@ -1,40 +0,0 @@
1
- export declare const metadata: {
2
- "name": "🟢 Inline Banner",
3
- "key": "ce587d0f21754af05240cb32a4880227cb0ea1e1",
4
- "componentPropertyDefinitions": {
5
- "Link Label#1547:81": {
6
- "type": "TEXT"
7
- },
8
- "Show Icon#11840:27": {
9
- "type": "BOOLEAN"
10
- },
11
- "Interaction": {
12
- "type": "VARIANT",
13
- "variantOptions": [
14
- "Default",
15
- "Link",
16
- "Actionable",
17
- "Dismissible"
18
- ]
19
- },
20
- "Variant": {
21
- "type": "VARIANT",
22
- "variantOptions": [
23
- "Neutral Weak",
24
- "Informative Weak",
25
- "Positive Weak",
26
- "Warning Solid",
27
- "Warning Weak",
28
- "Critical Solid",
29
- "Critical Weak"
30
- ]
31
- },
32
- "Show Title": {
33
- "type": "VARIANT",
34
- "variantOptions": [
35
- "True",
36
- "False"
37
- ]
38
- }
39
- }
40
- };
@@ -1,40 +0,0 @@
1
- export const metadata = {
2
- "name": "🟢 Inline Banner",
3
- "key": "ce587d0f21754af05240cb32a4880227cb0ea1e1",
4
- "componentPropertyDefinitions": {
5
- "Link Label#1547:81": {
6
- "type": "TEXT"
7
- },
8
- "Show Icon#11840:27": {
9
- "type": "BOOLEAN"
10
- },
11
- "Interaction": {
12
- "type": "VARIANT",
13
- "variantOptions": [
14
- "Default",
15
- "Link",
16
- "Actionable",
17
- "Dismissible"
18
- ]
19
- },
20
- "Variant": {
21
- "type": "VARIANT",
22
- "variantOptions": [
23
- "Neutral Weak",
24
- "Informative Weak",
25
- "Positive Weak",
26
- "Warning Solid",
27
- "Warning Weak",
28
- "Critical Solid",
29
- "Critical Weak"
30
- ]
31
- },
32
- "Show Title": {
33
- "type": "VARIANT",
34
- "variantOptions": [
35
- "True",
36
- "False"
37
- ]
38
- }
39
- }
40
- };