Skip to content

Commit 68e9679

Browse files
committed
feat(Others): add binding for Portal Component
1 parent 762108e commit 68e9679

File tree

5 files changed

+23
-10
lines changed

5 files changed

+23
-10
lines changed

Diff for: .yarnrc.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
yarnPath: ".yarn/releases/yarn-berry.cjs"
2-
nodeLinker: "node-modules"
1+
nodeLinker: node-modules
2+
yarnPath: .yarn/releases/yarn-berry.cjs

Diff for: README.md

+7-4
Original file line numberDiff line numberDiff line change
@@ -185,8 +185,6 @@ All of Style Props implementation is write in File:[Chakra__MakeProps.res](https
185185
- [ ] Toast
186186

187187
### Typography
188-
- [ ] Text
189-
- [ ] Heading
190188
- [x] Text
191189
- [x] Heading
192190

@@ -214,8 +212,13 @@ All of Style Props implementation is write in File:[Chakra__MakeProps.res](https
214212
- [x] Image
215213

216214
### Others
217-
- [ ] Portal
218-
- [ ] Transitions
215+
- [x] Portal
216+
- [x] Transitions
217+
- [x] Fade
218+
- [x] ScaleFade
219+
- [x] Slide
220+
- [x] SlideFade
221+
- [x] Collapse
219222

220223
### Hooks
221224
- [ ] useBoolean

Diff for: package.json

+7
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@
22
"name": "rescript-chakra",
33
"version": "1.2.0-next.1",
44
"description": "⚡️ ReScript bindings for @chakra-ui/react",
5+
"keywords": [
6+
"rescript",
7+
"react",
8+
"chakra-ui",
9+
"ui-component",
10+
"bindings"
11+
],
512
"author": "ri7nz <[email protected]>",
613
"license": "MIT",
714
"homepage": "https://rescript-chakra.vercel.app/",

Diff for: src/Chakra.res

+1-4
Original file line numberDiff line numberDiff line change
@@ -103,10 +103,7 @@ module Icon = Chakra__Icon
103103
module Image = Chakra__Image
104104

105105
// ### Others
106-
// TODO Others
107-
// module Portal = Chakra__Portal;
108-
// module Transitions = Chakra__Transitions;
109-
106+
module Portal = Chakra__Portal
110107
include Chakra__Transitions
111108
// ### Hooks
112109
// TODO Hooks

Diff for: src/Components/Chakra__Portal.res

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
@react.component @module("@chakra-ui/react")
2+
external make: (
3+
~children: React.element,
4+
~appendToParentPortal: bool=?,
5+
~containerRef: ReactDOM.domRef=?,
6+
) => React.element = "Portal"

0 commit comments

Comments
 (0)