@getsoren/design-system 4.81.1 → 4.83.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.
@@ -13,6 +13,10 @@ interface ChatProps {
13
13
  interface ChatBodyProps {
14
14
  children: ReactNode;
15
15
  }
16
+ /**
17
+ * On a phone the list and the conversation cannot sit side by side: the body shows one pane at a
18
+ * time — the list until a thread is selected, then the conversation (its header offers the way back).
19
+ */
16
20
  declare const ChatBody: ({ children }: ChatBodyProps) => import("@emotion/react/jsx-runtime").JSX.Element;
17
21
  type ChatComponent = FC<ChatProps> & {
18
22
  Body: typeof ChatBody;
@@ -1,3 +1,3 @@
1
1
  import { ChatConversationDetailProps } from '../types';
2
- declare const ChatConversationDetail: ({ threadId, participants, isLoading, messages, currentUserId, onDeleteConversation, onNewConversation, onSendMessage, onAddParticipants, onSearchParticipants, searchResults, isSearchingParticipants, avatarSrcResolver, renderAfterBubble, labels, formatDayLabel, isSending, formatParticipantName, headerAction, defaultMessage, onAddParticipantDialogOpenChange, messageMaxLength, slotProps, }: ChatConversationDetailProps) => import("@emotion/react/jsx-runtime").JSX.Element;
2
+ declare const ChatConversationDetail: ({ threadId, participants, isLoading, messages, currentUserId, onDeleteConversation, onNewConversation, onSendMessage, onAddParticipants, onSearchParticipants, searchResults, isSearchingParticipants, avatarSrcResolver, renderAfterBubble, labels, formatDayLabel, isSending, formatParticipantName, headerAction, defaultMessage, onAddParticipantDialogOpenChange, messageMaxLength, slotProps, onBack, }: ChatConversationDetailProps) => import("@emotion/react/jsx-runtime").JSX.Element;
3
3
  export default ChatConversationDetail;
@@ -14,6 +14,7 @@ interface ChatConversationDetailHeaderProps {
14
14
  headerAction?: ReactNode;
15
15
  onAddParticipantDialogOpenChange?: (open: boolean) => void;
16
16
  slotProps?: Pick<ChatConversationDetailSlotProps, "addParticipantsButton">;
17
+ onBack?: () => void;
17
18
  }
18
- declare const ChatConversationDetailHeader: ({ threadId, participants, onDeleteConversation, onAddParticipants, onSearchParticipants, searchResults, isSearchingParticipants, avatarSrcResolver, labels, formatParticipantName, headerAction, onAddParticipantDialogOpenChange, slotProps, }: ChatConversationDetailHeaderProps) => import("@emotion/react/jsx-runtime").JSX.Element;
19
+ declare const ChatConversationDetailHeader: ({ threadId, participants, onDeleteConversation, onAddParticipants, onSearchParticipants, searchResults, isSearchingParticipants, avatarSrcResolver, labels, formatParticipantName, headerAction, onAddParticipantDialogOpenChange, slotProps, onBack, }: ChatConversationDetailHeaderProps) => import("@emotion/react/jsx-runtime").JSX.Element;
19
20
  export default ChatConversationDetailHeader;
@@ -44,6 +44,7 @@ export interface ChatConversationDetailLabels {
44
44
  participants?: string;
45
45
  searchContacts?: string;
46
46
  add?: string;
47
+ back?: string;
47
48
  }
48
49
  export interface ChatMessageInputLabels {
49
50
  writeAMessage?: string;
@@ -106,6 +107,7 @@ export interface ChatConversationDetailProps {
106
107
  onAddParticipantDialogOpenChange?: (open: boolean) => void;
107
108
  messageMaxLength?: number;
108
109
  slotProps?: ChatConversationDetailSlotProps;
110
+ onBack?: () => void;
109
111
  }
110
112
  export interface ChatMessageBubbleProps {
111
113
  isOwn: boolean;
@@ -1,3 +1,3 @@
1
1
  import { PlanningTimelineGroup, PlanningTimelineProps, PlanningTimelineResource, PlanningTimelineTask } from './types';
2
- declare const PlanningTimeline: <G extends PlanningTimelineGroup, R extends PlanningTimelineResource, T extends PlanningTimelineTask>({ groups, resources, tasks, isLoading, onTaskClick, onResourceClick, onGroupClick, onBarResize, renderGroup, renderResource, renderBar, renderTooltip, isTaskSelected, recenterKey, toolbarActions, toolbarLeadingActions, sidebarTitle, locale, labels, localStorageKeys, defaultViewMode, sidebarWidth, rowHeight, }: PlanningTimelineProps<G, R, T>) => import("@emotion/react/jsx-runtime").JSX.Element;
2
+ declare const PlanningTimeline: <G extends PlanningTimelineGroup, R extends PlanningTimelineResource, T extends PlanningTimelineTask>({ groups, resources, tasks, isLoading, onTaskClick, onResourceClick, onGroupClick, onBarResize, renderGroup, renderResource, renderBar, renderTooltip, isTaskSelected, recenterKey, toolbarActions, toolbarLeadingActions, sidebarTitle, locale, labels, localStorageKeys, defaultViewMode, sidebarWidth: sidebarWidthProp, rowHeight, }: PlanningTimelineProps<G, R, T>) => import("@emotion/react/jsx-runtime").JSX.Element;
3
3
  export default PlanningTimeline;
@@ -112,6 +112,11 @@ export interface BottomLinkProps {
112
112
  * Content displayed for the link
113
113
  */
114
114
  label?: ReactNode;
115
+ /**
116
+ * Shown right after the label (store marks, a badge…), and hidden with it on the collapsed rail,
117
+ * where the tooltip keeps the label alone
118
+ */
119
+ endAdornment?: ReactNode;
115
120
  /**
116
121
  * Force the active state of the link
117
122
  */
@@ -126,6 +131,11 @@ export interface BottomLinkProps {
126
131
  * @default false
127
132
  */
128
133
  iconOnlyWhenCollapsed?: boolean;
134
+ /**
135
+ * Leave the link out, so a list can declare every link and only toggle the ones shown
136
+ * @default false
137
+ */
138
+ hidden?: boolean;
129
139
  /**
130
140
  * Disable the link
131
141
  */
@@ -219,7 +229,8 @@ export interface NavigationMenuProps {
219
229
  */
220
230
  NavLink?: (props: NavLinkProps) => ReactNode;
221
231
  /**
222
- * Logo component
232
+ * Heads the drawer (phones and tablets), next to its close button on phones. Not shown on desktop,
233
+ * where the brand lives in the app bar. Activating a link or a button in it closes the drawer.
223
234
  */
224
235
  Logo?: ReactNode;
225
236
  /**
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@getsoren/design-system",
3
3
  "description": "Design System React library",
4
4
  "sideEffects": false,
5
- "version": "4.81.1",
5
+ "version": "4.83.0",
6
6
  "license": "ISC",
7
7
  "type": "module",
8
8
  "types": "./dist/src/main.d.ts",