Skip to content

Commit

Permalink
feat(mapping): datepicker - define children parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
Artur Yorsh committed Jan 13, 2020
1 parent ac3a441 commit 1732174
Showing 1 changed file with 122 additions and 23 deletions.
145 changes: 122 additions & 23 deletions packages/eva/mapping.json
Original file line number Diff line number Diff line change
Expand Up @@ -2298,6 +2298,9 @@
"backgroundColor": {
"type": "string"
},
"textMarginHorizontal": {
"type": "number"
},
"textFontSize": {
"type": "number"
},
Expand All @@ -2313,14 +2316,68 @@
"textColor": {
"type": "string"
},
"placeholderColor": {
"type": "string"
},
"iconWidth": {
"type": "number"
},
"iconHeight": {
"type": "number"
},
"iconMarginHorizontal": {
"type": "number"
},
"iconTintColor": {
"type": "string"
},
"labelColor": {
"type": "string"
},
"labelFontFamily": {
"type": "string"
},
"labelFontSize": {
"type": "number"
},
"labelLineHeight": {
"type": "number"
},
"labelFontWeight": {
"type": "string"
},
"labelMarginBottom": {
"type": "number"
},
"captionMarginTop": {
"type": "number"
},
"captionColor": {
"type": "string"
},
"captionFontFamily": {
"type": "string"
},
"captionFontSize": {
"type": "number"
},
"captionLineHeight": {
"type": "number"
},
"captionFontWeight": {
"type": "string"
},
"captionIconWidth": {
"type": "number"
},
"captionIconHeight": {
"type": "number"
},
"captionIconMarginRight": {
"type": "number"
},
"captionIconTintColor": {
"type": "string"
}
},
"appearances": {
Expand Down Expand Up @@ -2380,18 +2437,36 @@
"appearances": {
"default": {
"mapping": {
"paddingHorizontal": 16,
"textFontFamily": "text-font-family",
"paddingHorizontal": 8,
"textMarginHorizontal": 8, "textFontFamily": "text-font-family",
"iconWidth": 24,
"iconHeight": 24
"iconHeight": 24,
"iconMarginHorizontal": 8,
"labelMarginBottom": 4,
"labelFontSize": "text-label-font-size",
"labelFontWeight": "text-label-font-weight",
"labelLineHeight": "text-label-line-height",
"labelFontFamily": "text-font-family",
"captionMarginTop": 4,
"captionFontSize": "text-caption-1-font-size",
"captionFontWeight": "text-caption-1-font-weight",
"captionLineHeight": "text-caption-1-line-height",
"captionFontFamily": "text-font-family",
"captionIconWidth": 10,
"captionIconHeight": 10,
"captionIconMarginRight": 8
},
"variantGroups": {
"status": {
"basic": {
"borderColor": "border-basic-color-4",
"backgroundColor": "background-basic-color-2",
"textColor": "text-hint-color",
"labelColor": "text-hint-color",
"captionColor": "text-hint-color",
"placeholderColor": "text-hint-color",
"iconTintColor": "text-hint-color",
"captionIconTintColor": "text-hint-color",
"state": {
"active": {
"borderColor": "color-primary-default-border",
Expand All @@ -2407,10 +2482,14 @@
}
},
"primary": {
"borderColor": "color-primary-default-border",
"borderColor": "color-primary-default",
"backgroundColor": "background-basic-color-2",
"textColor": "text-hint-color",
"iconTintColor": "text-hint-color",
"textColor": "text-basic-color",
"labelColor": "text-hint-color",
"captionColor": "text-primary-color",
"placeholderColor": "text-hint-color",
"iconTintColor": "text-primary-color",
"captionIconTintColor": "text-primary-color",
"state": {
"active": {
"borderColor": "color-primary-active-border",
Expand All @@ -2426,10 +2505,14 @@
}
},
"success": {
"borderColor": "color-success-default-border",
"borderColor": "color-success-default",
"backgroundColor": "background-basic-color-2",
"textColor": "text-hint-color",
"iconTintColor": "text-hint-color",
"textColor": "text-basic-color",
"labelColor": "text-hint-color",
"captionColor": "text-success-color",
"placeholderColor": "text-hint-color",
"iconTintColor": "text-success-color",
"captionIconTintColor": "text-success-color",
"state": {
"active": {
"borderColor": "color-success-active-border",
Expand All @@ -2445,10 +2528,14 @@
}
},
"info": {
"borderColor": "color-info-default-border",
"borderColor": "color-info-default",
"backgroundColor": "background-basic-color-2",
"textColor": "text-hint-color",
"iconTintColor": "text-hint-color",
"textColor": "text-basic-color",
"labelColor": "text-hint-color",
"captionColor": "text-info-color",
"placeholderColor": "text-hint-color",
"iconTintColor": "text-info-color",
"captionIconTintColor": "text-info-color",
"state": {
"active": {
"borderColor": "color-info-active-border",
Expand All @@ -2464,10 +2551,14 @@
}
},
"warning": {
"borderColor": "color-warning-default-border",
"borderColor": "color-warning-default",
"backgroundColor": "background-basic-color-2",
"textColor": "text-hint-color",
"iconTintColor": "text-hint-color",
"textColor": "text-basic-color",
"labelColor": "text-hint-color",
"captionColor": "text-warning-color",
"placeholderColor": "text-hint-color",
"iconTintColor": "text-warning-color",
"captionIconTintColor": "text-warning-color",
"state": {
"active": {
"borderColor": "color-warning-active-border",
Expand All @@ -2483,10 +2574,14 @@
}
},
"danger": {
"borderColor": "color-danger-default-border",
"borderColor": "color-danger-default",
"backgroundColor": "background-basic-color-2",
"textColor": "text-hint-color",
"iconTintColor": "text-hint-color",
"textColor": "text-basic-color",
"labelColor": "text-hint-color",
"captionColor": "text-danger-color",
"placeholderColor": "text-hint-color",
"iconTintColor": "text-danger-color",
"captionIconTintColor": "text-danger-color",
"state": {
"active": {
"borderColor": "color-danger-active-border",
Expand All @@ -2505,7 +2600,11 @@
"borderColor": "color-basic-control-transparent-500",
"backgroundColor": "color-basic-control-transparent-300",
"textColor": "text-control-color",
"labelColor": "text-control-color",
"captionColor": "text-control-color",
"placeholderColor": "text-control-color",
"iconTintColor": "text-control-color",
"captionIconTintColor": "text-control-color",
"state": {
"active": {
"borderColor": "color-control-transparent-active-border",
Expand All @@ -2528,25 +2627,25 @@
"borderWidth": "border-width",
"paddingVertical": 3,
"textFontSize": "text-subtitle-2-font-size",
"textFontWeight": "text-subtitle-2-font-weight",
"textFontWeight": "normal",
"textLineHeight": "text-subtitle-2-line-height"
},
"medium": {
"minHeight": "size-medium",
"borderRadius": "border-radius",
"borderWidth": "border-width",
"paddingVertical": 7,
"textFontSize": "text-paragraph-1-font-size",
"textFontWeight": "text-paragraph-1-font-weight",
"textLineHeight": "text-paragraph-1-line-height"
"textFontSize": "text-subtitle-1-font-size",
"textFontWeight": "normal",
"textLineHeight": "text-subtitle-1-line-height"
},
"large": {
"minHeight": "size-large",
"borderRadius": "border-radius",
"borderWidth": "border-width",
"paddingVertical": 11,
"textFontSize": "text-subtitle-1-font-size",
"textFontWeight": "text-subtitle-1-font-weight",
"textFontWeight": "normal",
"textLineHeight": "text-subtitle-1-line-height"
}
}
Expand Down

0 comments on commit 1732174

Please sign in to comment.