mirror of
https://github.com/johndoe6345789/metabuilder.git
synced 2026-04-24 13:54:57 +00:00
- Created contact-form.json defining the structure and validation for the contact form. - Added package.json for form_builder package with dependencies and exports. - Implemented functions.json for form field handlers and validation functions. - Configured storybook for form_builder with various form field stories. - Established style tokens for form fields including colors and spacing. - Defined validation patterns and functions for form fields in validators.json. feat(notification_center): introduce notification components and event handling - Added ui.json for notification components including summary, toast, and list. - Created schema.json for Notification entity with fields and relations. - Implemented event handlers for notification events in handlers.json. - Established package.json for notification_center with components and scripts. - Developed functions.json for notification management and display functions. - Configured storybook for notification_center with various notification stories. - Defined style tokens for notifications including colors and spacing.
62 lines
1.4 KiB
JSON
62 lines
1.4 KiB
JSON
{
|
|
"$schema": "https://metabuilder.dev/schemas/package-storybook.schema.json",
|
|
"featured": false,
|
|
"title": "Form Builder",
|
|
"description": "Reusable form fields with built-in validation",
|
|
"stories": [
|
|
{
|
|
"name": "FormFields",
|
|
"render": "fields",
|
|
"description": "Various form field types with validation",
|
|
"type": "component"
|
|
},
|
|
{
|
|
"name": "ContactForm",
|
|
"render": "contact_form",
|
|
"description": "Complete contact form example",
|
|
"type": "component"
|
|
},
|
|
{
|
|
"name": "EmailField",
|
|
"render": "fields",
|
|
"description": "Email input with validation"
|
|
},
|
|
{
|
|
"name": "PasswordField",
|
|
"render": "fields",
|
|
"description": "Password field with show/hide toggle"
|
|
},
|
|
{
|
|
"name": "SearchBar",
|
|
"render": "fields",
|
|
"description": "Search input with clear button"
|
|
}
|
|
],
|
|
"renders": {
|
|
"fields": {
|
|
"description": "Form field components showcase"
|
|
},
|
|
"contact_form": {
|
|
"description": "Contact form with validation",
|
|
"featured": true
|
|
}
|
|
},
|
|
"defaultContext": {
|
|
"user": {
|
|
"id": "demo-user",
|
|
"username": "demo_user",
|
|
"level": 1
|
|
}
|
|
},
|
|
"scripts": {
|
|
"renderFunctions": ["fields", "validate", "contact_form"],
|
|
"ignoredScripts": ["tests"]
|
|
},
|
|
"parameters": {
|
|
"layout": "padded",
|
|
"backgrounds": {
|
|
"default": "light"
|
|
}
|
|
}
|
|
}
|