@expressms/smartapp-ui 2.9.13-alpha.4 → 2.9.13-alpha.5

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 (39) hide show
  1. package/build/main/constants/constants.d.ts +1 -0
  2. package/build/main/constants/constants.js +1 -0
  3. package/build/main/constants/constants.js.map +1 -1
  4. package/build/main/index.d.ts +1 -0
  5. package/build/main/index.js +1 -0
  6. package/build/main/index.js.map +1 -1
  7. package/build/main/styles/styles.scss +1 -1
  8. package/build/main//321/201omponents/Avatar/Avatar.d.ts +3 -2
  9. package/build/main//321/201omponents/Avatar/Avatar.js +2 -2
  10. package/build/main//321/201omponents/Avatar/Avatar.js.map +1 -1
  11. package/build/main//321/201omponents/Chip/Chip.d.ts +3 -2
  12. package/build/main//321/201omponents/Chip/Chip.js +31 -18
  13. package/build/main//321/201omponents/Chip/Chip.js.map +1 -1
  14. package/build/main//321/201omponents/Chip/types.d.ts +6 -2
  15. package/build/main//321/201omponents/ChipDndContext/ChipDndContext.d.ts +11 -0
  16. package/build/main//321/201omponents/ChipDndContext/ChipDndContext.js +54 -0
  17. package/build/main//321/201omponents/ChipDndContext/ChipDndContext.js.map +1 -0
  18. package/build/main//321/201omponents/ChipDndContext/index.d.ts +1 -0
  19. package/build/main//321/201omponents/ChipDndContext/index.js +2 -0
  20. package/build/main//321/201omponents/ChipDndContext/index.js.map +1 -0
  21. package/build/main//321/201omponents/Header/Header.d.ts +1 -1
  22. package/build/main//321/201omponents/Header/Header.js +7 -7
  23. package/build/main//321/201omponents/Header/Header.js.map +1 -1
  24. package/build/main//321/201omponents/Header/types.d.ts +0 -1
  25. package/build/main//321/201omponents/UserDropdown/MultiValueLabel/MultiValueLabel.d.ts +3 -2
  26. package/build/main//321/201omponents/UserDropdown/MultiValueLabel/MultiValueLabel.js +15 -15
  27. package/build/main//321/201omponents/UserDropdown/MultiValueLabel/MultiValueLabel.js.map +1 -1
  28. package/build/main//321/201omponents/UserDropdown/UserDropdown.d.ts +3 -3
  29. package/build/main//321/201omponents/UserDropdown/UserDropdown.js +69 -55
  30. package/build/main//321/201omponents/UserDropdown/UserDropdown.js.map +1 -1
  31. package/build/main//321/201omponents/UserDropdown/helpers.d.ts +1 -3
  32. package/build/main//321/201omponents/UserDropdown/helpers.js +2 -2
  33. package/build/main//321/201omponents/UserDropdown/helpers.js.map +1 -1
  34. package/build/main//321/201omponents/UserDropdown/selectStyles.d.ts +1 -1
  35. package/build/main//321/201omponents/UserDropdown/selectStyles.js +6 -4
  36. package/build/main//321/201omponents/UserDropdown/selectStyles.js.map +1 -1
  37. package/build/main//321/201omponents/UserDropdown/types.d.ts +13 -2
  38. package/build/main//321/201omponents/UserDropdown/types.js.map +1 -1
  39. package/package.json +3 -1
@@ -51,7 +51,6 @@ type TData = ILanguageProps & {
51
51
  setIsSearchable: (isSearchable: boolean) => void;
52
52
  setModalData: (modalData: TModalData | null) => void;
53
53
  userType?: CONTACT_TYPES;
54
- uid?: string;
55
54
  };
56
55
  export interface IOptionProps extends OptionProps {
57
56
  data: TData;
@@ -108,6 +107,8 @@ export type TSelectStyles = {
108
107
  platform: string;
109
108
  layoutType: string;
110
109
  isInputHidden: boolean;
110
+ isDraggable?: boolean;
111
+ isChipsCollapsed?: boolean;
111
112
  };
112
113
  export type TGenerateNoOptionsMessage = {
113
114
  inputValue: string;
@@ -129,7 +130,6 @@ export interface MultiOptionType {
129
130
  layoutType: string;
130
131
  isChipsCollapsable: boolean;
131
132
  isLoading?: boolean;
132
- uid?: string;
133
133
  isWarning?: boolean;
134
134
  userType?: CONTACT_TYPES;
135
135
  platform?: string;
@@ -196,6 +196,10 @@ export type TUser = TCorporateEntity | TMyContactsEntries | {
196
196
  userType?: CONTACT_TYPES;
197
197
  contextMenuItems?: MenuItem[];
198
198
  };
199
+ export type TFocusHandle = {
200
+ focus: () => void;
201
+ blur: () => void;
202
+ };
199
203
  export interface IUserDropdownProps extends ICommonProps, ILayoutTypeProps, ILanguageProps {
200
204
  isDisabled?: boolean;
201
205
  isLoading?: boolean;
@@ -225,6 +229,8 @@ export interface IUserDropdownProps extends ICommonProps, ILayoutTypeProps, ILan
225
229
  corporateEntries: TCorporateEntries | null;
226
230
  myContactsEntries: TMyContactsEntries[] | null;
227
231
  emailsToExclude?: string[];
232
+ userDropdownId?: string;
233
+ focusRef?: RefObject<TFocusHandle | null>;
228
234
  onInputChange: (inputValue: string) => void;
229
235
  onChange: (users: TUser[]) => void;
230
236
  onMenuOpen?: () => void;
@@ -256,4 +262,9 @@ export type TMatchers = {
256
262
  includes: (text: string) => boolean;
257
263
  anyWordStartsWith: (text: string) => boolean;
258
264
  };
265
+ export type TDragUser = {
266
+ avatar: string;
267
+ label: string;
268
+ dropdownId?: string;
269
+ } & TUser;
259
270
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/сomponents/UserDropdown/types.ts"],"names":[],"mappings":"AAwQA,MAAM,CAAC,IAAM,YAAY,GAAG;IAC1B,iBAAiB,EAAE,CAAC;IACpB,cAAc,EAAE,CAAC;IACjB,2BAA2B,EAAE,CAAC;IAC9B,yBAAyB,EAAE,CAAC;IAC5B,aAAa,EAAE,CAAC;IAChB,QAAQ,EAAE,CAAC;CACH,CAAA"}
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/сomponents/UserDropdown/types.ts"],"names":[],"mappings":"AA+QA,MAAM,CAAC,IAAM,YAAY,GAAG;IAC1B,iBAAiB,EAAE,CAAC;IACpB,cAAc,EAAE,CAAC;IACjB,2BAA2B,EAAE,CAAC;IAC9B,yBAAyB,EAAE,CAAC;IAC5B,aAAa,EAAE,CAAC;IAChB,QAAQ,EAAE,CAAC;CACH,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@expressms/smartapp-ui",
3
- "version": "2.9.13-alpha.4",
3
+ "version": "2.9.13-alpha.5",
4
4
  "description": "SmartApp UI library",
5
5
  "license": "MIT",
6
6
  "main": "build/main/index.js",
@@ -12,6 +12,7 @@
12
12
  "registry": "https://registry.npmjs.org/"
13
13
  },
14
14
  "dependencies": {
15
+ "@dnd-kit/core": "^6.3.1",
15
16
  "alex.chus-react-spring-bottom-sheet": "^0.0.2",
16
17
  "camelcase": "^6.2.1",
17
18
  "classnames": "^2.3.2",
@@ -25,6 +26,7 @@
25
26
  "react-beautiful-dnd": "^13.1.1",
26
27
  "react-datepicker": "^4.8.0",
27
28
  "react-draggable": "^4.4.6",
29
+ "react-hook-form": "^7.60.0",
28
30
  "react-insta-stories": "^2.6.2",
29
31
  "react-scrollbars-custom": "^4.1.1",
30
32
  "react-select": "^5.8.0",