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 Aug 2, 2023
1 parent eab82c0 commit b4f1849
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 24 deletions.
14 changes: 4 additions & 10 deletions static/arguments.json
Original file line number Diff line number Diff line change
Expand Up @@ -521,10 +521,10 @@
"description": "Whether the component should take up the full width of the screen when rendered inside smaller viewports."
},
{
"name": "dismissible",
"type": "Boolean",
"default": "`false`",
"description": "Whether the component can be dismissed with an \"x\" button."
"name": "dismiss_scheme",
"type": "Symbol",
"default": "`:none`",
"description": "Whether the component can be dismissed with an \"x\" button. One of `:hide`, `:none`, or `:remove`."
},
{
"name": "description",
Expand All @@ -544,12 +544,6 @@
"default": "`:default`",
"description": "One of `:danger`, `:default`, `:success`, or `:warning`."
},
{
"name": "reappear",
"type": "Boolean",
"default": "`false`",
"description": "Whether or not the flash banner should reappear after being dismissed. Only for use in test and preview environments."
},
{
"name": "system_arguments",
"type": "Hash",
Expand Down
6 changes: 6 additions & 0 deletions static/constants.json
Original file line number Diff line number Diff line change
Expand Up @@ -146,13 +146,19 @@
"Primer::Alpha::AutoComplete::Item": {
},
"Primer::Alpha::Banner": {
"DEFAULT_DISMISS_SCHEME": "none",
"DEFAULT_ICONS": {
"default": "bell",
"warning": "alert",
"danger": "stop",
"success": "check-circle"
},
"DEFAULT_SCHEME": "default",
"DISMISS_SCHEMES": [
"none",
"remove",
"hide"
],
"LEGACY_SCHEME_MAPPINGS": {
"default": "",
"warning": "flash-warn",
Expand Down
18 changes: 6 additions & 12 deletions static/info_arch.json
Original file line number Diff line number Diff line change
Expand Up @@ -2040,10 +2040,10 @@
"description": "Whether the component should take up the full width of the screen when rendered inside smaller viewports."
},
{
"name": "dismissible",
"type": "Boolean",
"default": "`false`",
"description": "Whether the component can be dismissed with an \"x\" button."
"name": "dismiss_scheme",
"type": "Symbol",
"default": "`:none`",
"description": "Whether the component can be dismissed with an \"x\" button. One of `:hide`, `:none`, or `:remove`."
},
{
"name": "description",
Expand All @@ -2063,12 +2063,6 @@
"default": "`:default`",
"description": "One of `:danger`, `:default`, `:success`, or `:warning`."
},
{
"name": "reappear",
"type": "Boolean",
"default": "`false`",
"description": "Whether or not the flash banner should reappear after being dismissed. Only for use in test and preview environments."
},
{
"name": "system_arguments",
"type": "Hash",
Expand Down Expand Up @@ -2168,8 +2162,8 @@
}
},
{
"preview_path": "primer/alpha/banner/dismissable",
"name": "dismissable",
"preview_path": "primer/alpha/banner/dismissible",
"name": "dismissible",
"snapshot": "true",
"skip_rules": {
"wont_fix": [
Expand Down
4 changes: 2 additions & 2 deletions static/previews.json
Original file line number Diff line number Diff line change
Expand Up @@ -1414,8 +1414,8 @@
}
},
{
"preview_path": "primer/alpha/banner/dismissable",
"name": "dismissable",
"preview_path": "primer/alpha/banner/dismissible",
"name": "dismissible",
"snapshot": "true",
"skip_rules": {
"wont_fix": [
Expand Down

0 comments on commit b4f1849

Please sign in to comment.