From c57f04b86b95de726bcf1b8c18381118f4b585d8 Mon Sep 17 00:00:00 2001 From: Alex Skrypnyk Date: Sun, 23 Jun 2024 22:18:55 +1000 Subject: [PATCH] Updated Storybook config. --- web/themes/contrib/civictheme/.storybook/main.js | 2 +- .../contrib/civictheme/.storybook/preview.js | 15 +++++++++++++-- .../civictheme_starter_kit/.storybook/main.js | 2 +- .../civictheme_starter_kit/.storybook/preview.js | 15 +++++++++++++-- web/themes/contrib/civictheme/package-lock.json | 4 ++-- 5 files changed, 30 insertions(+), 8 deletions(-) diff --git a/web/themes/contrib/civictheme/.storybook/main.js b/web/themes/contrib/civictheme/.storybook/main.js index 706110e441..aa8c0ddff2 100644 --- a/web/themes/contrib/civictheme/.storybook/main.js +++ b/web/themes/contrib/civictheme/.storybook/main.js @@ -43,7 +43,7 @@ module.exports = { customPlugin, ]; // Special case: override whatever loader is used to load styles with a - // style-loader in oder to have styles injected during the runtime. + // style-loader in order to have styles injected during the runtime. custom.module.rules[1].use[0] = 'style-loader'; // Override assets location for Storybook. diff --git a/web/themes/contrib/civictheme/.storybook/preview.js b/web/themes/contrib/civictheme/.storybook/preview.js index 715a56d068..963867a5fc 100644 --- a/web/themes/contrib/civictheme/.storybook/preview.js +++ b/web/themes/contrib/civictheme/.storybook/preview.js @@ -44,13 +44,24 @@ const storyOrder = [ '*', 'Atoms', [ - '*', + 'Chip', + 'Content Link', + 'Heading', + 'Iframe', + 'Image', 'Form Controls', ], '*', 'Molecules', [ - '*', + 'Accordion', + 'Attachment', + 'Back To Top', + 'Basic Content', + 'Breadcrumb', + 'Callout', + 'Field', + 'Figure', 'List', [ 'Single Filter', diff --git a/web/themes/contrib/civictheme/civictheme_starter_kit/.storybook/main.js b/web/themes/contrib/civictheme/civictheme_starter_kit/.storybook/main.js index 58ce8ddd94..62a1be8bf2 100644 --- a/web/themes/contrib/civictheme/civictheme_starter_kit/.storybook/main.js +++ b/web/themes/contrib/civictheme/civictheme_starter_kit/.storybook/main.js @@ -43,7 +43,7 @@ module.exports = { customPlugin, ]; // Special case: override whatever loader is used to load styles with a - // style-loader in oder to have styles injected during the runtime. + // style-loader in order to have styles injected during the runtime. custom.module.rules[1].use[0] = 'style-loader'; // Override assets location for Storybook. diff --git a/web/themes/contrib/civictheme/civictheme_starter_kit/.storybook/preview.js b/web/themes/contrib/civictheme/civictheme_starter_kit/.storybook/preview.js index 5f85b23473..f375d75e87 100644 --- a/web/themes/contrib/civictheme/civictheme_starter_kit/.storybook/preview.js +++ b/web/themes/contrib/civictheme/civictheme_starter_kit/.storybook/preview.js @@ -44,13 +44,24 @@ const storyOrder = [ '*', 'Atoms', [ - '*', + 'Chip', + 'Content Link', + 'Heading', + 'Iframe', + 'Image', 'Form Controls', ], '*', 'Molecules', [ - '*', + 'Accordion', + 'Attachment', + 'Back To Top', + 'Basic Content', + 'Breadcrumb', + 'Callout', + 'Field', + 'Figure', 'List', [ 'Single Filter', diff --git a/web/themes/contrib/civictheme/package-lock.json b/web/themes/contrib/civictheme/package-lock.json index 3036b84a9e..3644877de2 100644 --- a/web/themes/contrib/civictheme/package-lock.json +++ b/web/themes/contrib/civictheme/package-lock.json @@ -2296,7 +2296,7 @@ }, "node_modules/@civictheme/uikit": { "version": "1.7.6", - "resolved": "git+ssh://git@github.com/civictheme/uikit.git#4771e803929d79de3909b13986ccb19a26557629", + "resolved": "git+ssh://git@github.com/civictheme/uikit.git#cff4389bd92488beb7f61d3abc12e18d697df7a7", "hasInstallScript": true, "license": "GPL-2.0-or-later", "dependencies": { @@ -32367,7 +32367,7 @@ "dev": true }, "@civictheme/uikit": { - "version": "git+ssh://git@github.com/civictheme/uikit.git#4771e803929d79de3909b13986ccb19a26557629", + "version": "git+ssh://git@github.com/civictheme/uikit.git#cff4389bd92488beb7f61d3abc12e18d697df7a7", "from": "@civictheme/uikit@civictheme/uikit.git#main", "requires": { "@popperjs/core": "^2.11.8",