-
-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
1 parent
29322fc
commit 778f0ef
Showing
61 changed files
with
4,033 additions
and
6,886 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
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 |
---|---|---|
@@ -1,31 +1,31 @@ | ||
{ | ||
"Alert": { | ||
"addRole": { "type": "boolean", "defaultValue": false, "required": false }, | ||
"colorScheme": { | ||
"defaultValue": "blue", | ||
"type": "\"whiteAlpha\" | \"blackAlpha\" | \"gray\" | \"red\" | \"orange\" | \"yellow\" | \"green\" | \"teal\" | \"blue\" | \"cyan\" | \"purple\" | \"pink\"", | ||
"AlertDescription": {}, | ||
"AlertIcon": {}, | ||
"AlertRoot": { | ||
"colorPalette": { | ||
"defaultValue": "gray", | ||
"type": "\"black\" | \"white\" | \"whiteAlpha\" | \"blackAlpha\" | \"gray\" | \"red\" | \"orange\" | \"yellow\" | \"green\" | \"teal\" | \"blue\" | \"cyan\" | \"purple\" | \"pink\"", | ||
"required": false, | ||
"description": "The visual color appearance of the component" | ||
"description": "The color palette of the component" | ||
}, | ||
"size": { | ||
"type": "string", | ||
"type": "\"sm\" | \"md\" | \"lg\"", | ||
"defaultValue": "md", | ||
"required": false, | ||
"description": "The size of the Alert" | ||
"description": "The size of the component" | ||
}, | ||
"status": { | ||
"type": "\"info\" | \"warning\" | \"success\" | \"error\" | \"loading\"", | ||
"type": "\"info\" | \"warning\" | \"success\" | \"error\"", | ||
"defaultValue": "info", | ||
"required": false, | ||
"description": "The status of the alert" | ||
"description": "The status of the component" | ||
}, | ||
"variant": { | ||
"type": "\"subtle\" | \"outline\" | \"solid\"", | ||
"defaultValue": "subtle", | ||
"type": "\"subtle\" | \"left-accent\" | \"top-accent\" | \"solid\"", | ||
"required": false, | ||
"description": "The variant of the Alert" | ||
"description": "The variant of the component" | ||
} | ||
}, | ||
"AlertDescription": {}, | ||
"AlertIcon": {}, | ||
"AlertTitle": {} | ||
} |
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 |
---|---|---|
@@ -1,93 +1,33 @@ | ||
{ | ||
"Avatar": { | ||
"colorScheme": { | ||
"type": "\"whiteAlpha\" | \"blackAlpha\" | \"gray\" | \"red\" | \"orange\" | \"yellow\" | \"green\" | \"teal\" | \"blue\" | \"cyan\" | \"purple\" | \"pink\"", | ||
"required": false, | ||
"description": "The visual color appearance of the component" | ||
}, | ||
"crossOrigin": { | ||
"type": "\"\" | \"anonymous\" | \"use-credentials\"", | ||
"required": false | ||
}, | ||
"getInitials": { | ||
"type": "(name: string) => string", | ||
"required": false, | ||
"description": "Function to get the initials to display" | ||
}, | ||
"icon": { | ||
"type": "ReactElement<any, string | JSXElementConstructor<any>>", | ||
"required": false, | ||
"description": "The default avatar used as fallback when `name`, and `src`\nis not specified." | ||
}, | ||
"iconLabel": { "type": "string", "required": false }, | ||
"ignoreFallback": { | ||
"type": "boolean", | ||
"defaultValue": false, | ||
"required": false, | ||
"description": "If `true`, opt out of the avatar's `fallback` logic and\nrenders the `img` at all times." | ||
}, | ||
"loading": { | ||
"type": "\"eager\" | \"lazy\"", | ||
"required": false, | ||
"description": "Defines loading strategy" | ||
}, | ||
"name": { | ||
"type": "string", | ||
"required": false, | ||
"description": "The name of the person in the avatar.\n\n- if `src` has loaded, the name will be used as the `alt` attribute of the `img`\n- If `src` is not loaded, the name will be used to create the initials" | ||
}, | ||
"onError": { | ||
"type": "() => void", | ||
"required": false, | ||
"description": "Function called when image failed to load" | ||
}, | ||
"referrerPolicy": { | ||
"type": "HTMLAttributeReferrerPolicy", | ||
"AvatarBadge": { | ||
"placement": { "type": "BadgePlacement", "required": false } | ||
}, | ||
"AvatarFallback": { "name": { "type": "string", "required": false } }, | ||
"AvatarGroup": {}, | ||
"AvatarImage": {}, | ||
"AvatarRoot": { | ||
"colorPalette": { | ||
"defaultValue": "gray", | ||
"type": "\"black\" | \"white\" | \"whiteAlpha\" | \"blackAlpha\" | \"gray\" | \"red\" | \"orange\" | \"yellow\" | \"green\" | \"teal\" | \"blue\" | \"cyan\" | \"purple\" | \"pink\"", | ||
"required": false, | ||
"description": "Defining which referrer is sent when fetching the resource." | ||
"description": "The color palette of the component" | ||
}, | ||
"showBorder": { | ||
"type": "boolean", | ||
"defaultValue": false, | ||
"shape": { | ||
"type": "\"square\" | \"rounded\" | \"full\"", | ||
"defaultValue": "full", | ||
"required": false, | ||
"description": "If `true`, the `Avatar` will show a border around it.\n\nBest for a group of avatars" | ||
"description": "The shape of the component" | ||
}, | ||
"size": { | ||
"type": "\"xs\" | \"sm\" | \"md\" | \"lg\" | \"xl\" | \"2xl\"", | ||
"defaultValue": "md", | ||
"type": "\"2xs\" | \"xs\" | \"sm\" | \"md\" | \"lg\" | \"xl\" | \"2xl\" | \"full\"", | ||
"required": false, | ||
"description": "The size of the Avatar" | ||
}, | ||
"src": { | ||
"type": "string", | ||
"required": false, | ||
"description": "The image url of the `Avatar`" | ||
}, | ||
"srcSet": { | ||
"type": "string", | ||
"required": false, | ||
"description": "List of sources to use for different screen resolutions" | ||
"description": "The size of the component" | ||
}, | ||
"variant": { | ||
"type": "string", | ||
"required": false, | ||
"description": "The variant of the Avatar" | ||
} | ||
}, | ||
"AvatarBadge": { | ||
"placement": { "type": "BadgePlacement", "required": false } | ||
}, | ||
"AvatarGroup": { | ||
"max": { | ||
"type": "number", | ||
"required": false, | ||
"description": "The maximum number of visible avatars" | ||
}, | ||
"spacing": { | ||
"type": "ResponsiveValue<string | number | (string & {})>", | ||
"defaultValue": "-0.75rem", | ||
"type": "\"solid\" | \"subtle\"", | ||
"required": false, | ||
"description": "The space between the avatars in the group." | ||
"description": "The variant of the component" | ||
} | ||
} | ||
} |
Oops, something went wrong.