@fluentui/react-avatar 9.0.0-rc.9 → 9.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.json +410 -1
- package/CHANGELOG.md +99 -2
- package/dist/index.d.ts +86 -27
- package/lib/AvatarGroupItem.js +2 -0
- package/lib/AvatarGroupItem.js.map +1 -0
- package/lib/components/Avatar/Avatar.js.map +1 -1
- package/lib/components/Avatar/Avatar.types.js.map +1 -1
- package/lib/components/Avatar/renderAvatar.js.map +1 -1
- package/lib/components/Avatar/useAvatar.js +4 -7
- package/lib/components/Avatar/useAvatar.js.map +1 -1
- package/lib/components/Avatar/useAvatarStyles.js +63 -68
- package/lib/components/Avatar/useAvatarStyles.js.map +1 -1
- package/lib/components/AvatarGroup/AvatarGroup.js +2 -1
- package/lib/components/AvatarGroup/AvatarGroup.js.map +1 -1
- package/lib/components/AvatarGroup/AvatarGroup.types.js.map +1 -1
- package/lib/components/AvatarGroup/renderAvatarGroup.js +31 -4
- package/lib/components/AvatarGroup/renderAvatarGroup.js.map +1 -1
- package/lib/components/AvatarGroup/useAvatarGroup.js +68 -28
- package/lib/components/AvatarGroup/useAvatarGroup.js.map +1 -1
- package/lib/components/AvatarGroup/useAvatarGroupStyles.js +274 -15
- package/lib/components/AvatarGroup/useAvatarGroupStyles.js.map +1 -1
- package/lib/components/AvatarGroupItem/AvatarGroupItem.js +16 -0
- package/lib/components/AvatarGroupItem/AvatarGroupItem.js.map +1 -0
- package/lib/components/AvatarGroupItem/AvatarGroupItem.types.js +2 -0
- package/lib/components/AvatarGroupItem/AvatarGroupItem.types.js.map +1 -0
- package/lib/components/AvatarGroupItem/index.js +6 -0
- package/lib/components/AvatarGroupItem/index.js.map +1 -0
- package/lib/components/AvatarGroupItem/renderAvatarGroupItem.js +17 -0
- package/lib/components/AvatarGroupItem/renderAvatarGroupItem.js.map +1 -0
- package/lib/components/AvatarGroupItem/useAvatarGroupItem.js +70 -0
- package/lib/components/AvatarGroupItem/useAvatarGroupItem.js.map +1 -0
- package/lib/components/AvatarGroupItem/useAvatarGroupItemStyles.js +356 -0
- package/lib/components/AvatarGroupItem/useAvatarGroupItemStyles.js.map +1 -0
- package/lib/contexts/AvatarGroupContext.js +7 -0
- package/lib/contexts/AvatarGroupContext.js.map +1 -0
- package/lib/contexts/AvatarGroupContext.types.js +2 -0
- package/lib/contexts/AvatarGroupContext.types.js.map +1 -0
- package/lib/contexts/index.js +2 -0
- package/lib/contexts/index.js.map +1 -0
- package/lib/index.js +2 -2
- package/lib/index.js.map +1 -1
- package/lib/utils/getInitials.js +2 -0
- package/lib/utils/getInitials.js.map +1 -1
- package/lib-commonjs/AvatarGroupItem.js +10 -0
- package/lib-commonjs/AvatarGroupItem.js.map +1 -0
- package/lib-commonjs/components/Avatar/Avatar.js.map +1 -1
- package/lib-commonjs/components/Avatar/renderAvatar.js.map +1 -1
- package/lib-commonjs/components/Avatar/useAvatar.js +4 -7
- package/lib-commonjs/components/Avatar/useAvatar.js.map +1 -1
- package/lib-commonjs/components/Avatar/useAvatarStyles.js +65 -70
- package/lib-commonjs/components/Avatar/useAvatarStyles.js.map +1 -1
- package/lib-commonjs/components/AvatarGroup/AvatarGroup.js +2 -1
- package/lib-commonjs/components/AvatarGroup/AvatarGroup.js.map +1 -1
- package/lib-commonjs/components/AvatarGroup/renderAvatarGroup.js +34 -4
- package/lib-commonjs/components/AvatarGroup/renderAvatarGroup.js.map +1 -1
- package/lib-commonjs/components/AvatarGroup/useAvatarGroup.js +72 -31
- package/lib-commonjs/components/AvatarGroup/useAvatarGroup.js.map +1 -1
- package/lib-commonjs/components/AvatarGroup/useAvatarGroupStyles.js +278 -15
- package/lib-commonjs/components/AvatarGroup/useAvatarGroupStyles.js.map +1 -1
- package/lib-commonjs/components/AvatarGroupItem/AvatarGroupItem.js +27 -0
- package/lib-commonjs/components/AvatarGroupItem/AvatarGroupItem.js.map +1 -0
- package/lib-commonjs/components/AvatarGroupItem/AvatarGroupItem.types.js +6 -0
- package/lib-commonjs/components/AvatarGroupItem/AvatarGroupItem.types.js.map +1 -0
- package/lib-commonjs/components/AvatarGroupItem/index.js +18 -0
- package/lib-commonjs/components/AvatarGroupItem/index.js.map +1 -0
- package/lib-commonjs/components/AvatarGroupItem/renderAvatarGroupItem.js +28 -0
- package/lib-commonjs/components/AvatarGroupItem/renderAvatarGroupItem.js.map +1 -0
- package/lib-commonjs/components/AvatarGroupItem/useAvatarGroupItem.js +84 -0
- package/lib-commonjs/components/AvatarGroupItem/useAvatarGroupItem.js.map +1 -0
- package/lib-commonjs/components/AvatarGroupItem/useAvatarGroupItemStyles.js +370 -0
- package/lib-commonjs/components/AvatarGroupItem/useAvatarGroupItemStyles.js.map +1 -0
- package/lib-commonjs/contexts/AvatarGroupContext.js +15 -0
- package/lib-commonjs/contexts/AvatarGroupContext.js.map +1 -0
- package/lib-commonjs/contexts/AvatarGroupContext.types.js +6 -0
- package/lib-commonjs/contexts/AvatarGroupContext.types.js.map +1 -0
- package/lib-commonjs/contexts/index.js +10 -0
- package/lib-commonjs/contexts/index.js.map +1 -0
- package/lib-commonjs/index.js +34 -8
- package/lib-commonjs/index.js.map +1 -1
- package/lib-commonjs/utils/getInitials.js +2 -0
- package/lib-commonjs/utils/getInitials.js.map +1 -1
- package/lib-commonjs/utils/index.js.map +1 -1
- package/package.json +16 -16
- package/lib/components/AvatarGroup/AvatarGroup.strings.js +0 -4
- package/lib/components/AvatarGroup/AvatarGroup.strings.js.map +0 -1
- package/lib-commonjs/components/AvatarGroup/AvatarGroup.strings.js +0 -10
- package/lib-commonjs/components/AvatarGroup/AvatarGroup.strings.js.map +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
|
|
2
3
|
import type { ComponentProps } from '@fluentui/react-utilities';
|
|
3
4
|
import type { ComponentState } from '@fluentui/react-utilities';
|
|
4
5
|
import type { ForwardRefComponent } from '@fluentui/react-utilities';
|
|
@@ -11,20 +12,57 @@ import { TooltipProps } from '@fluentui/react-tooltip';
|
|
|
11
12
|
|
|
12
13
|
export declare const Avatar: ForwardRefComponent<AvatarProps>;
|
|
13
14
|
|
|
14
|
-
/**
|
|
15
|
-
* @deprecated Use `avatarClassNames.root` instead.
|
|
16
|
-
*/
|
|
17
|
-
export declare const avatarClassName = "fui-Avatar";
|
|
18
|
-
|
|
19
15
|
export declare const avatarClassNames: SlotClassNames<AvatarSlots>;
|
|
20
16
|
|
|
21
17
|
/**
|
|
22
|
-
* AvatarGroup component
|
|
18
|
+
* The AvatarGroup component represents a group of multiple people or entities by taking care of the arrangement
|
|
19
|
+
* of individual Avatars in a spread, stack, or pie layout.
|
|
23
20
|
*/
|
|
24
21
|
export declare const AvatarGroup: ForwardRefComponent<AvatarGroupProps>;
|
|
25
22
|
|
|
26
23
|
export declare const avatarGroupClassNames: SlotClassNames<AvatarGroupSlots>;
|
|
27
24
|
|
|
25
|
+
/**
|
|
26
|
+
* The AvatarGroupItem component represents a single person or entity.
|
|
27
|
+
* AvatarGroupItem should only be used in an AvatarGroup component.
|
|
28
|
+
*/
|
|
29
|
+
export declare const AvatarGroupItem: ForwardRefComponent<AvatarGroupItemProps>;
|
|
30
|
+
|
|
31
|
+
export declare const avatarGroupItemClassNames: SlotClassNames<AvatarGroupItemSlots>;
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* AvatarGroupItem Props
|
|
35
|
+
*/
|
|
36
|
+
export declare type AvatarGroupItemProps = Omit<ComponentProps<Partial<AvatarGroupItemSlots>, 'avatar'>, 'size' | 'shape'>;
|
|
37
|
+
|
|
38
|
+
export declare type AvatarGroupItemSlots = {
|
|
39
|
+
root: NonNullable<Slot<'div'>>;
|
|
40
|
+
/**
|
|
41
|
+
* Avatar that represents a person or entity.
|
|
42
|
+
*/
|
|
43
|
+
avatar: NonNullable<Slot<typeof Avatar>>;
|
|
44
|
+
/**
|
|
45
|
+
* Label used for the name of the AvatarGroupItem when rendered as an overflow item.
|
|
46
|
+
* The content of the label, by default, is the `name` prop from the `avatar` slot.
|
|
47
|
+
*/
|
|
48
|
+
overflowLabel: NonNullable<Slot<'span'>>;
|
|
49
|
+
};
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* State used in rendering AvatarGroupItem
|
|
53
|
+
*/
|
|
54
|
+
export declare type AvatarGroupItemState = ComponentState<AvatarGroupItemSlots> & {
|
|
55
|
+
/**
|
|
56
|
+
* Whether the Avatar is an overflow item.
|
|
57
|
+
*
|
|
58
|
+
* @default false
|
|
59
|
+
*/
|
|
60
|
+
isOverflowItem?: boolean;
|
|
61
|
+
nonOverflowAvatarsCount: number;
|
|
62
|
+
layout: AvatarGroupProps['layout'];
|
|
63
|
+
size: AvatarSizes;
|
|
64
|
+
};
|
|
65
|
+
|
|
28
66
|
/**
|
|
29
67
|
* AvatarGroup Props
|
|
30
68
|
*/
|
|
@@ -36,57 +74,55 @@ export declare type AvatarGroupProps = ComponentProps<AvatarGroupSlots> & {
|
|
|
36
74
|
layout?: 'spread' | 'stack' | 'pie';
|
|
37
75
|
/**
|
|
38
76
|
* Maximum number of Avatars to be displayed before overflowing.
|
|
39
|
-
*
|
|
77
|
+
* Note: if pie layout is used, `maxAvatars` will be ignored.
|
|
40
78
|
* @default 5
|
|
41
79
|
*/
|
|
42
80
|
maxAvatars?: number;
|
|
43
81
|
/**
|
|
44
82
|
* Whether the overflow indicator should render an icon instead of the number of overflowed avatars.
|
|
45
|
-
*
|
|
83
|
+
* Note: The overflowIndicator will default to `icon` when the size is less than 24.
|
|
84
|
+
* @default count
|
|
46
85
|
*/
|
|
47
|
-
overflowIndicator?: '
|
|
86
|
+
overflowIndicator?: 'count' | 'icon';
|
|
48
87
|
/**
|
|
49
88
|
* Size of the avatars.
|
|
50
89
|
* @default 32
|
|
51
90
|
*/
|
|
52
91
|
size?: AvatarSizes;
|
|
53
|
-
/**
|
|
54
|
-
* Strings for localizing text in the tooltip.
|
|
55
|
-
*/
|
|
56
|
-
strings?: AvatarGroupStrings;
|
|
57
92
|
};
|
|
58
93
|
|
|
59
94
|
export declare type AvatarGroupSlots = {
|
|
60
|
-
root: Slot<'div'
|
|
95
|
+
root: NonNullable<Slot<'div'>>;
|
|
61
96
|
/**
|
|
62
97
|
* Popover trigger slot that can be used to change the overflow indicator.
|
|
63
98
|
*/
|
|
64
|
-
|
|
99
|
+
overflowButton?: NonNullable<Slot<'button'>>;
|
|
65
100
|
/**
|
|
66
|
-
*
|
|
101
|
+
* List that contains the overflow AvatarGroupItems.
|
|
67
102
|
*/
|
|
68
|
-
|
|
103
|
+
overflowContent?: NonNullable<Slot<typeof PopoverSurface>>;
|
|
69
104
|
};
|
|
70
105
|
|
|
71
106
|
/**
|
|
72
107
|
* State used in rendering AvatarGroup
|
|
73
108
|
*/
|
|
74
|
-
export declare type AvatarGroupState = ComponentState<AvatarGroupSlots> & {
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
109
|
+
export declare type AvatarGroupState = ComponentState<AvatarGroupSlots> & Required<Pick<AvatarGroupProps, 'layout' | 'size' | 'overflowIndicator'>> & {
|
|
110
|
+
/**
|
|
111
|
+
* Whether there are more Avatars than `maxAvatars`.
|
|
112
|
+
* @default false
|
|
113
|
+
*/
|
|
114
|
+
hasOverflow: boolean;
|
|
79
115
|
/**
|
|
80
|
-
*
|
|
81
|
-
* Can include the token "\{numOverflowedAvatars\}" which will be replaced with the number of overflowed avatars.
|
|
116
|
+
* Tooltip content for the overflow indicator.
|
|
82
117
|
*/
|
|
83
|
-
tooltipContent:
|
|
118
|
+
tooltipContent: TooltipProps['content'];
|
|
119
|
+
nonOverflowAvatarsCount: number;
|
|
84
120
|
};
|
|
85
121
|
|
|
86
122
|
/**
|
|
87
123
|
* A specific named color for the Avatar
|
|
88
124
|
*/
|
|
89
|
-
export declare type AvatarNamedColor = '
|
|
125
|
+
export declare type AvatarNamedColor = 'dark-red' | 'cranberry' | 'red' | 'pumpkin' | 'peach' | 'marigold' | 'gold' | 'brass' | 'brown' | 'forest' | 'seafoam' | 'dark-green' | 'light-teal' | 'teal' | 'steel' | 'blue' | 'royal-blue' | 'cornflower' | 'navy' | 'lavender' | 'purple' | 'grape' | 'lilac' | 'pink' | 'magenta' | 'plum' | 'beige' | 'mink' | 'platinum' | 'anchor';
|
|
90
126
|
|
|
91
127
|
/**
|
|
92
128
|
* Properties for Avatar
|
|
@@ -209,6 +245,8 @@ export declare type AvatarState = ComponentState<AvatarSlots> & Required<Pick<Av
|
|
|
209
245
|
*
|
|
210
246
|
* @returns The 1 or 2 character initials based on the name. Or an empty string if no initials
|
|
211
247
|
* could be derived from the name.
|
|
248
|
+
*
|
|
249
|
+
* @internal
|
|
212
250
|
*/
|
|
213
251
|
export declare function getInitials(displayName: string | undefined | null, isRtl: boolean, options?: {
|
|
214
252
|
/** Should initials be generated from phone numbers (default false) */
|
|
@@ -224,6 +262,11 @@ export declare const renderAvatar_unstable: (state: AvatarState) => JSX.Element;
|
|
|
224
262
|
*/
|
|
225
263
|
export declare const renderAvatarGroup_unstable: (state: AvatarGroupState) => JSX.Element;
|
|
226
264
|
|
|
265
|
+
/**
|
|
266
|
+
* Render the final JSX of AvatarGroupItem
|
|
267
|
+
*/
|
|
268
|
+
export declare const renderAvatarGroupItem_unstable: (state: AvatarGroupItemState) => JSX.Element;
|
|
269
|
+
|
|
227
270
|
export declare const useAvatar_unstable: (props: AvatarProps, ref: React_2.Ref<HTMLElement>) => AvatarState;
|
|
228
271
|
|
|
229
272
|
/**
|
|
@@ -237,6 +280,22 @@ export declare const useAvatar_unstable: (props: AvatarProps, ref: React_2.Ref<H
|
|
|
237
280
|
*/
|
|
238
281
|
export declare const useAvatarGroup_unstable: (props: AvatarGroupProps, ref: React_2.Ref<HTMLElement>) => AvatarGroupState;
|
|
239
282
|
|
|
283
|
+
/**
|
|
284
|
+
* Create the state required to render AvatarGroupItem.
|
|
285
|
+
*
|
|
286
|
+
* The returned state can be modified with hooks such as useAvatarGroupItemStyles_unstable,
|
|
287
|
+
* before being passed to renderAvatarGroupItem_unstable.
|
|
288
|
+
*
|
|
289
|
+
* @param props - props from this instance of AvatarGroupItem
|
|
290
|
+
* @param ref - reference to root HTMLElement of AvatarGroupItem
|
|
291
|
+
*/
|
|
292
|
+
export declare const useAvatarGroupItem_unstable: (props: AvatarGroupItemProps, ref: React_2.Ref<HTMLElement>) => AvatarGroupItemState;
|
|
293
|
+
|
|
294
|
+
/**
|
|
295
|
+
* Apply styling to the AvatarGroupItem slots based on the state
|
|
296
|
+
*/
|
|
297
|
+
export declare const useAvatarGroupItemStyles_unstable: (state: AvatarGroupItemState) => AvatarGroupItemState;
|
|
298
|
+
|
|
240
299
|
/**
|
|
241
300
|
* Apply styling to the AvatarGroup slots based on the state
|
|
242
301
|
*/
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AvatarGroupItem.js","sourceRoot":"../src/","sources":["AvatarGroupItem.ts"],"names":[],"mappings":"AAAA,cAAc,oCAAoC,CAAC","sourcesContent":["export * from './components/AvatarGroupItem/index';\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["components/Avatar/Avatar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,qBAAT,QAAsC,gBAAtC;AACA,SAAS,kBAAT,QAAmC,aAAnC;AACA,SAAS,wBAAT,QAAyC,mBAAzC;AAIA,OAAO,MAAM,MAAM,gBAAqC,KAAK,CAAC,UAAN,CAAiB,CAAC,KAAD,EAAQ,GAAR,KAAe;
|
|
1
|
+
{"version":3,"sources":["components/Avatar/Avatar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,qBAAT,QAAsC,gBAAtC;AACA,SAAS,kBAAT,QAAmC,aAAnC;AACA,SAAS,wBAAT,QAAyC,mBAAzC;AAIA,OAAO,MAAM,MAAM,gBAAqC,KAAK,CAAC,UAAN,CAAiB,CAAC,KAAD,EAAQ,GAAR,KAAe;EACtF,MAAM,KAAK,GAAG,kBAAkB,CAAC,KAAD,EAAQ,GAAR,CAAhC;EAEA,wBAAwB,CAAC,KAAD,CAAxB;EAEA,OAAO,qBAAqB,CAAC,KAAD,CAA5B;AACD,CANuD,CAAjD;AAQP,MAAM,CAAC,WAAP,GAAqB,QAArB","sourcesContent":["import * as React from 'react';\nimport { renderAvatar_unstable } from './renderAvatar';\nimport { useAvatar_unstable } from './useAvatar';\nimport { useAvatarStyles_unstable } from './useAvatarStyles';\nimport type { AvatarProps } from './Avatar.types';\nimport type { ForwardRefComponent } from '@fluentui/react-utilities';\n\nexport const Avatar: ForwardRefComponent<AvatarProps> = React.forwardRef((props, ref) => {\n const state = useAvatar_unstable(props, ref);\n\n useAvatarStyles_unstable(state);\n\n return renderAvatar_unstable(state);\n});\n\nAvatar.displayName = 'Avatar';\n"],"sourceRoot":"../src/"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Avatar.types.js","sourceRoot":"../src/","sources":["components/Avatar/Avatar.types.ts"],"names":[],"mappings":"","sourcesContent":["import { PresenceBadge } from '@fluentui/react-badge';\nimport type { ComponentProps, ComponentState, Slot } from '@fluentui/react-utilities';\n\nexport type AvatarSlots = {\n root: Slot<'span'>;\n\n /**\n * The Avatar's image.\n *\n * Usage e.g.: `image={{ src: '...' }}`\n */\n image?: Slot<'img'>;\n\n /**\n * (optional) Custom initials.\n *\n * It is usually not necessary to specify custom initials; by default they will be derived from the `name` prop,\n * using the `getInitials` function.\n *\n * The initials are displayed when there is no image (including while the image is loading).\n */\n initials?: Slot<'span'>;\n\n /**\n * Icon to be displayed when the avatar doesn't have an image or initials.\n *\n * @default `PersonRegular` (the default icon's size depends on the Avatar's size)\n */\n icon?: Slot<'span'>;\n\n /**\n * Badge to show the avatar's presence status.\n */\n badge?: Slot<typeof PresenceBadge>;\n};\n\n/**\n * A specific named color for the Avatar\n */\nexport type AvatarNamedColor =\n | '
|
|
1
|
+
{"version":3,"file":"Avatar.types.js","sourceRoot":"../src/","sources":["components/Avatar/Avatar.types.ts"],"names":[],"mappings":"","sourcesContent":["import { PresenceBadge } from '@fluentui/react-badge';\nimport type { ComponentProps, ComponentState, Slot } from '@fluentui/react-utilities';\n\nexport type AvatarSlots = {\n root: Slot<'span'>;\n\n /**\n * The Avatar's image.\n *\n * Usage e.g.: `image={{ src: '...' }}`\n */\n image?: Slot<'img'>;\n\n /**\n * (optional) Custom initials.\n *\n * It is usually not necessary to specify custom initials; by default they will be derived from the `name` prop,\n * using the `getInitials` function.\n *\n * The initials are displayed when there is no image (including while the image is loading).\n */\n initials?: Slot<'span'>;\n\n /**\n * Icon to be displayed when the avatar doesn't have an image or initials.\n *\n * @default `PersonRegular` (the default icon's size depends on the Avatar's size)\n */\n icon?: Slot<'span'>;\n\n /**\n * Badge to show the avatar's presence status.\n */\n badge?: Slot<typeof PresenceBadge>;\n};\n\n/**\n * A specific named color for the Avatar\n */\nexport type AvatarNamedColor =\n | 'dark-red'\n | 'cranberry'\n | 'red'\n | 'pumpkin'\n | 'peach'\n | 'marigold'\n | 'gold'\n | 'brass'\n | 'brown'\n | 'forest'\n | 'seafoam'\n | 'dark-green'\n | 'light-teal'\n | 'teal'\n | 'steel'\n | 'blue'\n | 'royal-blue'\n | 'cornflower'\n | 'navy'\n | 'lavender'\n | 'purple'\n | 'grape'\n | 'lilac'\n | 'pink'\n | 'magenta'\n | 'plum'\n | 'beige'\n | 'mink'\n | 'platinum'\n | 'anchor';\n\n/**\n * Sizes that can be used for the Avatar\n */\nexport type AvatarSizes = 16 | 20 | 24 | 28 | 32 | 36 | 40 | 48 | 56 | 64 | 72 | 96 | 120 | 128;\n\n/**\n * Properties for Avatar\n */\nexport type AvatarProps = Omit<ComponentProps<AvatarSlots>, 'color'> & {\n /**\n * Optional activity indicator\n * * active: the avatar will be decorated according to activeAppearance\n * * inactive: the avatar will be reduced in size and partially transparent\n * * unset: normal display\n *\n * @default unset\n */\n active?: 'active' | 'inactive' | 'unset';\n\n /**\n * The appearance when `active=\"active\"`\n *\n * @default ring\n */\n activeAppearance?: 'ring' | 'shadow' | 'ring-shadow';\n\n /**\n * The color when displaying either an icon or initials.\n * * neutral (default): gray\n * * brand: color from the brand palette\n * * colorful: picks a color from a set of pre-defined colors, based on a hash of the name (or idForColor if provided)\n * * [AvatarNamedColor]: a specific color from the theme\n *\n * @default neutral\n */\n color?: 'neutral' | 'brand' | 'colorful' | AvatarNamedColor;\n\n /**\n * Specify a string to be used instead of the name, to determine which color to use when color=\"colorful\".\n * Use this when a name is not available, but there is another unique identifier that can be used instead.\n */\n idForColor?: string | undefined;\n\n /**\n * The name of the person or entity represented by this Avatar. This should always be provided if it is available.\n *\n * The name will be used to determine the initials displayed when there is no icon, as well as provided to\n * accessibility tools.\n */\n name?: string;\n\n /**\n * The avatar can have a circular or square shape.\n * @default circular\n */\n shape?: 'circular' | 'square';\n\n /**\n * Size of the avatar in pixels.\n *\n * Size is restricted to a limited set of supported values recommended for most uses (see `AvatarSizeValue`) and\n * based on design guidelines for the Avatar control.\n *\n * Note: At size 16, if initials are displayed, only the first initial will be rendered.\n *\n * If a non-supported size is neeeded, set `size` to the next-smaller supported size, and set `width` and `height`\n * to override the rendered size.\n *\n * For example, to set the avatar to 45px in size:\n * `<Avatar size={40} style={{ width: '45px', height: '45px' }} />`\n *\n * @default 32\n */\n size?: AvatarSizes;\n};\n\n/**\n * State used in rendering Avatar\n */\nexport type AvatarState = ComponentState<AvatarSlots> &\n Required<Pick<AvatarProps, 'active' | 'activeAppearance' | 'shape' | 'size'>> & {\n /**\n * The Avatar's color, it matches props.color but with `'colorful'` resolved to a named color\n */\n color: NonNullable<Exclude<AvatarProps['color'], 'colorful'>>;\n };\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["components/Avatar/renderAvatar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,QAAT,QAAyB,2BAAzB;AAGA,OAAO,MAAM,qBAAqB,GAAI,KAAD,IAAuB;
|
|
1
|
+
{"version":3,"sources":["components/Avatar/renderAvatar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,QAAT,QAAyB,2BAAzB;AAGA,OAAO,MAAM,qBAAqB,GAAI,KAAD,IAAuB;EAC1D,MAAM;IAAE,KAAF;IAAS;EAAT,IAAuB,QAAQ,CAAc,KAAd,CAArC;EAEA,oBACE,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,IAAP,EAAW,EAAA,GAAK,SAAS,CAAC;EAAf,CAAX,EACG,KAAK,CAAC,QAAN,iBAAkB,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,QAAP,EAAe,EAAA,GAAK,SAAS,CAAC;EAAf,CAAf,CADrB,EAEG,KAAK,CAAC,IAAN,iBAAc,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,IAAP,EAAW,EAAA,GAAK,SAAS,CAAC;EAAf,CAAX,CAFjB,EAGG,KAAK,CAAC,KAAN,iBAAe,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,KAAP,EAAY,EAAA,GAAK,SAAS,CAAC;EAAf,CAAZ,CAHlB,EAIG,KAAK,CAAC,KAAN,iBAAe,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,KAAP,EAAY,EAAA,GAAK,SAAS,CAAC;EAAf,CAAZ,CAJlB,CADF;AAQD,CAXM","sourcesContent":["import * as React from 'react';\nimport { getSlots } from '@fluentui/react-utilities';\nimport type { AvatarSlots, AvatarState } from './Avatar.types';\n\nexport const renderAvatar_unstable = (state: AvatarState) => {\n const { slots, slotProps } = getSlots<AvatarSlots>(state);\n\n return (\n <slots.root {...slotProps.root}>\n {slots.initials && <slots.initials {...slotProps.initials} />}\n {slots.icon && <slots.icon {...slotProps.icon} />}\n {slots.image && <slots.image {...slotProps.image} />}\n {slots.badge && <slots.badge {...slotProps.badge} />}\n </slots.root>\n );\n};\n"],"sourceRoot":"../src/"}
|
|
@@ -3,7 +3,7 @@ import { getNativeElementProps, resolveShorthand, useId } from '@fluentui/react-
|
|
|
3
3
|
import { getInitials } from '../../utils/index';
|
|
4
4
|
import { PersonRegular } from '@fluentui/react-icons';
|
|
5
5
|
import { PresenceBadge } from '@fluentui/react-badge';
|
|
6
|
-
import { useFluent } from '@fluentui/react-shared-contexts';
|
|
6
|
+
import { useFluent_unstable as useFluent } from '@fluentui/react-shared-contexts';
|
|
7
7
|
import { useMergedEventCallbacks } from '@fluentui/react-utilities';
|
|
8
8
|
export const useAvatar_unstable = (props, ref) => {
|
|
9
9
|
var _a;
|
|
@@ -44,7 +44,7 @@ export const useAvatar_unstable = (props, ref) => {
|
|
|
44
44
|
children: getInitials(name, dir === 'rtl', {
|
|
45
45
|
firstInitialOnly: size <= 16
|
|
46
46
|
}),
|
|
47
|
-
'
|
|
47
|
+
id: baseId + '__initials'
|
|
48
48
|
}
|
|
49
49
|
}); // Render the icon slot *only if* there aren't any initials to display.
|
|
50
50
|
|
|
@@ -56,8 +56,7 @@ export const useAvatar_unstable = (props, ref) => {
|
|
|
56
56
|
required: true,
|
|
57
57
|
defaultProps: {
|
|
58
58
|
children: /*#__PURE__*/React.createElement(PersonRegular, null),
|
|
59
|
-
'aria-hidden': true
|
|
60
|
-
id: baseId + '__initials'
|
|
59
|
+
'aria-hidden': true
|
|
61
60
|
}
|
|
62
61
|
});
|
|
63
62
|
}
|
|
@@ -83,8 +82,6 @@ export const useAvatar_unstable = (props, ref) => {
|
|
|
83
82
|
const badge = resolveShorthand(props.badge, {
|
|
84
83
|
defaultProps: {
|
|
85
84
|
size: getBadgeSize(size),
|
|
86
|
-
role: 'presentation',
|
|
87
|
-
'aria-hidden': true,
|
|
88
85
|
id: baseId + '__badge'
|
|
89
86
|
}
|
|
90
87
|
}); // Resolve aria-label and/or aria-labelledby if not provided by the user
|
|
@@ -139,7 +136,7 @@ const getBadgeSize = size => {
|
|
|
139
136
|
}
|
|
140
137
|
};
|
|
141
138
|
|
|
142
|
-
const avatarColors = ['
|
|
139
|
+
const avatarColors = ['dark-red', 'cranberry', 'red', 'pumpkin', 'peach', 'marigold', 'gold', 'brass', 'brown', 'forest', 'seafoam', 'dark-green', 'light-teal', 'teal', 'steel', 'blue', 'royal-blue', 'cornflower', 'navy', 'lavender', 'purple', 'grape', 'lilac', 'pink', 'magenta', 'plum', 'beige', 'mink', 'platinum', 'anchor'];
|
|
143
140
|
|
|
144
141
|
const getHashCode = str => {
|
|
145
142
|
let hashCode = 0;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["components/Avatar/useAvatar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,qBAAT,EAAgC,gBAAhC,EAAkD,KAAlD,QAA+D,2BAA/D;AACA,SAAS,WAAT,QAA4B,mBAA5B;AAEA,SAAS,aAAT,QAA8B,uBAA9B;AACA,SAAS,aAAT,QAA8B,uBAA9B;AACA,SAAS,
|
|
1
|
+
{"version":3,"sources":["components/Avatar/useAvatar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,qBAAT,EAAgC,gBAAhC,EAAkD,KAAlD,QAA+D,2BAA/D;AACA,SAAS,WAAT,QAA4B,mBAA5B;AAEA,SAAS,aAAT,QAA8B,uBAA9B;AACA,SAAS,aAAT,QAA8B,uBAA9B;AACA,SAAS,kBAAkB,IAAI,SAA/B,QAAgD,iCAAhD;AACA,SAAS,uBAAT,QAAwC,2BAAxC;AAEA,OAAO,MAAM,kBAAkB,GAAG,CAAC,KAAD,EAAqB,GAArB,KAAiE;;;EACjG,MAAM;IAAE;EAAF,IAAU,SAAS,EAAzB;EACA,MAAM;IAAE,IAAF;IAAQ,IAAI,GAAG,EAAf;IAAmB,KAAK,GAAG,UAA3B;IAAuC,MAAM,GAAG,OAAhD;IAAyD,gBAAgB,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,MAhBuC,EAiBvC,YAjBuC,EAkBvC,YAlBuC,EAmBvC,MAnBuC,EAoBvC,UApBuC,EAqBvC,QArBuC,EAsBvC,OAtBuC,EAuBvC,OAvBuC,EAwBvC,MAxBuC,EAyBvC,SAzBuC,EA0BvC,MA1BuC,EA2BvC,OA3BuC,EA4BvC,MA5BuC,EA6BvC,UA7BuC,EA8BvC,QA9BuC,CAAzC;;AAiCA,MAAM,WAAW,GAAI,GAAD,IAAwB;EAC1C,IAAI,QAAQ,GAAG,CAAf;;EACA,KAAK,IAAI,GAAG,GAAW,GAAG,CAAC,MAAJ,GAAa,CAApC,EAAuC,GAAG,IAAI,CAA9C,EAAiD,GAAG,EAApD,EAAwD;IACtD,MAAM,EAAE,GAAG,GAAG,CAAC,UAAJ,CAAe,GAAf,CAAX;IACA,MAAM,KAAK,GAAG,GAAG,GAAG,CAApB;IACA,QAAQ,IAAI,CAAC,EAAE,IAAI,KAAP,KAAiB,EAAE,IAAK,IAAI,KAA5B,CAAZ,CAHsD,CAGL;EAClD;;EAED,OAAO,QAAP;AACD,CATD","sourcesContent":["import * as React from 'react';\nimport { getNativeElementProps, resolveShorthand, useId } from '@fluentui/react-utilities';\nimport { getInitials } from '../../utils/index';\nimport type { AvatarNamedColor, AvatarProps, AvatarState } from './Avatar.types';\nimport { PersonRegular } from '@fluentui/react-icons';\nimport { PresenceBadge } from '@fluentui/react-badge';\nimport { useFluent_unstable as useFluent } from '@fluentui/react-shared-contexts';\nimport { useMergedEventCallbacks } from '@fluentui/react-utilities';\n\nexport const useAvatar_unstable = (props: AvatarProps, ref: React.Ref<HTMLElement>): AvatarState => {\n const { dir } = useFluent();\n const { name, size = 32, shape = 'circular', active = 'unset', activeAppearance = 'ring', idForColor } = props;\n let { color = 'neutral' } = props;\n\n // Resolve 'colorful' to a specific color name\n if (color === 'colorful') {\n color = avatarColors[getHashCode(idForColor ?? name ?? '') % avatarColors.length];\n }\n\n const baseId = useId('avatar-');\n\n const root: AvatarState['root'] = getNativeElementProps(\n 'span',\n {\n role: 'img',\n id: baseId,\n // aria-label and/or aria-labelledby are resolved below\n ...props,\n ref,\n },\n /* excludedPropNames: */ ['name'],\n );\n\n // Resolve the initials slot, defaulted to getInitials.\n let initials: AvatarState['initials'] = resolveShorthand(props.initials, {\n required: true,\n defaultProps: {\n children: getInitials(name, dir === 'rtl', { firstInitialOnly: size <= 16 }),\n id: baseId + '__initials',\n },\n });\n\n // Render the icon slot *only if* there aren't any initials to display.\n let icon: AvatarState['icon'] = undefined;\n if (!initials?.children) {\n initials = undefined;\n icon = resolveShorthand(props.icon, {\n required: true,\n defaultProps: {\n children: <PersonRegular />,\n 'aria-hidden': true,\n },\n });\n }\n\n const [imageHidden, setImageHidden] = React.useState<true | undefined>(undefined);\n const image: AvatarState['image'] = resolveShorthand(props.image, {\n defaultProps: {\n alt: '',\n role: 'presentation',\n 'aria-hidden': true,\n hidden: imageHidden,\n },\n });\n\n // Hide the image if it fails to load and restore it on a successful load\n const imageOnError = useMergedEventCallbacks(image?.onError, () => setImageHidden(true));\n const imageOnLoad = useMergedEventCallbacks(image?.onLoad, () => setImageHidden(undefined));\n if (image) {\n image.onError = imageOnError;\n image.onLoad = imageOnLoad;\n }\n\n const badge: AvatarState['badge'] = resolveShorthand(props.badge, {\n defaultProps: {\n size: getBadgeSize(size),\n id: baseId + '__badge',\n },\n });\n\n // Resolve aria-label and/or aria-labelledby if not provided by the user\n if (!root['aria-label'] && !root['aria-labelledby']) {\n if (name) {\n root['aria-label'] = name;\n\n // Include the badge in labelledby if it exists\n if (badge) {\n root['aria-labelledby'] = root.id + ' ' + badge.id;\n }\n } else if (initials) {\n // root's aria-label should be the name, but fall back to being labelledby the initials if name is missing\n root['aria-labelledby'] = initials.id + (badge ? ' ' + badge.id : '');\n }\n }\n\n return {\n size,\n shape,\n active,\n activeAppearance,\n color,\n\n components: {\n root: 'span',\n initials: 'span',\n icon: 'span',\n image: 'img',\n badge: PresenceBadge,\n },\n\n root,\n initials,\n icon,\n image,\n badge,\n };\n};\n\nconst getBadgeSize = (size: AvatarState['size']) => {\n if (size >= 96) {\n return 'extra-large';\n } else if (size >= 64) {\n return 'large';\n } else if (size >= 56) {\n return 'medium';\n } else if (size >= 40) {\n return 'small';\n } else if (size >= 28) {\n return 'extra-small';\n } else {\n return 'tiny';\n }\n};\n\nconst avatarColors: AvatarNamedColor[] = [\n 'dark-red',\n 'cranberry',\n 'red',\n 'pumpkin',\n 'peach',\n 'marigold',\n 'gold',\n 'brass',\n 'brown',\n 'forest',\n 'seafoam',\n 'dark-green',\n 'light-teal',\n 'teal',\n 'steel',\n 'blue',\n 'royal-blue',\n 'cornflower',\n 'navy',\n 'lavender',\n 'purple',\n 'grape',\n 'lilac',\n 'pink',\n 'magenta',\n 'plum',\n 'beige',\n 'mink',\n 'platinum',\n 'anchor',\n];\n\nconst getHashCode = (str: string): number => {\n let hashCode = 0;\n for (let len: number = str.length - 1; len >= 0; len--) {\n const ch = str.charCodeAt(len);\n const shift = len % 8;\n hashCode ^= (ch << shift) + (ch >> (8 - shift)); // eslint-disable-line no-bitwise\n }\n\n return hashCode;\n};\n"],"sourceRoot":"../src/"}
|
|
@@ -1,10 +1,5 @@
|
|
|
1
1
|
import { mergeClasses, __styles, shorthands } from '@griffel/react';
|
|
2
2
|
import { tokens } from '@fluentui/react-theme';
|
|
3
|
-
/**
|
|
4
|
-
* @deprecated Use `avatarClassNames.root` instead.
|
|
5
|
-
*/
|
|
6
|
-
|
|
7
|
-
export const avatarClassName = 'fui-Avatar';
|
|
8
3
|
export const avatarClassNames = {
|
|
9
4
|
root: 'fui-Avatar',
|
|
10
5
|
image: 'fui-Avatar__image',
|
|
@@ -117,71 +112,71 @@ const useStyles = /*#__PURE__*/__styles({
|
|
|
117
112
|
"Bmy1vo4": "fv0atk9",
|
|
118
113
|
"B3o57yi": "f19s7mzo",
|
|
119
114
|
"Cwk7ip": "f1iounmt",
|
|
120
|
-
"
|
|
121
|
-
"
|
|
122
|
-
"
|
|
123
|
-
"
|
|
124
|
-
"
|
|
125
|
-
"
|
|
126
|
-
"
|
|
127
|
-
"
|
|
128
|
-
"
|
|
129
|
-
"
|
|
130
|
-
"
|
|
131
|
-
"
|
|
132
|
-
"
|
|
115
|
+
"Ftih45": "f1wl9k8s",
|
|
116
|
+
"Brfgrao": "f1j7ml58",
|
|
117
|
+
"Bciustq": "ffi060y",
|
|
118
|
+
"Fbdkly": ["f1fzr1x6", "f1f351id"],
|
|
119
|
+
"lawp4y": "fchca7p",
|
|
120
|
+
"mdwyqc": ["f1f351id", "f1fzr1x6"],
|
|
121
|
+
"Budzafs": ["f1kd9phw", "fyf2ch2"],
|
|
122
|
+
"r59vdv": ["fyf2ch2", "f1kd9phw"],
|
|
123
|
+
"n07z76": ["f1gnrg9b", "f1xx2lx6"],
|
|
124
|
+
"ck0cow": ["f1xx2lx6", "f1gnrg9b"],
|
|
125
|
+
"B8bqphf": "f1e9wvyh",
|
|
126
|
+
"h7gv66": "f1vqt3t1",
|
|
127
|
+
"Bvy8d8o": "f1waqg4f"
|
|
133
128
|
},
|
|
134
129
|
"ring": {
|
|
135
|
-
"
|
|
136
|
-
"
|
|
137
|
-
"
|
|
138
|
-
"
|
|
139
|
-
"
|
|
140
|
-
"
|
|
141
|
-
"
|
|
142
|
-
"
|
|
130
|
+
"Bq4z7u6": "f1tikrig",
|
|
131
|
+
"Bk5zm6e": ["f1v0fw5y", "f19vwj9b"],
|
|
132
|
+
"Bqjgrrk": "fpeaeip",
|
|
133
|
+
"Bm6vgfq": ["f19vwj9b", "f1v0fw5y"],
|
|
134
|
+
"Bdkvgpv": "f163fonl",
|
|
135
|
+
"m598lv": ["f1yq6w5o", "f1jpmc5p"],
|
|
136
|
+
"qa3bma": "f11yjt3y",
|
|
137
|
+
"Bbv0w2i": ["f1jpmc5p", "f1yq6w5o"]
|
|
143
138
|
},
|
|
144
139
|
"ringThick": {
|
|
145
|
-
"
|
|
146
|
-
"
|
|
147
|
-
"
|
|
148
|
-
"
|
|
149
|
-
"
|
|
150
|
-
"
|
|
151
|
-
"
|
|
152
|
-
"
|
|
140
|
+
"qehafq": "f1rbtjc9",
|
|
141
|
+
"Bicfajf": ["f1wm0e7m", "f1o0l8kp"],
|
|
142
|
+
"susq4k": "f1tz5420",
|
|
143
|
+
"Biibvgv": ["f1o0l8kp", "f1wm0e7m"],
|
|
144
|
+
"B0qfbqy": "f1q30tuz",
|
|
145
|
+
"B4f6apu": ["f9c0djs", "fcwzx2y"],
|
|
146
|
+
"y0oebl": "f1hdqo1a",
|
|
147
|
+
"uvfttm": ["fcwzx2y", "f9c0djs"]
|
|
153
148
|
},
|
|
154
149
|
"ringThicker": {
|
|
155
|
-
"
|
|
156
|
-
"
|
|
157
|
-
"
|
|
158
|
-
"
|
|
159
|
-
"
|
|
160
|
-
"
|
|
161
|
-
"
|
|
162
|
-
"
|
|
150
|
+
"qehafq": "fk7ejgl",
|
|
151
|
+
"Bicfajf": ["f12sbt0w", "f1tnh028"],
|
|
152
|
+
"susq4k": "fcrsff4",
|
|
153
|
+
"Biibvgv": ["f1tnh028", "f12sbt0w"],
|
|
154
|
+
"B0qfbqy": "f1jrge4j",
|
|
155
|
+
"B4f6apu": ["fc2vpa6", "f133djwz"],
|
|
156
|
+
"y0oebl": "f9hcsm3",
|
|
157
|
+
"uvfttm": ["f133djwz", "fc2vpa6"]
|
|
163
158
|
},
|
|
164
159
|
"ringThickest": {
|
|
165
|
-
"
|
|
166
|
-
"
|
|
167
|
-
"
|
|
168
|
-
"
|
|
169
|
-
"
|
|
170
|
-
"
|
|
171
|
-
"
|
|
172
|
-
"
|
|
160
|
+
"qehafq": "fl3e39p",
|
|
161
|
+
"Bicfajf": ["f14m8wrz", "fckzhtt"],
|
|
162
|
+
"susq4k": "fnxq6pw",
|
|
163
|
+
"Biibvgv": ["fckzhtt", "f14m8wrz"],
|
|
164
|
+
"B0qfbqy": "fr6r3yi",
|
|
165
|
+
"B4f6apu": ["ftxoq8w", "f4gs2h8"],
|
|
166
|
+
"y0oebl": "f9gga8r",
|
|
167
|
+
"uvfttm": ["f4gs2h8", "ftxoq8w"]
|
|
173
168
|
},
|
|
174
169
|
"shadow4": {
|
|
175
|
-
"
|
|
170
|
+
"h8m2vh": "f196qwgu"
|
|
176
171
|
},
|
|
177
172
|
"shadow8": {
|
|
178
|
-
"
|
|
173
|
+
"h8m2vh": "fut48mo"
|
|
179
174
|
},
|
|
180
175
|
"shadow16": {
|
|
181
|
-
"
|
|
176
|
+
"h8m2vh": "fh2kfig"
|
|
182
177
|
},
|
|
183
178
|
"shadow28": {
|
|
184
|
-
"
|
|
179
|
+
"h8m2vh": "f4c2u2p"
|
|
185
180
|
},
|
|
186
181
|
"inactive": {
|
|
187
182
|
"abs64n": "fp25eh",
|
|
@@ -189,14 +184,14 @@ const useStyles = /*#__PURE__*/__styles({
|
|
|
189
184
|
"Bmy1vo4": "fv0atk9",
|
|
190
185
|
"B3o57yi": "f19s7mzo",
|
|
191
186
|
"Cwk7ip": "ftf4am9",
|
|
192
|
-
"
|
|
193
|
-
"
|
|
194
|
-
"
|
|
195
|
-
"
|
|
196
|
-
"
|
|
197
|
-
"
|
|
198
|
-
"
|
|
199
|
-
"
|
|
187
|
+
"qehafq": "fe3o830",
|
|
188
|
+
"Bicfajf": ["fzynn9s", "f1z0ukd1"],
|
|
189
|
+
"susq4k": "f1kyqvp9",
|
|
190
|
+
"Biibvgv": ["f1z0ukd1", "fzynn9s"],
|
|
191
|
+
"vz82u": "f1dhznln",
|
|
192
|
+
"B8bqphf": "f1e9wvyh",
|
|
193
|
+
"h7gv66": "f1vqt3t1",
|
|
194
|
+
"Bvy8d8o": "f1q0dkoh"
|
|
200
195
|
},
|
|
201
196
|
"badge": {
|
|
202
197
|
"qhf8xq": "f1euv43f",
|
|
@@ -273,10 +268,10 @@ const useStyles = /*#__PURE__*/__styles({
|
|
|
273
268
|
"Be2twd7": "f18m8u13"
|
|
274
269
|
}
|
|
275
270
|
}, {
|
|
276
|
-
"d": [".f14t3ns0{display:inline-block;}", ".fi64zpg{-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0;}", ".f10pi13n{position:relative;}", ".fmrv4ls{vertical-align:middle;}", ".f8fbkgy{border-bottom-right-radius:var(--borderRadiusCircular);}", ".f1nfllo7{border-bottom-left-radius:var(--borderRadiusCircular);}", ".f1djnp8u{border-top-right-radius:var(--borderRadiusCircular);}", ".f1s8kh49{border-top-left-radius:var(--borderRadiusCircular);}", ".fk6fouc{font-family:var(--fontFamilyBase);}", ".fl43uef{font-weight:var(--fontWeightSemibold);}", ".f13mqy1h{font-size:var(--fontSizeBase100);}", ".fy9rknc{font-size:var(--fontSizeBase200);}", ".fkhj508{font-size:var(--fontSizeBase300);}", ".fod5ikn{font-size:var(--fontSizeBase400);}", ".f1pp30po{font-size:var(--fontSizeBase500);}", ".f1x0m3f5{font-size:var(--fontSizeBase600);}", ".f1g3puop{border-bottom-right-radius:var(--borderRadiusSmall);}", ".fi2rrw2{border-bottom-left-radius:var(--borderRadiusSmall);}", ".f1rstyi9{border-top-right-radius:var(--borderRadiusSmall);}", ".f1s4nn1u{border-top-left-radius:var(--borderRadiusSmall);}", ".f1aa9q02{border-bottom-right-radius:var(--borderRadiusMedium);}", ".f16jpd5f{border-bottom-left-radius:var(--borderRadiusMedium);}", ".f1jar5jt{border-top-right-radius:var(--borderRadiusMedium);}", ".fyu767a{border-top-left-radius:var(--borderRadiusMedium);}", ".f1ldthgs{border-bottom-right-radius:var(--borderRadiusLarge);}", ".frrelxk{border-bottom-left-radius:var(--borderRadiusLarge);}", ".fobrfso{border-top-right-radius:var(--borderRadiusLarge);}", ".ffisxpw{border-top-left-radius:var(--borderRadiusLarge);}", ".fnivh3a{border-bottom-right-radius:var(--borderRadiusXLarge);}", ".fc7yr5o{border-bottom-left-radius:var(--borderRadiusXLarge);}", ".f1el4m67{border-top-right-radius:var(--borderRadiusXLarge);}", ".f8yange{border-top-left-radius:var(--borderRadiusXLarge);}", ".ftfx35i{-webkit-transform:perspective(1px);-moz-transform:perspective(1px);-ms-transform:perspective(1px);transform:perspective(1px);}", ".fv0atk9{transition-property:transform,opacity;}", ".f19s7mzo{transition-duration:500ms,100ms;}", ".f1iounmt{transition-delay:cubic-bezier(0.80,0.00,0.20,1.00),linear;}", ".
|
|
271
|
+
"d": [".f14t3ns0{display:inline-block;}", ".fi64zpg{-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0;}", ".f10pi13n{position:relative;}", ".fmrv4ls{vertical-align:middle;}", ".f8fbkgy{border-bottom-right-radius:var(--borderRadiusCircular);}", ".f1nfllo7{border-bottom-left-radius:var(--borderRadiusCircular);}", ".f1djnp8u{border-top-right-radius:var(--borderRadiusCircular);}", ".f1s8kh49{border-top-left-radius:var(--borderRadiusCircular);}", ".fk6fouc{font-family:var(--fontFamilyBase);}", ".fl43uef{font-weight:var(--fontWeightSemibold);}", ".f13mqy1h{font-size:var(--fontSizeBase100);}", ".fy9rknc{font-size:var(--fontSizeBase200);}", ".fkhj508{font-size:var(--fontSizeBase300);}", ".fod5ikn{font-size:var(--fontSizeBase400);}", ".f1pp30po{font-size:var(--fontSizeBase500);}", ".f1x0m3f5{font-size:var(--fontSizeBase600);}", ".f1g3puop{border-bottom-right-radius:var(--borderRadiusSmall);}", ".fi2rrw2{border-bottom-left-radius:var(--borderRadiusSmall);}", ".f1rstyi9{border-top-right-radius:var(--borderRadiusSmall);}", ".f1s4nn1u{border-top-left-radius:var(--borderRadiusSmall);}", ".f1aa9q02{border-bottom-right-radius:var(--borderRadiusMedium);}", ".f16jpd5f{border-bottom-left-radius:var(--borderRadiusMedium);}", ".f1jar5jt{border-top-right-radius:var(--borderRadiusMedium);}", ".fyu767a{border-top-left-radius:var(--borderRadiusMedium);}", ".f1ldthgs{border-bottom-right-radius:var(--borderRadiusLarge);}", ".frrelxk{border-bottom-left-radius:var(--borderRadiusLarge);}", ".fobrfso{border-top-right-radius:var(--borderRadiusLarge);}", ".ffisxpw{border-top-left-radius:var(--borderRadiusLarge);}", ".fnivh3a{border-bottom-right-radius:var(--borderRadiusXLarge);}", ".fc7yr5o{border-bottom-left-radius:var(--borderRadiusXLarge);}", ".f1el4m67{border-top-right-radius:var(--borderRadiusXLarge);}", ".f8yange{border-top-left-radius:var(--borderRadiusXLarge);}", ".ftfx35i{-webkit-transform:perspective(1px);-moz-transform:perspective(1px);-ms-transform:perspective(1px);transform:perspective(1px);}", ".fv0atk9{transition-property:transform,opacity;}", ".f19s7mzo{transition-duration:500ms,100ms;}", ".f1iounmt{transition-delay:cubic-bezier(0.80,0.00,0.20,1.00),linear;}", ".f1wl9k8s::before{content:\"\";}", ".f1j7ml58::before{position:absolute;}", ".ffi060y::before{top:0;}", ".f1fzr1x6::before{left:0;}", ".f1f351id::before{right:0;}", ".fchca7p::before{bottom:0;}", ".f1kd9phw::before{border-bottom-right-radius:inherit;}", ".fyf2ch2::before{border-bottom-left-radius:inherit;}", ".f1gnrg9b::before{border-top-right-radius:inherit;}", ".f1xx2lx6::before{border-top-left-radius:inherit;}", ".f1e9wvyh::before{transition-property:margin,opacity;}", ".f1vqt3t1::before{transition-duration:500ms,400ms;}", ".f1waqg4f::before{transition-delay:cubic-bezier(0.80,0.00,0.20,1.00),linear;}", ".f1tikrig::before{border-top-color:var(--colorBrandBackgroundStatic);}", ".f1v0fw5y::before{border-right-color:var(--colorBrandBackgroundStatic);}", ".f19vwj9b::before{border-left-color:var(--colorBrandBackgroundStatic);}", ".fpeaeip::before{border-bottom-color:var(--colorBrandBackgroundStatic);}", ".f163fonl::before{border-top-style:solid;}", ".f1yq6w5o::before{border-right-style:solid;}", ".f1jpmc5p::before{border-left-style:solid;}", ".f11yjt3y::before{border-bottom-style:solid;}", ".f1rbtjc9::before{margin-top:calc(-2 * var(--strokeWidthThick));}", ".f1wm0e7m::before{margin-right:calc(-2 * var(--strokeWidthThick));}", ".f1o0l8kp::before{margin-left:calc(-2 * var(--strokeWidthThick));}", ".f1tz5420::before{margin-bottom:calc(-2 * var(--strokeWidthThick));}", ".f1q30tuz::before{border-top-width:var(--strokeWidthThick);}", ".f9c0djs::before{border-right-width:var(--strokeWidthThick);}", ".fcwzx2y::before{border-left-width:var(--strokeWidthThick);}", ".f1hdqo1a::before{border-bottom-width:var(--strokeWidthThick);}", ".fk7ejgl::before{margin-top:calc(-2 * var(--strokeWidthThicker));}", ".f12sbt0w::before{margin-right:calc(-2 * var(--strokeWidthThicker));}", ".f1tnh028::before{margin-left:calc(-2 * var(--strokeWidthThicker));}", ".fcrsff4::before{margin-bottom:calc(-2 * var(--strokeWidthThicker));}", ".f1jrge4j::before{border-top-width:var(--strokeWidthThicker);}", ".fc2vpa6::before{border-right-width:var(--strokeWidthThicker);}", ".f133djwz::before{border-left-width:var(--strokeWidthThicker);}", ".f9hcsm3::before{border-bottom-width:var(--strokeWidthThicker);}", ".fl3e39p::before{margin-top:calc(-2 * var(--strokeWidthThickest));}", ".f14m8wrz::before{margin-right:calc(-2 * var(--strokeWidthThickest));}", ".fckzhtt::before{margin-left:calc(-2 * var(--strokeWidthThickest));}", ".fnxq6pw::before{margin-bottom:calc(-2 * var(--strokeWidthThickest));}", ".fr6r3yi::before{border-top-width:var(--strokeWidthThickest);}", ".ftxoq8w::before{border-right-width:var(--strokeWidthThickest);}", ".f4gs2h8::before{border-left-width:var(--strokeWidthThickest);}", ".f9gga8r::before{border-bottom-width:var(--strokeWidthThickest);}", ".f196qwgu::before{box-shadow:var(--shadow4);}", ".fut48mo::before{box-shadow:var(--shadow8);}", ".fh2kfig::before{box-shadow:var(--shadow16);}", ".f4c2u2p::before{box-shadow:var(--shadow28);}", ".fp25eh{opacity:0.8;}", ".f1clczzi{-webkit-transform:scale(0.875);-moz-transform:scale(0.875);-ms-transform:scale(0.875);transform:scale(0.875);}", ".ftf4am9{transition-delay:cubic-bezier(0.33,0.00,0.10,1.00),linear;}", ".fe3o830::before{margin-top:0;}", ".fzynn9s::before{margin-right:0;}", ".f1z0ukd1::before{margin-left:0;}", ".f1kyqvp9::before{margin-bottom:0;}", ".f1dhznln::before{opacity:0;}", ".f1q0dkoh::before{transition-delay:cubic-bezier(0.33,0.00,0.10,1.00),linear;}", ".f1euv43f{position:absolute;}", ".f1yab3r1{bottom:0;}", ".f1e31b4d{right:0;}", ".f1vgc2s3{left:0;}", ".ffo9j2l{box-shadow:0 0 0 var(--strokeWidthThin) var(--colorNeutralBackground1);}", ".f1nayfl2{box-shadow:0 0 0 var(--strokeWidthThick) var(--colorNeutralBackground1);}", ".f15twtuk{top:0;}", ".fly5x3f{width:100%;}", ".f1l02sjl{height:100%;}", ".f1d9uwra{border-bottom-right-radius:inherit;}", ".fzibvwi{border-bottom-left-radius:inherit;}", ".fuoumxm{border-top-right-radius:inherit;}", ".f1vtqnvc{border-top-left-radius:inherit;}", ".f1ps3kmd{object-fit:cover;}", ".f12kltsn{vertical-align:top;}", ".f1ewtqcl{box-sizing:border-box;}", ".fp6vxd{line-height:1;}", ".f192inf7{border-top-width:var(--strokeWidthThin);}", ".f5tn483{border-right-width:var(--strokeWidthThin);}", ".f1ojsxk5{border-left-width:var(--strokeWidthThin);}", ".f1vxd6vx{border-bottom-width:var(--strokeWidthThin);}", ".fzkkow9{border-top-style:solid;}", ".fcdblym{border-right-style:solid;}", ".fjik90z{border-left-style:solid;}", ".fg706s2{border-bottom-style:solid;}", ".fghlq4f{border-top-color:var(--colorTransparentStroke);}", ".f1gn591s{border-right-color:var(--colorTransparentStroke);}", ".fjscplz{border-left-color:var(--colorTransparentStroke);}", ".fb073pr{border-bottom-color:var(--colorTransparentStroke);}", ".f22iagw{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;}", ".f122n59{-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}", ".f4d9j23{-webkit-box-pack:center;-ms-flex-pack:center;-webkit-justify-content:center;justify-content:center;}", ".fa4t5tb{vertical-align:center;}", ".f17mccla{text-align:center;}", ".f1xqy1su{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;}", ".f1ugzwwg{font-size:12px;}", ".f4ybsrx{font-size:16px;}", ".fe5j1ua{font-size:20px;}", ".f1rt2boy{font-size:24px;}", ".f24l1pt{font-size:28px;}", ".ffl51b{font-size:32px;}", ".f18m8u13{font-size:48px;}"]
|
|
277
272
|
});
|
|
278
273
|
|
|
279
|
-
const useSizeStyles = /*#__PURE__*/__styles({
|
|
274
|
+
export const useSizeStyles = /*#__PURE__*/__styles({
|
|
280
275
|
"16": {
|
|
281
276
|
"a9b677": "fjw5fx7",
|
|
282
277
|
"Bqenvij": "fd461yt"
|
|
@@ -346,7 +341,7 @@ const useColorStyles = /*#__PURE__*/__styles({
|
|
|
346
341
|
"sj55zd": "fqpbvvt",
|
|
347
342
|
"De3pzq": "f1blnnmj"
|
|
348
343
|
},
|
|
349
|
-
"
|
|
344
|
+
"dark-red": {
|
|
350
345
|
"sj55zd": "fqjd1y1",
|
|
351
346
|
"De3pzq": "f1vq2oo4"
|
|
352
347
|
},
|
|
@@ -390,11 +385,11 @@ const useColorStyles = /*#__PURE__*/__styles({
|
|
|
390
385
|
"sj55zd": "fnnb6wn",
|
|
391
386
|
"De3pzq": "f1n057jc"
|
|
392
387
|
},
|
|
393
|
-
"
|
|
388
|
+
"dark-green": {
|
|
394
389
|
"sj55zd": "ff58qw8",
|
|
395
390
|
"De3pzq": "f11t05wk"
|
|
396
391
|
},
|
|
397
|
-
"
|
|
392
|
+
"light-teal": {
|
|
398
393
|
"sj55zd": "f1up9qbj",
|
|
399
394
|
"De3pzq": "f42feg1"
|
|
400
395
|
},
|
|
@@ -410,7 +405,7 @@ const useColorStyles = /*#__PURE__*/__styles({
|
|
|
410
405
|
"sj55zd": "f1rjv50u",
|
|
411
406
|
"De3pzq": "f1ggcpy6"
|
|
412
407
|
},
|
|
413
|
-
"
|
|
408
|
+
"royal-blue": {
|
|
414
409
|
"sj55zd": "f1emykk5",
|
|
415
410
|
"De3pzq": "f12rj61f"
|
|
416
411
|
},
|