-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
37 additions
and
0 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,25 @@ | ||
package mui.lab; | ||
|
||
import mui.core.styles.Classes; | ||
import mui.lab.avatargroup.AvatarGroupClassKey; | ||
import mui.lab.avatargroup.AvatarGroupSpacing; | ||
|
||
typedef AvatarGroupProps = { | ||
> StandardDOMAttributes, | ||
|
||
@:optional var children:ReactFragment; | ||
@:optional var classes:Record<AvatarGroupClassKey>; | ||
@:optional var max:Int; | ||
@:optional var spacing:AvatarGroupSpacing; | ||
} | ||
|
||
@:jsRequire('@material-ui/lab', 'AvatarGroup') | ||
extern class AvatarGroup extends ReactComponentOfProps<AvatarGroupProps> { | ||
static inline function styles<TTheme>(theme:TTheme):ClassesDef<AvatarGroupClassKey> | ||
return AvatarGroupStyles.styles(theme); | ||
} | ||
|
||
@:jsRequire('@material-ui/lab/AvatarGroup/AvatarGroup.js') | ||
extern class AvatarGroupStyles { | ||
static function styles<TTheme>(theme:TTheme):ClassesDef<AvatarGroupClassKey>; | ||
} |
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,6 @@ | ||
package mui.lab.avatargroup; | ||
|
||
@:enum abstract AvatarGroupClassKey(String) to String { | ||
var Root = "root"; | ||
var Avatar = "avatar"; | ||
} |
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,6 @@ | ||
package mui.lab.avatargroup; | ||
|
||
@:enum abstract AvatarGroupSpacing(Dynamic) from Int { | ||
var Small = "small"; | ||
var Medium = "medium"; | ||
} |