From b4f18496369ccf63288b1ccc4f15e14155eba5d1 Mon Sep 17 00:00:00 2001 From: primer-css Date: Wed, 2 Aug 2023 21:03:17 +0000 Subject: [PATCH] Generating static files --- static/arguments.json | 14 ++++---------- static/constants.json | 6 ++++++ static/info_arch.json | 18 ++++++------------ static/previews.json | 4 ++-- 4 files changed, 18 insertions(+), 24 deletions(-) diff --git a/static/arguments.json b/static/arguments.json index 7bea0a318f..0265bc8463 100644 --- a/static/arguments.json +++ b/static/arguments.json @@ -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", @@ -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", diff --git a/static/constants.json b/static/constants.json index 979e460936..05387d4a30 100644 --- a/static/constants.json +++ b/static/constants.json @@ -146,6 +146,7 @@ "Primer::Alpha::AutoComplete::Item": { }, "Primer::Alpha::Banner": { + "DEFAULT_DISMISS_SCHEME": "none", "DEFAULT_ICONS": { "default": "bell", "warning": "alert", @@ -153,6 +154,11 @@ "success": "check-circle" }, "DEFAULT_SCHEME": "default", + "DISMISS_SCHEMES": [ + "none", + "remove", + "hide" + ], "LEGACY_SCHEME_MAPPINGS": { "default": "", "warning": "flash-warn", diff --git a/static/info_arch.json b/static/info_arch.json index 61d58b5ea8..5f7d498673 100644 --- a/static/info_arch.json +++ b/static/info_arch.json @@ -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", @@ -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", @@ -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": [ diff --git a/static/previews.json b/static/previews.json index c9c9e20569..4a0afd4bea 100644 --- a/static/previews.json +++ b/static/previews.json @@ -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": [