@kommo-crm/crm-react-ui-kit 1.13.0 → 1.14.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/{ContextMenu-DFahDlEy.mjs → ContextMenu-CsrSe_an.mjs} +2 -2
- package/dist/assets/Separator.css +1 -1
- package/dist/components/ContextMenu/ContextMenu.d.ts +1 -1
- package/dist/components/ContextMenu/ContextMenu.js +3 -3
- package/dist/components/ContextMenu/components/Arrow/Arrow.js +1 -1
- package/dist/components/ContextMenu/components/CheckboxItem/CheckboxItem.js +2 -2
- 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.js +2 -2
- package/dist/components/ContextMenu/components/ItemIndicator/ItemIndicator.js +1 -1
- package/dist/components/ContextMenu/components/Label/Label.js +2 -2
- 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.js +2 -2
- package/dist/components/ContextMenu/components/Separator/Separator.d.ts +2 -1
- package/dist/components/ContextMenu/components/Separator/Separator.d.ts.map +1 -1
- package/dist/components/ContextMenu/components/Separator/Separator.js +13 -14
- package/dist/components/ContextMenu/components/Separator/Separator.props.d.ts +2 -2
- package/dist/components/ContextMenu/components/Separator/Separator.props.d.ts.map +1 -1
- package/dist/components/ContextMenu/components/Sub/Sub.js +2 -2
- package/dist/components/ContextMenu/components/Sub/index.js +1 -1
- package/dist/components/ContextMenu/components/SubContent/SubContent.js +2 -2
- package/dist/components/ContextMenu/components/SubRoot/SubRoot.js +1 -1
- package/dist/components/ContextMenu/components/SubRoot/components/Content/Content.js +10 -10
- 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/index.js +1 -1
- package/dist/components/Separator/Separator.d.ts +4 -0
- package/dist/components/Separator/Separator.d.ts.map +1 -0
- package/dist/components/Separator/Separator.js +30 -0
- package/dist/components/Separator/Separator.props.d.ts +19 -0
- package/dist/components/Separator/Separator.props.d.ts.map +1 -0
- package/dist/components/Separator/Separator.props.js +1 -0
- package/dist/components/Separator/Separator.themes.d.ts +10 -0
- package/dist/components/Separator/Separator.themes.d.ts.map +1 -0
- package/dist/components/Separator/Separator.themes.js +23 -0
- package/dist/components/Separator/index.d.ts +4 -0
- package/dist/components/Separator/index.d.ts.map +1 -0
- package/dist/components/Separator/index.js +9 -0
- package/dist/hooks/useStoryLabel/index.d.ts +2 -0
- package/dist/hooks/useStoryLabel/index.d.ts.map +1 -0
- package/dist/hooks/useStoryLabel/index.js +4 -0
- package/dist/hooks/useStoryLabel/useStoryLabel.d.ts +6 -0
- package/dist/hooks/useStoryLabel/useStoryLabel.d.ts.map +1 -0
- package/dist/hooks/useStoryLabel/useStoryLabel.js +9511 -0
- package/dist/{index-aPaPKjUe.mjs → index-SjVEUQPm.mjs} +368 -369
- package/dist/{useContentPositioning-Dfjbylz5.mjs → useContentPositioning-Dvz908Jg.mjs} +1 -1
- package/package.json +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as n } from "react/jsx-runtime";
|
|
2
|
-
import { S as B, a as K } from "./index-
|
|
2
|
+
import { S as B, a as K } from "./index-SjVEUQPm.mjs";
|
|
3
3
|
import { useContextMenu as j } from "./components/ContextMenu/hooks/useContextMenu/useContextMenu.js";
|
|
4
4
|
import "react";
|
|
5
|
-
import { C as H } from "./useContentPositioning-
|
|
5
|
+
import { C as H } from "./useContentPositioning-Dvz908Jg.mjs";
|
|
6
6
|
import "./components/ContextMenu/components/Content/Content.utils.js";
|
|
7
7
|
import "./components/ContextMenu/providers/LevelProvider/LevelProvider.js";
|
|
8
8
|
import "./components/ContextMenu/providers/SubMenuProvider/SubMenuProvider.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._separator_19to2_1{background-color:var(--crm-ui-kit-separator-color);border-radius:var(--crm-ui-kit-separator-border-radius);border:0;flex-shrink:0}._horizontal_19to2_8{width:100%;height:1px}._vertical_19to2_13{width:1px;height:100%;align-self:stretch}
|
|
@@ -1454,7 +1454,7 @@ declare const ContextMenuRoot: ((props: ContextMenuRootProps) => React.JSX.Eleme
|
|
|
1454
1454
|
shouldCloseRootMenuOnSelect?: boolean;
|
|
1455
1455
|
} & React.RefAttributes<HTMLDivElement>>;
|
|
1456
1456
|
ItemIndicator: React.ForwardRefExoticComponent<Omit<import('@radix-ui/react-dropdown-menu').DropdownMenuItemIndicatorProps & React.RefAttributes<HTMLSpanElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
1457
|
-
Separator: React.ForwardRefExoticComponent<
|
|
1457
|
+
Separator: React.ForwardRefExoticComponent<import('./components/Separator').SeparatorProps & React.RefAttributes<HTMLDivElement>>;
|
|
1458
1458
|
ItemIcon: React.ForwardRefExoticComponent<import('./components/ItemIcon').ItemIconProps & React.RefAttributes<HTMLSpanElement>>;
|
|
1459
1459
|
};
|
|
1460
1460
|
export { ContextMenuRoot as ContextMenu };
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
|
-
import "../../index-
|
|
2
|
+
import "../../index-SjVEUQPm.mjs";
|
|
3
3
|
import "./hooks/useContextMenu/useContextMenu.js";
|
|
4
4
|
import "react";
|
|
5
|
-
import "../../useContentPositioning-
|
|
5
|
+
import "../../useContentPositioning-Dvz908Jg.mjs";
|
|
6
6
|
import "./components/Content/Content.utils.js";
|
|
7
7
|
import "./providers/LevelProvider/LevelProvider.js";
|
|
8
8
|
import "./providers/SubMenuProvider/SubMenuProvider.js";
|
|
9
9
|
import "./hooks/useContextMenuKeyboardNavigation/useContextMenuKeyboardNavigation.js";
|
|
10
10
|
import "./components/Trigger/Trigger.js";
|
|
11
11
|
import "./components/Portal/Portal.js";
|
|
12
|
-
import { C as b, a as c, D as d } from "../../ContextMenu-
|
|
12
|
+
import { C as b, a as c, D as d } from "../../ContextMenu-CsrSe_an.mjs";
|
|
13
13
|
import "./components/SubTrigger/SubTrigger.js";
|
|
14
14
|
import "./components/SubContent/SubContent.js";
|
|
15
15
|
import "./components/Arrow/Arrow.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as n, Fragment as _, jsx as o } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as d } from "react";
|
|
3
|
-
import { A as a } from "../../../../index-
|
|
3
|
+
import { A as a } from "../../../../index-SjVEUQPm.mjs";
|
|
4
4
|
import { c as s } from "../../../../index-L8X2o7IH.mjs";
|
|
5
5
|
import '../../../../assets/Arrow.css';const f = "_arrow_udm9h_1", i = "_arrow_border_udm9h_8", e = {
|
|
6
6
|
arrow: f,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsx as Q } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as U, useId as V } from "react";
|
|
3
|
-
import { C as W } from "../../../../index-
|
|
3
|
+
import { C as W } from "../../../../index-SjVEUQPm.mjs";
|
|
4
4
|
import { c as X } from "../../../../index-L8X2o7IH.mjs";
|
|
5
5
|
import { mergeRefs as Z } from "../../../../lib/utils.js";
|
|
6
6
|
import { useLevelContext as $ } from "../../providers/LevelProvider/LevelProvider.js";
|
|
7
|
-
import "../../../../useContentPositioning-
|
|
7
|
+
import "../../../../useContentPositioning-Dvz908Jg.mjs";
|
|
8
8
|
import "../Content/Content.utils.js";
|
|
9
9
|
import { useSubMenu as ee } from "../../hooks/useSubMenu/useSubMenu.js";
|
|
10
10
|
import "../../providers/SubMenuProvider/SubMenuProvider.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
|
-
import "../../../../index-
|
|
3
|
+
import "../../../../index-SjVEUQPm.mjs";
|
|
4
4
|
import "../../../../index-L8X2o7IH.mjs";
|
|
5
|
-
import { C as d } from "../../../../useContentPositioning-
|
|
5
|
+
import { C as d } from "../../../../useContentPositioning-Dvz908Jg.mjs";
|
|
6
6
|
import "../../../../lib/utils.js";
|
|
7
7
|
import "../../../../lib/keyboard/index.js";
|
|
8
8
|
import "../../providers/LevelProvider/LevelProvider.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as e } from "../../../../useContentPositioning-
|
|
1
|
+
import { C as e } from "../../../../useContentPositioning-Dvz908Jg.mjs";
|
|
2
2
|
import { Direction as i } from "./Content.enums.js";
|
|
3
3
|
import { directionToSide as f } from "./Content.utils.js";
|
|
4
4
|
export {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsx as E } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as Z, useId as $ } from "react";
|
|
3
|
-
import { I as ee } from "../../../../index-
|
|
3
|
+
import { I as ee } from "../../../../index-SjVEUQPm.mjs";
|
|
4
4
|
import { c as N } from "../../../../index-L8X2o7IH.mjs";
|
|
5
5
|
import { mergeRefs as O } from "../../../../lib/utils.js";
|
|
6
6
|
import { useLevelContext as ne } from "../../providers/LevelProvider/LevelProvider.js";
|
|
7
|
-
import "../../../../useContentPositioning-
|
|
7
|
+
import "../../../../useContentPositioning-Dvz908Jg.mjs";
|
|
8
8
|
import "../Content/Content.utils.js";
|
|
9
9
|
import { useSubMenu as oe } from "../../hooks/useSubMenu/useSubMenu.js";
|
|
10
10
|
import { useItemInnerFocus as te } from "../../hooks/useItemInnerFocus/useItemInnerFocus.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as c } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as e } from "react";
|
|
3
|
-
import { d as a } from "../../../../index-
|
|
3
|
+
import { d as a } from "../../../../index-SjVEUQPm.mjs";
|
|
4
4
|
import { c as n } from "../../../../index-L8X2o7IH.mjs";
|
|
5
5
|
import '../../../../assets/ItemIndicator.css';const s = "_item_indicator_3bhbf_1", d = {
|
|
6
6
|
item_indicator: s
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as c } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as f } from "react";
|
|
3
|
-
import { L as b } from "../../../../index-
|
|
3
|
+
import { L as b } from "../../../../index-SjVEUQPm.mjs";
|
|
4
4
|
import { c as u } from "../../../../index-L8X2o7IH.mjs";
|
|
5
5
|
import { mergeRefs as d } from "../../../../lib/utils.js";
|
|
6
|
-
import "../../../../useContentPositioning-
|
|
6
|
+
import "../../../../useContentPositioning-Dvz908Jg.mjs";
|
|
7
7
|
import "../Content/Content.utils.js";
|
|
8
8
|
import { useSubMenu as L } from "../../hooks/useSubMenu/useSubMenu.js";
|
|
9
9
|
import "../../providers/LevelProvider/LevelProvider.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
-
import { R as t } from "../../../../index-
|
|
2
|
+
import { R as t } from "../../../../index-SjVEUQPm.mjs";
|
|
3
3
|
const s = "ContextMenu.RadioGroup", u = (a) => {
|
|
4
4
|
const { onChange: o, ...e } = a;
|
|
5
5
|
return /* @__PURE__ */ r(t, { ...e, onValueChange: (n) => {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsx as z } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as G, useId as J } from "react";
|
|
3
|
-
import { e as Q } from "../../../../index-
|
|
3
|
+
import { e as Q } from "../../../../index-SjVEUQPm.mjs";
|
|
4
4
|
import { c as U } from "../../../../index-L8X2o7IH.mjs";
|
|
5
5
|
import { mergeRefs as V } from "../../../../lib/utils.js";
|
|
6
6
|
import { useLevelContext as W } from "../../providers/LevelProvider/LevelProvider.js";
|
|
7
|
-
import "../../../../useContentPositioning-
|
|
7
|
+
import "../../../../useContentPositioning-Dvz908Jg.mjs";
|
|
8
8
|
import "../Content/Content.utils.js";
|
|
9
9
|
import { useSubMenu as X } from "../../hooks/useSubMenu/useSubMenu.js";
|
|
10
10
|
import "../../providers/SubMenuProvider/SubMenuProvider.js";
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
|
|
2
|
+
import { SeparatorProps } from './Separator.props';
|
|
3
|
+
export declare const Separator: React.ForwardRefExoticComponent<SeparatorProps & React.RefAttributes<HTMLDivElement>>;
|
|
3
4
|
//# sourceMappingURL=Separator.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Separator.d.ts","sourceRoot":"","sources":["../../../../../src/components/ContextMenu/components/Separator/Separator.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"Separator.d.ts","sourceRoot":"","sources":["../../../../../src/components/ContextMenu/components/Separator/Separator.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAO1C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAMxD,eAAO,MAAM,SAAS,uFAWpB,CAAC"}
|
|
@@ -1,21 +1,20 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
const { className: o, ...t } = r;
|
|
9
|
-
return /* @__PURE__ */ s(
|
|
1
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as m } from "react";
|
|
3
|
+
import { Separator as p } from "../../../Separator/Separator.js";
|
|
4
|
+
import { SeparatorSquaredDarkTheme as s } from "../../../Separator/Separator.themes.js";
|
|
5
|
+
const S = "ContextMenu.Separator", f = m((r, o) => {
|
|
6
|
+
const { className: a, ...e } = r;
|
|
7
|
+
return /* @__PURE__ */ t(
|
|
10
8
|
p,
|
|
11
9
|
{
|
|
12
|
-
ref:
|
|
13
|
-
className:
|
|
14
|
-
|
|
10
|
+
ref: o,
|
|
11
|
+
className: a,
|
|
12
|
+
theme: s,
|
|
13
|
+
...e
|
|
15
14
|
}
|
|
16
15
|
);
|
|
17
16
|
});
|
|
18
|
-
|
|
17
|
+
f.displayName = S;
|
|
19
18
|
export {
|
|
20
|
-
|
|
19
|
+
f as Separator
|
|
21
20
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { ComponentPropsWithoutRef } from 'react';
|
|
2
|
-
import { Separator
|
|
3
|
-
export type SeparatorProps = ComponentPropsWithoutRef<typeof
|
|
2
|
+
import { Separator } from '../../../Separator';
|
|
3
|
+
export type SeparatorProps = Omit<ComponentPropsWithoutRef<typeof Separator>, 'theme'>;
|
|
4
4
|
//# sourceMappingURL=Separator.props.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Separator.props.d.ts","sourceRoot":"","sources":["../../../../../src/components/ContextMenu/components/Separator/Separator.props.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"Separator.props.d.ts","sourceRoot":"","sources":["../../../../../src/components/ContextMenu/components/Separator/Separator.props.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,OAAO,CAAC;AAEjD,OAAO,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AAErD,MAAM,MAAM,cAAc,GAAG,IAAI,CAC/B,wBAAwB,CAAC,OAAO,SAAS,CAAC,EAC1C,OAAO,CACR,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
|
-
import "../../../../index-
|
|
2
|
+
import "../../../../index-SjVEUQPm.mjs";
|
|
3
3
|
import "../../ContextMenu.enums.js";
|
|
4
|
-
import { S as a } from "../../../../ContextMenu-
|
|
4
|
+
import { S as a } from "../../../../ContextMenu-CsrSe_an.mjs";
|
|
5
5
|
import "./hooks/useContextMenuSub/useContextMenuSub.js";
|
|
6
6
|
import "./Sub.context.js";
|
|
7
7
|
export {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as l } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as V, useState as Z, useRef as $ } from "react";
|
|
3
|
-
import { c as ee } from "../../../../index-
|
|
4
|
-
import { u as te, a as ne, e as oe, b as se } from "../../../../useContentPositioning-
|
|
3
|
+
import { c as ee } from "../../../../index-SjVEUQPm.mjs";
|
|
4
|
+
import { u as te, a as ne, e as oe, b as se } from "../../../../useContentPositioning-Dvz908Jg.mjs";
|
|
5
5
|
import { c as ie } from "../../../../index-L8X2o7IH.mjs";
|
|
6
6
|
import { mergeRefs as ue } from "../../../../lib/utils.js";
|
|
7
7
|
import { useLevelContext as re, LevelProvider as ce } from "../../providers/LevelProvider/LevelProvider.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as t, jsxs as D } from "react/jsx-runtime";
|
|
2
|
-
import { a as E } from "../../../../index-
|
|
2
|
+
import { a as E } from "../../../../index-SjVEUQPm.mjs";
|
|
3
3
|
import { ContextMenuProvider as F } from "../../ContextMenu.context.js";
|
|
4
4
|
import { ContextMenuMode as N } from "../../ContextMenu.enums.js";
|
|
5
5
|
import { FocusBlocker as j } from "../FocusBlocker/FocusBlocker.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as p } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as ce, useState as de, useRef as ue } from "react";
|
|
3
|
-
import {
|
|
3
|
+
import { f as me } from "../../../../../../index-SjVEUQPm.mjs";
|
|
4
4
|
import { c as fe } from "../../../../../../index-L8X2o7IH.mjs";
|
|
5
|
-
import { u as pe, a as he, e as
|
|
5
|
+
import { u as pe, a as he, e as Ce, b as ge } from "../../../../../../useContentPositioning-Dvz908Jg.mjs";
|
|
6
6
|
import { mergeRefs as Ie } from "../../../../../../lib/utils.js";
|
|
7
7
|
import { KeyboardKey as Oe } from "../../../../../../lib/keyboard/index.js";
|
|
8
8
|
import { useLevelContext as ve, LevelProvider as Ae } from "../../../../providers/LevelProvider/LevelProvider.js";
|
|
@@ -17,10 +17,10 @@ import '../../../../../../assets/Content.css';const Me = "_content_f2h52_1", Pe
|
|
|
17
17
|
const {
|
|
18
18
|
style: b,
|
|
19
19
|
className: E,
|
|
20
|
-
children:
|
|
20
|
+
children: C,
|
|
21
21
|
alignOffset: N,
|
|
22
22
|
arrowPadding: w = 5,
|
|
23
|
-
collisionBoundary:
|
|
23
|
+
collisionBoundary: g,
|
|
24
24
|
direction: I = ye.DOWN_RIGHT,
|
|
25
25
|
disableAutoPositioning: O = !1,
|
|
26
26
|
disableRepositioning: F = !1,
|
|
@@ -59,12 +59,12 @@ import '../../../../../../assets/Content.css';const Me = "_content_f2h52_1", Pe
|
|
|
59
59
|
disableAutoPositioning: O,
|
|
60
60
|
triggerRef: j,
|
|
61
61
|
contentRef: A,
|
|
62
|
-
collisionBoundary:
|
|
63
|
-
children:
|
|
62
|
+
collisionBoundary: g,
|
|
63
|
+
children: C,
|
|
64
64
|
disableRepositioning: F
|
|
65
65
|
}), V = he({
|
|
66
66
|
opacity: P && (y === x.CLICK || R) ? 1 : 0,
|
|
67
|
-
config: y === x.CLICK ? { duration: 0 } : { duration: z, easing:
|
|
67
|
+
config: y === x.CLICK ? { duration: 0 } : { duration: z, easing: Ce.easeInOutCubic }
|
|
68
68
|
}), Z = (e) => {
|
|
69
69
|
m == null || m(e), n == null || n(e);
|
|
70
70
|
}, $ = (e) => {
|
|
@@ -107,7 +107,7 @@ import '../../../../../../assets/Content.css';const Me = "_content_f2h52_1", Pe
|
|
|
107
107
|
onChildAiming: G,
|
|
108
108
|
level: M + 1,
|
|
109
109
|
children: D && /* @__PURE__ */ p(
|
|
110
|
-
|
|
110
|
+
ge.div,
|
|
111
111
|
{
|
|
112
112
|
style: {
|
|
113
113
|
zIndex: Number.MAX_SAFE_INTEGER - 10,
|
|
@@ -123,7 +123,7 @@ import '../../../../../../assets/Content.css';const Me = "_content_f2h52_1", Pe
|
|
|
123
123
|
...b || {},
|
|
124
124
|
pointerEvents: O || P ? "auto" : "none"
|
|
125
125
|
},
|
|
126
|
-
collisionBoundary:
|
|
126
|
+
collisionBoundary: g,
|
|
127
127
|
side: De[I],
|
|
128
128
|
align: J,
|
|
129
129
|
arrowPadding: w,
|
|
@@ -141,7 +141,7 @@ import '../../../../../../assets/Content.css';const Me = "_content_f2h52_1", Pe
|
|
|
141
141
|
onPointerUp: re,
|
|
142
142
|
"data-menu-level": M + 1,
|
|
143
143
|
...K,
|
|
144
|
-
children:
|
|
144
|
+
children: C
|
|
145
145
|
}
|
|
146
146
|
)
|
|
147
147
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsx as b } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as B } from "react";
|
|
3
|
-
import { T as w } from "../../../../../../index-
|
|
3
|
+
import { T as w } from "../../../../../../index-SjVEUQPm.mjs";
|
|
4
4
|
import { c as y } from "../../../../../../index-L8X2o7IH.mjs";
|
|
5
5
|
import { mergeRefs as A } from "../../../../../../lib/utils.js";
|
|
6
6
|
import { useContextMenuContext as S } from "../../../../ContextMenu.context.js";
|
|
7
7
|
import { ContextMenuMode as j } from "../../../../ContextMenu.enums.js";
|
|
8
|
-
import "../../../../../../useContentPositioning-
|
|
8
|
+
import "../../../../../../useContentPositioning-Dvz908Jg.mjs";
|
|
9
9
|
import "../../../Content/Content.utils.js";
|
|
10
10
|
import "../../../../providers/LevelProvider/LevelProvider.js";
|
|
11
11
|
import "../../../../providers/SubMenuProvider/SubMenuProvider.js";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { jsx as w } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as W } from "react";
|
|
3
|
-
import { b as j } from "../../../../index-
|
|
3
|
+
import { b as j } from "../../../../index-SjVEUQPm.mjs";
|
|
4
4
|
import { c as G } from "../../../../index-L8X2o7IH.mjs";
|
|
5
5
|
import { mergeRefs as V } from "../../../../lib/utils.js";
|
|
6
6
|
import { KeyboardKey as t } from "../../../../lib/keyboard/index.js";
|
|
7
7
|
import { useContextMenuSubContext as Y } from "../Sub/Sub.context.js";
|
|
8
8
|
import { ContextMenuMode as d } from "../../ContextMenu.enums.js";
|
|
9
|
-
import "../../../../useContentPositioning-
|
|
9
|
+
import "../../../../useContentPositioning-Dvz908Jg.mjs";
|
|
10
10
|
import "../Content/Content.utils.js";
|
|
11
11
|
import "../../providers/LevelProvider/LevelProvider.js";
|
|
12
12
|
import "../../providers/SubMenuProvider/SubMenuProvider.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as L } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as w } from "react";
|
|
3
|
-
import { T as y } from "../../../../index-
|
|
3
|
+
import { T as y } from "../../../../index-SjVEUQPm.mjs";
|
|
4
4
|
import { c as I } from "../../../../index-L8X2o7IH.mjs";
|
|
5
5
|
import { mergeRefs as K } from "../../../../lib/utils.js";
|
|
6
6
|
import { KeyboardKey as a } from "../../../../lib/keyboard/index.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useContextMenu as r } from "./useContextMenu/useContextMenu.js";
|
|
2
|
-
import { u as n } from "../../../useContentPositioning-
|
|
2
|
+
import { u as n } from "../../../useContentPositioning-Dvz908Jg.mjs";
|
|
3
3
|
import { useSubMenu as s } from "./useSubMenu/useSubMenu.js";
|
|
4
4
|
import { useItemInnerFocus as m } from "./useItemInnerFocus/useItemInnerFocus.js";
|
|
5
5
|
import { useContextMenuItemFocus as p } from "./useContextMenuItemFocus/useContextMenuItemFocus.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "react";
|
|
2
|
-
import { u as n } from "../../../../useContentPositioning-
|
|
2
|
+
import { u as n } from "../../../../useContentPositioning-Dvz908Jg.mjs";
|
|
3
3
|
import "../../components/Content/Content.enums.js";
|
|
4
4
|
import "../../components/Content/Content.utils.js";
|
|
5
5
|
export {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Separator.d.ts","sourceRoot":"","sources":["../../../src/components/Separator/Separator.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAK1C,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAOxD,eAAO,MAAM,SAAS,oGAmBpB,CAAC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { jsx as c } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as l } from "react";
|
|
3
|
+
import { c as m } from "../../index-L8X2o7IH.mjs";
|
|
4
|
+
import { useThemeClassName as p } from "../../hooks/useThemeClassName/useThemeClassName.js";
|
|
5
|
+
import '../../assets/Separator.css';const _ = "_separator_19to2_1", h = "_horizontal_19to2_8", f = "_vertical_19to2_13", o = {
|
|
6
|
+
separator: _,
|
|
7
|
+
horizontal: h,
|
|
8
|
+
vertical: f
|
|
9
|
+
}, v = l((a, t) => {
|
|
10
|
+
const { className: e = "", theme: s, orientation: r = "horizontal", ...i } = a, n = p(s);
|
|
11
|
+
return /* @__PURE__ */ c(
|
|
12
|
+
"div",
|
|
13
|
+
{
|
|
14
|
+
ref: t,
|
|
15
|
+
role: "separator",
|
|
16
|
+
"aria-orientation": r,
|
|
17
|
+
className: m(
|
|
18
|
+
o.separator,
|
|
19
|
+
r === "vertical" ? o.vertical : o.horizontal,
|
|
20
|
+
n,
|
|
21
|
+
e
|
|
22
|
+
),
|
|
23
|
+
...i
|
|
24
|
+
}
|
|
25
|
+
);
|
|
26
|
+
});
|
|
27
|
+
v.displayName = "Separator";
|
|
28
|
+
export {
|
|
29
|
+
v as Separator
|
|
30
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { SeparatorTheme } from './Separator.themes';
|
|
3
|
+
type NativeDivAttributes = React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>;
|
|
4
|
+
export type SeparatorOrientation = 'horizontal' | 'vertical';
|
|
5
|
+
export interface SeparatorProps extends NativeDivAttributes {
|
|
6
|
+
/**
|
|
7
|
+
* Object with CSS theme properties.
|
|
8
|
+
*/
|
|
9
|
+
theme: SeparatorTheme;
|
|
10
|
+
/**
|
|
11
|
+
* Visual orientation of the separator.
|
|
12
|
+
* `horizontal` renders a 1px-tall full-width line.
|
|
13
|
+
* `vertical` renders a 1px-wide full-height line.
|
|
14
|
+
* Default: `horizontal`.
|
|
15
|
+
*/
|
|
16
|
+
orientation?: SeparatorOrientation;
|
|
17
|
+
}
|
|
18
|
+
export {};
|
|
19
|
+
//# sourceMappingURL=Separator.props.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Separator.props.d.ts","sourceRoot":"","sources":["../../../src/components/Separator/Separator.props.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEzD,KAAK,mBAAmB,GAAG,KAAK,CAAC,iBAAiB,CAChD,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,EACpC,cAAc,CACf,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG,YAAY,GAAG,UAAU,CAAC;AAE7D,MAAM,WAAW,cAAe,SAAQ,mBAAmB;IACzD;;OAEG;IACH,KAAK,EAAE,cAAc,CAAC;IACtB;;;;;OAKG;IACH,WAAW,CAAC,EAAE,oBAAoB,CAAC;CACpC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
type SeparatorThemeKey = '--crm-ui-kit-separator-color' | '--crm-ui-kit-separator-border-radius';
|
|
2
|
+
export type SeparatorTheme = {
|
|
3
|
+
[K in SeparatorThemeKey]: string;
|
|
4
|
+
};
|
|
5
|
+
export declare const SeparatorRoundedLightTheme: SeparatorTheme;
|
|
6
|
+
export declare const SeparatorSquaredLightTheme: SeparatorTheme;
|
|
7
|
+
export declare const SeparatorRoundedDarkTheme: SeparatorTheme;
|
|
8
|
+
export declare const SeparatorSquaredDarkTheme: SeparatorTheme;
|
|
9
|
+
export {};
|
|
10
|
+
//# sourceMappingURL=Separator.themes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Separator.themes.d.ts","sourceRoot":"","sources":["../../../src/components/Separator/Separator.themes.ts"],"names":[],"mappings":"AAAA,KAAK,iBAAiB,GAClB,8BAA8B,GAC9B,sCAAsC,CAAC;AAE3C,MAAM,MAAM,cAAc,GAAG;KAC1B,CAAC,IAAI,iBAAiB,GAAG,MAAM;CACjC,CAAC;AASF,eAAO,MAAM,0BAA0B,EAAE,cAIxC,CAAC;AAEF,eAAO,MAAM,0BAA0B,EAAE,cAGxC,CAAC;AAEF,eAAO,MAAM,yBAAyB,EAAE,cAKvC,CAAC;AAEF,eAAO,MAAM,yBAAyB,EAAE,cAIvC,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
const r = {
|
|
2
|
+
"--crm-ui-kit-separator-color": "var(--crm-ui-kit-palette-border-primary)"
|
|
3
|
+
}, a = {
|
|
4
|
+
...r,
|
|
5
|
+
"--crm-ui-kit-separator-border-radius": "var(--crm-ui-kit-border-radius-default)"
|
|
6
|
+
}, e = {
|
|
7
|
+
...r,
|
|
8
|
+
"--crm-ui-kit-separator-border-radius": "0"
|
|
9
|
+
}, t = {
|
|
10
|
+
...r,
|
|
11
|
+
"--crm-ui-kit-separator-border-radius": "var(--crm-ui-kit-border-radius-default)",
|
|
12
|
+
"--crm-ui-kit-separator-color": "var(--crm-ui-kit-palette-border-default)"
|
|
13
|
+
}, o = {
|
|
14
|
+
...r,
|
|
15
|
+
"--crm-ui-kit-separator-border-radius": "0",
|
|
16
|
+
"--crm-ui-kit-separator-color": "var(--crm-ui-kit-palette-border-default)"
|
|
17
|
+
};
|
|
18
|
+
export {
|
|
19
|
+
t as SeparatorRoundedDarkTheme,
|
|
20
|
+
a as SeparatorRoundedLightTheme,
|
|
21
|
+
o as SeparatorSquaredDarkTheme,
|
|
22
|
+
e as SeparatorSquaredLightTheme
|
|
23
|
+
};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { Separator } from './Separator';
|
|
2
|
+
export { type SeparatorTheme, SeparatorRoundedLightTheme, SeparatorSquaredLightTheme, SeparatorRoundedDarkTheme, SeparatorSquaredDarkTheme, } from './Separator.themes';
|
|
3
|
+
export { type SeparatorProps, type SeparatorOrientation, } from './Separator.props';
|
|
4
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Separator/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EACL,KAAK,cAAc,EACnB,0BAA0B,EAC1B,0BAA0B,EAC1B,yBAAyB,EACzB,yBAAyB,GAC1B,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EACL,KAAK,cAAc,EACnB,KAAK,oBAAoB,GAC1B,MAAM,mBAAmB,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Separator as a } from "./Separator.js";
|
|
2
|
+
import { SeparatorRoundedDarkTheme as t, SeparatorRoundedLightTheme as p, SeparatorSquaredDarkTheme as S, SeparatorSquaredLightTheme as d } from "./Separator.themes.js";
|
|
3
|
+
export {
|
|
4
|
+
a as Separator,
|
|
5
|
+
t as SeparatorRoundedDarkTheme,
|
|
6
|
+
p as SeparatorRoundedLightTheme,
|
|
7
|
+
S as SeparatorSquaredDarkTheme,
|
|
8
|
+
d as SeparatorSquaredLightTheme
|
|
9
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/useStoryLabel/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useStoryLabel.d.ts","sourceRoot":"","sources":["../../../src/hooks/useStoryLabel/useStoryLabel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,wBAAgB,aAAa,CAC3B,IAAI,EAAE,MAAM,EACZ,OAAO,CAAC,EAAE;IAAE,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAAC,SAAS,CAAC,EAAE,QAAQ,CAAA;CAAE,qBAahE"}
|