From 16c6ef0e114bbb7578cc5e5bdc09fa8a3fffcebd Mon Sep 17 00:00:00 2001 From: Sivin Varghese <64252451+iamsivin@users.noreply.github.com> Date: Sat, 12 Oct 2024 03:41:16 +0530 Subject: [PATCH] feat: Add the update design for the button component (#10257) Co-authored-by: Pranav --- .eslintrc.js | 19 ++- .../components-next/button/Button.story.vue | 126 +++++++++++++++++ .../components-next/button/Button.vue | 130 ++++++++++++++++++ 3 files changed, 269 insertions(+), 6 deletions(-) create mode 100644 app/javascript/dashboard/components-next/button/Button.story.vue create mode 100644 app/javascript/dashboard/components-next/button/Button.vue diff --git a/.eslintrc.js b/.eslintrc.js index a229133a2..b5ce81664 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -12,6 +12,19 @@ module.exports = { 'vitest-globals/env': true, }, }, + { + files: ['**/*.story.vue'], + rules: { + 'vue/no-undef-components': [ + 'error', + { + ignorePatterns: ['Variant', 'Story'], + }, + ], + // Story files can have static strings, it doesn't need to handle i18n always. + 'vue/no-bare-strings-in-template': 'off', + }, + }, ], plugins: ['html', 'prettier'], parserOptions: { @@ -223,11 +236,5 @@ module.exports = { globals: { bus: true, vi: true, - // beforeEach: true, - // afterEach: true, - // test: true, - // describe: true, - // it: true, - // expect: true, }, }; diff --git a/app/javascript/dashboard/components-next/button/Button.story.vue b/app/javascript/dashboard/components-next/button/Button.story.vue new file mode 100644 index 000000000..f25ceda0a --- /dev/null +++ b/app/javascript/dashboard/components-next/button/Button.story.vue @@ -0,0 +1,126 @@ + + + diff --git a/app/javascript/dashboard/components-next/button/Button.vue b/app/javascript/dashboard/components-next/button/Button.vue new file mode 100644 index 000000000..5f7e8d6c7 --- /dev/null +++ b/app/javascript/dashboard/components-next/button/Button.vue @@ -0,0 +1,130 @@ + + +