Skip to content

Commit 43afcbd

Browse files
committed
cleanup
1 parent 888f5a7 commit 43afcbd

File tree

1 file changed

+9
-366
lines changed

1 file changed

+9
-366
lines changed

demo/pages/MainPage.tsx

Lines changed: 9 additions & 366 deletions
Original file line numberDiff line numberDiff line change
@@ -294,372 +294,15 @@ const fields: TypedField[] = [
294294
},
295295
]
296296
},
297-
{
298-
type: FieldType.Group,
299-
phoneStyle: {
300-
width: '100%',
301-
},
302-
tabletStyle: {
303-
width: '50%',
304-
},
305-
desktopStyle: {
306-
width: '25%',
307-
},
308-
fields: [
309-
{
310-
type: FieldType.Component,
311-
style: {
312-
width: '100%',
313-
},
314-
element: () => (
315-
<Text category='h6'>
316-
FieldType.YesNo
317-
</Text>
318-
),
319-
},
320-
{
321-
type: FieldType.YesNo,
322-
style: {
323-
width: '100%',
324-
},
325-
name: 'yesno',
326-
title: 'YesNo',
327-
placeholder: 'yesno',
328-
description: 'Default',
329-
},
330-
{
331-
type: FieldType.YesNo,
332-
noDeselect: true,
333-
style: {
334-
width: '100%',
335-
},
336-
validation: {
337-
required: true,
338-
},
339-
dirty: true,
340-
name: 'yesno_invalid',
341-
title: 'YesNo',
342-
placeholder: 'yesno',
343-
description: 'Invalid',
344-
},
345-
{
346-
type: FieldType.YesNo,
347-
noDeselect: true,
348-
style: {
349-
width: '100%',
350-
},
351-
name: 'yesno',
352-
title: 'YesNo',
353-
placeholder: 'yesno',
354-
description: 'No deselect',
355-
},
356-
]
357-
},
358-
{
359-
type: FieldType.Group,
360-
phoneStyle: {
361-
width: '100%',
362-
},
363-
tabletStyle: {
364-
width: '50%',
365-
},
366-
desktopStyle: {
367-
width: '25%',
368-
},
369-
fields: [
370-
{
371-
type: FieldType.Component,
372-
style: {
373-
width: '100%',
374-
},
375-
element: () => (
376-
<Text category='h6'>
377-
FieldType.YesNo
378-
</Text>
379-
),
380-
},
381-
{
382-
type: FieldType.YesNo,
383-
style: {
384-
width: '100%',
385-
},
386-
name: 'yesno',
387-
title: 'YesNo',
388-
placeholder: 'yesno',
389-
description: 'Default',
390-
},
391-
{
392-
type: FieldType.YesNo,
393-
noDeselect: true,
394-
style: {
395-
width: '100%',
396-
},
397-
validation: {
398-
required: true,
399-
},
400-
dirty: true,
401-
name: 'yesno_invalid',
402-
title: 'YesNo',
403-
placeholder: 'yesno',
404-
description: 'Invalid',
405-
},
406-
{
407-
type: FieldType.YesNo,
408-
noDeselect: true,
409-
style: {
410-
width: '100%',
411-
},
412-
name: 'yesno',
413-
title: 'YesNo',
414-
placeholder: 'yesno',
415-
description: 'No deselect',
416-
},
417-
]
418-
},
419-
{
420-
type: FieldType.Group,
421-
phoneStyle: {
422-
width: '100%',
423-
},
424-
tabletStyle: {
425-
width: '50%',
426-
},
427-
desktopStyle: {
428-
width: '25%',
429-
},
430-
fields: [
431-
{
432-
type: FieldType.Component,
433-
style: {
434-
width: '100%',
435-
},
436-
element: () => (
437-
<Text category='h6'>
438-
FieldType.YesNo
439-
</Text>
440-
),
441-
},
442-
{
443-
type: FieldType.YesNo,
444-
style: {
445-
width: '100%',
446-
},
447-
name: 'yesno',
448-
title: 'YesNo',
449-
placeholder: 'yesno',
450-
description: 'Default',
451-
},
452-
{
453-
type: FieldType.YesNo,
454-
noDeselect: true,
455-
style: {
456-
width: '100%',
457-
},
458-
validation: {
459-
required: true,
460-
},
461-
dirty: true,
462-
name: 'yesno_invalid',
463-
title: 'YesNo',
464-
placeholder: 'yesno',
465-
description: 'Invalid',
466-
},
467-
{
468-
type: FieldType.YesNo,
469-
noDeselect: true,
470-
style: {
471-
width: '100%',
472-
},
473-
name: 'yesno',
474-
title: 'YesNo',
475-
placeholder: 'yesno',
476-
description: 'No deselect',
477-
},
478-
]
479-
},
480-
{
481-
type: FieldType.Group,
482-
phoneStyle: {
483-
width: '100%',
484-
},
485-
tabletStyle: {
486-
width: '50%',
487-
},
488-
desktopStyle: {
489-
width: '25%',
490-
},
491-
fields: [
492-
{
493-
type: FieldType.Component,
494-
style: {
495-
width: '100%',
496-
},
497-
element: () => (
498-
<Text category='h6'>
499-
FieldType.YesNo
500-
</Text>
501-
),
502-
},
503-
{
504-
type: FieldType.YesNo,
505-
style: {
506-
width: '100%',
507-
},
508-
name: 'yesno',
509-
title: 'YesNo',
510-
placeholder: 'yesno',
511-
description: 'Default',
512-
},
513-
{
514-
type: FieldType.YesNo,
515-
noDeselect: true,
516-
style: {
517-
width: '100%',
518-
},
519-
validation: {
520-
required: true,
521-
},
522-
dirty: true,
523-
name: 'yesno_invalid',
524-
title: 'YesNo',
525-
placeholder: 'yesno',
526-
description: 'Invalid',
527-
},
528-
{
529-
type: FieldType.YesNo,
530-
noDeselect: true,
531-
style: {
532-
width: '100%',
533-
},
534-
name: 'yesno',
535-
title: 'YesNo',
536-
placeholder: 'yesno',
537-
description: 'No deselect',
538-
},
539-
]
540-
},
541-
{
542-
type: FieldType.Group,
543-
phoneStyle: {
544-
width: '100%',
545-
},
546-
tabletStyle: {
547-
width: '50%',
548-
},
549-
desktopStyle: {
550-
width: '25%',
551-
},
552-
fields: [
553-
{
554-
type: FieldType.Component,
555-
style: {
556-
width: '100%',
557-
},
558-
element: () => (
559-
<Text category='h6'>
560-
FieldType.YesNo
561-
</Text>
562-
),
563-
},
564-
{
565-
type: FieldType.YesNo,
566-
style: {
567-
width: '100%',
568-
},
569-
name: 'yesno',
570-
title: 'YesNo',
571-
placeholder: 'yesno',
572-
description: 'Default',
573-
},
574-
{
575-
type: FieldType.YesNo,
576-
noDeselect: true,
577-
style: {
578-
width: '100%',
579-
},
580-
validation: {
581-
required: true,
582-
},
583-
dirty: true,
584-
name: 'yesno_invalid',
585-
title: 'YesNo',
586-
placeholder: 'yesno',
587-
description: 'Invalid',
588-
},
589-
{
590-
type: FieldType.YesNo,
591-
noDeselect: true,
592-
style: {
593-
width: '100%',
594-
},
595-
name: 'yesno',
596-
title: 'YesNo',
597-
placeholder: 'yesno',
598-
description: 'No deselect',
599-
},
600-
]
601-
},
602-
{
603-
type: FieldType.Group,
604-
phoneStyle: {
605-
width: '100%',
606-
},
607-
tabletStyle: {
608-
width: '50%',
609-
},
610-
desktopStyle: {
611-
width: '25%',
612-
},
613-
fields: [
614-
{
615-
type: FieldType.Component,
616-
style: {
617-
width: '100%',
618-
},
619-
element: () => (
620-
<Text category='h6'>
621-
FieldType.YesNo
622-
</Text>
623-
),
624-
},
625-
{
626-
type: FieldType.YesNo,
627-
style: {
628-
width: '100%',
629-
},
630-
name: 'yesno',
631-
title: 'YesNo',
632-
placeholder: 'yesno',
633-
description: 'Default',
634-
},
635-
{
636-
type: FieldType.YesNo,
637-
noDeselect: true,
638-
style: {
639-
width: '100%',
640-
},
641-
validation: {
642-
required: true,
643-
},
644-
dirty: true,
645-
name: 'yesno_invalid',
646-
title: 'YesNo',
647-
placeholder: 'yesno',
648-
description: 'Invalid',
649-
},
650-
{
651-
type: FieldType.YesNo,
652-
noDeselect: true,
653-
style: {
654-
width: '100%',
655-
},
656-
name: 'yesno',
657-
title: 'YesNo',
658-
placeholder: 'yesno',
659-
description: 'No deselect',
660-
},
661-
]
662-
},
297+
]
298+
},
299+
{
300+
type: FieldType.Group,
301+
baseline: true, // TODO: write yoga bug
302+
style: {
303+
width: '100%',
304+
},
305+
fields: [
663306
{
664307
type: FieldType.Group,
665308
phoneStyle: {

0 commit comments

Comments
 (0)