Skip to content

Commit

Permalink
Added introduction,Shko Online logo & upgrade storybook
Browse files Browse the repository at this point in the history
  • Loading branch information
asllanmakaj7 committed Jan 3, 2024
1 parent 614b2f1 commit db74f01
Show file tree
Hide file tree
Showing 10 changed files with 2,714 additions and 2,458 deletions.
1 change: 1 addition & 0 deletions .storybook/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ const config = {
docs: {
autodocs: 'tag',
},
staticDirs: ['./public'],
webpackFinal: async config => {
config.devtool = false;
config.resolve.fallback = config.resolve.fallback || {};
Expand Down
13 changes: 13 additions & 0 deletions .storybook/manager.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import { AddonStore, addons } from '@storybook/addons';

type Addon_Config<T extends AddonStore['setConfig']> = T extends (value: infer K) => void ? K : never;
type ThemeVars = Addon_Config<AddonStore['setConfig']>['theme'];

addons.setConfig({
theme: {
brandTitle: "AlbanianXrm's StyledSwitch",
brandUrl: 'https://github.com/albanian-xrm/PCF.StyledSwitch',
brandImage: './Shko Online 92x32.svg',
} as ThemeVars,
showRoots: false,
});
5 changes: 5 additions & 0 deletions .storybook/preview.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@
/** @type { import('@storybook/html').Preview } */
const preview = {
parameters: {
options: {
storySort: {
order: ['AlbanianXrm\'s StyledSwitch', ['Introduction', '*']],
},
},
actions: { argTypesRegex: '^on[A-Z].*' },
controls: {
matchers: {
Expand Down
106 changes: 106 additions & 0 deletions .storybook/public/Shko Online 92x32.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .storybook/public/favicon.ico
Binary file not shown.
Loading

0 comments on commit db74f01

Please sign in to comment.