mirror of
https://github.com/pebble-dev/clay.git
synced 2026-08-28 04:46:57 -04:00
138 lines
3.4 KiB
JavaScript
138 lines
3.4 KiB
JavaScript
'use strict';
|
|
/* eslint-disable quotes */
|
|
|
|
module.exports = [
|
|
{
|
|
"type": "heading",
|
|
"id": "main-heading",
|
|
"defaultValue": "Clay Test Page",
|
|
"size": 1
|
|
},
|
|
{
|
|
"type": "text",
|
|
"defaultValue": "Some arbitrary text explaining how this all works. " +
|
|
"It's cool if this wraps across multiple lines"
|
|
},
|
|
{
|
|
"type": "section",
|
|
"items": [
|
|
{
|
|
"type": "heading",
|
|
"defaultValue": "This is a section"
|
|
},
|
|
{
|
|
"type": "input",
|
|
"appKey": "email",
|
|
"defaultValue": "",
|
|
"label": "Input Field",
|
|
"description": "This is a description for the input component. " +
|
|
"You can add <strong>html</strong> in here too.",
|
|
"attributes": {
|
|
"placeholder": "Placeholder set with attributes"
|
|
}
|
|
},
|
|
{
|
|
"type": "input",
|
|
"label": "Time Field",
|
|
"attributes": {
|
|
"type": "time"
|
|
}
|
|
},
|
|
{
|
|
"type": "input",
|
|
"label": "Date Field",
|
|
"attributes": {
|
|
"type": "date"
|
|
}
|
|
},
|
|
{
|
|
"type": "slider",
|
|
"appKey": "slider",
|
|
"defaultValue": 15,
|
|
"label": "Slider",
|
|
"description": "This is the description for the slider",
|
|
"min": 10,
|
|
"max": 20,
|
|
"step": 0.25
|
|
},
|
|
{
|
|
"type": "toggle",
|
|
"appKey": "cool_stuff",
|
|
"label": "This is a Toggle",
|
|
"defaultValue": false
|
|
},
|
|
{
|
|
"type": "color",
|
|
"appKey": "colorTest",
|
|
"defaultValue": "FF0000",
|
|
"label": "Standard Color Picker",
|
|
"sunlight": false
|
|
},
|
|
{
|
|
"type": "color",
|
|
"appKey": "sunnyColorTest",
|
|
"defaultValue": "00FF00",
|
|
"label": "Sunny Color Picker",
|
|
"sunlight": true
|
|
},
|
|
{
|
|
type: 'button',
|
|
id: 'testButton',
|
|
primary: false,
|
|
defaultValue: 'Generic Button',
|
|
description: 'This is a generic button. ' +
|
|
'You can listen for standard events like "click"'
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "section",
|
|
"items": [
|
|
{
|
|
"type": "heading",
|
|
"defaultValue": "More Settings"
|
|
},
|
|
{
|
|
"type": "radiogroup",
|
|
"appKey": "radiogroup-test",
|
|
"label": "Radio Group",
|
|
"options": [
|
|
{ "label": "Test thing", "value": "one" },
|
|
{ "label": "Another thing", "value": "two" },
|
|
{ "label": "Final thing with <em>html</em>", "value": "three" }
|
|
]
|
|
},
|
|
{
|
|
"type": "checkboxgroup",
|
|
"appKey": "checkboxgroup-test",
|
|
"defaultValue": ["quote' \"test", "two"],
|
|
"label": "Checkbox Group",
|
|
"options": [
|
|
{ "label": "First thing", "value": "three" },
|
|
{ "label": "Another thing", "value": "two" },
|
|
{ "label": "Final thing", "value": "three" }
|
|
]
|
|
},
|
|
{
|
|
"type": "select",
|
|
"appKey": "flavor",
|
|
"defaultValue": "grape",
|
|
"label": "Select Menu",
|
|
"options": [
|
|
{ "label": "", "value": "" },
|
|
{ "label": "Berry", "value": "berry" },
|
|
{ "label": "This Option is Selected", "value": "grape" },
|
|
{ "label": "Banana", "value": "banana" }
|
|
],
|
|
"attributes": {
|
|
"required": "required"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "submit",
|
|
"defaultValue": "Save"
|
|
}
|
|
];
|