@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.
Files changed (62) hide show
  1. package/dist/{ContextMenu-DFahDlEy.mjs → ContextMenu-CsrSe_an.mjs} +2 -2
  2. package/dist/assets/Separator.css +1 -1
  3. package/dist/components/ContextMenu/ContextMenu.d.ts +1 -1
  4. package/dist/components/ContextMenu/ContextMenu.js +3 -3
  5. package/dist/components/ContextMenu/components/Arrow/Arrow.js +1 -1
  6. package/dist/components/ContextMenu/components/CheckboxItem/CheckboxItem.js +2 -2
  7. package/dist/components/ContextMenu/components/Content/Content.js +2 -2
  8. package/dist/components/ContextMenu/components/Content/index.js +1 -1
  9. package/dist/components/ContextMenu/components/Group/Group.js +1 -1
  10. package/dist/components/ContextMenu/components/Item/Item.js +2 -2
  11. package/dist/components/ContextMenu/components/ItemIndicator/ItemIndicator.js +1 -1
  12. package/dist/components/ContextMenu/components/Label/Label.js +2 -2
  13. package/dist/components/ContextMenu/components/Portal/Portal.js +1 -1
  14. package/dist/components/ContextMenu/components/RadioGroup/RadioGroup.js +1 -1
  15. package/dist/components/ContextMenu/components/RadioItem/RadioItem.js +2 -2
  16. package/dist/components/ContextMenu/components/Separator/Separator.d.ts +2 -1
  17. package/dist/components/ContextMenu/components/Separator/Separator.d.ts.map +1 -1
  18. package/dist/components/ContextMenu/components/Separator/Separator.js +13 -14
  19. package/dist/components/ContextMenu/components/Separator/Separator.props.d.ts +2 -2
  20. package/dist/components/ContextMenu/components/Separator/Separator.props.d.ts.map +1 -1
  21. package/dist/components/ContextMenu/components/Sub/Sub.js +2 -2
  22. package/dist/components/ContextMenu/components/Sub/index.js +1 -1
  23. package/dist/components/ContextMenu/components/SubContent/SubContent.js +2 -2
  24. package/dist/components/ContextMenu/components/SubRoot/SubRoot.js +1 -1
  25. package/dist/components/ContextMenu/components/SubRoot/components/Content/Content.js +10 -10
  26. package/dist/components/ContextMenu/components/SubRoot/components/Trigger/Trigger.js +2 -2
  27. package/dist/components/ContextMenu/components/SubTrigger/SubTrigger.js +2 -2
  28. package/dist/components/ContextMenu/components/Trigger/Trigger.js +1 -1
  29. package/dist/components/ContextMenu/hooks/index.js +1 -1
  30. package/dist/components/ContextMenu/hooks/useContentPositioning/useContentPositioning.js +1 -1
  31. package/dist/components/ContextMenu/index.js +1 -1
  32. package/dist/components/Select/Select.types.d.ts +27 -3
  33. package/dist/components/Select/Select.types.d.ts.map +1 -1
  34. package/dist/components/Select/Select.types.js +9 -1
  35. package/dist/components/Select/components/Button/Button.d.ts.map +1 -1
  36. package/dist/components/Select/components/Button/Button.js +21 -17
  37. package/dist/components/Select/components/Item/Item.d.ts.map +1 -1
  38. package/dist/components/Select/components/Item/Item.js +41 -31
  39. package/dist/components/Select/components/Option/Option.js +11 -11
  40. package/dist/components/Select/components/Option/Option.props.d.ts +4 -0
  41. package/dist/components/Select/components/Option/Option.props.d.ts.map +1 -1
  42. package/dist/components/Separator/Separator.d.ts +4 -0
  43. package/dist/components/Separator/Separator.d.ts.map +1 -0
  44. package/dist/components/Separator/Separator.js +30 -0
  45. package/dist/components/Separator/Separator.props.d.ts +19 -0
  46. package/dist/components/Separator/Separator.props.d.ts.map +1 -0
  47. package/dist/components/Separator/Separator.props.js +1 -0
  48. package/dist/components/Separator/Separator.themes.d.ts +10 -0
  49. package/dist/components/Separator/Separator.themes.d.ts.map +1 -0
  50. package/dist/components/Separator/Separator.themes.js +23 -0
  51. package/dist/components/Separator/index.d.ts +4 -0
  52. package/dist/components/Separator/index.d.ts.map +1 -0
  53. package/dist/components/Separator/index.js +9 -0
  54. package/dist/hooks/useStoryLabel/index.d.ts +2 -0
  55. package/dist/hooks/useStoryLabel/index.d.ts.map +1 -0
  56. package/dist/hooks/useStoryLabel/index.js +4 -0
  57. package/dist/hooks/useStoryLabel/useStoryLabel.d.ts +6 -0
  58. package/dist/hooks/useStoryLabel/useStoryLabel.d.ts.map +1 -0
  59. package/dist/hooks/useStoryLabel/useStoryLabel.js +9511 -0
  60. package/dist/{index-aPaPKjUe.mjs → index-SjVEUQPm.mjs} +368 -369
  61. package/dist/{useContentPositioning-Dfjbylz5.mjs → useContentPositioning-Dvz908Jg.mjs} +1 -1
  62. 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-aPaPKjUe.mjs";
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-Dfjbylz5.mjs";
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
- ._separator_1k8lw_1{width:100%;height:1px;background-color:var(--crm-ui-kit-palette-border-default)}
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<Omit<import('@radix-ui/react-dropdown-menu').DropdownMenuSeparatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
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-aPaPKjUe.mjs";
2
+ import "../../index-SjVEUQPm.mjs";
3
3
  import "./hooks/useContextMenu/useContextMenu.js";
4
4
  import "react";
5
- import "../../useContentPositioning-Dfjbylz5.mjs";
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-DFahDlEy.mjs";
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-aPaPKjUe.mjs";
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-aPaPKjUe.mjs";
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-Dfjbylz5.mjs";
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-aPaPKjUe.mjs";
3
+ import "../../../../index-SjVEUQPm.mjs";
4
4
  import "../../../../index-L8X2o7IH.mjs";
5
- import { C as d } from "../../../../useContentPositioning-Dfjbylz5.mjs";
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-Dfjbylz5.mjs";
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,4 +1,4 @@
1
- import { G as o } from "../../../../index-aPaPKjUe.mjs";
1
+ import { G as o } from "../../../../index-SjVEUQPm.mjs";
2
2
  const p = "ContextMenu.Group", r = o;
3
3
  r.displayName = p;
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-aPaPKjUe.mjs";
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-Dfjbylz5.mjs";
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-aPaPKjUe.mjs";
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-aPaPKjUe.mjs";
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-Dfjbylz5.mjs";
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,4 +1,4 @@
1
- import { P as o } from "../../../../index-aPaPKjUe.mjs";
1
+ import { P as o } from "../../../../index-SjVEUQPm.mjs";
2
2
  const t = "ContextMenu.Portal", a = o;
3
3
  a.displayName = t;
4
4
  export {
@@ -1,5 +1,5 @@
1
1
  import { jsx as r } from "react/jsx-runtime";
2
- import { R as t } from "../../../../index-aPaPKjUe.mjs";
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-aPaPKjUe.mjs";
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-Dfjbylz5.mjs";
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
- export declare const Separator: React.ForwardRefExoticComponent<Omit<import('@radix-ui/react-dropdown-menu').DropdownMenuSeparatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
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;AAY1C,eAAO,MAAM,SAAS,8LAUpB,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 s } from "react/jsx-runtime";
2
- import { forwardRef as e } from "react";
3
- import { f as p } from "../../../../index-aPaPKjUe.mjs";
4
- import { c as m } from "../../../../index-L8X2o7IH.mjs";
5
- import '../../../../assets/Separator.css';const c = "_separator_1k8lw_1", n = {
6
- separator: c
7
- }, f = "ContextMenu.Separator", i = e((r, a) => {
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: a,
13
- className: m(n.separator, o),
14
- ...t
10
+ ref: o,
11
+ className: a,
12
+ theme: s,
13
+ ...e
15
14
  }
16
15
  );
17
16
  });
18
- i.displayName = f;
17
+ f.displayName = S;
19
18
  export {
20
- i as Separator
19
+ f as Separator
21
20
  };
@@ -1,4 +1,4 @@
1
1
  import { ComponentPropsWithoutRef } from 'react';
2
- import { Separator as RadixDropdownMenuSeparator } from '@radix-ui/react-dropdown-menu';
3
- export type SeparatorProps = ComponentPropsWithoutRef<typeof RadixDropdownMenuSeparator>;
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;AACjD,OAAO,EAAE,SAAS,IAAI,0BAA0B,EAAE,MAAM,+BAA+B,CAAC;AAExF,MAAM,MAAM,cAAc,GAAG,wBAAwB,CACnD,OAAO,0BAA0B,CAClC,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-aPaPKjUe.mjs";
2
+ import "../../../../index-SjVEUQPm.mjs";
3
3
  import "../../ContextMenu.enums.js";
4
- import { S as a } from "../../../../ContextMenu-DFahDlEy.mjs";
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,4 +1,4 @@
1
- import { S } from "../../../../ContextMenu-DFahDlEy.mjs";
1
+ import { S } from "../../../../ContextMenu-CsrSe_an.mjs";
2
2
  export {
3
3
  S as Sub
4
4
  };
@@ -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-aPaPKjUe.mjs";
4
- import { u as te, a as ne, e as oe, b as se } from "../../../../useContentPositioning-Dfjbylz5.mjs";
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-aPaPKjUe.mjs";
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 { g as me } from "../../../../../../index-aPaPKjUe.mjs";
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 ge, b as Ce } from "../../../../../../useContentPositioning-Dfjbylz5.mjs";
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: g,
20
+ children: C,
21
21
  alignOffset: N,
22
22
  arrowPadding: w = 5,
23
- collisionBoundary: C,
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: C,
63
- children: g,
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: ge.easeInOutCubic }
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
- Ce.div,
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: C,
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: g
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-aPaPKjUe.mjs";
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-Dfjbylz5.mjs";
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-aPaPKjUe.mjs";
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-Dfjbylz5.mjs";
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-aPaPKjUe.mjs";
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-Dfjbylz5.mjs";
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-Dfjbylz5.mjs";
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,4 +1,4 @@
1
- import { C as t } from "../../ContextMenu-DFahDlEy.mjs";
1
+ import { C as t } from "../../ContextMenu-CsrSe_an.mjs";
2
2
  export {
3
3
  t as ContextMenu
4
4
  };
@@ -1,11 +1,35 @@
1
- export type SelectItem = {
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
- * Description of the element.
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,MAAM,MAAM,UAAU,GAAG;IACvB;;OAEG;IACH,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;IACvB;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC"}
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,9 @@
1
-
1
+ const e = (t) => {
2
+ if (t.title)
3
+ return t.title;
4
+ if (typeof t.option == "string")
5
+ return t.option;
6
+ };
7
+ export {
8
+ e as getSelectItemTitle
9
+ };
@@ -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;AAM9E,MAAM,MAAM,WAAW,GAAG,iBAAiB,CAAC;AAM5C,eAAO,MAAM,MAAM,6FAiCjB,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 p } from "react/jsx-runtime";
2
- import { forwardRef as a, useRef as d, useCallback as g, useEffect as B } from "react";
3
- import { SelectButton as R } from "../../../SelectButton/SelectButton.js";
4
- import { mergeRefs as S } from "../../../../lib/utils.js";
5
- import { useSelectContext as x } from "../../Select.context.js";
6
- const n = "Select.Button", b = a((s, f) => {
7
- const { theme: c, ...l } = s, { isDisabled: m, onOpen: t, isOpened: e, isInvalid: u } = x(n), o = d(null), i = g(() => {
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
- return B(() => () => {
11
- var r;
12
- e && ((r = o.current) == null || r.focus());
13
- }, [e]), /* @__PURE__ */ p(
14
- R,
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: S(o, f),
17
- onToggle: i,
18
- theme: c,
19
+ ref: x(r, c),
20
+ onToggle: p,
21
+ title: a,
22
+ theme: f,
19
23
  isDisabled: m,
20
24
  isInvalid: u,
21
- ...l
25
+ ...i
22
26
  }
23
27
  );
24
28
  });
25
- b.displayName = n;
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;AAWnE,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAUzC,eAAO,MAAM,IAAI,iFA8Cf,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 r } from "react/jsx-runtime";
2
- import { forwardRef as b, useCallback as w } from "react";
3
- import { c as y } from "../../../../index-L8X2o7IH.mjs";
4
- import { useThemeClassName as S } from "../../../../hooks/useThemeClassName/useThemeClassName.js";
5
- import { noop as k } from "../../../../utils/noop/noop.js";
6
- import { useSelectContext as g } from "../../Select.context.js";
7
- import A from "../Option/Option.js";
8
- import '../../../../assets/Item.css';const D = "_item_mywsb_1", H = "_selected_mywsb_24", j = "_hovered_mywsb_30", t = {
9
- item: D,
10
- selected: H,
11
- hovered: j
12
- }, c = "Select.Item", E = b((i, l) => {
13
- const { item: e, children: s, index: m, className: a, theme: d, ...h } = i, p = S(d), {
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: n = k,
16
- onHoveredIndexChange: v,
17
- hoveredIndex: f
18
- } = g(c), { option: _, value: u } = e, C = w(
19
- (I) => {
20
- I.preventDefault(), v(m), n(e);
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
- [n, e]
23
- ), x = (o == null ? void 0 : o.value) === u, N = f === m;
24
- return /* @__PURE__ */ r(
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
- className: y(
30
- t.item,
38
+ title: S,
39
+ className: g(
40
+ s.item,
31
41
  {
32
- [t.selected]: x,
33
- [t.hovered]: N
42
+ [s.selected]: I,
43
+ [s.hovered]: N
34
44
  },
35
45
  a,
36
- p
46
+ v
37
47
  ),
38
- onClick: C,
39
- children: s || /* @__PURE__ */ r(A, { children: _ })
48
+ onClick: x,
49
+ children: t || /* @__PURE__ */ n(P, { children: u })
40
50
  }
41
51
  );
42
52
  });
43
- E.displayName = c;
53
+ L.displayName = c;
44
54
  export {
45
- E as Item
55
+ L as Item
46
56
  };