Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

‎.yarnrc.yml‎

Lines changed: 2 additions & 2 deletions
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

‎README.md‎

Lines changed: 7 additions & 4 deletions
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

‎package.json‎

Lines changed: 7 additions & 0 deletions
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 <hi@rin.rocks>",
613
"license": "MIT",
714
"homepage": "https://rescript-chakra.vercel.app/",

‎src/Chakra.res‎

Lines changed: 1 addition & 4 deletions
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

‎src/Components/Chakra__Portal.res‎

Lines changed: 6 additions & 0 deletions
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)

AltStyle によって変換されたページ (->オリジナル) /