Skip to content

Commit

Permalink
Integration rework.
Browse files Browse the repository at this point in the history
  • Loading branch information
DomagojGojak committed Sep 5, 2024
1 parent cf48627 commit 6f7e55c
Show file tree
Hide file tree
Showing 328 changed files with 2,433 additions and 5,238 deletions.
62 changes: 9 additions & 53 deletions config/exportables/components/alert.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,32 +5,8 @@
"exporter": {
"search": "Alert",
"supportedVariantProps": {
"design": [
"Type"
],
"layout": [
"Layout"
]
}
},
"transformer": {
"tokenNameSegments": [
"${Component}",
"${Type}",
"${Layout}",
"${Part}",
"${Property}"
]
},
"demo": {
"tabs": {
"overview": {
"design": {},
"layout": {}
},
"designTokens": {
"design": {}
}
"design": ["Type"],
"layout": ["Layout"]
}
}
},
Expand All @@ -40,12 +16,7 @@
"tokens": [
{
"from": "$",
"export": [
"BACKGROUND",
"BORDER",
"SPACING",
"EFFECT"
]
"export": ["BACKGROUND", "BORDER", "SPACING", "EFFECT"]
}
]
},
Expand All @@ -54,9 +25,7 @@
"tokens": [
{
"from": "FRAME[name='Body']",
"export": [
"SPACING"
]
"export": ["SPACING"]
}
]
},
Expand All @@ -65,11 +34,7 @@
"tokens": [
{
"from": "FRAME[name='Body'] > TEXT[name='Title']",
"export": [
"SPACING",
"TYPOGRAPHY",
"FILL"
]
"export": ["SPACING", "TYPOGRAPHY", "FILL"]
}
]
},
Expand All @@ -78,11 +43,7 @@
"tokens": [
{
"from": "FRAME[name='Body'] > TEXT[name='Text']",
"export": [
"SPACING",
"TYPOGRAPHY",
"FILL"
]
"export": ["SPACING", "TYPOGRAPHY", "FILL"]
}
]
},
Expand All @@ -91,18 +52,13 @@
"tokens": [
{
"from": "FRAME[name='Body'] > FRAME[name='Actions']",
"export": [
"SPACING"
]
"export": ["SPACING"]
},
{
"from": "FRAME[name='Body'] > FRAME[name='Actions'] > TEXT[name='Link']",
"export": [
"TYPOGRAPHY",
"FILL"
]
"export": ["TYPOGRAPHY", "FILL"]
}
]
}
]
}
}
63 changes: 5 additions & 58 deletions config/exportables/components/button.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,53 +5,8 @@
"exporter": {
"search": "Button",
"supportedVariantProps": {
"design": [
"Theme",
"Type",
"State(:disabled/Theme)"
],
"layout": [
"Size"
]
}
},
"transformer": {
"tokenNameSegments": [
"${Component}",
"${Type}",
"${Size}",
"${Part}",
"${Theme}",
"${State}",
"${Property}"
]
},
"demo": {
"tabs": {
"overview": {
"design": {
"State": "default",
"Theme": "light"
}
},
"designTokens": {
"design": {
"State": {
"default" : {
"State": [
"default",
"hover",
"disabled"
],
"Theme": "light"
}
},
"Theme": "light"
},
"layout": {
"Size": ""
}
}
"design": ["Theme", "Type", "State(:disabled/Theme)"],
"layout": ["Size"]
}
}
},
Expand All @@ -61,21 +16,13 @@
"tokens": [
{
"from": "$",
"export": [
"BACKGROUND",
"BORDER",
"SPACING",
"EFFECT"
]
"export": ["BACKGROUND", "BORDER", "SPACING", "EFFECT"]
},
{
"from": "TEXT",
"export": [
"TYPOGRAPHY",
"FILL"
]
"export": ["TYPOGRAPHY", "FILL"]
}
]
}
]
}
}
93 changes: 10 additions & 83 deletions config/exportables/components/checkbox.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,60 +5,8 @@
"exporter": {
"search": "Checkbox",
"supportedVariantProps": {
"design": [
"Theme",
"State",
"Activity"
],
"layout": [
"Size"
]
}
},
"transformer": {
"tokenNameSegments": [
"${Component}",
"${State}",
"${Size}",
"${Part}",
"${Theme}",
"${Activity}",
"${Property}"
]
},
"demo": {
"tabs": {
"overview": {
"design": {
"State": [
"default",
"disabled"
],
"Activity": "off",
"Theme": "light"
},
"layout": {
"Size": ""
}
},
"designTokens": {
"design": {
"State": {
"default": {
"State": [
"default",
"hover",
"disabled"
],
"Theme": "light"
}
},
"Theme": "light"
},
"layout": {
"Size": ""
}
}
"design": ["Theme", "State", "Activity"],
"layout": ["Size"]
}
}
},
Expand All @@ -68,23 +16,15 @@
"tokens": [
{
"from": "$",
"export": [
"SPACING"
]
"export": ["SPACING"]
},
{
"from": "GROUP[name=':: checkbox']",
"export": [
"OPACITY"
]
"export": ["OPACITY"]
},
{
"from": "GROUP[name=':: checkbox'] > RECTANGLE[name='body']",
"export": [
"FILL",
"BORDER",
"SIZE"
]
"export": ["FILL", "BORDER", "SIZE"]
}
]
},
Expand All @@ -93,11 +33,7 @@
"tokens": [
{
"from": "TEXT[name='Checkbox Label']",
"export": [
"TYPOGRAPHY",
"FILL",
"OPACITY"
]
"export": ["TYPOGRAPHY", "FILL", "OPACITY"]
}
]
},
Expand All @@ -106,17 +42,11 @@
"tokens": [
{
"from": "GROUP[name=':: checkbox'] > RECTANGLE[name='body']",
"export": [
"BORDER",
"SIZE",
"EFFECT"
]
"export": ["BORDER", "SIZE", "EFFECT"]
},
{
"from": "GROUP[name=':: checkbox'] > RECTANGLE[name='color']",
"export": [
"FILL"
]
"export": ["FILL"]
}
]
},
Expand All @@ -125,12 +55,9 @@
"tokens": [
{
"from": "GROUP[name=':: checkbox'] > INSTANCE[name='${Activity}']",
"export": [
"SIZE",
"FILL"
]
"export": ["SIZE", "FILL"]
}
]
}
]
}
}
Loading

0 comments on commit 6f7e55c

Please sign in to comment.