@kommo-crm/crm-react-ui-kit 1.12.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/Select/Select.types.d.ts +27 -3
- package/dist/components/Select/Select.types.d.ts.map +1 -1
- package/dist/components/Select/Select.types.js +9 -1
- package/dist/components/Select/components/Button/Button.d.ts.map +1 -1
- package/dist/components/Select/components/Button/Button.js +21 -17
- package/dist/components/Select/components/Item/Item.d.ts.map +1 -1
- package/dist/components/Select/components/Item/Item.js +41 -31
- package/dist/components/Select/components/Option/Option.js +11 -11
- package/dist/components/Select/components/Option/Option.props.d.ts +4 -0
- package/dist/components/Select/components/Option/Option.props.d.ts.map +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,16 +1,16 @@
|
|
|
1
1
|
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { c
|
|
4
|
-
import { Text as
|
|
2
|
+
import { forwardRef as a } from "react";
|
|
3
|
+
import { c } from "../../../../index-L8X2o7IH.mjs";
|
|
4
|
+
import { Text as l } from "../../../Text/Text.js";
|
|
5
5
|
import "../../../Text/Text.themes.js";
|
|
6
|
-
import { OptionTextTheme as
|
|
7
|
-
import '../../../../assets/Option.css';const
|
|
8
|
-
text:
|
|
9
|
-
},
|
|
10
|
-
const { children: r, className: s } = e;
|
|
11
|
-
return /* @__PURE__ */ t("span", { className:
|
|
6
|
+
import { OptionTextTheme as p } from "./Option.theme.js";
|
|
7
|
+
import '../../../../assets/Option.css';const n = "_text_gk4uj_1", x = {
|
|
8
|
+
text: n
|
|
9
|
+
}, f = "Select.Value", d = a((e, o) => {
|
|
10
|
+
const { children: r, className: s, title: i, ...m } = e;
|
|
11
|
+
return /* @__PURE__ */ t("span", { ...m, className: c(x.text, s), ref: o, title: i, children: /* @__PURE__ */ t(l, { theme: p, size: "l", isEllipsis: !0, children: r }) });
|
|
12
12
|
});
|
|
13
|
-
|
|
13
|
+
d.displayName = f;
|
|
14
14
|
export {
|
|
15
|
-
|
|
15
|
+
d as default
|
|
16
16
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Option.props.d.ts","sourceRoot":"","sources":["../../../../../src/components/Select/components/Option/Option.props.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAElD,MAAM,WAAW,WAAY,SAAQ,cAAc,CAAC,eAAe,CAAC;IAClE;;OAEG;IACH,QAAQ,EAAE,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"Option.props.d.ts","sourceRoot":"","sources":["../../../../../src/components/Select/components/Option/Option.props.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAElD,MAAM,WAAW,WAAY,SAAQ,cAAc,CAAC,eAAe,CAAC;IAClE;;OAEG;IACH,QAAQ,EAAE,SAAS,CAAC;IACpB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB"}
|
|
@@ -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"}
|