@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,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 {
|
|
@@ -1,11 +1,35 @@
|
|
|
1
|
-
|
|
1
|
+
import { ReactElement } from 'react';
|
|
2
|
+
interface SelectItemBase {
|
|
2
3
|
/**
|
|
3
4
|
* Value of the element.
|
|
4
5
|
*/
|
|
5
6
|
value: number | string;
|
|
7
|
+
}
|
|
8
|
+
export type SelectItem = (SelectItemBase & {
|
|
6
9
|
/**
|
|
7
|
-
*
|
|
10
|
+
* Visual label shown in the list and in the trigger when the item is selected.
|
|
8
11
|
*/
|
|
9
12
|
option: string;
|
|
10
|
-
|
|
13
|
+
/**
|
|
14
|
+
* Native tooltip text shown on hover.
|
|
15
|
+
* Defaults to `option` when omitted.
|
|
16
|
+
*/
|
|
17
|
+
title?: string;
|
|
18
|
+
}) | (SelectItemBase & {
|
|
19
|
+
/**
|
|
20
|
+
* Visual label shown in the list and in the trigger when the item is selected.
|
|
21
|
+
*/
|
|
22
|
+
option: ReactElement;
|
|
23
|
+
/**
|
|
24
|
+
* Native tooltip text shown on hover.
|
|
25
|
+
* Required because `option` is not a string and cannot be used as a fallback.
|
|
26
|
+
*/
|
|
27
|
+
title: string;
|
|
28
|
+
});
|
|
29
|
+
/**
|
|
30
|
+
* Resolves the tooltip text for a `SelectItem`. Uses the explicit `title` when
|
|
31
|
+
* provided, otherwise falls back to `option` if it is a string.
|
|
32
|
+
*/
|
|
33
|
+
export declare const getSelectItemTitle: (item: SelectItem) => string | undefined;
|
|
34
|
+
export {};
|
|
11
35
|
//# sourceMappingURL=Select.types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Select.types.d.ts","sourceRoot":"","sources":["../../../src/components/Select/Select.types.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"Select.types.d.ts","sourceRoot":"","sources":["../../../src/components/Select/Select.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAErC,UAAU,cAAc;IACtB;;OAEG;IACH,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;CACxB;AAED,MAAM,MAAM,UAAU,GAClB,CAAC,cAAc,GAAG;IAChB;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC,GACF,CAAC,cAAc,GAAG;IAChB;;OAEG;IACH,MAAM,EAAE,YAAY,CAAC;IACrB;;;OAGG;IACH,KAAK,EAAE,MAAM,CAAC;CACf,CAAC,CAAC;AAEP;;;GAGG;AACH,eAAO,MAAM,kBAAkB,SAAU,UAAU,KAAG,MAAM,GAAG,SAU9D,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../../../src/components/Select/components/Button/Button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqD,MAAM,OAAO,CAAC;AAE1E,OAAO,EAAgB,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;
|
|
1
|
+
{"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../../../src/components/Select/components/Button/Button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqD,MAAM,OAAO,CAAC;AAE1E,OAAO,EAAgB,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAO9E,MAAM,MAAM,WAAW,GAAG,iBAAiB,CAAC;AAM5C,eAAO,MAAM,MAAM,6FAyCjB,CAAC"}
|
|
@@ -1,28 +1,32 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { SelectButton as
|
|
4
|
-
import { mergeRefs as
|
|
5
|
-
import { useSelectContext as
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import { jsx as d } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as g, useRef as S, useCallback as B, useEffect as R } from "react";
|
|
3
|
+
import { SelectButton as v } from "../../../SelectButton/SelectButton.js";
|
|
4
|
+
import { mergeRefs as x } from "../../../../lib/utils.js";
|
|
5
|
+
import { useSelectContext as I } from "../../Select.context.js";
|
|
6
|
+
import { getSelectItemTitle as T } from "../../Select.types.js";
|
|
7
|
+
const s = "Select.Button", b = g((l, c) => {
|
|
8
|
+
const { theme: f, ...i } = l, { isDisabled: m, onOpen: t, isOpened: e, isInvalid: u, value: o } = I(s), r = S(null), p = B(() => {
|
|
8
9
|
t(!e);
|
|
9
10
|
}, [t]);
|
|
10
|
-
|
|
11
|
-
var
|
|
12
|
-
e && ((
|
|
13
|
-
}, [e])
|
|
14
|
-
|
|
11
|
+
R(() => () => {
|
|
12
|
+
var n;
|
|
13
|
+
e && ((n = r.current) == null || n.focus());
|
|
14
|
+
}, [e]);
|
|
15
|
+
const a = o ? T(o) : void 0;
|
|
16
|
+
return /* @__PURE__ */ d(
|
|
17
|
+
v,
|
|
15
18
|
{
|
|
16
|
-
ref:
|
|
17
|
-
onToggle:
|
|
18
|
-
|
|
19
|
+
ref: x(r, c),
|
|
20
|
+
onToggle: p,
|
|
21
|
+
title: a,
|
|
22
|
+
theme: f,
|
|
19
23
|
isDisabled: m,
|
|
20
24
|
isInvalid: u,
|
|
21
|
-
...
|
|
25
|
+
...i
|
|
22
26
|
}
|
|
23
27
|
);
|
|
24
28
|
});
|
|
25
|
-
b.displayName =
|
|
29
|
+
b.displayName = s;
|
|
26
30
|
export {
|
|
27
31
|
b as Button
|
|
28
32
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Item.d.ts","sourceRoot":"","sources":["../../../../../src/components/Select/components/Item/Item.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8C,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"Item.d.ts","sourceRoot":"","sources":["../../../../../src/components/Select/components/Item/Item.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8C,MAAM,OAAO,CAAC;AAYnE,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAUzC,eAAO,MAAM,IAAI,iFA8Df,CAAC"}
|
|
@@ -1,46 +1,56 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { c as
|
|
4
|
-
import { useThemeClassName as
|
|
5
|
-
import { noop as
|
|
6
|
-
import { useSelectContext as
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
1
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as w, useCallback as y } from "react";
|
|
3
|
+
import { c as g } from "../../../../index-L8X2o7IH.mjs";
|
|
4
|
+
import { useThemeClassName as k } from "../../../../hooks/useThemeClassName/useThemeClassName.js";
|
|
5
|
+
import { noop as A } from "../../../../utils/noop/noop.js";
|
|
6
|
+
import { useSelectContext as D } from "../../Select.context.js";
|
|
7
|
+
import { getSelectItemTitle as H } from "../../Select.types.js";
|
|
8
|
+
import P from "../Option/Option.js";
|
|
9
|
+
import '../../../../assets/Item.css';const T = "_item_mywsb_1", j = "_selected_mywsb_24", E = "_hovered_mywsb_30", s = {
|
|
10
|
+
item: T,
|
|
11
|
+
selected: j,
|
|
12
|
+
hovered: E
|
|
13
|
+
}, c = "Select.Item", L = w((i, l) => {
|
|
14
|
+
const {
|
|
15
|
+
item: e,
|
|
16
|
+
children: t,
|
|
17
|
+
index: m,
|
|
18
|
+
className: a,
|
|
19
|
+
theme: d,
|
|
20
|
+
title: p,
|
|
21
|
+
...h
|
|
22
|
+
} = i, v = k(d), {
|
|
14
23
|
value: o,
|
|
15
|
-
onChange:
|
|
16
|
-
onHoveredIndexChange:
|
|
17
|
-
hoveredIndex:
|
|
18
|
-
} =
|
|
19
|
-
(
|
|
20
|
-
|
|
24
|
+
onChange: r = A,
|
|
25
|
+
onHoveredIndexChange: f,
|
|
26
|
+
hoveredIndex: _
|
|
27
|
+
} = D(c), { option: u, value: C } = e, x = y(
|
|
28
|
+
(b) => {
|
|
29
|
+
b.preventDefault(), f(m), r(e);
|
|
21
30
|
},
|
|
22
|
-
[
|
|
23
|
-
),
|
|
24
|
-
return /* @__PURE__ */
|
|
31
|
+
[r, e]
|
|
32
|
+
), I = (o == null ? void 0 : o.value) === C, N = _ === m, S = p ?? (t ? void 0 : H(e));
|
|
33
|
+
return /* @__PURE__ */ n(
|
|
25
34
|
"li",
|
|
26
35
|
{
|
|
27
36
|
...h,
|
|
28
37
|
ref: l,
|
|
29
|
-
|
|
30
|
-
|
|
38
|
+
title: S,
|
|
39
|
+
className: g(
|
|
40
|
+
s.item,
|
|
31
41
|
{
|
|
32
|
-
[
|
|
33
|
-
[
|
|
42
|
+
[s.selected]: I,
|
|
43
|
+
[s.hovered]: N
|
|
34
44
|
},
|
|
35
45
|
a,
|
|
36
|
-
|
|
46
|
+
v
|
|
37
47
|
),
|
|
38
|
-
onClick:
|
|
39
|
-
children:
|
|
48
|
+
onClick: x,
|
|
49
|
+
children: t || /* @__PURE__ */ n(P, { children: u })
|
|
40
50
|
}
|
|
41
51
|
);
|
|
42
52
|
});
|
|
43
|
-
|
|
53
|
+
L.displayName = c;
|
|
44
54
|
export {
|
|
45
|
-
|
|
55
|
+
L as Item
|
|
46
56
|
};
|