@opencxh/ui-kit 3.137.4 → 3.137.6

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.
@@ -1,9 +1,22 @@
1
1
  import { default as React } from 'react';
2
+ /**
3
+ * Plate colour. `default` is the neutral disc used everywhere a monogram is just
4
+ * an identity marker.
5
+ *
6
+ * The other three are for a message thread, where the plate answers "which side
7
+ * is this from" before you read a word: `in` is the other party, `out` is us
8
+ * (ink, so it reads as ours in both themes) and `note` is an internal remark.
9
+ * Each is a fill with its own foreground — a fill cannot borrow a colour from
10
+ * the ramp, because the ramp does not change between light and dark.
11
+ */
12
+ export type AvatarTone = "default" | "in" | "out" | "note";
2
13
  export interface AvatarProps {
3
14
  /** Full name; used for the initials fallback and alt/title text */
4
15
  name?: string;
5
16
  /** Optional image URL; falls back to initials when absent or on load error */
6
17
  src?: string;
18
+ /** Plate colour; see {@link AvatarTone}. */
19
+ tone?: AvatarTone;
7
20
  /** Size preset */
8
21
  size?: "xs" | "sm" | "md" | "lg";
9
22
  /** Additional CSS classes */
@@ -33,7 +33,7 @@ export { Spinner, type SpinnerProps } from './feedback/Spinner';
33
33
  export { StatusDot, type StatusDotProps } from './feedback/StatusDot';
34
34
  export { StepIndicator, type StepIndicatorProps } from './feedback/StepIndicator';
35
35
  export { AssistantCard, type AssistantCardProps } from './content/AssistantCard';
36
- export { Avatar, type AvatarProps } from './content/Avatar';
36
+ export { Avatar, type AvatarProps, type AvatarTone } from './content/Avatar';
37
37
  export { AvatarStack, type AvatarStackPerson, type AvatarStackProps } from './content/AvatarStack';
38
38
  export { ChannelBadge, type ChannelBadgeProps, type ChannelKey } from './content/ChannelBadge';
39
39
  export { Icon, type IconProps } from './content/Icon';
@@ -31,6 +31,13 @@ interface SidebarMenuProps {
31
31
  isSelectedHandler: (path: string | undefined) => boolean;
32
32
  onClick?: (path: string | undefined) => void;
33
33
  preMenuItemsComponent?: React.ReactNode;
34
+ /**
35
+ * The app that owns this menu has not reported in yet. Draws the menu's own
36
+ * geometry in placeholder form rather than nothing: an empty column during
37
+ * startup reads as "this app has no menu", and the items then appear and shove
38
+ * the first click target somewhere else.
39
+ */
40
+ loading?: boolean;
34
41
  }
35
42
  /**
36
43
  * Sidebar — een vrij slot (zoek) en daaronder de nav-items. Secties met
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opencxh/ui-kit",
3
- "version": "3.137.4",
3
+ "version": "3.137.6",
4
4
  "description": "Theme-aware UI component library for OpenCXH platform",
5
5
  "type": "module",
6
6
  "exports": {