Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@
"bs:rebuild": "bsb -make-world -clean-world"
},
"devDependencies": {
"bs-platform": "^7.3.2"
"bs-platform": "^8.3.3"
},
"dependencies": {
"reason-react": "^0.8.0",
"reason-react": "^0.9.1",
"rsuite": "^4.5.0"
}
}
4 changes: 2 additions & 2 deletions src/Animation.re
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ module Collapse = {
~children: React.element=?,
~className: string=?,

~dimension: [@bs.string] [
~dimension: [
| `height
| `width
]=?, // todo + callback () => `height | `width
Expand Down Expand Up @@ -120,7 +120,7 @@ module Slide = {
~timeout: int=?,
~transitionAppear: bool=?,
~unmountOnExit: bool=?,
~placement: [@bs.string] [
~placement: [
| `left
| `leftStart
| `leftEnd
Expand Down
2 changes: 1 addition & 1 deletion src/Avatar.re
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ external make: (
~src: string=?,
~alt: string=?,
~circle: bool=?,
~size: [@bs.string] [
~size: [
| `lg
| `md
| `sm
Expand Down
8 changes: 4 additions & 4 deletions src/Button.re
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[@bs.module "rsuite"] [@react.component]
external make:
(
~_type: [@bs.string] [
~_type: [
| `submit
| `button
| `reset
Expand All @@ -17,15 +17,15 @@ external make:
~block: bool=?,
~href: string=?,
~componentClass: 'a=> React.element=?,
~appearance: [@bs.string] [
~appearance: [
| `primary
| `link
| `subtle
| `default
| `ghost
]
=?,
~color: [@bs.string] [
~color: [
| `red
| `orange
| `yellow
Expand All @@ -35,7 +35,7 @@ external make:
| `violet
]
=?,
~size: [@bs.string] [ | `lg | `md | `sm | `xs]=?,
~size: [ | `lg | `md | `sm | `xs]=?,
~onClick: ReactEvent.Mouse.t => unit=?,
) =>
React.element =
Expand Down
2 changes: 1 addition & 1 deletion src/ButtonGroup.re
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ external make:
~block: bool=?,
~justified: bool=?,
~vertical: bool=?,
~size: [@bs.string] [ | `lg | `md | `sm | `xs]=?
~size: [ | `lg | `md | `sm | `xs]=?
) =>
React.element =
"ButtonGroup";
4 changes: 2 additions & 2 deletions src/Carousel.re
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ external make:
(
~className: string=?,
~classPrefix: string=?,
~shape: [@bs.string] [ | `dot | `bar]=?,
~shape: [ | `dot | `bar]=?,
~autoplay: bool=?,
~autoplayInterval: int=?,
~placement: [@bs.string] [ | `top | `bottom | `left | `right]=?,
~placement: [ | `top | `bottom | `left | `right]=?,
~componentClass: 'a => React.element=?,
~children: React.element=?
) =>
Expand Down
6 changes: 3 additions & 3 deletions src/Cascader.re
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
~menuStyle: ReactDOMRe.Style.t=?,
~children: React.element=?,
~childrenKey: string=?,
~appearance: [@bs.string] [
~appearance: [
| `default
| `subtle
]=?,
Expand Down Expand Up @@ -38,7 +38,7 @@
~onClean: (ReactEvent.Synthetic.t) => unit=?,
~onGroupTitleClick: (ReactEvent.Synthetic.t) => unit=?,
~placeholder: React.element=?,
~placement: [@bs.string] [
~placement: [
| `left
| `leftStart
| `leftEnd
Expand All @@ -60,7 +60,7 @@
~renderValue: (string, array(string), React.element) => React.element=?,
~renderExtraFooter: unit => React.element=?,
~toggleComponentClass: unit => React.element=?,
~size: [@bs.string] [
~size: [
| `lg
| `md
| `sm
Expand Down
6 changes: 3 additions & 3 deletions src/CheckPicker.re
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ external make:
~className: string=?,

~menuStyle: ReactDOMRe.Style.t=?,
~appearance: [@bs.string] [ | `default | `subtle]=?,
~appearance: [ | `default | `subtle]=?,
~cacheData: array(RsuiteTypes.DataItemType.t)=?,
~block: bool=?,
~cleanable: bool=?,
Expand All @@ -36,7 +36,7 @@ external make:
~onClean: ReactEvent.Synthetic.t => unit=?,
~onGroupTitleClick: ReactEvent.Synthetic.t => unit=?,
~placeholder: React.element=?,
~placement: [@bs.string] [
~placement: [
| `left
| `leftStart
| `leftEnd
Expand Down Expand Up @@ -68,7 +68,7 @@ external make:
~renderExtraFooter: unit => React.element=?,
~sort: (bool, string, string) => int=?, // TODO
~toggleComponentClass: unit => React.element=?,
~size: [@bs.string] [ | `lg | `md | `sm | `xs]=?
~size: [ | `lg | `md | `sm | `xs]=?
) =>
React.element =
"CheckPicker";
6 changes: 3 additions & 3 deletions src/CheckTreePicker.re
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

~menuStyle: ReactDOMRe.Style.t=?,
~childrenKey: string=?,
~appearance: [@bs.string] [
~appearance: [
| `default
| `subtle
]=?,
Expand Down Expand Up @@ -44,7 +44,7 @@
~onSelect: (RsuiteTypes.DataItemType.t, string, ReactEvent.Synthetic.t) => unit=?,
~onClean: (ReactEvent.Synthetic.t) => unit=?,
~placeholder: React.element=?,
~placement: [@bs.string] [
~placement: [
| `left
| `leftStart
| `leftEnd
Expand All @@ -67,7 +67,7 @@
~renderValue: (array(string), RsuiteTypes.DataItemType.t, React.element) => React.element=?,
~renderExtraFooter: unit => React.element=?,
~toggleComponentClass: unit => React.element=?,
~size: [@bs.string] [
~size: [
| `lg
| `md
| `sm
Expand Down
4 changes: 2 additions & 2 deletions src/DatePicker.re
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ external make:
~classPrefix: string=?,
~className: string=?,

~appearance: [@bs.string] [
~appearance: [
| `default
| `subtle
]=?,
Expand Down Expand Up @@ -45,7 +45,7 @@ external make:
~oneTap: bool=?,
~_open: bool=?,
~placeholder: string=?,
~placement: [@bs.string] [
~placement: [
| `left
| `leftStart
| `leftEnd
Expand Down
8 changes: 4 additions & 4 deletions src/DateRangePicker.re
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ external make:
~classPrefix: string=?,
~className: string=?,

~appearance: [@bs.string] [
~appearance: [
| `default
| `subtle
]=?,
Expand All @@ -25,7 +25,7 @@ external make:
bool,
string // TODO +unions: 'CALENDAR', 'TOOLBAR...
) => bool=?,
~hoverRange: [@bs.string] [
~hoverRange: [
| `week
| `month
]=?, // TODO: or (date: Date)=> Array<Date>
Expand All @@ -40,7 +40,7 @@ external make:
~oneTap: bool=?,
~_open: bool=?,
~placeholder: string=?,
~placement: [@bs.string] [
~placement: [
| `left
| `leftStart
| `leftEnd
Expand All @@ -60,7 +60,7 @@ external make:
~preventOverflow: bool=?,
~ranges: array(RsuiteTypes.Range.t)=?,
~showWeekNumbers: bool=?,
~size: [@bs.string] [
~size: [
| `lg
| `md
| `sm
Expand Down
6 changes: 3 additions & 3 deletions src/Drawer.re
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ external make:
~full: bool=?,
~keyboard: bool=?,
~show: bool=?,
~backdrop: [@bs.string] [ | `static]=?, // todo: +boolean
~backdrop: [ | `static]=?, // todo: +boolean
~onEnter: unit => unit=?,
~onEntered: unit => unit=?,
~onEntering: unit => unit=?,
Expand All @@ -20,7 +20,7 @@ external make:
~onExiting: unit => unit=?,
~onHide: unit => unit=?,
~onShow: unit => unit=?,
~placement: [@bs.string] [
~placement: [
| `left
| `leftStart
| `leftEnd
Expand All @@ -35,7 +35,7 @@ external make:
| `bottomEnd
]
=?,
~size: [@bs.string] [ | `lg | `md | `sm | `xs]=?
~size: [ | `lg | `md | `sm | `xs]=?
) =>
React.element =
"Drawer";
4 changes: 2 additions & 2 deletions src/Dropdown.re
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ external make:
~icon: React.element=?,
~onSelect: (string, ReactEvent.Synthetic.t) => unit=?,
~onToggle: bool => unit=?,
~placement: [@bs.string] [
~placement: [
| `left
| `leftStart
| `leftEnd
Expand All @@ -33,7 +33,7 @@ external make:
~title: React.element=?,
~toggleClassName: string=?,
~toggleComponentClass: unit => React.element=?,
~trigger: [@bs.string] [
~trigger: [
| `click
| `hover
| `contextMenu // TODO
Expand Down
6 changes: 3 additions & 3 deletions src/FlexboxGrid.re
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ external make:
~children: React.element=?,
~classPrefix: string=?,
~className: string=?,
~align: [@bs.string] [ | `top | `middle | `bottom]=?,
~justify: [@bs.string] [
~align: [ | `top | `middle | `bottom]=?,
~justify: [
| `start
| [@bs.as "end"] `end_
| `end_
| `center
| `spaceAround
| `spaceBetween
Expand Down
10 changes: 5 additions & 5 deletions src/Form.re
Original file line number Diff line number Diff line change
Expand Up @@ -9,30 +9,30 @@ external make:
~action: string=?,
~name: string=?,
~acceptCharset: string=?,
~autocomplete: [@bs.string] [
~autocomplete: [
| `on
| `off
]=?,
~method: [@bs.string] [
~method: [
| `get
| `post
]=?,
~target: [@bs.string] [
~target: [
| `_blank
| `_self
| `_parent
| `_top
]=?,

~checkDelay: int=?,
~checkTrigger: [@bs.string] [
~checkTrigger: [
| `change
| `blur
| `none
]=?,
~errorFromContext: bool=?,
~fluid: bool=?,
~layout: [@bs.string] [
~layout: [
| `horizontal
| `vertical
| `inline
Expand Down
6 changes: 3 additions & 3 deletions src/FormControl.re
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@ external make:

~rows: int=?,
~accepter: unit => React.element=?,
~checkTrigger: [@bs.string] [
~checkTrigger: [
| `change
| `blur
| `none
]
=?,
~errorMessage: React.element=?,
~placement: [@bs.string] [
~placement: [
| `left
| `leftStart
| `leftEnd
Expand All @@ -41,7 +41,7 @@ external make:
]=?,
~readonly: bool=?,
~plaintext: bool=?,
~_type: [@bs.string] [ | `text | `password | `number | `checkbox | `tel | `hidden | `date | `color | `email | `time ]=?,
~_type: [ | `text | `password | `number | `checkbox | `tel | `hidden | `date | `color | `email | `time ]=?,
) =>
React.element =
"FormControl";
Loading