@kommo-crm/crm-react-ui-kit 1.1.1-beta.7 → 1.1.1-beta.8
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/components/ContextMenu/ContextMenu.d.ts.map +1 -1
- package/dist/components/ContextMenu/ContextMenu.js +84 -75
- package/dist/components/ContextMenu/ContextMenu.props.d.ts +8 -0
- package/dist/components/ContextMenu/ContextMenu.props.d.ts.map +1 -1
- package/dist/components/ContextMenu/components/Arrow/Arrow.js +1 -1
- package/dist/components/ContextMenu/components/CheckboxItem/CheckboxItem.d.ts +1 -0
- package/dist/components/ContextMenu/components/CheckboxItem/CheckboxItem.d.ts.map +1 -1
- package/dist/components/ContextMenu/components/CheckboxItem/CheckboxItem.js +45 -40
- package/dist/components/ContextMenu/components/CheckboxItem/CheckboxItem.props.d.ts +4 -0
- package/dist/components/ContextMenu/components/CheckboxItem/CheckboxItem.props.d.ts.map +1 -1
- package/dist/components/ContextMenu/components/Content/Content.js +2 -2
- package/dist/components/ContextMenu/components/Content/index.js +1 -1
- package/dist/components/ContextMenu/components/Group/Group.js +1 -1
- package/dist/components/ContextMenu/components/Item/Item.d.ts.map +1 -1
- package/dist/components/ContextMenu/components/Item/Item.js +69 -68
- package/dist/components/ContextMenu/components/Item/Item.props.d.ts +6 -0
- package/dist/components/ContextMenu/components/Item/Item.props.d.ts.map +1 -1
- package/dist/components/ContextMenu/components/ItemIndicator/ItemIndicator.js +1 -1
- package/dist/components/ContextMenu/components/Label/Label.js +1 -1
- package/dist/components/ContextMenu/components/Portal/Portal.js +1 -1
- package/dist/components/ContextMenu/components/RadioGroup/RadioGroup.js +1 -1
- package/dist/components/ContextMenu/components/RadioItem/RadioItem.d.ts +1 -0
- package/dist/components/ContextMenu/components/RadioItem/RadioItem.d.ts.map +1 -1
- package/dist/components/ContextMenu/components/RadioItem/RadioItem.js +50 -45
- package/dist/components/ContextMenu/components/RadioItem/RadioItem.props.d.ts +4 -0
- package/dist/components/ContextMenu/components/RadioItem/RadioItem.props.d.ts.map +1 -1
- package/dist/components/ContextMenu/components/Separator/Separator.js +1 -1
- package/dist/components/ContextMenu/components/Sub/Sub.d.ts +5 -5
- package/dist/components/ContextMenu/components/Sub/Sub.d.ts.map +1 -1
- package/dist/components/ContextMenu/components/Sub/Sub.js +53 -55
- package/dist/components/ContextMenu/components/Sub/Sub.types.d.ts +7 -0
- package/dist/components/ContextMenu/components/Sub/Sub.types.d.ts.map +1 -0
- package/dist/components/ContextMenu/components/Sub/Sub.types.js +1 -0
- package/dist/components/ContextMenu/components/Sub/index.d.ts +1 -0
- package/dist/components/ContextMenu/components/Sub/index.d.ts.map +1 -1
- package/dist/components/ContextMenu/components/SubContent/SubContent.d.ts.map +1 -1
- package/dist/components/ContextMenu/components/SubContent/SubContent.js +26 -25
- package/dist/components/ContextMenu/components/SubRoot/SubRoot.d.ts.map +1 -1
- package/dist/components/ContextMenu/components/SubRoot/SubRoot.js +45 -43
- package/dist/components/ContextMenu/components/SubRoot/SubRoot.props.d.ts +4 -0
- package/dist/components/ContextMenu/components/SubRoot/SubRoot.props.d.ts.map +1 -1
- package/dist/components/ContextMenu/components/SubRoot/components/Content/Content.js +2 -2
- package/dist/components/ContextMenu/components/SubRoot/components/Trigger/Trigger.js +2 -2
- package/dist/components/ContextMenu/components/SubTrigger/SubTrigger.js +2 -2
- package/dist/components/ContextMenu/components/Trigger/Trigger.js +1 -1
- package/dist/components/ContextMenu/hooks/index.js +1 -1
- package/dist/components/ContextMenu/hooks/useContentPositioning/useContentPositioning.js +1 -1
- package/dist/components/ContextMenu/hooks/useContextMenu/useContextMenu.js +1 -1
- package/dist/components/ContextMenu/hooks/useContextMenuSub/useContextMenuSub.js +1 -1
- package/dist/components/ContextMenu/hooks/useContextMenuSubMenu/useContextMenuSubMenu.js +1 -1
- package/dist/components/ContextMenu/index.d.ts +1 -0
- package/dist/components/ContextMenu/index.d.ts.map +1 -1
- package/dist/components/ContextMenu/index.js +1 -1
- package/dist/{index-BA3njR2k.mjs → index-CYWNqEqR.mjs} +1 -1
- package/dist/{useContentPositioning-DAKfbddS.mjs → useContentPositioning-BLEFxO0N.mjs} +1 -1
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as m } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as L, useState as C } from "react";
|
|
3
|
-
import { C as j } from "../../../../../../index-
|
|
3
|
+
import { C as j } from "../../../../../../index-CYWNqEqR.mjs";
|
|
4
4
|
import { c as k } from "../../../../../../index-L8X2o7IH.mjs";
|
|
5
5
|
import { u as w, e as z, a as F } from "../../../../../../react-spring_web.modern-Dnq1lqN5.mjs";
|
|
6
6
|
import { mergeRefs as M } from "../../../../../../lib/utils.js";
|
|
@@ -8,7 +8,7 @@ import { LevelProvider as X } from "../../../../providers/LevelProvider/LevelPro
|
|
|
8
8
|
import { useContextMenuContext as Y } from "../../../../ContextMenu.context.js";
|
|
9
9
|
import { ContextMenuMode as g } from "../../../../ContextMenu.enums.js";
|
|
10
10
|
import { focusParentItem as q } from "../../../../utils/focusParentItem/focusParentItem.js";
|
|
11
|
-
import { u as J, s as K } from "../../../../../../useContentPositioning-
|
|
11
|
+
import { u as J, s as K } from "../../../../../../useContentPositioning-BLEFxO0N.mjs";
|
|
12
12
|
import { Direction as Q } from "../../../Content/Content.enums.js";
|
|
13
13
|
import { directionToSide as U } from "../../../Content/Content.utils.js";
|
|
14
14
|
const x = "ContextMenu.Content", V = L(
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsx as b } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as c } from "react";
|
|
3
|
-
import { T as v } from "../../../../../../index-
|
|
3
|
+
import { T as v } from "../../../../../../index-CYWNqEqR.mjs";
|
|
4
4
|
import { mergeRefs as y } from "../../../../../../lib/utils.js";
|
|
5
5
|
import { useContextMenuContext as A } from "../../../../ContextMenu.context.js";
|
|
6
6
|
import { ContextMenuMode as E } from "../../../../ContextMenu.enums.js";
|
|
7
7
|
import "../../../../providers/LevelProvider/LevelProvider.js";
|
|
8
|
-
import "../../../../../../useContentPositioning-
|
|
8
|
+
import "../../../../../../useContentPositioning-BLEFxO0N.mjs";
|
|
9
9
|
import "../../../Content/Content.utils.js";
|
|
10
10
|
import { useContextMenuItemFocus as j } from "../../../../hooks/useContextMenuItemFocus/useContextMenuItemFocus.js";
|
|
11
11
|
const a = "ContextMenu.Trigger", D = c(
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { jsx as M } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as R } from "react";
|
|
3
|
-
import { b as H } from "../../../../index-
|
|
3
|
+
import { b as H } from "../../../../index-CYWNqEqR.mjs";
|
|
4
4
|
import { c as j } from "../../../../index-L8X2o7IH.mjs";
|
|
5
5
|
import { useLevelContext as q } from "../../providers/LevelProvider/LevelProvider.js";
|
|
6
6
|
import { useContextMenuSubContext as D } from "../Sub/Sub.context.js";
|
|
7
7
|
import { hasItemIcon as V } from "../../utils/hasItemIcon/hasItemIcon.js";
|
|
8
8
|
import { ContextMenuMode as i } from "../../ContextMenu.enums.js";
|
|
9
9
|
import "../../ContextMenu.context.js";
|
|
10
|
-
import "../../../../useContentPositioning-
|
|
10
|
+
import "../../../../useContentPositioning-BLEFxO0N.mjs";
|
|
11
11
|
import "../Content/Content.utils.js";
|
|
12
12
|
import { useContextMenuItemFocus as W } from "../../hooks/useContextMenuItemFocus/useContextMenuItemFocus.js";
|
|
13
13
|
import '../../../../assets/SubTrigger.css';const Y = "_sub_trigger_ip3hq_1", w = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as C } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as R } from "react";
|
|
3
|
-
import { T as E } from "../../../../index-
|
|
3
|
+
import { T as E } from "../../../../index-CYWNqEqR.mjs";
|
|
4
4
|
import { c as T } from "../../../../index-L8X2o7IH.mjs";
|
|
5
5
|
import { mergeRefs as n } from "../../../../lib/utils.js";
|
|
6
6
|
import { useContextMenuContext as A } from "../../ContextMenu.context.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useContextMenu as t } from "./useContextMenu/useContextMenu.js";
|
|
2
2
|
import { useContextMenuSubMenu as u } from "./useContextMenuSubMenu/useContextMenuSubMenu.js";
|
|
3
3
|
import { useInheritedArrowColor as s } from "./useInheritedArrowColor/useInheritedArrowColor.js";
|
|
4
|
-
import { u as m } from "../../../useContentPositioning-
|
|
4
|
+
import { u as m } from "../../../useContentPositioning-BLEFxO0N.mjs";
|
|
5
5
|
import { useContextMenuSub as p } from "./useContextMenuSub/useContextMenuSub.js";
|
|
6
6
|
import { useContextMenuItemFocus as i } from "./useContextMenuItemFocus/useContextMenuItemFocus.js";
|
|
7
7
|
import { useIsTouchDevice as c } from "./useIsTouchDevice/useIsTouchDevice.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "react";
|
|
2
|
-
import { u as n } from "../../../../useContentPositioning-
|
|
2
|
+
import { u as n } from "../../../../useContentPositioning-BLEFxO0N.mjs";
|
|
3
3
|
import "../../components/Content/Content.enums.js";
|
|
4
4
|
import "../../components/Content/Content.utils.js";
|
|
5
5
|
export {
|
|
@@ -3,7 +3,7 @@ import { ContextMenuMode as l } from "../../ContextMenu.enums.js";
|
|
|
3
3
|
import "../../providers/LevelProvider/LevelProvider.js";
|
|
4
4
|
import "../../ContextMenu.context.js";
|
|
5
5
|
import { useInheritedArrowColor as P } from "../useInheritedArrowColor/useInheritedArrowColor.js";
|
|
6
|
-
import "../../../../useContentPositioning-
|
|
6
|
+
import "../../../../useContentPositioning-BLEFxO0N.mjs";
|
|
7
7
|
import "../../components/Content/Content.utils.js";
|
|
8
8
|
import { useIsTouchDevice as Q } from "../useIsTouchDevice/useIsTouchDevice.js";
|
|
9
9
|
import { contextMenuBus as M } from "../../utils/contextMenuBus/contextMenuBus.js";
|
|
@@ -2,7 +2,7 @@ import { useId as S, useState as C, useRef as v, useEffect as I } from "react";
|
|
|
2
2
|
import { ContextMenuMode as c } from "../../ContextMenu.enums.js";
|
|
3
3
|
import { useLevelContext as q } from "../../providers/LevelProvider/LevelProvider.js";
|
|
4
4
|
import { useContextMenuContext as j, useContextMenuRootContext as w } from "../../ContextMenu.context.js";
|
|
5
|
-
import "../../../../useContentPositioning-
|
|
5
|
+
import "../../../../useContentPositioning-BLEFxO0N.mjs";
|
|
6
6
|
import "../../components/Content/Content.utils.js";
|
|
7
7
|
import { useIsTouchDevice as z } from "../useIsTouchDevice/useIsTouchDevice.js";
|
|
8
8
|
function X({
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useId as $, useState as m, useRef as H, useLayoutEffect as k, useEffect as g } from "react";
|
|
2
2
|
import { ContextMenuMode as u } from "../../ContextMenu.enums.js";
|
|
3
3
|
import { useInheritedArrowColor as y } from "../useInheritedArrowColor/useInheritedArrowColor.js";
|
|
4
|
-
import "../../../../useContentPositioning-
|
|
4
|
+
import "../../../../useContentPositioning-BLEFxO0N.mjs";
|
|
5
5
|
import "../../components/Content/Content.utils.js";
|
|
6
6
|
import { useContextMenuRootContext as A } from "../../ContextMenu.context.js";
|
|
7
7
|
import { useLevelContext as N } from "../../providers/LevelProvider/LevelProvider.js";
|
|
@@ -3,4 +3,5 @@ export { type ContextMenuRootProps } from './ContextMenu.props';
|
|
|
3
3
|
export { ContextMenuMode } from './ContextMenu.enums';
|
|
4
4
|
export { Direction as ContextMenuDirection } from './components/Content';
|
|
5
5
|
export { type ContextMenuType, type ContextMenuHandle, type ContextMenuModeType, } from './ContextMenu.types';
|
|
6
|
+
export { type ContextMenuSubHandle } from './components/Sub';
|
|
6
7
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/ContextMenu/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,KAAK,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAChE,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACtD,OAAO,EAAE,SAAS,IAAI,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AACzE,OAAO,EACL,KAAK,eAAe,EACpB,KAAK,iBAAiB,EACtB,KAAK,mBAAmB,GACzB,MAAM,qBAAqB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/ContextMenu/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,KAAK,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAChE,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACtD,OAAO,EAAE,SAAS,IAAI,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AACzE,OAAO,EACL,KAAK,eAAe,EACpB,KAAK,iBAAiB,EACtB,KAAK,mBAAmB,GACzB,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAAE,KAAK,oBAAoB,EAAE,MAAM,kBAAkB,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ContextMenu as n } from "./ContextMenu.js";
|
|
2
2
|
import { ContextMenuMode as x } from "./ContextMenu.enums.js";
|
|
3
|
-
import "../../useContentPositioning-
|
|
3
|
+
import "../../useContentPositioning-BLEFxO0N.mjs";
|
|
4
4
|
import { Direction as p } from "./components/Content/Content.enums.js";
|
|
5
5
|
import "./components/Content/Content.utils.js";
|
|
6
6
|
export {
|
|
@@ -532,7 +532,7 @@ function Oe(e) {
|
|
|
532
532
|
const [t, n] = a.useState(Bo());
|
|
533
533
|
return ce(() => {
|
|
534
534
|
n((r) => r ?? String(Wo++));
|
|
535
|
-
}, [e]), t ? `radix-${t}` : "";
|
|
535
|
+
}, [e]), e || (t ? `radix-${t}` : "");
|
|
536
536
|
}
|
|
537
537
|
const Uo = ["top", "right", "bottom", "left"], ae = Math.min, V = Math.max, Je = Math.round, Ge = Math.floor, J = (e) => ({
|
|
538
538
|
x: e,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { forwardRef as F, useState as H, useLayoutEffect as v } from "react";
|
|
2
2
|
import { jsx as P } from "react/jsx-runtime";
|
|
3
|
-
import { C as R } from "./index-
|
|
3
|
+
import { C as R } from "./index-CYWNqEqR.mjs";
|
|
4
4
|
import { c as U } from "./index-L8X2o7IH.mjs";
|
|
5
5
|
import { u as k, a as S, e as z } from "./react-spring_web.modern-Dnq1lqN5.mjs";
|
|
6
6
|
import { mergeRefs as B } from "./lib/utils.js";
|
package/package.json
CHANGED