Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
maf-gateway-revamp
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Arunachalam P
maf-gateway-revamp
Commits
068388c8
Commit
068388c8
authored
Mar 26, 2026
by
krds-arun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore(storybook): normalize quotes and formatting
parent
1b90df82
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
32 additions
and
34 deletions
+32
-34
main.ts
.storybook/main.ts
+8
-8
preview.ts
.storybook/preview.ts
+24
-26
No files found.
.storybook/main.ts
View file @
068388c8
import
type
{
StorybookConfig
}
from
'@storybook/nextjs-vite'
;
import
type
{
StorybookConfig
}
from
"@storybook/nextjs-vite"
;
const
config
:
StorybookConfig
=
{
const
config
:
StorybookConfig
=
{
stories
:
[
'../components/**/*.stories.@(ts|tsx)'
],
stories
:
[
"../components/**/*.stories.@(ts|tsx)"
],
addons
:
[
addons
:
[
'@chromatic-com/storybook'
,
"@chromatic-com/storybook"
,
'@storybook/addon-vitest'
,
"@storybook/addon-vitest"
,
'@storybook/addon-a11y'
,
"@storybook/addon-a11y"
,
'@storybook/addon-docs'
,
"@storybook/addon-docs"
,
],
],
framework
:
'@storybook/nextjs-vite'
,
framework
:
"@storybook/nextjs-vite"
,
staticDirs
:
[
'../public'
],
staticDirs
:
[
"../public"
],
};
};
export
default
config
;
export
default
config
;
.storybook/preview.ts
View file @
068388c8
import
React
from
'react'
import
type
{
Preview
}
from
"@storybook/nextjs-vite"
;
import
React
from
"react"
;
import
type
{
Preview
}
from
'@storybook/nextjs-vite'
import
"../../maf-uis/maf-ui/css/main.css"
;
import
'../../maf-uis/maf-ui/css/main.css'
const
decorators
:
Preview
[
"decorators"
]
=
[
const
decorators
:
Preview
[
'decorators'
]
=
[
(
Story
)
=>
{
(
Story
)
=>
{
// The MAF theme CSS assumes a fixed header + bottom nav. In Storybook we render only the
// The MAF theme CSS assumes a fixed header + bottom nav. In Storybook we render only the
// form canvas, so we remove that extra body padding for correct visual alignment.
// form canvas, so we remove that extra body padding for correct visual alignment.
if
(
typeof
document
!==
'undefined'
)
{
if
(
typeof
document
!==
"undefined"
)
{
document
.
body
.
style
.
paddingTop
=
'0px'
document
.
body
.
style
.
paddingTop
=
"0px"
;
document
.
body
.
style
.
paddingBottom
=
'0px'
document
.
body
.
style
.
paddingBottom
=
"0px"
;
}
}
return
React
.
createElement
(
return
React
.
createElement
(
'div'
,
"div"
,
{
{
style
:
{
style
:
{
minHeight
:
'100vh'
,
minHeight
:
"100vh"
,
background
:
'var(--ink)'
,
background
:
"var(--ink)"
,
padding
:
'24px'
,
padding
:
"24px"
,
},
},
},
},
React
.
createElement
(
Story
)
React
.
createElement
(
Story
)
,
)
)
;
},
},
]
]
;
const
preview
:
Preview
=
{
const
preview
:
Preview
=
{
decorators
,
decorators
,
parameters
:
{
parameters
:
{
backgrounds
:
{
backgrounds
:
{
default
:
'dark'
,
default
:
"dark"
,
values
:
[
values
:
[
{
{
name
:
'dark'
,
name
:
"dark"
,
value
:
'#0a0a0c'
,
value
:
"#0a0a0c"
,
},
},
{
{
name
:
'light'
,
name
:
"light"
,
value
:
'#f8f9fa'
,
value
:
"#f8f9fa"
,
},
},
],
],
},
},
controls
:
{
controls
:
{
matchers
:
{
matchers
:
{
color
:
/
(
background|color
)
$/i
,
color
:
/
(
background|color
)
$/i
,
date
:
/Date$/i
,
date
:
/Date$/i
,
},
},
},
},
...
@@ -54,9 +53,9 @@ const preview: Preview = {
...
@@ -54,9 +53,9 @@ const preview: Preview = {
// 'todo' - show a11y violations in the test UI only
// 'todo' - show a11y violations in the test UI only
// 'error' - fail CI on a11y violations
// 'error' - fail CI on a11y violations
// 'off' - skip a11y checks entirely
// 'off' - skip a11y checks entirely
test
:
'todo'
test
:
"todo"
,
}
}
,
},
},
};
};
export
default
preview
;
export
default
preview
;
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment