From 5ce8355a2a6d02804bb65515512b6d6d9d6da374 Mon Sep 17 00:00:00 2001 From: Randall Morey Date: Wed, 18 Aug 2021 12:09:20 -0400 Subject: [PATCH] =?UTF-8?q?chore:=20=F0=9F=A4=96=20upgrade=20auth=20method?= =?UTF-8?q?=20state=20icons=20to=20flight?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../addon/components/rose/button/index.stories.mdx | 10 +++++----- .../addon/components/rose/dialog/index.stories.mdx | 6 +++--- .../addon/components/rose/header/index.stories.mdx | 2 +- .../rose/addon/components/rose/icon/index.stories.mdx | 4 ++-- .../components/rose/link-button/index.stories.mdx | 6 +++--- addons/rose/public/flight/check-circle-16.svg | 6 ++++++ addons/rose/public/flight/x-circle-16.svg | 6 ++++++ .../scopes/scope/auth-methods/auth-method/-actions.hbs | 4 ++-- 8 files changed, 28 insertions(+), 16 deletions(-) create mode 100644 addons/rose/public/flight/check-circle-16.svg create mode 100644 addons/rose/public/flight/x-circle-16.svg diff --git a/addons/rose/addon/components/rose/button/index.stories.mdx b/addons/rose/addon/components/rose/button/index.stories.mdx index 81cdb5ce2..5e00e39aa 100644 --- a/addons/rose/addon/components/rose/button/index.stories.mdx +++ b/addons/rose/addon/components/rose/button/index.stories.mdx @@ -49,17 +49,17 @@ other routes. For accessibility, use links instead. iconLeft: select( 'iconLeft', { - 'check-circle-outline': 'check-circle-outline', + 'flight/check-circle-16': 'flight/check-circle-16', 'flight/clipboard-copy-16': 'flight/clipboard-copy-16', 'unfold-more': 'unfold-more', 'unfold-less': 'unfold-less', }, - 'check-circle-outline' + 'flight/check-circle-16' ), iconRight: select( 'iconRight', { - 'check-circle-outline': 'check-circle-outline', + 'flight/check-circle-16': 'flight/check-circle-16', 'chevron-right': 'chevron-right', 'flight/clipboard-copy-16': 'flight/clipboard-copy-16', 'unfold-more': 'unfold-more', @@ -86,12 +86,12 @@ button in this case for accessibility. iconOnly: select( 'iconOnly', { - 'check-circle-outline': 'check-circle-outline', + 'flight/check-circle-16': 'flight/check-circle-16', 'flight/clipboard-copy-16': 'flight/clipboard-copy-16', 'unfold-more': 'unfold-more', 'unfold-less': 'unfold-less', }, - 'check-circle-outline' + 'flight/check-circle-16' ), }, }} diff --git a/addons/rose/addon/components/rose/dialog/index.stories.mdx b/addons/rose/addon/components/rose/dialog/index.stories.mdx index 500fe17eb..70a0a1f0e 100644 --- a/addons/rose/addon/components/rose/dialog/index.stories.mdx +++ b/addons/rose/addon/components/rose/dialog/index.stories.mdx @@ -36,12 +36,12 @@ A dialog component with optional modal capabilities. icon: select( 'icon', { - 'check-circle-outline': 'check-circle-outline', + 'flight/check-circle-16': 'flight/check-circle-16', 'flight/clipboard-copy-16': 'flight/clipboard-copy-16', 'unfold-more': 'unfold-more', 'unfold-less': 'unfold-less' }, - 'check-circle-outline' + 'flight/check-circle-16' ), style: select( 'style', @@ -60,7 +60,7 @@ A dialog component with optional modal capabilities. diff --git a/addons/rose/addon/components/rose/header/index.stories.mdx b/addons/rose/addon/components/rose/header/index.stories.mdx index 75eb07d5e..629644e10 100644 --- a/addons/rose/addon/components/rose/header/index.stories.mdx +++ b/addons/rose/addon/components/rose/header/index.stories.mdx @@ -70,7 +70,7 @@ A header component that allows three distinct sections to be configured: brand, 'dropdownIcon', { 'flight/user-circle-16': 'flight/user-circle-16', - 'check-circle-outline': 'check-circle-outline', + 'flight/check-circle-16': 'flight/check-circle-16', 'flight/clipboard-copy-16': 'flight/clipboard-copy-16', 'unfold-more': 'unfold-more', 'unfold-less': 'unfold-less', diff --git a/addons/rose/addon/components/rose/icon/index.stories.mdx b/addons/rose/addon/components/rose/icon/index.stories.mdx index a25fb7997..8027e7352 100644 --- a/addons/rose/addon/components/rose/icon/index.stories.mdx +++ b/addons/rose/addon/components/rose/icon/index.stories.mdx @@ -24,12 +24,12 @@ Renders a simple icon from [Structure Icons][structure-icons]. name: select( 'name', { - 'check-circle-outline': 'check-circle-outline', + 'flight/check-circle-16': 'flight/check-circle-16', 'flight/clipboard-copy-16': 'flight/clipboard-copy-16', 'unfold-more': 'unfold-more', 'unfold-less': 'unfold-less', }, - 'check-circle-outline' + 'flight/check-circle-16' ), } }} diff --git a/addons/rose/addon/components/rose/link-button/index.stories.mdx b/addons/rose/addon/components/rose/link-button/index.stories.mdx index f4e850bf9..94ca8d54d 100644 --- a/addons/rose/addon/components/rose/link-button/index.stories.mdx +++ b/addons/rose/addon/components/rose/link-button/index.stories.mdx @@ -45,7 +45,7 @@ Disabling link button is not supported as it is an action on form components onl iconLeft: select( 'iconLeft', { - 'check-circle-outline': 'check-circle-outline', + 'flight/check-circle-16': 'flight/check-circle-16', 'flight/clipboard-copy-16': 'flight/clipboard-copy-16', 'unfold-more': 'unfold-more', }, @@ -54,7 +54,7 @@ Disabling link button is not supported as it is an action on form components onl iconRight: select( 'iconRight', { - 'check-circle-outline': 'check-circle-outline', + 'flight/check-circle-16': 'flight/check-circle-16', 'chevron-right': 'chevron-right', 'flight/clipboard-copy-16': 'flight/clipboard-copy-16', 'search': 'search', @@ -91,7 +91,7 @@ Similar to `Rose::Button`, icon only link button is supported. iconOnly: select( 'iconOnly', { - 'check-circle-outline': 'check-circle-outline', + 'flight/check-circle-16': 'flight/check-circle-16', 'flight/help-16': 'flight/help-16', 'plus-circle-fill': 'plus-circle-fill', 'user-square-outline': 'user-square-outline', diff --git a/addons/rose/public/flight/check-circle-16.svg b/addons/rose/public/flight/check-circle-16.svg new file mode 100644 index 000000000..4d296da62 --- /dev/null +++ b/addons/rose/public/flight/check-circle-16.svg @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/addons/rose/public/flight/x-circle-16.svg b/addons/rose/public/flight/x-circle-16.svg new file mode 100644 index 000000000..5b0aa3f78 --- /dev/null +++ b/addons/rose/public/flight/x-circle-16.svg @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/ui/admin/app/templates/scopes/scope/auth-methods/auth-method/-actions.hbs b/ui/admin/app/templates/scopes/scope/auth-methods/auth-method/-actions.hbs index 2d6e7d9a9..200cc9912 100644 --- a/ui/admin/app/templates/scopes/scope/auth-methods/auth-method/-actions.hbs +++ b/ui/admin/app/templates/scopes/scope/auth-methods/auth-method/-actions.hbs @@ -3,8 +3,8 @@ @text={{t (concat 'states.' @model.attributes.state)}} @icon={{if @model.isInactive - 'disabled' - (if @model.isPrivate 'lock-closed-outline' 'check-circle-outline') + 'flight/x-circle-16' + (if @model.isPrivate 'flight/lock-16' 'flight/check-circle-16') }} @dropdownRight={{true}} as |dropdown|