feat(storybook): progress on many more pages
This commit is contained in:
parent
dbe320b2fc
commit
1e1a638011
30 changed files with 1061 additions and 300 deletions
79
src/keycloak-theme/pages/RegisterUserProfile.stories.tsx
Normal file
79
src/keycloak-theme/pages/RegisterUserProfile.stories.tsx
Normal file
|
|
@ -0,0 +1,79 @@
|
|||
import {ComponentMeta} from '@storybook/react';
|
||||
import KcApp from '../KcApp';
|
||||
import {template} from '../../../.storybook/util'
|
||||
|
||||
const bind = template('register-user-profile.ftl')
|
||||
|
||||
export default {
|
||||
kind: 'Page',
|
||||
title: 'Theme/Pages/Register User Profile',
|
||||
component: KcApp,
|
||||
parameters: {layout: 'fullscreen'},
|
||||
} as ComponentMeta<typeof KcApp>;
|
||||
|
||||
export const Default = bind({})
|
||||
|
||||
export const WithFieldError = bind({
|
||||
profile: {
|
||||
attributes: [
|
||||
{
|
||||
name: "email",
|
||||
value: "max.mustermann@mail.com",
|
||||
}
|
||||
]
|
||||
}
|
||||
})
|
||||
|
||||
export const WithPresets = bind({
|
||||
profile: {
|
||||
attributes: [
|
||||
{
|
||||
name: "username",
|
||||
value: "max.mustermann"
|
||||
},
|
||||
{
|
||||
name: "email",
|
||||
value: "max.mustermann@gmail.com",
|
||||
},
|
||||
{
|
||||
name: "firstName",
|
||||
required: false,
|
||||
value: "Max"
|
||||
},
|
||||
{
|
||||
name: "lastName",
|
||||
required: false,
|
||||
value: "Mustermann"
|
||||
}
|
||||
]
|
||||
}
|
||||
})
|
||||
|
||||
export const WithImmutablePresets = bind({
|
||||
profile: {
|
||||
attributes: [
|
||||
{
|
||||
name: "username",
|
||||
value: "max.mustermann",
|
||||
readOnly: true,
|
||||
},
|
||||
{
|
||||
name: "email",
|
||||
value: "max.mustermann@gmail.com",
|
||||
readOnly: true,
|
||||
},
|
||||
{
|
||||
name: "firstName",
|
||||
required: true,
|
||||
value: "Max",
|
||||
readOnly: true,
|
||||
},
|
||||
{
|
||||
name: "lastName",
|
||||
required: true,
|
||||
value: "Mustermann",
|
||||
readOnly: true,
|
||||
}
|
||||
]
|
||||
}
|
||||
})
|
||||
Loading…
Add table
Add a link
Reference in a new issue