Skip to content

Commit 00eaaf0

Browse files
committed
Rebased on main
1 parent 1bdfec6 commit 00eaaf0

File tree

3 files changed

+11
-9
lines changed

3 files changed

+11
-9
lines changed

apps/web/src/view/HomePage.schema.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,18 @@
11
import {Schema, type} from '@alinea/core'
22
import {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'
65
import {link} from '@alinea/input.link'
76
import {path} from '@alinea/input.path'
87
import {text} from '@alinea/input.text'
8+
import {IcRoundInsertDriveFile} from '@alinea/ui/icons/IcRoundInsertDriveFile'
9+
import {IcRoundLink} from '@alinea/ui/icons/IcRoundLink'
910

1011
export 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

packages/input/color/src/ColorField.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
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 */
44
export 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
}

packages/input/color/src/ColorInput.module.scss

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
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

@@ -33,12 +33,12 @@
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
}

0 commit comments

Comments
 (0)