@tracktor/design-system 4.35.0 → 4.36.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/dist/main.js CHANGED
@@ -15371,22 +15371,22 @@ var Ub = ({ sx: e, fontSize: t, color: r = "currentColor" }) => /* @__PURE__ */
15371
15371
  children: r
15372
15372
  })
15373
15373
  });
15374
- }, sl = pt(Jb), ri = sl, Kc = ({ open: e, onClose: t, onConfirm: r, onSearch: n, searchResults: a, isSearchLoading: i, avatarSrcResolver: l, labels: s }) => {
15375
- const [u, d] = Ne([]), c = Ye(null), A = () => {
15376
- u.length && (r(u), d([]), t());
15374
+ }, sl = pt(Jb), ri = sl, Kc = ({ open: e, onClose: t, onConfirm: r, onSearch: n, searchResults: a, isSearchLoading: i, isConfirmLoading: l, avatarSrcResolver: s, labels: u }) => {
15375
+ const [d, c] = Ne([]), A = Ye(null), v = () => {
15376
+ d.length && (r(d), c([]), t());
15377
15377
  };
15378
15378
  return /* @__PURE__ */ N(gc, {
15379
15379
  fullWidth: !0,
15380
15380
  maxWidth: "sm",
15381
15381
  open: e,
15382
15382
  onClose: t,
15383
- onAnimationEnd: () => c.current?.focus(),
15383
+ onAnimationEnd: () => A.current?.focus(),
15384
15384
  children: [
15385
15385
  /* @__PURE__ */ p(jb, { onClick: t }),
15386
15386
  /* @__PURE__ */ p(vc, {
15387
15387
  variant: "h3",
15388
15388
  paddingBottom: 2,
15389
- children: s?.title ?? "New Conversation"
15389
+ children: u?.title ?? "New Conversation"
15390
15390
  }),
15391
15391
  /* @__PURE__ */ p(mc, {
15392
15392
  sx: { overflow: "visible" },
@@ -15394,17 +15394,17 @@ var Ub = ({ sx: e, fontSize: t, color: r = "currentColor" }) => /* @__PURE__ */
15394
15394
  spacing: 2,
15395
15395
  marginTop: 1,
15396
15396
  children: /* @__PURE__ */ p(Kb, {
15397
- ref: c,
15398
- value: u,
15399
- onChange: d,
15397
+ ref: A,
15398
+ value: d,
15399
+ onChange: c,
15400
15400
  onInputChange: n,
15401
15401
  options: a,
15402
15402
  isLoading: i,
15403
- avatarSrcResolver: l,
15403
+ avatarSrcResolver: s,
15404
15404
  labels: {
15405
- noOptionsText: s?.noOptionsText,
15406
- participants: s?.participants,
15407
- searchContacts: s?.searchContacts
15405
+ noOptionsText: u?.noOptionsText,
15406
+ participants: u?.participants,
15407
+ searchContacts: u?.searchContacts
15408
15408
  }
15409
15409
  })
15410
15410
  })
@@ -15412,9 +15412,10 @@ var Ub = ({ sx: e, fontSize: t, color: r = "currentColor" }) => /* @__PURE__ */
15412
15412
  /* @__PURE__ */ p(hc, { children: /* @__PURE__ */ p(ri, {
15413
15413
  fullWidth: !0,
15414
15414
  variant: "contained",
15415
- onClick: A,
15416
- disabled: !u.length,
15417
- children: s?.confirm ?? "Chat"
15415
+ onClick: v,
15416
+ disabled: !d.length,
15417
+ loading: l,
15418
+ children: u?.confirm ?? "Chat"
15418
15419
  }) })
15419
15420
  ]
15420
15421
  });
@@ -1,3 +1,3 @@
1
1
  import { ChatParticipantDialogProps } from '../types';
2
- declare const ChatParticipantDialog: ({ open, onClose, onConfirm, onSearch, searchResults, isSearchLoading, avatarSrcResolver, labels, }: ChatParticipantDialogProps) => import("@emotion/react/jsx-runtime").JSX.Element;
2
+ declare const ChatParticipantDialog: ({ open, onClose, onConfirm, onSearch, searchResults, isSearchLoading, isConfirmLoading, avatarSrcResolver, labels, }: ChatParticipantDialogProps) => import("@emotion/react/jsx-runtime").JSX.Element;
3
3
  export default ChatParticipantDialog;
@@ -113,6 +113,7 @@ export interface ChatParticipantDialogProps {
113
113
  onSearch: (query: string) => void;
114
114
  searchResults?: ChatSearchUser[];
115
115
  isSearchLoading?: boolean;
116
+ isConfirmLoading?: boolean;
116
117
  avatarSrcResolver?: (src?: string | null) => string | undefined;
117
118
  labels?: ChatParticipantDialogLabels;
118
119
  }
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@tracktor/design-system",
3
3
  "description": "Tracktor Design System",
4
4
  "sideEffects": false,
5
- "version": "4.35.0",
5
+ "version": "4.36.0",
6
6
  "license": "ISC",
7
7
  "type": "module",
8
8
  "types": "./dist/src/main.d.ts",