Skip to content

Commit

Permalink
Generating static files
Browse files Browse the repository at this point in the history
  • Loading branch information
primer-css committed Sep 14, 2023
1 parent 3f7e619 commit efb6d94
Show file tree
Hide file tree
Showing 3 changed files with 100 additions and 0 deletions.
24 changes: 24 additions & 0 deletions static/arguments.json
Original file line number Diff line number Diff line change
Expand Up @@ -772,6 +772,18 @@
"default": "N/A",
"description": "A string describing the field and what sorts of input it expects. Displayed below the group."
},
{
"name": "invalid",
"type": "Boolean",
"default": "N/A",
"description": "If set to `true`, the input will be marked as invalid. Implied if `validation_message` is truthy. This option is set to `true` automatically if the model object associated with the form reports that the input is invalid via Rails validations. It is provided for cases where the form does not have an associated model. If the input is invalid as determined by Rails validations, setting `invalid` to `false` will have no effect."
},
{
"name": "validation_message",
"type": "String",
"default": "N/A",
"description": "A string displayed between the caption and the input indicating the input's contents are invalid. This option is, by default, set to the first Rails validation message for the input (assuming the form is associated with a model object). Use `validation_message` to override the default or to provide a validation message in case there is no associated model object."
},
{
"name": "label_arguments",
"type": "Hash",
Expand Down Expand Up @@ -1966,6 +1978,18 @@
"default": "N/A",
"description": "A string describing the field and what sorts of input it expects. Displayed below the group."
},
{
"name": "invalid",
"type": "Boolean",
"default": "N/A",
"description": "If set to `true`, the input will be marked as invalid. Implied if `validation_message` is truthy. This option is set to `true` automatically if the model object associated with the form reports that the input is invalid via Rails validations. It is provided for cases where the form does not have an associated model. If the input is invalid as determined by Rails validations, setting `invalid` to `false` will have no effect."
},
{
"name": "validation_message",
"type": "String",
"default": "N/A",
"description": "A string displayed between the caption and the input indicating the input's contents are invalid. This option is, by default, set to the first Rails validation message for the input (assuming the form is associated with a model object). Use `validation_message` to override the default or to provide a validation message in case there is no associated model object."
},
{
"name": "label_arguments",
"type": "Hash",
Expand Down
50 changes: 50 additions & 0 deletions static/info_arch.json
Original file line number Diff line number Diff line change
Expand Up @@ -2686,6 +2686,18 @@
"default": "N/A",
"description": "A string describing the field and what sorts of input it expects. Displayed below the group."
},
{
"name": "invalid",
"type": "Boolean",
"default": "N/A",
"description": "If set to `true`, the input will be marked as invalid. Implied if `validation_message` is truthy. This option is set to `true` automatically if the model object associated with the form reports that the input is invalid via Rails validations. It is provided for cases where the form does not have an associated model. If the input is invalid as determined by Rails validations, setting `invalid` to `false` will have no effect."
},
{
"name": "validation_message",
"type": "String",
"default": "N/A",
"description": "A string displayed between the caption and the input indicating the input's contents are invalid. This option is, by default, set to the first Rails validation message for the input (assuming the form is associated with a model object). Use `validation_message` to override the default or to provide a validation message in case there is no associated model object."
},
{
"name": "label_arguments",
"type": "Hash",
Expand Down Expand Up @@ -2743,6 +2755,19 @@
]
}
},
{
"preview_path": "primer/alpha/check_box_group/invalid",
"name": "invalid",
"snapshot": "false",
"skip_rules": {
"wont_fix": [
"region"
],
"will_fix": [
"color-contrast"
]
}
},
{
"preview_path": "primer/alpha/check_box_group/with_caption",
"name": "with_caption",
Expand Down Expand Up @@ -6341,6 +6366,18 @@
"default": "N/A",
"description": "A string describing the field and what sorts of input it expects. Displayed below the group."
},
{
"name": "invalid",
"type": "Boolean",
"default": "N/A",
"description": "If set to `true`, the input will be marked as invalid. Implied if `validation_message` is truthy. This option is set to `true` automatically if the model object associated with the form reports that the input is invalid via Rails validations. It is provided for cases where the form does not have an associated model. If the input is invalid as determined by Rails validations, setting `invalid` to `false` will have no effect."
},
{
"name": "validation_message",
"type": "String",
"default": "N/A",
"description": "A string displayed between the caption and the input indicating the input's contents are invalid. This option is, by default, set to the first Rails validation message for the input (assuming the form is associated with a model object). Use `validation_message` to override the default or to provide a validation message in case there is no associated model object."
},
{
"name": "label_arguments",
"type": "Hash",
Expand Down Expand Up @@ -6398,6 +6435,19 @@
]
}
},
{
"preview_path": "primer/alpha/radio_button_group/invalid",
"name": "invalid",
"snapshot": "true",
"skip_rules": {
"wont_fix": [
"region"
],
"will_fix": [
"color-contrast"
]
}
},
{
"preview_path": "primer/alpha/radio_button_group/with_caption",
"name": "with_caption",
Expand Down
26 changes: 26 additions & 0 deletions static/previews.json
Original file line number Diff line number Diff line change
Expand Up @@ -2403,6 +2403,19 @@
]
}
},
{
"preview_path": "primer/alpha/check_box_group/invalid",
"name": "invalid",
"snapshot": "false",
"skip_rules": {
"wont_fix": [
"region"
],
"will_fix": [
"color-contrast"
]
}
},
{
"preview_path": "primer/alpha/check_box_group/with_caption",
"name": "with_caption",
Expand Down Expand Up @@ -4735,6 +4748,19 @@
]
}
},
{
"preview_path": "primer/alpha/radio_button_group/invalid",
"name": "invalid",
"snapshot": "true",
"skip_rules": {
"wont_fix": [
"region"
],
"will_fix": [
"color-contrast"
]
}
},
{
"preview_path": "primer/alpha/radio_button_group/with_caption",
"name": "with_caption",
Expand Down

0 comments on commit efb6d94

Please sign in to comment.