@atlaskit/avatar 25.15.1 → 26.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.
Files changed (58) hide show
  1. package/Avatar/package.json +1 -8
  2. package/AvatarItem/package.json +1 -8
  3. package/CHANGELOG.md +26 -0
  4. package/Presence/package.json +1 -8
  5. package/Skeleton/package.json +1 -8
  6. package/Status/package.json +1 -8
  7. package/avatar/package.json +1 -8
  8. package/avatar-content/package.json +1 -8
  9. package/avatar-context/package.json +1 -8
  10. package/avatar-item/package.json +1 -8
  11. package/avatar.docs.tsx +217 -215
  12. package/constants/package.json +1 -8
  13. package/dist/cjs/avatar.js +1 -1
  14. package/dist/es2019/avatar.js +1 -1
  15. package/dist/esm/avatar.js +1 -1
  16. package/get-appearance/package.json +1 -8
  17. package/package.json +18 -26
  18. package/presence/package.json +1 -8
  19. package/skeleton/package.json +1 -8
  20. package/status/package.json +1 -8
  21. package/types/package.json +1 -8
  22. package/use-avatar-context/package.json +1 -8
  23. package/dist/types-ts4.5/avatar-content.d.ts +0 -21
  24. package/dist/types-ts4.5/avatar-context.d.ts +0 -14
  25. package/dist/types-ts4.5/avatar-item.d.ts +0 -64
  26. package/dist/types-ts4.5/avatar-radius.d.ts +0 -2
  27. package/dist/types-ts4.5/avatar-sizes.d.ts +0 -2
  28. package/dist/types-ts4.5/avatar.d.ts +0 -126
  29. package/dist/types-ts4.5/constants.d.ts +0 -2
  30. package/dist/types-ts4.5/entry-points/avatar-content.d.ts +0 -1
  31. package/dist/types-ts4.5/entry-points/avatar-context.d.ts +0 -2
  32. package/dist/types-ts4.5/entry-points/avatar-item.d.ts +0 -2
  33. package/dist/types-ts4.5/entry-points/avatar.d.ts +0 -2
  34. package/dist/types-ts4.5/entry-points/constants.d.ts +0 -3
  35. package/dist/types-ts4.5/entry-points/get-appearance.d.ts +0 -1
  36. package/dist/types-ts4.5/entry-points/presence-old.d.ts +0 -3
  37. package/dist/types-ts4.5/entry-points/presence.d.ts +0 -2
  38. package/dist/types-ts4.5/entry-points/skeleton.d.ts +0 -2
  39. package/dist/types-ts4.5/entry-points/status-old.d.ts +0 -3
  40. package/dist/types-ts4.5/entry-points/status.d.ts +0 -2
  41. package/dist/types-ts4.5/entry-points/types.d.ts +0 -1
  42. package/dist/types-ts4.5/entry-points/use-avatar-context.d.ts +0 -1
  43. package/dist/types-ts4.5/get-appearance.d.ts +0 -3
  44. package/dist/types-ts4.5/index.d.ts +0 -19
  45. package/dist/types-ts4.5/internal/avatar-image.d.ts +0 -21
  46. package/dist/types-ts4.5/internal/content-context.d.ts +0 -29
  47. package/dist/types-ts4.5/internal/ensure-is-inside-avatar-context.d.ts +0 -5
  48. package/dist/types-ts4.5/internal/get-custom-element.d.ts +0 -3
  49. package/dist/types-ts4.5/internal/icon-wrapper.d.ts +0 -17
  50. package/dist/types-ts4.5/internal/presence-wrapper.d.ts +0 -19
  51. package/dist/types-ts4.5/internal/status-wrapper.d.ts +0 -19
  52. package/dist/types-ts4.5/internal/use-ensure-is-inside-avatar.d.ts +0 -1
  53. package/dist/types-ts4.5/presence.d.ts +0 -33
  54. package/dist/types-ts4.5/size-utils.d.ts +0 -6
  55. package/dist/types-ts4.5/skeleton.d.ts +0 -34
  56. package/dist/types-ts4.5/status.d.ts +0 -32
  57. package/dist/types-ts4.5/types.d.ts +0 -8
  58. package/dist/types-ts4.5/use-avatar-context.d.ts +0 -2
@@ -1,33 +0,0 @@
1
- /**
2
- * @jsxRuntime classic
3
- * @jsx jsx
4
- */
5
- import { type FC, type ReactNode } from 'react';
6
- import { type Presence } from './types';
7
- export interface PresenceProps {
8
- /**
9
- * Used to override the default border color of the presence indicator.
10
- * Accepts any color argument that the border-color CSS property accepts.
11
- */
12
- borderColor?: string;
13
- /**
14
- * Content to use as a custom presence indicator (usually not required if
15
- * consuming Presence separate to Avatar).
16
- */
17
- children?: ReactNode;
18
- /**
19
- * The type of presence indicator to show.
20
- */
21
- presence?: Presence;
22
- }
23
- /**
24
- * __Avatar presence__
25
- *
26
- * A presence shows an avatar’s availability.
27
- *
28
- * - [Examples](https://atlassian.design/components/avatar/avatar-presence/examples)
29
- * - [Code](https://atlassian.design/components/avatar/avatar-presence/code)
30
- * - [Usage](https://atlassian.design/components/avatar/avatar-presence/usage)
31
- */
32
- declare const AvatarPresence: FC<PresenceProps>;
33
- export default AvatarPresence;
@@ -1,6 +0,0 @@
1
- import { type AppearanceType, type SizeType } from './types';
2
- export declare const SQUARE_AVATAR_MAX_SIZE_FF = "platform_square_avatar_remove_xlarge_xxlarge_sizes";
3
- export declare const getAvatarSize: ({ appearance, size, }: {
4
- appearance: AppearanceType;
5
- size: SizeType;
6
- }) => SizeType;
@@ -1,34 +0,0 @@
1
- /**
2
- * @jsxRuntime classic
3
- * @jsx jsx
4
- */
5
- import { type FC } from 'react';
6
- import { type AppearanceType, type SizeType } from './types';
7
- export interface SkeletonProps {
8
- /**
9
- * Indicates the shape of the avatar skeleton. Most avatars are circular, but square avatars can be used for container objects.
10
- */
11
- appearance?: AppearanceType;
12
- /**
13
- * Color of the skeleton. By default, it will inherit the current text color.
14
- */
15
- color?: string;
16
- /**
17
- * Defines the size of the avatar skeleton.
18
- */
19
- size?: SizeType;
20
- /**
21
- * Defines the opacity of the avatar skeleton. Use `weight="normal"` for the default opacity, or `weight="strong"` for a bolder opacity.
22
- */
23
- weight?: 'normal' | 'strong';
24
- }
25
- /**
26
- * __Skeleton__
27
- *
28
- * A skeleton is the loading state for the avatar component.
29
- *
30
- * - [Examples](https://atlassian.design/components/avatar/avatar-skeleton/examples)
31
- * - [Code](https://atlassian.design/components/avatar/avatar-skeleton/code)
32
- */
33
- declare const Skeleton: FC<SkeletonProps>;
34
- export default Skeleton;
@@ -1,32 +0,0 @@
1
- /**
2
- * @jsxRuntime classic
3
- * @jsx jsx
4
- */
5
- import { type FC, type ReactNode } from 'react';
6
- import { type Status } from './types';
7
- export interface StatusProps {
8
- /**
9
- * Override the default border color of the status indicator. This accepts
10
- * any color argument that the CSS property `border-color` accepts.
11
- */
12
- borderColor?: string;
13
- /**
14
- * Content to use as a custom status indicator. Not needed if consuming
15
- * `Status` separate to `Avatar`.
16
- */
17
- children?: ReactNode;
18
- /**
19
- * The type of status indicator to show.
20
- */
21
- status?: Status;
22
- }
23
- /**
24
- * __Avatar status__
25
- *
26
- * An avatar status shows contextual information, such as if someone approves or declines something.
27
- *
28
- * - [Examples](https://atlassian.design/components/avatar/avatar-status/examples)
29
- * - [Code](https://atlassian.design/components/avatar/avatar-status/code)
30
- */
31
- declare const AvatarStatus: FC<StatusProps>;
32
- export default AvatarStatus;
@@ -1,8 +0,0 @@
1
- import { type UIAnalyticsEvent } from '@atlaskit/analytics-next';
2
- export type AvatarSizeMap = Record<SizeType, number>;
3
- export type AppearanceType = 'circle' | 'square' | 'hexagon';
4
- export type SizeType = 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge';
5
- export type IndicatorSizeType = 'small' | 'medium' | 'large' | 'xlarge';
6
- export type AvatarClickEventHandler = (event: React.MouseEvent, analyticsEvent?: UIAnalyticsEvent) => void;
7
- export type Status = 'approved' | 'declined' | 'locked' | 'warning';
8
- export type Presence = 'online' | 'busy' | 'focus' | 'offline';
@@ -1,2 +0,0 @@
1
- import { type AvatarContextProps } from './avatar-context';
2
- export declare const useAvatarContext: () => AvatarContextProps | undefined;