Skip to content

Commit 043761c

Browse files
authored
feat(objectInline): support inline boolean fields (#171)
1 parent 1f3f81c commit 043761c

File tree

13 files changed

+30
-6
lines changed

13 files changed

+30
-6
lines changed
Loading
Loading
Loading
Loading

src/lib/kit/components/Inputs/Checkbox/__tests__/Checkbox.visual.test.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,12 @@ test.describe('Checkbox', () => {
3030

3131
await expectScreenshot();
3232
});
33+
34+
test('layout transparent', async ({mount, expectScreenshot}) => {
35+
await mount(<DynamicForm spec={CHECKBOX.layoutTransparent} />);
36+
37+
await expectScreenshot();
38+
});
3339
});
3440

3541
test.describe('Checkbox view', () => {

src/lib/kit/components/Inputs/Checkbox/__tests__/helpers.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,14 @@ export const CHECKBOX: Record<string, BooleanSpec> = {
2929
layoutTitle: 'File Input',
3030
},
3131
},
32+
layoutTransparent: {
33+
type: SpecTypes.Boolean,
34+
viewSpec: {
35+
type: 'base',
36+
layout: 'transparent',
37+
layoutTitle: 'Flag',
38+
},
39+
},
3240
row_verbose: {
3341
type: SpecTypes.Boolean,
3442
viewSpec: {

src/lib/kit/components/Inputs/Text/__tests__/Text.visual.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ test.describe('Text Input', () => {
5050
});
5151

5252
test('layout transperant', async ({mount, expectScreenshot}) => {
53-
await mount(<DynamicForm spec={NUMBER_SPEC.layoutTransperant} />);
53+
await mount(<DynamicForm spec={NUMBER_SPEC.layoutTransparent} />);
5454

5555
await expectScreenshot();
5656
});

src/lib/kit/components/Inputs/Text/__tests__/helpers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ export const NUMBER_SPEC: Record<string, NumberSpec> = {
6969
placeholder: 'placeholder text',
7070
},
7171
},
72-
layoutTransperant: {
72+
layoutTransparent: {
7373
type: SpecTypes.Number,
7474
viewSpec: {
7575
type: 'base',

src/lib/kit/components/Inputs/TextArea/__tests__/TextArea.visual.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ test.describe('Text Area', () => {
4343
});
4444

4545
test('layout transperant', async ({mount, expectScreenshot}) => {
46-
await mount(<DynamicForm spec={TEXT_AREA_SPEC.layoutTransperant} />);
46+
await mount(<DynamicForm spec={TEXT_AREA_SPEC.layoutTransparent} />);
4747

4848
await expectScreenshot();
4949
});

src/lib/kit/components/Inputs/TextArea/__tests__/helpers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ export const TEXT_AREA_SPEC: Record<string, StringSpec> = {
5151
layoutDescription: 'description',
5252
},
5353
},
54-
layoutTransperant: {
54+
layoutTransparent: {
5555
type: SpecTypes.String,
5656
viewSpec: {
5757
type: 'textarea',

0 commit comments

Comments
 (0)