Skip to content

Commit 38baf64

Browse files
committed
chore: set default size of Stack components
1 parent 917c9e1 commit 38baf64

File tree

9 files changed

+36
-60
lines changed

9 files changed

+36
-60
lines changed

examples/expo/components/HStack/HStackCatalog.ts

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,13 +49,11 @@ Catalog.register('HStack', {
4949
minWidth: {
5050
label: 'Min Width',
5151
type: 'number',
52-
default: 0,
5352
optional: true,
5453
},
5554
maxWidth: {
5655
label: 'Max Width',
5756
type: 'number',
58-
default: 1000,
5957
optional: true,
6058
},
6159
height: {
@@ -67,17 +65,17 @@ Catalog.register('HStack', {
6765
minHeight: {
6866
label: 'Min Height',
6967
type: 'number',
70-
default: 0,
7168
optional: true,
7269
},
7370
maxHeight: {
7471
label: 'Max Height',
7572
type: 'number',
76-
default: 1000,
7773
optional: true,
7874
},
7975
},
80-
optional: true,
76+
default: {
77+
height: 100,
78+
},
8179
},
8280
padding: {
8381
label: 'Padding',

examples/expo/components/VStack/VStackCatalog.ts

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -55,13 +55,11 @@ Catalog.register('VStack', {
5555
minWidth: {
5656
label: 'Min Width',
5757
type: 'number',
58-
default: 0,
5958
optional: true,
6059
},
6160
maxWidth: {
6261
label: 'Max Width',
6362
type: 'number',
64-
default: 1000,
6563
optional: true,
6664
},
6765
height: {
@@ -73,17 +71,17 @@ Catalog.register('VStack', {
7371
minHeight: {
7472
label: 'Min Height',
7573
type: 'number',
76-
default: 0,
7774
optional: true,
7875
},
7976
maxHeight: {
8077
label: 'Max Height',
8178
type: 'number',
82-
default: 1000,
8379
optional: true,
8480
},
8581
},
86-
optional: true,
82+
default: {
83+
height: 100,
84+
},
8785
},
8886
padding: {
8987
label: 'Padding',

examples/nextjs/components/HStack/HStackCatalog.ts

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,13 +49,11 @@ Catalog.register('HStack', {
4949
minWidth: {
5050
label: 'Min Width',
5151
type: 'number',
52-
default: 0,
5352
optional: true,
5453
},
5554
maxWidth: {
5655
label: 'Max Width',
5756
type: 'number',
58-
default: 1000,
5957
optional: true,
6058
},
6159
height: {
@@ -67,17 +65,17 @@ Catalog.register('HStack', {
6765
minHeight: {
6866
label: 'Min Height',
6967
type: 'number',
70-
default: 0,
7168
optional: true,
7269
},
7370
maxHeight: {
7471
label: 'Max Height',
7572
type: 'number',
76-
default: 1000,
7773
optional: true,
7874
},
7975
},
80-
optional: true,
76+
default: {
77+
height: 100,
78+
},
8179
},
8280
padding: {
8381
label: 'Padding',

examples/nextjs/components/VStack/VStackCatalog.ts

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,13 +49,11 @@ Catalog.register('VStack', {
4949
minWidth: {
5050
label: 'Min Width',
5151
type: 'number',
52-
default: 0,
5352
optional: true,
5453
},
5554
maxWidth: {
5655
label: 'Max Width',
5756
type: 'number',
58-
default: 1000,
5957
optional: true,
6058
},
6159
height: {
@@ -67,17 +65,17 @@ Catalog.register('VStack', {
6765
minHeight: {
6866
label: 'Min Height',
6967
type: 'number',
70-
default: 0,
7168
optional: true,
7269
},
7370
maxHeight: {
7471
label: 'Max Height',
7572
type: 'number',
76-
default: 1000,
7773
optional: true,
7874
},
7975
},
80-
optional: true,
76+
default: {
77+
height: 100,
78+
},
8179
},
8280
padding: {
8381
label: 'Padding',

examples/react-router/app/components/HStack/HStackCatalog.ts

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,13 +49,11 @@ Catalog.register('HStack', {
4949
minWidth: {
5050
label: 'Min Width',
5151
type: 'number',
52-
default: 0,
5352
optional: true,
5453
},
5554
maxWidth: {
5655
label: 'Max Width',
5756
type: 'number',
58-
default: 1000,
5957
optional: true,
6058
},
6159
height: {
@@ -67,17 +65,17 @@ Catalog.register('HStack', {
6765
minHeight: {
6866
label: 'Min Height',
6967
type: 'number',
70-
default: 0,
7168
optional: true,
7269
},
7370
maxHeight: {
7471
label: 'Max Height',
7572
type: 'number',
76-
default: 1000,
7773
optional: true,
7874
},
7975
},
80-
optional: true,
76+
default: {
77+
height: 100,
78+
},
8179
},
8280
padding: {
8381
label: 'Padding',

examples/react-router/app/components/VStack/VStackCatalog.ts

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,13 +49,11 @@ Catalog.register('VStack', {
4949
minWidth: {
5050
label: 'Min Width',
5151
type: 'number',
52-
default: 0,
5352
optional: true,
5453
},
5554
maxWidth: {
5655
label: 'Max Width',
5756
type: 'number',
58-
default: 1000,
5957
optional: true,
6058
},
6159
height: {
@@ -67,17 +65,17 @@ Catalog.register('VStack', {
6765
minHeight: {
6866
label: 'Min Height',
6967
type: 'number',
70-
default: 0,
7168
optional: true,
7269
},
7370
maxHeight: {
7471
label: 'Max Height',
7572
type: 'number',
76-
default: 1000,
7773
optional: true,
7874
},
7975
},
80-
optional: true,
76+
default: {
77+
height: 100,
78+
},
8179
},
8280
padding: {
8381
label: 'Padding',

packages/docs/pages/docs/tutorial/expo.md

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -535,13 +535,11 @@ Catalog.register('VStack', {
535535
minWidth: {
536536
label: 'Min Width',
537537
type: 'number',
538-
default: 0,
539538
optional: true,
540539
},
541540
maxWidth: {
542541
label: 'Max Width',
543542
type: 'number',
544-
default: 1000,
545543
optional: true,
546544
},
547545
height: {
@@ -553,17 +551,17 @@ Catalog.register('VStack', {
553551
minHeight: {
554552
label: 'Min Height',
555553
type: 'number',
556-
default: 0,
557554
optional: true,
558555
},
559556
maxHeight: {
560557
label: 'Max Height',
561558
type: 'number',
562-
default: 1000,
563559
optional: true,
564560
},
565561
},
566-
optional: true,
562+
default: {
563+
height: 100,
564+
},
567565
},
568566
padding: {
569567
label: 'Padding',
@@ -691,13 +689,11 @@ Catalog.register('HStack', {
691689
minWidth: {
692690
label: 'Min Width',
693691
type: 'number',
694-
default: 0,
695692
optional: true,
696693
},
697694
maxWidth: {
698695
label: 'Max Width',
699696
type: 'number',
700-
default: 1000,
701697
optional: true,
702698
},
703699
height: {
@@ -709,17 +705,17 @@ Catalog.register('HStack', {
709705
minHeight: {
710706
label: 'Min Height',
711707
type: 'number',
712-
default: 0,
713708
optional: true,
714709
},
715710
maxHeight: {
716711
label: 'Max Height',
717712
type: 'number',
718-
default: 1000,
719713
optional: true,
720714
},
721715
},
722-
optional: true,
716+
default: {
717+
height: 100,
718+
},
723719
},
724720
padding: {
725721
label: 'Padding',

packages/docs/pages/docs/tutorial/nextjs.md

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -450,13 +450,11 @@ Catalog.register('VStack', {
450450
minWidth: {
451451
label: 'Min Width',
452452
type: 'number',
453-
default: 0,
454453
optional: true,
455454
},
456455
maxWidth: {
457456
label: 'Max Width',
458457
type: 'number',
459-
default: 1000,
460458
optional: true,
461459
},
462460
height: {
@@ -468,17 +466,17 @@ Catalog.register('VStack', {
468466
minHeight: {
469467
label: 'Min Height',
470468
type: 'number',
471-
default: 0,
472469
optional: true,
473470
},
474471
maxHeight: {
475472
label: 'Max Height',
476473
type: 'number',
477-
default: 1000,
478474
optional: true,
479475
},
480476
},
481-
optional: true,
477+
default: {
478+
height: 100,
479+
},
482480
},
483481
padding: {
484482
label: 'Padding',
@@ -601,13 +599,11 @@ Catalog.register('HStack', {
601599
minWidth: {
602600
label: 'Min Width',
603601
type: 'number',
604-
default: 0,
605602
optional: true,
606603
},
607604
maxWidth: {
608605
label: 'Max Width',
609606
type: 'number',
610-
default: 1000,
611607
optional: true,
612608
},
613609
height: {
@@ -619,17 +615,17 @@ Catalog.register('HStack', {
619615
minHeight: {
620616
label: 'Min Height',
621617
type: 'number',
622-
default: 0,
623618
optional: true,
624619
},
625620
maxHeight: {
626621
label: 'Max Height',
627622
type: 'number',
628-
default: 1000,
629623
optional: true,
630624
},
631625
},
632-
optional: true,
626+
default: {
627+
height: 100,
628+
},
633629
},
634630
padding: {
635631
label: 'Padding',

0 commit comments

Comments
 (0)