6
6
Checkbox ,
7
7
ChoiceList ,
8
8
DropZone ,
9
- Form ,
10
9
FormLayout ,
11
10
Modal ,
12
11
Stack ,
@@ -490,29 +489,44 @@ export function WithLongContent() {
490
489
title = "Long form modal"
491
490
open
492
491
onClose = { ( ) => { } }
493
- sectioned
494
492
primaryAction = { { content : 'Save' } }
495
493
>
496
- < Banner title = "Heyo" />
497
- < Form onSubmit = { ( ) => { } } >
494
+ < Modal . Section >
495
+ < Banner title = "Payment details" />
496
+ </ Modal . Section >
497
+ < Modal . Section >
498
498
< FormLayout >
499
499
< FormLayout . Group >
500
- < TextField label = "URL" type = "url" autoComplete = "url" />
501
- < TextField label = "URL" type = "url" autoComplete = "url" />
502
- < TextField label = "URL" type = "url" autoComplete = "url" />
500
+ < TextField label = "Payment method type" autoComplete = "off" />
501
+ < TextField label = "Card number" autoComplete = "off" />
502
+ </ FormLayout . Group >
503
+
504
+ < FormLayout . Group >
505
+ < TextField label = "Expires" autoComplete = "off" />
506
+ < TextField label = "CVV" autoComplete = "off" />
507
+ </ FormLayout . Group >
508
+
509
+ < FormLayout . Group >
510
+ < TextField label = "Country/region" autoComplete = "off" />
511
+ </ FormLayout . Group >
512
+
513
+ < FormLayout . Group >
514
+ < TextField label = "First name" autoComplete = "off" />
515
+ < TextField label = "Last name" autoComplete = "off" />
516
+ </ FormLayout . Group >
517
+
518
+ < FormLayout . Group >
519
+ < TextField label = "Address" autoComplete = "off" />
520
+ < TextField label = "Apartment, suite, etc." autoComplete = "off" />
521
+ </ FormLayout . Group >
522
+
523
+ < FormLayout . Group >
524
+ < TextField label = "City" autoComplete = "off" />
525
+ < TextField label = "Province" autoComplete = "off" />
526
+ < TextField label = "Postal code" autoComplete = "off" />
503
527
</ FormLayout . Group >
504
528
</ FormLayout >
505
- < FormLayout >
506
- < TextField label = "URL" type = "url" autoComplete = "url" />
507
- < TextField label = "URL" type = "url" autoComplete = "url" />
508
- < TextField label = "URL" type = "url" autoComplete = "url" />
509
- < TextField label = "URL" type = "url" autoComplete = "url" />
510
- < TextField label = "URL" type = "url" autoComplete = "url" />
511
- < TextField label = "URL" type = "url" autoComplete = "url" />
512
- < TextField label = "URL" type = "url" autoComplete = "url" />
513
- < TextField label = "URL" type = "url" autoComplete = "url" />
514
- </ FormLayout >
515
- </ Form >
529
+ </ Modal . Section >
516
530
</ Modal >
517
531
) ;
518
532
}
@@ -527,26 +541,42 @@ export function WithLongContentNoScroll() {
527
541
noScroll
528
542
primaryAction = { { content : 'Save' } }
529
543
>
530
- < Banner title = "Heyo" />
531
- < Form onSubmit = { ( ) => { } } >
544
+ < Modal . Section >
545
+ < Banner title = "Payment details" />
546
+ </ Modal . Section >
547
+ < Modal . Section >
532
548
< FormLayout >
533
549
< FormLayout . Group >
534
- < TextField label = "URL" type = "url" autoComplete = "url" />
535
- < TextField label = "URL" type = "url" autoComplete = "url" />
536
- < TextField label = "URL" type = "url" autoComplete = "url" />
550
+ < TextField label = "Payment method type" autoComplete = "off" />
551
+ < TextField label = "Card number" autoComplete = "off" />
552
+ </ FormLayout . Group >
553
+
554
+ < FormLayout . Group >
555
+ < TextField label = "Expires" autoComplete = "off" />
556
+ < TextField label = "CVV" autoComplete = "off" />
557
+ </ FormLayout . Group >
558
+
559
+ < FormLayout . Group >
560
+ < TextField label = "Country/region" autoComplete = "off" />
561
+ </ FormLayout . Group >
562
+
563
+ < FormLayout . Group >
564
+ < TextField label = "First name" autoComplete = "off" />
565
+ < TextField label = "Last name" autoComplete = "off" />
566
+ </ FormLayout . Group >
567
+
568
+ < FormLayout . Group >
569
+ < TextField label = "Address" autoComplete = "off" />
570
+ < TextField label = "Apartment, suite, etc." autoComplete = "off" />
571
+ </ FormLayout . Group >
572
+
573
+ < FormLayout . Group >
574
+ < TextField label = "City" autoComplete = "off" />
575
+ < TextField label = "Province" autoComplete = "off" />
576
+ < TextField label = "Postal code" autoComplete = "off" />
537
577
</ FormLayout . Group >
538
578
</ FormLayout >
539
- < FormLayout >
540
- < TextField label = "URL" type = "url" autoComplete = "url" />
541
- < TextField label = "URL" type = "url" autoComplete = "url" />
542
- < TextField label = "URL" type = "url" autoComplete = "url" />
543
- < TextField label = "URL" type = "url" autoComplete = "url" />
544
- < TextField label = "URL" type = "url" autoComplete = "url" />
545
- < TextField label = "URL" type = "url" autoComplete = "url" />
546
- < TextField label = "URL" type = "url" autoComplete = "url" />
547
- < TextField label = "URL" type = "url" autoComplete = "url" />
548
- </ FormLayout >
549
- </ Form >
579
+ </ Modal . Section >
550
580
</ Modal >
551
581
) ;
552
582
}
0 commit comments