Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions android/src/main/java/voltra/generated/ShortNames.kt
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ object ShortNames {
private val shortToName: Map<String, String> =
mapOf(
"ap" to "absolutePosition",
"ai" to "alignItems",
"al" to "alignment",
"as" to "alignSelf",
"ar" to "aspectRatio",
"an" to "assetName",
"bkg" to "background",
Expand Down Expand Up @@ -53,15 +55,19 @@ object ShortNames {
"fsh" to "fixedSizeHorizontal",
"fsv" to "fixedSizeVertical",
"fl" to "flex",
"fb" to "flexBasis",
"fdir" to "flexDirection",
"fg" to "flexGrow",
"fgw" to "flexGrowWidth",
"fk" to "flexShrink",
"fnt" to "font",
"ff" to "fontFamily",
"fs" to "fontSize",
"fvar" to "fontVariant",
"fw" to "fontWeight",
"fgs" to "foregroundStyle",
"f" to "frame",
"g" to "gap",
"gs" to "gaugeStyle",
"ge" to "glassEffect",
"h" to "height",
Expand All @@ -70,8 +76,10 @@ object ShortNames {
"ic" to "icon",
"id" to "id",
"it" to "italic",
"jc" to "justifyContent",
"kern" to "kerning",
"lbl" to "label",
"ly" to "layout",
"lp" to "layoutPriority",
"l" to "left",
"ls" to "letterSpacing",
Expand Down
41 changes: 29 additions & 12 deletions data/components.json
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,14 @@
"bottom": "b",
"flex": "fl",
"flexGrow": "fg",
"flexShrink": "fk",
"flexBasis": "fb",
"alignItems": "ai",
"alignSelf": "as",
"justifyContent": "jc",
"layout": "ly",
"flexDirection": "fdir",
"gap": "g",
"lineHeight": "lh",
"textAlign": "ta",
"textDecorationLine": "tdl",
Expand Down Expand Up @@ -764,18 +772,19 @@
"swiftAvailability": "iOS 13.0, macOS 10.15",
"hasChildren": true,
"parameters": {
"spacing": {
"type": "number",
"default": 0,
"optional": true,
"description": "Spacing between children"
},
"alignment": {
"type": "string",
"default": "center",
"optional": true,
"enum": ["leading", "center", "trailing"],
"description": "Horizontal alignment"
},
"layout": {
"type": "string",
"default": "stack",
"optional": true,
"enum": ["stack", "flex"],
"description": "Layout mode. 'stack' uses native SwiftUI stacks. 'flex' uses RN-like flexbox."
}
}
},
Expand All @@ -785,21 +794,29 @@
"swiftAvailability": "iOS 13.0, macOS 10.15",
"hasChildren": true,
"parameters": {
"spacing": {
"type": "number",
"default": 0,
"optional": true,
"description": "Spacing between children"
},
"alignment": {
"type": "string",
"default": "center",
"optional": true,
"enum": ["top", "center", "bottom"],
"description": "Vertical alignment"
},
"layout": {
"type": "string",
"default": "stack",
"optional": true,
"enum": ["stack", "flex"],
"description": "Layout mode. 'stack' uses native SwiftUI stacks. 'flex' uses RN-like flexbox."
}
}
},
{
"name": "View",
"description": "Flex container with configurable direction. Always uses flexbox layout.",
"swiftAvailability": "iOS 16.0, macOS 13.0",
"hasChildren": true,
"parameters": {}
},
{
"name": "ZStack",
"description": "Depth-based stack container",
Expand Down
Loading
Loading