From bcc148556fc130bd0dea5a6f00977ef356b1e21f Mon Sep 17 00:00:00 2001 From: Andrei Prigorshnev Date: Tue, 18 Jan 2022 14:52:48 +0100 Subject: [PATCH] DEV: add empty state placeholder to styleguide (#15617) --- .../templates/styleguide/molecules/empty-state.hbs | 6 ++++++ plugins/styleguide/config/locales/client.en.yml | 2 ++ 2 files changed, 8 insertions(+) create mode 100644 plugins/styleguide/assets/javascripts/discourse/templates/styleguide/molecules/empty-state.hbs diff --git a/plugins/styleguide/assets/javascripts/discourse/templates/styleguide/molecules/empty-state.hbs b/plugins/styleguide/assets/javascripts/discourse/templates/styleguide/molecules/empty-state.hbs new file mode 100644 index 00000000000..188de8b4c20 --- /dev/null +++ b/plugins/styleguide/assets/javascripts/discourse/templates/styleguide/molecules/empty-state.hbs @@ -0,0 +1,6 @@ +{{#styleguide-example title="empty-state"}} + {{empty-state + title=dummy.sentence + body=dummy.short_sentence + }} +{{/styleguide-example}} diff --git a/plugins/styleguide/config/locales/client.en.yml b/plugins/styleguide/config/locales/client.en.yml index c806d5669d0..2578ff9a2f7 100644 --- a/plugins/styleguide/config/locales/client.en.yml +++ b/plugins/styleguide/config/locales/client.en.yml @@ -81,3 +81,5 @@ en: title: "Header Icons" spinners: title: "Spinners" + empty_state: + title: "Empty State"