@expressms/smartapp-ui 3.0.0-alpha.50 → 3.0.0-alpha.52

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 (65) hide show
  1. package/build/main/constants/constants.d.ts +3 -0
  2. package/build/main/constants/constants.js +3 -0
  3. package/build/main/constants/constants.js.map +1 -1
  4. package/build/main/constants/types.d.ts +7 -0
  5. package/build/main/helpers/index.d.ts +1 -0
  6. package/build/main/helpers/index.js +3 -0
  7. package/build/main/helpers/index.js.map +1 -1
  8. package/build/main/hooks/useMobileLongTap.d.ts +16 -0
  9. package/build/main/hooks/useMobileLongTap.js +55 -0
  10. package/build/main/hooks/useMobileLongTap.js.map +1 -0
  11. package/build/main/hooks/useModal.js +14 -9
  12. package/build/main/hooks/useModal.js.map +1 -1
  13. package/build/main/index.d.ts +1 -0
  14. package/build/main/index.js +1 -0
  15. package/build/main/index.js.map +1 -1
  16. package/build/main/styles/styles.scss +2 -2
  17. package/build/main//321/201omponents/Avatar/Avatar.d.ts +3 -2
  18. package/build/main//321/201omponents/Avatar/Avatar.js +2 -2
  19. package/build/main//321/201omponents/Avatar/Avatar.js.map +1 -1
  20. package/build/main//321/201omponents/Avatar/types.d.ts +3 -3
  21. package/build/main//321/201omponents/Chip/Chip.d.ts +3 -2
  22. package/build/main//321/201omponents/Chip/Chip.js +155 -17
  23. package/build/main//321/201omponents/Chip/Chip.js.map +1 -1
  24. package/build/main//321/201omponents/Chip/types.d.ts +9 -4
  25. package/build/main//321/201omponents/ChipDndContext/ChipDndContext.d.ts +13 -0
  26. package/build/main//321/201omponents/ChipDndContext/ChipDndContext.js +76 -0
  27. package/build/main//321/201omponents/ChipDndContext/ChipDndContext.js.map +1 -0
  28. package/build/main//321/201omponents/ChipDndContext/index.d.ts +1 -0
  29. package/build/main//321/201omponents/ChipDndContext/index.js +2 -0
  30. package/build/main//321/201omponents/ChipDndContext/index.js.map +1 -0
  31. package/build/main//321/201omponents/ContextMenu/ContextMenu.d.ts +1 -1
  32. package/build/main//321/201omponents/ContextMenu/ContextMenu.js +54 -11
  33. package/build/main//321/201omponents/ContextMenu/ContextMenu.js.map +1 -1
  34. package/build/main//321/201omponents/ContextMenu/types.d.ts +6 -6
  35. package/build/main//321/201omponents/ContextMenuItem/ContextMenuItem.d.ts +1 -1
  36. package/build/main//321/201omponents/ContextMenuItem/ContextMenuItem.js +6 -3
  37. package/build/main//321/201omponents/ContextMenuItem/ContextMenuItem.js.map +1 -1
  38. package/build/main//321/201omponents/ContextMenuItem/types.d.ts +4 -2
  39. package/build/main//321/201omponents/CustomSelect/CustomSelect.js +3 -3
  40. package/build/main//321/201omponents/CustomSelect/CustomSelect.js.map +1 -1
  41. package/build/main//321/201omponents/CustomSelect/types.d.ts +2 -1
  42. package/build/main//321/201omponents/DraggablePopup/DraggablePopup.js.map +1 -1
  43. package/build/main//321/201omponents/DraggablePopup/types.d.ts +4 -8
  44. package/build/main//321/201omponents/ListItem/ListItem.js +11 -2
  45. package/build/main//321/201omponents/ListItem/ListItem.js.map +1 -1
  46. package/build/main//321/201omponents/ListItem/types.d.ts +2 -1
  47. package/build/main//321/201omponents/Modal/Modal.js +1 -2
  48. package/build/main//321/201omponents/Modal/Modal.js.map +1 -1
  49. package/build/main//321/201omponents/Stories/Stories.js +72 -4
  50. package/build/main//321/201omponents/Stories/Stories.js.map +1 -1
  51. package/build/main//321/201omponents/UserDropdown/MultiValueLabel/MultiValueLabel.d.ts +3 -2
  52. package/build/main//321/201omponents/UserDropdown/MultiValueLabel/MultiValueLabel.js +32 -23
  53. package/build/main//321/201omponents/UserDropdown/MultiValueLabel/MultiValueLabel.js.map +1 -1
  54. package/build/main//321/201omponents/UserDropdown/UserDropdown.d.ts +3 -3
  55. package/build/main//321/201omponents/UserDropdown/UserDropdown.js +106 -47
  56. package/build/main//321/201omponents/UserDropdown/UserDropdown.js.map +1 -1
  57. package/build/main//321/201omponents/UserDropdown/selectStyles.d.ts +1 -1
  58. package/build/main//321/201omponents/UserDropdown/selectStyles.js +9 -7
  59. package/build/main//321/201omponents/UserDropdown/selectStyles.js.map +1 -1
  60. package/build/main//321/201omponents/UserDropdown/types.d.ts +13 -1
  61. package/build/main//321/201omponents/UserDropdown/types.js.map +1 -1
  62. package/package.json +3 -1
  63. package/build/main/hooks/useLongTap.d.ts +0 -12
  64. package/build/main/hooks/useLongTap.js +0 -29
  65. package/build/main/hooks/useLongTap.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/сomponents/UserDropdown/types.ts"],"names":[],"mappings":"AAiSA,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":"AAsSA,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": "3.0.0-alpha.50",
3
+ "version": "3.0.0-alpha.52",
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
  "camelcase": "^6.2.1",
16
17
  "classnames": "^2.3.2",
17
18
  "color": "^4.2.3",
@@ -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-modal-sheet": "^5.2.1",
30
32
  "react-router-dom": "^6.7.0",
@@ -1,12 +0,0 @@
1
- import React from 'react';
2
- type TLongTapEvent = React.TouchEvent<HTMLElement> | React.MouseEvent<HTMLElement, MouseEvent>;
3
- type TUseLongTap = {
4
- onLongTap?: (e: TLongTapEvent) => void;
5
- onCancelLongTap?: () => void;
6
- longTapDelay?: number;
7
- };
8
- export declare const useLongTap: ({ onLongTap, onCancelLongTap, longTapDelay }: TUseLongTap) => {
9
- cancelPressTimer: () => void;
10
- startPressTimer: (e: TLongTapEvent) => void;
11
- };
12
- export {};
@@ -1,29 +0,0 @@
1
- import { useEffect, useRef } from 'react';
2
- var DEFAULT_LONG_TAP_DELAY = 500;
3
- export var useLongTap = function (_a) {
4
- var onLongTap = _a.onLongTap, onCancelLongTap = _a.onCancelLongTap, _b = _a.longTapDelay, longTapDelay = _b === void 0 ? DEFAULT_LONG_TAP_DELAY : _b;
5
- var timerRef = useRef(null);
6
- var isLongTapFulfilledRef = useRef(false);
7
- var startPressTimer = function (e) {
8
- e.stopPropagation();
9
- isLongTapFulfilledRef.current = false;
10
- timerRef.current = setTimeout(function () {
11
- onLongTap === null || onLongTap === void 0 ? void 0 : onLongTap(e);
12
- isLongTapFulfilledRef.current = true;
13
- }, longTapDelay);
14
- };
15
- var cancelPressTimer = function () {
16
- if (timerRef.current) {
17
- clearTimeout(timerRef.current);
18
- timerRef.current = null;
19
- if (!isLongTapFulfilledRef.current)
20
- onCancelLongTap === null || onCancelLongTap === void 0 ? void 0 : onCancelLongTap();
21
- }
22
- };
23
- useEffect(function () { return function () {
24
- if (timerRef.current)
25
- clearTimeout(timerRef.current);
26
- }; }, []);
27
- return { cancelPressTimer: cancelPressTimer, startPressTimer: startPressTimer };
28
- };
29
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