Better form themes (#465)
* Working on custom radius + input size * Fix date input clear vertical align * Moslty finished implementing small size * Polishing larger theme * Finish large theme * Added size/radius options in form editor * Darken help text, improve switch input help location * Slight form editor improvement * Fix styling * Polish of the form editor
This commit is contained in:
@@ -31,6 +31,8 @@ abstract class UserFormRequest extends \Illuminate\Foundation\Http\FormRequest
|
||||
// Customization
|
||||
'theme' => ['required', Rule::in(Form::THEMES)],
|
||||
'width' => ['required', Rule::in(Form::WIDTHS)],
|
||||
'size' => ['required', Rule::in(Form::SIZES)],
|
||||
'border_radius' => ['required', Rule::in(Form::BORDER_RADIUS)],
|
||||
'cover_picture' => 'url|nullable',
|
||||
'logo_picture' => 'url|nullable',
|
||||
'dark_mode' => ['required', Rule::in(Form::DARK_MODE_VALUES)],
|
||||
|
||||
@@ -30,6 +30,10 @@ class Form extends Model implements CachableAttributes
|
||||
|
||||
public const DARK_MODE_VALUES = ['auto', 'light', 'dark'];
|
||||
|
||||
public const SIZES = ['sm','md','lg'];
|
||||
|
||||
public const BORDER_RADIUS = ['none','small','full'];
|
||||
|
||||
public const THEMES = ['default', 'simple', 'notion'];
|
||||
|
||||
public const WIDTHS = ['centered', 'full'];
|
||||
@@ -49,6 +53,8 @@ class Form extends Model implements CachableAttributes
|
||||
|
||||
// Customization
|
||||
'custom_domain',
|
||||
'size',
|
||||
'border_radius',
|
||||
'theme',
|
||||
'width',
|
||||
'cover_picture',
|
||||
|
||||
Reference in New Issue
Block a user