Skip to content

Update progressbar api.json #3593

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
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
159 changes: 154 additions & 5 deletions src/components/progressBar/progressBar.api.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,27 @@
"description": "Progress bar",
"example": "https://github.com/wix/react-native-ui-lib/blob/master/demo/src/screens/componentScreens/ProgressBarScreen.tsx",
"props": [
{"name": "progress", "type": "number", "description": "The progress of the bar from 0 to 100", "default": "0"},
{"name": "fullWidth", "type": "boolean", "description": "FullWidth Ui preset"},
{"name": "style", "type": "ViewStyle", "description": "Override container style"},
{"name": "progressColor", "type": "string", "description": "Progress color"},
{
"name": "progress",
"type": "number",
"description": "The progress of the bar from 0 to 100",
"default": "0"
},
{
"name": "fullWidth",
"type": "boolean",
"description": "FullWidth Ui preset"
},
{
"name": "style",
"type": "ViewStyle",
"description": "Override container style"
},
{
"name": "progressColor",
"type": "string",
"description": "Progress color"
},
{
"name": "customElement",
"type": "JSX.Element",
Expand All @@ -16,5 +33,137 @@
],
"snippet": [
"<ProgressBar progress={55$1} progressColor={Colors.red30$2}/>"
]
],
"docs": {
"hero": {
"title": "ProgressBar",
"description": "ProgressBar is a linear progress indicators, that express the length of a process. It should be used when the process completion rate can be detected. As the completion rate increases, the track fills from 0 to 100%. The ProgressBar can be accompanied by a textual representation of the progress in a percent format.",
"type": "hero",
"layout": "horizontal",
"content": [
{
"value": "https://wixmp-1d257fba8470f1b562a0f5f2.wixmp.com/mads-docs-assets/assets/Components%20Docs/ProgressBar/progressBar_cover.png"
}
]
},
"tabs": [
{
"title": "Overview",
"sections": [
{
"type": "list",
"items": [
{
"title": "Inline (Default)",
"description": "Inline Progress Bar attached to a container, such as a card, can indicate the process applies to that particular item.",
"content": [
{
"value": "https://wixmp-1d257fba8470f1b562a0f5f2.wixmp.com/mads-docs-assets/assets/Components%20Docs/ProgressBar/progressBar_usage_inline.png"
}
]
},
{
"title": "Full Width",
"description": "Indicates progress with the screen’s content.",
"content": [
{
"value": "https://wixmp-1d257fba8470f1b562a0f5f2.wixmp.com/mads-docs-assets/assets/Components%20Docs/ProgressBar/progressBar_usage_fullWidth.png"
}
]
},
{
"title": "Animated",
"description": "In cases where the progress will take about a minute to complete, use an animated progress bar with a stripes pattern ",
"content": [
{
"value": "https://wixmp-1d257fba8470f1b562a0f5f2.wixmp.com/mads-docs-assets/assets/Components%20Docs/ProgressBar/progressBar_usage_animated.png"
}
]
}
],
"layout": "horizontal",
"title": "Usage Examples"
},
{
"type": "table",
"columns": [
"Property",
"Preview"
],
"items": [
{
"title": "Default",
"content": [
{
"value": "https://wixmp-1d257fba8470f1b562a0f5f2.wixmp.com/mads-docs-assets/assets/Components%20Docs/ProgressBar/progressBar_default.png"
}
]
},
{
"title": "AnimatedStripes",
"content": [
{
"value": "https://wixmp-1d257fba8470f1b562a0f5f2.wixmp.com/mads-docs-assets/assets/Components%20Docs/ProgressBar/progressBar_AnimatedStripes.png"
}
]
}
],
"title": "Types"
},
{
"type": "table",
"columns": [
"Property",
"Preview"
],
"items": [
{
"title": "Inline (default)",
"content": [
{
"value": "https://wixmp-1d257fba8470f1b562a0f5f2.wixmp.com/mads-docs-assets/assets/Components%20Docs/ProgressBar/progressBar_default.png"
}
]
},
{
"title": "FullWidth",
"content": [
{
"value": "https://wixmp-1d257fba8470f1b562a0f5f2.wixmp.com/mads-docs-assets/assets/Components%20Docs/ProgressBar/progressBar_fullWidth.png"
}
]
}
],
"title": "Size"
},
{
"type": "section"
},
{
"type": "list",
"items": [
{
"title": "Phone spec",
"content": [
{
"value": "https://wixmp-1d257fba8470f1b562a0f5f2.wixmp.com/mads-docs-assets/assets/Components%20Docs/ProgressBar/progressBar_spec_phone.png"
}
]
},
{
"title": "Tablet spec",
"content": [
{
"value": "https://wixmp-1d257fba8470f1b562a0f5f2.wixmp.com/mads-docs-assets/assets/Components%20Docs/ProgressBar/progressBar_spec_tablet.png"
}
]
}
],
"title": "Spec",
"layout": "horizontal"
}
]
}
]
}
}