Skip to content

Commit bb65314

Browse files
project-turtle: Initialize ProjectTurtle theme components and index files
1 parent b98c65b commit bb65314

File tree

69 files changed

+2584
-1
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

69 files changed

+2584
-1
lines changed

packages/react-cap-theme/src/components/Theme.tsx

Lines changed: 358 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
export type {
2+
AvatarNamedColor,
3+
AvatarProps,
4+
AvatarShape,
5+
AvatarSize,
6+
AvatarSlots,
7+
AvatarState
8+
} from '@fluentui/react-avatar';
9+
10+
export { Avatar } from './components/Avatar/Avatar';
11+
export { renderAvatar } from './components/Avatar/renderAvatar';
12+
export { useAvatar } from './components/Avatar/useAvatar';
13+
export { avatarClassNames, useSizeStyles, useAvatarStyles } from './components/Avatar/useAvatarStyles.styles';
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
export {
2+
AvatarGroupProvider,
3+
avatarGroupClassNames,
4+
renderAvatarGroup_unstable as renderAvatarGroup,
5+
useAvatarGroupContext_unstable as useAvatarGroupContext,
6+
useAvatarGroupContextValues as useAvatarGroupContextValues,
7+
useAvatarGroupStyles_unstable as useAvatarGroupStyles,
8+
useAvatarGroup_unstable as useAvatarGroup
9+
} from '@fluentui/react-avatar';
10+
11+
export type {
12+
AvatarGroupContextValue,
13+
AvatarGroupContextValues,
14+
AvatarGroupProps,
15+
AvatarGroupSlots,
16+
AvatarGroupState
17+
} from '@fluentui/react-avatar';
18+
19+
export { AvatarGroup } from './components/AvatarGroup/AvatarGroup';
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
export {
2+
avatarGroupItemClassNames,
3+
renderAvatarGroupItem_unstable as renderAvatarGroupItem,
4+
useAvatarGroupItemStyles_unstable as useAvatarGroupItemStyles,
5+
useAvatarGroupItem_unstable as useAvatarGroupItem
6+
} from '@fluentui/react-avatar';
7+
8+
export type {
9+
AvatarGroupItemProps,
10+
AvatarGroupItemSlots,
11+
AvatarGroupItemState
12+
} from '@fluentui/react-avatar';
13+
14+
export { AvatarGroupItem } from './components/AvatarGroupItem/AvatarGroupItem';
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
export {
2+
avatarGroupPopoverClassNames,
3+
renderAvatarGroupPopover_unstable as renderAvatarGroupPopover,
4+
useAvatarGroupPopoverContextValues_unstable as useAvatarGroupPopoverContextValues,
5+
useAvatarGroupPopoverStyles_unstable as useAvatarGroupPopoverStyles,
6+
useAvatarGroupPopover_unstable as useAvatarGroupPopover
7+
} from '@fluentui/react-avatar';
8+
9+
export type {
10+
AvatarGroupPopoverProps,
11+
AvatarGroupPopoverSlots,
12+
AvatarGroupPopoverState
13+
} from '@fluentui/react-avatar';
14+
15+
export { AvatarGroupPopover } from './components/AvatarGroupPopover/AvatarGroupPopover';
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
import * as React from 'react';
2+
import { useCustomStyleHook_unstable } from '@fluentui/react-shared-contexts';
3+
import type { ForwardRefComponent } from '@fluentui/react-utilities';
4+
import { renderAvatar } from './renderAvatar';
5+
import type { AvatarProps } from '@fluentui/react-avatar';
6+
import { useAvatarStyles } from './useAvatarStyles.styles';
7+
import { useAvatar } from './useAvatar';
8+
9+
/**
10+
* An Avatar is a graphical representation of a user, team, or entity.
11+
* @alpha
12+
*/
13+
export const Avatar: ForwardRefComponent<AvatarProps> = React.forwardRef((props, ref) => {
14+
const state = useAvatar(props, ref);
15+
useAvatarStyles(state);
16+
useCustomStyleHook_unstable('useAvatarStyles_unstable')(state);
17+
return renderAvatar(state);
18+
});
19+
20+
Avatar.displayName = 'Avatar';
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import { type AvatarState, renderAvatar_unstable } from '@fluentui/react-avatar';
2+
import type * as React from 'react';
3+
4+
/**
5+
* Render the final JSX of Avatar
6+
* @alpha
7+
*/
8+
export const renderAvatar: React.FC<AvatarState> = renderAvatar_unstable;
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import { useAvatar_unstable } from '@fluentui/react-avatar';
2+
3+
/**
4+
* Use this hook to create the state required to render Avatar.
5+
* @alpha
6+
*/
7+
export const useAvatar = useAvatar_unstable;

0 commit comments

Comments
 (0)