This repository has been archived by the owner on Jun 5, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
TextField 옵션 추가 및 TextTab 바인딩 추가 (#89)
* feat: add TextField options - showHintOnFocusOnly, hideClearButton * feat: TextField options ReScript bindings * feat: TextTab export / add ReScript binding * release
- Loading branch information
Jaeho Lee
authored
Dec 12, 2022
1 parent
f8a8d7f
commit 1a0ee18
Showing
11 changed files
with
212 additions
and
79 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
"@greenlabs/formula-components": patch | ||
"@greenlabs/rescript-formula-components": patch | ||
--- | ||
|
||
- feat: add TextField options (showHintOnFocusOnly, hideClearButton) | ||
- feat: TextField options ReScript bindings |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
module List = { | ||
@module("@greenlabs/formula-components") @react.component | ||
external make: ( | ||
~props: {..}=?, | ||
~rootProps: {..}=?, // TODO: RadixUI props | ||
~contents: React.element=?, | ||
~fullWidth: bool=?, | ||
~onValueChange: string => unit=?, | ||
~children: React.element, | ||
~ref: ReactDOM.Ref.t=?, | ||
) => React.element = "TextTab" | ||
} | ||
|
||
module Trigger = { | ||
type badgeType = { | ||
type_: [#count | #simple | #countSimple], | ||
value?: int, | ||
} | ||
|
||
@module("@greenlabs/formula-components") @react.component | ||
external make: ( | ||
~icon: React.componentLike<{..}, React.element>=?, // FIXME: Icon component type | ||
~title: string=?, | ||
~badge: badgeType=?, | ||
~value: string, | ||
~children: React.element=?, | ||
) => React.element = "TextTab" | ||
} | ||
|
||
module Content = { | ||
@module("@greenlabs/formula-components") @react.component | ||
external make: ( | ||
~value: string, | ||
~children: React.element=?, | ||
~props: ReactDOM.domProps=?, | ||
) => React.element = "TextTab" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.