@@ -569,128 +569,30 @@ module Dropdown = {
569
569
}
570
570
}
571
571
572
- module Container = {
573
- @module ("react-bootstrap" ) @react.component
574
- external make : (~children : React .element , ~className : string = ?) => React .element = "Container"
575
- }
576
-
577
- module Row = {
572
+ module Figure = {
578
573
@module ("react-bootstrap" ) @react.component
579
574
external make : (
580
- ~xs : int = ?,
581
- ~sm : int = ?,
582
- ~md : int = ?,
583
- ~lg : int = ?,
584
- ~xl : int = ?,
585
- ~xxl : int = ?,
575
+ ~_as : string = ?,
586
576
~className : string = ?,
587
577
~children : React .element ,
588
- ) => React .element = "Row"
578
+ ~bsPrefix : string = ?,
579
+ ) => React .element = "Figure"
589
580
}
590
581
591
- module Col = {
582
+ module FigureImage = {
592
583
@module ("react-bootstrap" ) @react.component
593
- external make : (
594
- ~xs : int = ?,
595
- ~sm : int = ?,
596
- ~md : int = ?,
597
- ~lg : int = ?,
598
- ~xl : int = ?,
599
- ~xxl : int = ?,
600
- ~className : string = ?,
601
- ~children : React .element ,
602
- ) => React .element = "Col"
584
+ external make : (~width : int = ?, ~height : int = ?, ~alt : string = ?, ~src : string = ?) => React .element =
585
+ "FigureImage"
603
586
}
604
587
605
- module Navbar = {
588
+ module FigureCaption = {
606
589
@module ("react-bootstrap" ) @react.component
607
590
external make : (
608
- ~id : string = ?,
609
591
~_as : string = ?,
610
- ~children : React .element ,
611
- ~bg : string = ?,
612
- ~expand : [#sm | #md | #lg | #xl | #xxl ],
613
- ~expanded : bool = ?,
614
- ~fixed : [#top | #bottom ],
615
- ~role : string = ?,
616
- ~variant : [#light | #dark ],
617
- ~collapseOnSelect : bool = ?,
618
- ~sticky : string = ?,
619
- ~className : string = ?,
620
- ) => React .element = "Navbar"
621
-
622
- module Brand = {
623
- @module ("react-bootstrap" ) @scope ("Navbar" ) @react.component
624
- external make : (
625
- ~is : string = ?,
626
- ~_as : string = ?,
627
- ~href : string ,
628
- ~className : string = ?,
629
- ~children : React .element ,
630
- ) => React .element = "Brand"
631
- }
632
-
633
- module Collapse = {
634
- @module ("react-bootstrap" ) @scope ("Navbar" ) @react.component
635
- external make : (
636
- ~id : string = ?,
637
- ~className : string = ?,
638
- ~children : React .element ,
639
- ) => React .element = "Collapse"
640
- }
641
-
642
- module Toggle = {
643
- @module ("react-bootstrap" ) @scope ("Navbar" ) @react.component
644
- external make : (
645
- ~id : string = ?,
646
- ~_as : string = ?,
647
- ~children : React .element = ?,
648
- ~label : string = ?,
649
- ~\"aria-controls" : string = ?,
650
- ~className : string = ?,
651
- ) => React .element = "Toggle"
652
- }
653
- }
654
-
655
- module Nav = {
656
- @module ("react-bootstrap" ) @react.component
657
- external make : (
658
- ~id : string = ?,
659
- ~activeKey : string = ?,
660
- ~className : string = ?,
661
- ~navbarScroll : bool = ?,
662
- ~_as : string = ?,
663
- ~fill : bool = ?,
664
- ~justify : bool = ?,
665
- ~navbar : bool = ?,
666
- ~role : string = ?,
667
- ~variant : [#tabs | #pills ],
668
592
~className : string = ?,
669
593
~children : React .element ,
670
- ) => React .element = "Nav"
671
-
672
- module Item = {
673
- @module ("react-bootstrap" ) @scope ("Nav" ) @react.component
674
- external make : (
675
- ~id : string = ?,
676
- ~className : string = ?,
677
- ~children : React .element ,
678
- ~_as : string = ?,
679
- ) => React .element = "Item"
680
- }
681
-
682
- module Link = {
683
- @module ("react-bootstrap" ) @scope ("Nav" ) @react.component
684
- external make : (
685
- ~id : string = ?,
686
- ~children : React .element ,
687
- ~_as : string = ?,
688
- ~active : bool = ?,
689
- ~disabled : bool = ?,
690
- ~href : string ,
691
- ~className : string = ?,
692
- ) => React .element = "Link"
693
- }
594
+ ~bsPrefix : string ,
595
+ ) => React .element = "FigureCaption"
694
596
}
695
597
696
598
module Form = {
@@ -703,6 +605,16 @@ module Form = {
703
605
~className : string = ?,
704
606
) => React .element = "Form"
705
607
608
+ module Floating = {
609
+ @module ("react-bootstrap" ) @scope ("Form" ) @react.component
610
+ external make : (
611
+ ~_as : string = ?,
612
+ ~className : string = ?,
613
+ ~children : React .element ,
614
+ ~bsPrefix : string ,
615
+ ) => React .element = "Floating"
616
+ }
617
+
706
618
module Group = {
707
619
@module ("react-bootstrap" ) @scope ("Form" ) @react.component
708
620
external make : (
@@ -715,15 +627,18 @@ module Form = {
715
627
}
716
628
717
629
module Label = {
630
+ type column = Bool (bool ) | Size ([#sm | #lg ])
631
+
718
632
@module ("react-bootstrap" ) @scope ("Form" ) @react.component
719
633
external make : (
720
634
~_ref : ReactDOM .Ref .t = ?,
721
635
~_as : string = ?,
722
- ~column : [ #sm | #lg ] = ?,
636
+ ~column : column = ?,
723
637
~visuallyHidden : bool = ?,
724
638
~htmlFor : string = ?,
725
639
~className : string = ?,
726
640
~children : React .element ,
641
+ ~bsPrefix : string = ?,
727
642
) => React .element = "Label"
728
643
}
729
644
@@ -735,6 +650,7 @@ module Form = {
735
650
~muted : bool = ?,
736
651
~className : string = ?,
737
652
~children : React .element ,
653
+ ~bsPrefix : string = ?,
738
654
) => React .element = "Text"
739
655
}
740
656
@@ -755,6 +671,7 @@ module Form = {
755
671
~value : string = ?,
756
672
~className : string = ?,
757
673
~onChange : ReactEvent .Form .t = ?,
674
+ ~bsPrefix : string = ?,
758
675
) => React .element = "Control"
759
676
760
677
module Feedback = {
@@ -776,11 +693,18 @@ module Form = {
776
693
~_as : string = ?,
777
694
~children : React .element = ?,
778
695
~disabled : bool = ?,
696
+ ~feedback : reactNode = ?,
697
+ ~feedbackTooltip : bool = ?,
698
+ ~id : string = ?,
779
699
~inline : bool = ?,
780
700
~isInvalid : bool = ?,
781
701
~isValid : bool = ?,
702
+ ~label : string = ?,
782
703
~title : string = ?,
783
704
~className : string = ?,
705
+ ~_type : [#radio | #checkbox | # "switch" ]= ?,
706
+ ~bsPrefix : string = ?,
707
+ ~bsSwitchPredfix : string = ?,
784
708
) => React .element = "Check"
785
709
786
710
module Input = {
@@ -792,16 +716,37 @@ module Form = {
792
716
~isValid : bool = ?,
793
717
~className : string = ?,
794
718
~_type : [#radio | #checkbox ]= ?,
719
+ ~bsPrefix : string = ?,
795
720
) => React .element = "Input"
796
721
}
797
722
798
723
module Label = {
799
724
@module ("react-bootstrap" ) @scope (("Form" , "Check" )) @react.component
800
- external make : (~htmlFor : string , ~className : string = ?) => React .element = "Label"
725
+ external make : (
726
+ ~htmlFor : string ,
727
+ ~className : string = ?,
728
+ ~children : React .element ,
729
+ ~bsPrefix : string = ?,
730
+ ) => React .element = "Label"
731
+ }
732
+
733
+ module Range = {
734
+ type value <'a > = Value ('a ) | Values (array <'a >)
735
+
736
+ @module ("react-bootstrap" ) @scope (("Form" , "Check" )) @react.component
737
+ external make : (
738
+ ~disabled : bool = ?,
739
+ ~id : string = ?,
740
+ ~onChange : ReactEvent .Form .t => unit = ?,
741
+ ~value : value <'a >= ?,
742
+ ~bsPrefix : string = ?,
743
+ ) => React .element = "Label"
801
744
}
802
745
}
803
746
804
747
module Select = {
748
+ type value <'a > = Value ('a ) | Values (array <'a >)
749
+
805
750
@module ("react-bootstrap" ) @scope ("Form" ) @react.component
806
751
external make : (
807
752
~disabled : bool = ?,
@@ -810,7 +755,9 @@ module Form = {
810
755
~isValid : bool = ?,
811
756
~onChange : ReactEvent .Form .t = ?,
812
757
~className : string = ?,
758
+ ~value : value <'a >= ?,
813
759
~size : [#sm | #lg ]= ?,
760
+ ~bsPrefix : string = ?,
814
761
) => React .element = "Select"
815
762
}
816
763
@@ -819,7 +766,7 @@ module Form = {
819
766
external make : (
820
767
~_as : string = ?,
821
768
~controlId : string = ?,
822
- ~label : string = ? ,
769
+ ~label : string ,
823
770
~className : string = ?,
824
771
~children : React .element ,
825
772
) => React .element = "FloatingLabel"
@@ -836,3 +783,127 @@ module InputGroup = {
836
783
~children : React .element ,
837
784
) => React .element = "InputGroup"
838
785
}
786
+
787
+ module Container = {
788
+ @module ("react-bootstrap" ) @react.component
789
+ external make : (~children : React .element , ~className : string = ?) => React .element = "Container"
790
+ }
791
+
792
+ module Row = {
793
+ @module ("react-bootstrap" ) @react.component
794
+ external make : (
795
+ ~xs : int = ?,
796
+ ~sm : int = ?,
797
+ ~md : int = ?,
798
+ ~lg : int = ?,
799
+ ~xl : int = ?,
800
+ ~xxl : int = ?,
801
+ ~className : string = ?,
802
+ ~children : React .element ,
803
+ ) => React .element = "Row"
804
+ }
805
+
806
+ module Col = {
807
+ @module ("react-bootstrap" ) @react.component
808
+ external make : (
809
+ ~xs : int = ?,
810
+ ~sm : int = ?,
811
+ ~md : int = ?,
812
+ ~lg : int = ?,
813
+ ~xl : int = ?,
814
+ ~xxl : int = ?,
815
+ ~className : string = ?,
816
+ ~children : React .element ,
817
+ ) => React .element = "Col"
818
+ }
819
+
820
+ module Navbar = {
821
+ @module ("react-bootstrap" ) @react.component
822
+ external make : (
823
+ ~id : string = ?,
824
+ ~_as : string = ?,
825
+ ~children : React .element ,
826
+ ~bg : string = ?,
827
+ ~expand : [#sm | #md | #lg | #xl | #xxl ],
828
+ ~expanded : bool = ?,
829
+ ~fixed : [#top | #bottom ],
830
+ ~role : string = ?,
831
+ ~variant : [#light | #dark ],
832
+ ~collapseOnSelect : bool = ?,
833
+ ~sticky : string = ?,
834
+ ~className : string = ?,
835
+ ) => React .element = "Navbar"
836
+
837
+ module Brand = {
838
+ @module ("react-bootstrap" ) @scope ("Navbar" ) @react.component
839
+ external make : (
840
+ ~is : string = ?,
841
+ ~_as : string = ?,
842
+ ~href : string ,
843
+ ~className : string = ?,
844
+ ~children : React .element ,
845
+ ) => React .element = "Brand"
846
+ }
847
+
848
+ module Collapse = {
849
+ @module ("react-bootstrap" ) @scope ("Navbar" ) @react.component
850
+ external make : (
851
+ ~id : string = ?,
852
+ ~className : string = ?,
853
+ ~children : React .element ,
854
+ ) => React .element = "Collapse"
855
+ }
856
+
857
+ module Toggle = {
858
+ @module ("react-bootstrap" ) @scope ("Navbar" ) @react.component
859
+ external make : (
860
+ ~id : string = ?,
861
+ ~_as : string = ?,
862
+ ~children : React .element = ?,
863
+ ~label : string = ?,
864
+ ~\"aria-controls" : string = ?,
865
+ ~className : string = ?,
866
+ ) => React .element = "Toggle"
867
+ }
868
+ }
869
+
870
+ module Nav = {
871
+ @module ("react-bootstrap" ) @react.component
872
+ external make : (
873
+ ~id : string = ?,
874
+ ~activeKey : string = ?,
875
+ ~className : string = ?,
876
+ ~navbarScroll : bool = ?,
877
+ ~_as : string = ?,
878
+ ~fill : bool = ?,
879
+ ~justify : bool = ?,
880
+ ~navbar : bool = ?,
881
+ ~role : string = ?,
882
+ ~variant : [#tabs | #pills ],
883
+ ~className : string = ?,
884
+ ~children : React .element ,
885
+ ) => React .element = "Nav"
886
+
887
+ module Item = {
888
+ @module ("react-bootstrap" ) @scope ("Nav" ) @react.component
889
+ external make : (
890
+ ~id : string = ?,
891
+ ~className : string = ?,
892
+ ~children : React .element ,
893
+ ~_as : string = ?,
894
+ ) => React .element = "Item"
895
+ }
896
+
897
+ module Link = {
898
+ @module ("react-bootstrap" ) @scope ("Nav" ) @react.component
899
+ external make : (
900
+ ~id : string = ?,
901
+ ~children : React .element ,
902
+ ~_as : string = ?,
903
+ ~active : bool = ?,
904
+ ~disabled : bool = ?,
905
+ ~href : string ,
906
+ ~className : string = ?,
907
+ ) => React .element = "Link"
908
+ }
909
+ }
0 commit comments