File tree Expand file tree Collapse file tree 3 files changed +11
-9
lines changed
Expand file tree Collapse file tree 3 files changed +11
-9
lines changed Original file line number Diff line number Diff line change 11import { Schema , type } from '@alinea/core'
22import { tab , tabs } from '@alinea/input.tabs'
33
4- import { IcRoundInsertDriveFile } from '@alinea/ui/icons/IcRoundInsertDriveFile'
5- import { IcRoundLink } from '@alinea/ui/icons/IcRoundLink'
4+ import { color } from '@alinea/input.color'
65import { link } from '@alinea/input.link'
76import { path } from '@alinea/input.path'
87import { text } from '@alinea/input.text'
8+ import { IcRoundInsertDriveFile } from '@alinea/ui/icons/IcRoundInsertDriveFile'
9+ import { IcRoundLink } from '@alinea/ui/icons/IcRoundLink'
910
1011export const HomePageSchema = type (
1112 'Home' ,
1213 tabs (
1314 tab ( 'Homepage' , {
15+ color : color ( 'Color' ) ,
1416 title : text ( 'Title' , {
1517 width : 0.5 ,
1618 multiline : true
Original file line number Diff line number Diff line change 1- import { Field , Label , Value } from '@alinea/core'
1+ import { Field , Label , Shape } from '@alinea/core'
22
33/** Optional settings to configure a color field */
44export type ColorOptions = {
@@ -28,7 +28,7 @@ export function createColor(
2828 options : ColorOptions = { }
2929) : ColorField {
3030 return {
31- type : Value . Scalar ,
31+ shape : Shape . Scalar ( label ) ,
3232 label,
3333 options
3434 }
Original file line number Diff line number Diff line change 1313 cursor : pointer ;
1414
1515 & .is-active {
16- border : 2px solid var (--fields-foreground );
16+ border : 2px solid var (--alinea- fields-foreground );
1717 }
1818 }
1919
3333 padding : 9px 16px ;
3434 border-radius : 8px ;
3535 line-height : 1.5 ;
36- background : var (--fields );
37- box-shadow : var (--fields-shadow );
36+ background : var (--alinea- fields );
37+ box-shadow : var (--alinea- fields-shadow );
3838
3939 & :focus {
40- background : var (--fields-selected );
41- outline : 2px solid var (--fields-focus );
40+ background : var (--alinea- fields-selected );
41+ outline : 2px solid var (--alinea- fields-focus );
4242 }
4343 }
4444}
You can’t perform that action at this time.
0 commit comments