From 6a7a34ef0aa9ac43bbbe07947d7b7111cbe22601 Mon Sep 17 00:00:00 2001 From: Prasanta Kumar Dutta <7580745+pkd2512@users.noreply.github.com> Date: Mon, 18 Sep 2023 17:42:42 +0530 Subject: [PATCH] themed infobox --- .eslintrc.cjs | 4 ++-- src/components/InfoBox/InfoBox.stories.svelte | 4 ++++ src/components/InfoBox/InfoBox.svelte | 23 +++++++++++++++++-- .../InfoBox/stories/docs/component.md | 2 ++ 4 files changed, 29 insertions(+), 4 deletions(-) diff --git a/.eslintrc.cjs b/.eslintrc.cjs index 70183d00..df4b3e2b 100644 --- a/.eslintrc.cjs +++ b/.eslintrc.cjs @@ -16,7 +16,7 @@ module.exports = { es2022: true, }, rules: { - indent: ['error', 2, { 'SwitchCase': 1 }], + indent: ['error', 2, { SwitchCase: 1 }], semi: ['error', 'always'], 'comma-dangle': [ 'error', @@ -36,7 +36,7 @@ module.exports = { files: ['*.svelte'], parser: 'svelte-eslint-parser', parserOptions: { - parser: '@typescript-eslint/parser' + parser: '@typescript-eslint/parser', }, rules: { 'no-multiple-empty-lines': ['error', { max: 2, maxBOF: 2 }], diff --git a/src/components/InfoBox/InfoBox.stories.svelte b/src/components/InfoBox/InfoBox.stories.svelte index e30faf99..7c8688d4 100644 --- a/src/components/InfoBox/InfoBox.stories.svelte +++ b/src/components/InfoBox/InfoBox.stories.svelte @@ -11,6 +11,10 @@ const metaProps = { ...withComponentDocs(componentDocs), argTypes: { + theme: { + control: 'select', + options: ['light', 'dark'], + }, width: { control: 'select', options: ['normal', 'wide', 'wider', 'widest', 'fluid'], diff --git a/src/components/InfoBox/InfoBox.svelte b/src/components/InfoBox/InfoBox.svelte index b811dbcd..ed6eb570 100644 --- a/src/components/InfoBox/InfoBox.svelte +++ b/src/components/InfoBox/InfoBox.svelte @@ -1,6 +1,10 @@ -