@semcore/dropdown-menu 4.45.2-prerelease.9 → 4.46.0-prerelease.15

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/CHANGELOG.md CHANGED
@@ -2,6 +2,12 @@
2
2
 
3
3
  CHANGELOG.md standards are inspired by [keepachangelog.com](https://keepachangelog.com/en/1.0.0/).
4
4
 
5
+ ## [4.46.0] - 2025-03-14
6
+
7
+ ### Added
8
+
9
+ - Build for ESM.
10
+
5
11
  ## [4.45.2] - 2025-02-22
6
12
 
7
13
  ### Added
@@ -36,24 +36,24 @@ var _button = _interopRequireDefault(require("@semcore/button"));
36
36
  var _typography = require("@semcore/typography");
37
37
  var _excluded = ["className"];
38
38
  /*__reshadow-styles__:"./style/dropdown-menu.shadow.css"*/
39
- var style = ( /*__reshadow_css_start__*/_index.sstyled.insert( /*__inner_css_start__*/".___SDropdownMenuList_1qypv_gg_{max-height:240px;padding:var(--intergalactic-spacing-1x, 4px)0;position:relative;min-height:26px;min-width:32px;box-sizing:content-box;z-index:0;color:var(--intergalactic-text-primary, #191b23)}.___SDropdownMenuList_1qypv_gg_ .___SShadowHorizontal_1qypv_gg_:after,.___SDropdownMenuList_1qypv_gg_ .___SShadowHorizontal_1qypv_gg_:before{width:16px;height:100%;border-radius:var(--intergalactic-control-rounded, 6px)}.___SDropdownMenuList_1qypv_gg_ .___SShadowHorizontal_1qypv_gg_._position_median_1qypv_gg_:before{background:var(--intergalactic-scroll-area-dropdown-menu-left,\n linear-gradient(to right, rgba(255, 255, 255, 1) 34.38%, rgba(255, 255, 255, 0) 100%)\n )}.___SDropdownMenuList_1qypv_gg_ .___SShadowHorizontal_1qypv_gg_._position_median_1qypv_gg_:after{background:var(--intergalactic-scroll-area-dropdown-menu-right,\n linear-gradient(to left, rgba(255, 255, 255, 1) 34.38%, rgba(255, 255, 255, 0) 100%)\n )}.___SDropdownMenuList_1qypv_gg_ .___SShadowHorizontal_1qypv_gg_._position_start_1qypv_gg_:before{background:var(--intergalactic-scroll-area-dropdown-menu-left,\n linear-gradient(to right, rgba(255, 255, 255, 1) 34.38%, rgba(255, 255, 255, 0) 100%)\n )}.___SDropdownMenuList_1qypv_gg_ .___SShadowHorizontal_1qypv_gg_._position_end_1qypv_gg_:after{background:var(--intergalactic-scroll-area-dropdown-menu-right,\n linear-gradient(to left, rgba(255, 255, 255, 1) 34.38%, rgba(255, 255, 255, 0) 100%)\n )}.___SDropdownMenuList_1qypv_gg_ .___SShadowVertical_1qypv_gg_:after,.___SDropdownMenuList_1qypv_gg_ .___SShadowVertical_1qypv_gg_:before{width:100%;height:16px;border-radius:var(--intergalactic-control-rounded, 6px)}.___SDropdownMenuList_1qypv_gg_ .___SShadowVertical_1qypv_gg_._position_median_1qypv_gg_:before{background:var(--intergalactic-scroll-area-dropdown-menu-top,\n linear-gradient(to bottom, rgba(255, 255, 255, 1) 34.38%, rgba(255, 255, 255, 0) 100%)\n )}.___SDropdownMenuList_1qypv_gg_ .___SShadowVertical_1qypv_gg_._position_median_1qypv_gg_:after{background:var(--intergalactic-scroll-area-dropdown-menu-bottom,\n linear-gradient(to top, rgba(255, 255, 255, 1) 34.38%, rgba(255, 255, 255, 0) 100%)\n )}.___SDropdownMenuList_1qypv_gg_ .___SShadowVertical_1qypv_gg_._position_start_1qypv_gg_:before{background:var(--intergalactic-scroll-area-dropdown-menu-top,\n linear-gradient(to bottom, rgba(255, 255, 255, 1) 34.38%, rgba(255, 255, 255, 0) 100%)\n )}.___SDropdownMenuList_1qypv_gg_ .___SShadowVertical_1qypv_gg_._position_end_1qypv_gg_:after{background:var(--intergalactic-scroll-area-dropdown-menu-bottom,\n linear-gradient(to top, rgba(255, 255, 255, 1) 34.38%, rgba(255, 255, 255, 0) 100%)\n )}.___SDropdownMenuItemContainer_1qypv_gg_.__nesting-trigger_1qypv_gg_{justify-content:space-between}.___SDropdownMenuItemAddon_1qypv_gg_,.___SItemContentText_1qypv_gg_{display:inline-flex;margin-left:var(--intergalactic-spacing-1x, 4px);margin-right:var(--intergalactic-spacing-1x, 4px)}.___SDropdownMenuItemAddon_1qypv_gg_:first-child,.___SItemContentText_1qypv_gg_:first-child{margin-left:0}.___SDropdownMenuItemAddon_1qypv_gg_:last-child,.___SItemContentText_1qypv_gg_:last-child{margin-right:0}.___SDropdownMenuNesting_1qypv_gg_,.___SDropdownMenuNesting_1qypv_gg_._size_l_1qypv_gg_,.___SDropdownMenuNesting_1qypv_gg_._size_m_1qypv_gg_{padding:0}.___SDropdownMenuNesting_1qypv_gg_.__highlighted_1qypv_gg_{z-index:1;box-shadow:var(--intergalactic-keyboard-focus, 0px 0px 0px 3px rgba(0, 143, 248, 0.5)) inset}.___SDropdownNestingItem_1qypv_gg_._size_l_1qypv_gg_,.___SDropdownNestingItem_1qypv_gg_._size_m_1qypv_gg_{padding-right:0}.___SDropdownNestingItem_1qypv_gg_ .___SDropdownMenuItemContainer_1qypv_gg_{width:auto;padding-top:0;padding-bottom:0;padding-left:0;min-height:auto}.___SItemContent_1qypv_gg_:focus{outline:0}.___SItemHint_1qypv_gg_{color:var(--intergalactic-text-secondary, #6c6e79)}" /*__inner_css_end__*/, "1qypv_gg_") /*__reshadow_css_end__*/, {
40
- "__SDropdownMenuItemContainer": "___SDropdownMenuItemContainer_1qypv_gg_",
41
- "_nesting-trigger": "__nesting-trigger_1qypv_gg_",
42
- "__SDropdownMenuNesting": "___SDropdownMenuNesting_1qypv_gg_",
43
- "_size_l": "_size_l_1qypv_gg_",
44
- "_size_m": "_size_m_1qypv_gg_",
45
- "_highlighted": "__highlighted_1qypv_gg_",
46
- "__SDropdownNestingItem": "___SDropdownNestingItem_1qypv_gg_",
47
- "__SItemContent": "___SItemContent_1qypv_gg_",
48
- "__SItemHint": "___SItemHint_1qypv_gg_",
49
- "__SDropdownMenuList": "___SDropdownMenuList_1qypv_gg_",
50
- "__SShadowHorizontal": "___SShadowHorizontal_1qypv_gg_",
51
- "_position_median": "_position_median_1qypv_gg_",
52
- "_position_start": "_position_start_1qypv_gg_",
53
- "_position_end": "_position_end_1qypv_gg_",
54
- "__SShadowVertical": "___SShadowVertical_1qypv_gg_",
55
- "__SDropdownMenuItemAddon": "___SDropdownMenuItemAddon_1qypv_gg_",
56
- "__SItemContentText": "___SItemContentText_1qypv_gg_"
39
+ var style = ( /*__reshadow_css_start__*/_index.sstyled.insert( /*__inner_css_start__*/".___SDropdownMenuList_1no9j_gg_{max-height:240px;padding:var(--intergalactic-spacing-1x, 4px)0;position:relative;min-height:26px;min-width:32px;box-sizing:content-box;z-index:0;color:var(--intergalactic-text-primary, #191b23)}.___SDropdownMenuList_1no9j_gg_ .___SShadowHorizontal_1no9j_gg_:after,.___SDropdownMenuList_1no9j_gg_ .___SShadowHorizontal_1no9j_gg_:before{width:16px;height:100%;border-radius:var(--intergalactic-control-rounded, 6px)}.___SDropdownMenuList_1no9j_gg_ .___SShadowHorizontal_1no9j_gg_._position_median_1no9j_gg_:before{background:var(--intergalactic-scroll-area-dropdown-menu-left,\n linear-gradient(to right, rgba(255, 255, 255, 1) 34.38%, rgba(255, 255, 255, 0) 100%)\n )}.___SDropdownMenuList_1no9j_gg_ .___SShadowHorizontal_1no9j_gg_._position_median_1no9j_gg_:after{background:var(--intergalactic-scroll-area-dropdown-menu-right,\n linear-gradient(to left, rgba(255, 255, 255, 1) 34.38%, rgba(255, 255, 255, 0) 100%)\n )}.___SDropdownMenuList_1no9j_gg_ .___SShadowHorizontal_1no9j_gg_._position_start_1no9j_gg_:before{background:var(--intergalactic-scroll-area-dropdown-menu-left,\n linear-gradient(to right, rgba(255, 255, 255, 1) 34.38%, rgba(255, 255, 255, 0) 100%)\n )}.___SDropdownMenuList_1no9j_gg_ .___SShadowHorizontal_1no9j_gg_._position_end_1no9j_gg_:after{background:var(--intergalactic-scroll-area-dropdown-menu-right,\n linear-gradient(to left, rgba(255, 255, 255, 1) 34.38%, rgba(255, 255, 255, 0) 100%)\n )}.___SDropdownMenuList_1no9j_gg_ .___SShadowVertical_1no9j_gg_:after,.___SDropdownMenuList_1no9j_gg_ .___SShadowVertical_1no9j_gg_:before{width:100%;height:16px;border-radius:var(--intergalactic-control-rounded, 6px)}.___SDropdownMenuList_1no9j_gg_ .___SShadowVertical_1no9j_gg_._position_median_1no9j_gg_:before{background:var(--intergalactic-scroll-area-dropdown-menu-top,\n linear-gradient(to bottom, rgba(255, 255, 255, 1) 34.38%, rgba(255, 255, 255, 0) 100%)\n )}.___SDropdownMenuList_1no9j_gg_ .___SShadowVertical_1no9j_gg_._position_median_1no9j_gg_:after{background:var(--intergalactic-scroll-area-dropdown-menu-bottom,\n linear-gradient(to top, rgba(255, 255, 255, 1) 34.38%, rgba(255, 255, 255, 0) 100%)\n )}.___SDropdownMenuList_1no9j_gg_ .___SShadowVertical_1no9j_gg_._position_start_1no9j_gg_:before{background:var(--intergalactic-scroll-area-dropdown-menu-top,\n linear-gradient(to bottom, rgba(255, 255, 255, 1) 34.38%, rgba(255, 255, 255, 0) 100%)\n )}.___SDropdownMenuList_1no9j_gg_ .___SShadowVertical_1no9j_gg_._position_end_1no9j_gg_:after{background:var(--intergalactic-scroll-area-dropdown-menu-bottom,\n linear-gradient(to top, rgba(255, 255, 255, 1) 34.38%, rgba(255, 255, 255, 0) 100%)\n )}.___SDropdownMenuItemContainer_1no9j_gg_.__nesting-trigger_1no9j_gg_{justify-content:space-between}.___SDropdownMenuItemAddon_1no9j_gg_,.___SItemContentText_1no9j_gg_{display:inline-flex;margin-left:var(--intergalactic-spacing-1x, 4px);margin-right:var(--intergalactic-spacing-1x, 4px)}.___SDropdownMenuItemAddon_1no9j_gg_:first-child,.___SItemContentText_1no9j_gg_:first-child{margin-left:0}.___SDropdownMenuItemAddon_1no9j_gg_:last-child,.___SItemContentText_1no9j_gg_:last-child{margin-right:0}.___SDropdownMenuNesting_1no9j_gg_,.___SDropdownMenuNesting_1no9j_gg_._size_l_1no9j_gg_,.___SDropdownMenuNesting_1no9j_gg_._size_m_1no9j_gg_{padding:0}.___SDropdownMenuNesting_1no9j_gg_.__highlighted_1no9j_gg_{z-index:1;box-shadow:var(--intergalactic-keyboard-focus, 0px 0px 0px 3px rgba(0, 143, 248, 0.5)) inset}.___SDropdownNestingItem_1no9j_gg_._size_l_1no9j_gg_,.___SDropdownNestingItem_1no9j_gg_._size_m_1no9j_gg_{padding-right:0}.___SDropdownNestingItem_1no9j_gg_ .___SDropdownMenuItemContainer_1no9j_gg_{width:auto;padding-top:0;padding-bottom:0;padding-left:0;min-height:auto}.___SItemContent_1no9j_gg_:focus{outline:0}.___SItemHint_1no9j_gg_{color:var(--intergalactic-text-secondary, #6c6e79)}" /*__inner_css_end__*/, "1no9j_gg_") /*__reshadow_css_end__*/, {
40
+ "__SDropdownMenuItemContainer": "___SDropdownMenuItemContainer_1no9j_gg_",
41
+ "_nesting-trigger": "__nesting-trigger_1no9j_gg_",
42
+ "__SDropdownMenuNesting": "___SDropdownMenuNesting_1no9j_gg_",
43
+ "_size_l": "_size_l_1no9j_gg_",
44
+ "_size_m": "_size_m_1no9j_gg_",
45
+ "_highlighted": "__highlighted_1no9j_gg_",
46
+ "__SDropdownNestingItem": "___SDropdownNestingItem_1no9j_gg_",
47
+ "__SItemContent": "___SItemContent_1no9j_gg_",
48
+ "__SItemHint": "___SItemHint_1no9j_gg_",
49
+ "__SDropdownMenuList": "___SDropdownMenuList_1no9j_gg_",
50
+ "__SShadowHorizontal": "___SShadowHorizontal_1no9j_gg_",
51
+ "_position_median": "_position_median_1no9j_gg_",
52
+ "_position_start": "_position_start_1no9j_gg_",
53
+ "_position_end": "_position_end_1no9j_gg_",
54
+ "__SShadowVertical": "___SShadowVertical_1no9j_gg_",
55
+ "__SDropdownMenuItemAddon": "___SDropdownMenuItemAddon_1no9j_gg_",
56
+ "__SItemContentText": "___SItemContentText_1no9j_gg_"
57
57
  });
58
58
  var ListBoxContextProvider = function ListBoxContextProvider(_ref22) {
59
59
  var children = _ref22.children;
@@ -35,24 +35,24 @@ import ScrollAreaComponent, { hideScrollBarsFromScreenReadersContext } from '@se
35
35
  import { useUID } from '@semcore/utils/lib/uniqueID';
36
36
  import { localizedMessages } from './translations/__intergalactic-dynamic-locales';
37
37
  /*__reshadow-styles__:"./style/dropdown-menu.shadow.css"*/
38
- var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".___SDropdownMenuList_1qypv_gg_{max-height:240px;padding:var(--intergalactic-spacing-1x, 4px)0;position:relative;min-height:26px;min-width:32px;box-sizing:content-box;z-index:0;color:var(--intergalactic-text-primary, #191b23)}.___SDropdownMenuList_1qypv_gg_ .___SShadowHorizontal_1qypv_gg_:after,.___SDropdownMenuList_1qypv_gg_ .___SShadowHorizontal_1qypv_gg_:before{width:16px;height:100%;border-radius:var(--intergalactic-control-rounded, 6px)}.___SDropdownMenuList_1qypv_gg_ .___SShadowHorizontal_1qypv_gg_._position_median_1qypv_gg_:before{background:var(--intergalactic-scroll-area-dropdown-menu-left,\n linear-gradient(to right, rgba(255, 255, 255, 1) 34.38%, rgba(255, 255, 255, 0) 100%)\n )}.___SDropdownMenuList_1qypv_gg_ .___SShadowHorizontal_1qypv_gg_._position_median_1qypv_gg_:after{background:var(--intergalactic-scroll-area-dropdown-menu-right,\n linear-gradient(to left, rgba(255, 255, 255, 1) 34.38%, rgba(255, 255, 255, 0) 100%)\n )}.___SDropdownMenuList_1qypv_gg_ .___SShadowHorizontal_1qypv_gg_._position_start_1qypv_gg_:before{background:var(--intergalactic-scroll-area-dropdown-menu-left,\n linear-gradient(to right, rgba(255, 255, 255, 1) 34.38%, rgba(255, 255, 255, 0) 100%)\n )}.___SDropdownMenuList_1qypv_gg_ .___SShadowHorizontal_1qypv_gg_._position_end_1qypv_gg_:after{background:var(--intergalactic-scroll-area-dropdown-menu-right,\n linear-gradient(to left, rgba(255, 255, 255, 1) 34.38%, rgba(255, 255, 255, 0) 100%)\n )}.___SDropdownMenuList_1qypv_gg_ .___SShadowVertical_1qypv_gg_:after,.___SDropdownMenuList_1qypv_gg_ .___SShadowVertical_1qypv_gg_:before{width:100%;height:16px;border-radius:var(--intergalactic-control-rounded, 6px)}.___SDropdownMenuList_1qypv_gg_ .___SShadowVertical_1qypv_gg_._position_median_1qypv_gg_:before{background:var(--intergalactic-scroll-area-dropdown-menu-top,\n linear-gradient(to bottom, rgba(255, 255, 255, 1) 34.38%, rgba(255, 255, 255, 0) 100%)\n )}.___SDropdownMenuList_1qypv_gg_ .___SShadowVertical_1qypv_gg_._position_median_1qypv_gg_:after{background:var(--intergalactic-scroll-area-dropdown-menu-bottom,\n linear-gradient(to top, rgba(255, 255, 255, 1) 34.38%, rgba(255, 255, 255, 0) 100%)\n )}.___SDropdownMenuList_1qypv_gg_ .___SShadowVertical_1qypv_gg_._position_start_1qypv_gg_:before{background:var(--intergalactic-scroll-area-dropdown-menu-top,\n linear-gradient(to bottom, rgba(255, 255, 255, 1) 34.38%, rgba(255, 255, 255, 0) 100%)\n )}.___SDropdownMenuList_1qypv_gg_ .___SShadowVertical_1qypv_gg_._position_end_1qypv_gg_:after{background:var(--intergalactic-scroll-area-dropdown-menu-bottom,\n linear-gradient(to top, rgba(255, 255, 255, 1) 34.38%, rgba(255, 255, 255, 0) 100%)\n )}.___SDropdownMenuItemContainer_1qypv_gg_.__nesting-trigger_1qypv_gg_{justify-content:space-between}.___SDropdownMenuItemAddon_1qypv_gg_,.___SItemContentText_1qypv_gg_{display:inline-flex;margin-left:var(--intergalactic-spacing-1x, 4px);margin-right:var(--intergalactic-spacing-1x, 4px)}.___SDropdownMenuItemAddon_1qypv_gg_:first-child,.___SItemContentText_1qypv_gg_:first-child{margin-left:0}.___SDropdownMenuItemAddon_1qypv_gg_:last-child,.___SItemContentText_1qypv_gg_:last-child{margin-right:0}.___SDropdownMenuNesting_1qypv_gg_,.___SDropdownMenuNesting_1qypv_gg_._size_l_1qypv_gg_,.___SDropdownMenuNesting_1qypv_gg_._size_m_1qypv_gg_{padding:0}.___SDropdownMenuNesting_1qypv_gg_.__highlighted_1qypv_gg_{z-index:1;box-shadow:var(--intergalactic-keyboard-focus, 0px 0px 0px 3px rgba(0, 143, 248, 0.5)) inset}.___SDropdownNestingItem_1qypv_gg_._size_l_1qypv_gg_,.___SDropdownNestingItem_1qypv_gg_._size_m_1qypv_gg_{padding-right:0}.___SDropdownNestingItem_1qypv_gg_ .___SDropdownMenuItemContainer_1qypv_gg_{width:auto;padding-top:0;padding-bottom:0;padding-left:0;min-height:auto}.___SItemContent_1qypv_gg_:focus{outline:0}.___SItemHint_1qypv_gg_{color:var(--intergalactic-text-secondary, #6c6e79)}" /*__inner_css_end__*/, "1qypv_gg_") /*__reshadow_css_end__*/, {
39
- "__SDropdownMenuItemContainer": "___SDropdownMenuItemContainer_1qypv_gg_",
40
- "_nesting-trigger": "__nesting-trigger_1qypv_gg_",
41
- "__SDropdownMenuNesting": "___SDropdownMenuNesting_1qypv_gg_",
42
- "_size_l": "_size_l_1qypv_gg_",
43
- "_size_m": "_size_m_1qypv_gg_",
44
- "_highlighted": "__highlighted_1qypv_gg_",
45
- "__SDropdownNestingItem": "___SDropdownNestingItem_1qypv_gg_",
46
- "__SItemContent": "___SItemContent_1qypv_gg_",
47
- "__SItemHint": "___SItemHint_1qypv_gg_",
48
- "__SDropdownMenuList": "___SDropdownMenuList_1qypv_gg_",
49
- "__SShadowHorizontal": "___SShadowHorizontal_1qypv_gg_",
50
- "_position_median": "_position_median_1qypv_gg_",
51
- "_position_start": "_position_start_1qypv_gg_",
52
- "_position_end": "_position_end_1qypv_gg_",
53
- "__SShadowVertical": "___SShadowVertical_1qypv_gg_",
54
- "__SDropdownMenuItemAddon": "___SDropdownMenuItemAddon_1qypv_gg_",
55
- "__SItemContentText": "___SItemContentText_1qypv_gg_"
38
+ var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".___SDropdownMenuList_1no9j_gg_{max-height:240px;padding:var(--intergalactic-spacing-1x, 4px)0;position:relative;min-height:26px;min-width:32px;box-sizing:content-box;z-index:0;color:var(--intergalactic-text-primary, #191b23)}.___SDropdownMenuList_1no9j_gg_ .___SShadowHorizontal_1no9j_gg_:after,.___SDropdownMenuList_1no9j_gg_ .___SShadowHorizontal_1no9j_gg_:before{width:16px;height:100%;border-radius:var(--intergalactic-control-rounded, 6px)}.___SDropdownMenuList_1no9j_gg_ .___SShadowHorizontal_1no9j_gg_._position_median_1no9j_gg_:before{background:var(--intergalactic-scroll-area-dropdown-menu-left,\n linear-gradient(to right, rgba(255, 255, 255, 1) 34.38%, rgba(255, 255, 255, 0) 100%)\n )}.___SDropdownMenuList_1no9j_gg_ .___SShadowHorizontal_1no9j_gg_._position_median_1no9j_gg_:after{background:var(--intergalactic-scroll-area-dropdown-menu-right,\n linear-gradient(to left, rgba(255, 255, 255, 1) 34.38%, rgba(255, 255, 255, 0) 100%)\n )}.___SDropdownMenuList_1no9j_gg_ .___SShadowHorizontal_1no9j_gg_._position_start_1no9j_gg_:before{background:var(--intergalactic-scroll-area-dropdown-menu-left,\n linear-gradient(to right, rgba(255, 255, 255, 1) 34.38%, rgba(255, 255, 255, 0) 100%)\n )}.___SDropdownMenuList_1no9j_gg_ .___SShadowHorizontal_1no9j_gg_._position_end_1no9j_gg_:after{background:var(--intergalactic-scroll-area-dropdown-menu-right,\n linear-gradient(to left, rgba(255, 255, 255, 1) 34.38%, rgba(255, 255, 255, 0) 100%)\n )}.___SDropdownMenuList_1no9j_gg_ .___SShadowVertical_1no9j_gg_:after,.___SDropdownMenuList_1no9j_gg_ .___SShadowVertical_1no9j_gg_:before{width:100%;height:16px;border-radius:var(--intergalactic-control-rounded, 6px)}.___SDropdownMenuList_1no9j_gg_ .___SShadowVertical_1no9j_gg_._position_median_1no9j_gg_:before{background:var(--intergalactic-scroll-area-dropdown-menu-top,\n linear-gradient(to bottom, rgba(255, 255, 255, 1) 34.38%, rgba(255, 255, 255, 0) 100%)\n )}.___SDropdownMenuList_1no9j_gg_ .___SShadowVertical_1no9j_gg_._position_median_1no9j_gg_:after{background:var(--intergalactic-scroll-area-dropdown-menu-bottom,\n linear-gradient(to top, rgba(255, 255, 255, 1) 34.38%, rgba(255, 255, 255, 0) 100%)\n )}.___SDropdownMenuList_1no9j_gg_ .___SShadowVertical_1no9j_gg_._position_start_1no9j_gg_:before{background:var(--intergalactic-scroll-area-dropdown-menu-top,\n linear-gradient(to bottom, rgba(255, 255, 255, 1) 34.38%, rgba(255, 255, 255, 0) 100%)\n )}.___SDropdownMenuList_1no9j_gg_ .___SShadowVertical_1no9j_gg_._position_end_1no9j_gg_:after{background:var(--intergalactic-scroll-area-dropdown-menu-bottom,\n linear-gradient(to top, rgba(255, 255, 255, 1) 34.38%, rgba(255, 255, 255, 0) 100%)\n )}.___SDropdownMenuItemContainer_1no9j_gg_.__nesting-trigger_1no9j_gg_{justify-content:space-between}.___SDropdownMenuItemAddon_1no9j_gg_,.___SItemContentText_1no9j_gg_{display:inline-flex;margin-left:var(--intergalactic-spacing-1x, 4px);margin-right:var(--intergalactic-spacing-1x, 4px)}.___SDropdownMenuItemAddon_1no9j_gg_:first-child,.___SItemContentText_1no9j_gg_:first-child{margin-left:0}.___SDropdownMenuItemAddon_1no9j_gg_:last-child,.___SItemContentText_1no9j_gg_:last-child{margin-right:0}.___SDropdownMenuNesting_1no9j_gg_,.___SDropdownMenuNesting_1no9j_gg_._size_l_1no9j_gg_,.___SDropdownMenuNesting_1no9j_gg_._size_m_1no9j_gg_{padding:0}.___SDropdownMenuNesting_1no9j_gg_.__highlighted_1no9j_gg_{z-index:1;box-shadow:var(--intergalactic-keyboard-focus, 0px 0px 0px 3px rgba(0, 143, 248, 0.5)) inset}.___SDropdownNestingItem_1no9j_gg_._size_l_1no9j_gg_,.___SDropdownNestingItem_1no9j_gg_._size_m_1no9j_gg_{padding-right:0}.___SDropdownNestingItem_1no9j_gg_ .___SDropdownMenuItemContainer_1no9j_gg_{width:auto;padding-top:0;padding-bottom:0;padding-left:0;min-height:auto}.___SItemContent_1no9j_gg_:focus{outline:0}.___SItemHint_1no9j_gg_{color:var(--intergalactic-text-secondary, #6c6e79)}" /*__inner_css_end__*/, "1no9j_gg_") /*__reshadow_css_end__*/, {
39
+ "__SDropdownMenuItemContainer": "___SDropdownMenuItemContainer_1no9j_gg_",
40
+ "_nesting-trigger": "__nesting-trigger_1no9j_gg_",
41
+ "__SDropdownMenuNesting": "___SDropdownMenuNesting_1no9j_gg_",
42
+ "_size_l": "_size_l_1no9j_gg_",
43
+ "_size_m": "_size_m_1no9j_gg_",
44
+ "_highlighted": "__highlighted_1no9j_gg_",
45
+ "__SDropdownNestingItem": "___SDropdownNestingItem_1no9j_gg_",
46
+ "__SItemContent": "___SItemContent_1no9j_gg_",
47
+ "__SItemHint": "___SItemHint_1no9j_gg_",
48
+ "__SDropdownMenuList": "___SDropdownMenuList_1no9j_gg_",
49
+ "__SShadowHorizontal": "___SShadowHorizontal_1no9j_gg_",
50
+ "_position_median": "_position_median_1no9j_gg_",
51
+ "_position_start": "_position_start_1no9j_gg_",
52
+ "_position_end": "_position_end_1no9j_gg_",
53
+ "__SShadowVertical": "___SShadowVertical_1no9j_gg_",
54
+ "__SDropdownMenuItemAddon": "___SDropdownMenuItemAddon_1no9j_gg_",
55
+ "__SItemContentText": "___SItemContentText_1no9j_gg_"
56
56
  });
57
57
  import { useFocusSource } from '@semcore/utils/lib/enhances/keyboardFocusEnhance';
58
58
  import { isAdvanceMode } from '@semcore/utils/lib/findComponent';
@@ -0,0 +1,386 @@
1
+ import X from "@babel/runtime/helpers/esm/toConsumableArray";
2
+ import Y from "@babel/runtime/helpers/esm/objectWithoutProperties";
3
+ import T from "@babel/runtime/helpers/esm/slicedToArray";
4
+ import W from "@babel/runtime/helpers/esm/extends";
5
+ import u from "@babel/runtime/helpers/esm/objectSpread2";
6
+ import Z from "@babel/runtime/helpers/esm/classCallCheck";
7
+ import ee from "@babel/runtime/helpers/esm/createClass";
8
+ import V from "@babel/runtime/helpers/esm/assertThisInitialized";
9
+ import I from "@babel/runtime/helpers/esm/get";
10
+ import y from "@babel/runtime/helpers/esm/getPrototypeOf";
11
+ import te from "@babel/runtime/helpers/esm/inherits";
12
+ import ne from "@babel/runtime/helpers/esm/createSuper";
13
+ import C from "@babel/runtime/helpers/esm/defineProperty";
14
+ import { sstyled as re } from "@semcore/utils/lib/core/index";
15
+ import oe, { assignProps as h, sstyled as x } from "@semcore/core";
16
+ import i from "react";
17
+ import ie from "classnames";
18
+ import D, { enhance as ae, selectedIndexContext as q, AbstractDropdown as _e } from "@semcore/dropdown";
19
+ import { useBox as se, Flex as N } from "@semcore/flex-box";
20
+ import k, { hideScrollBarsFromScreenReadersContext as de } from "@semcore/scroll-area";
21
+ import { useUID as le } from "@semcore/utils/lib/uniqueID";
22
+ import { localizedMessages as ge } from "./translations/__intergalactic-dynamic-locales.mjs";
23
+ import { useFocusSource as ue } from "@semcore/utils/lib/enhances/keyboardFocusEnhance";
24
+ import { isAdvanceMode as A } from "@semcore/utils/lib/findComponent";
25
+ import { forkRef as G } from "@semcore/utils/lib/ref";
26
+ import { callAllEventHandlers as E } from "@semcore/utils/lib/assignProps";
27
+ import ce from "@semcore/button";
28
+ import { Text as me } from "@semcore/typography";
29
+ var he = ["className"], pe = (
30
+ /*__reshadow_css_start__*/
31
+ (re.insert(
32
+ /*__inner_css_start__*/
33
+ `.___SDropdownMenuList_1no9j_gg_{max-height:240px;padding:var(--intergalactic-spacing-1x, 4px)0;position:relative;min-height:26px;min-width:32px;box-sizing:content-box;z-index:0;color:var(--intergalactic-text-primary, #191b23)}.___SDropdownMenuList_1no9j_gg_ .___SShadowHorizontal_1no9j_gg_:after,.___SDropdownMenuList_1no9j_gg_ .___SShadowHorizontal_1no9j_gg_:before{width:16px;height:100%;border-radius:var(--intergalactic-control-rounded, 6px)}.___SDropdownMenuList_1no9j_gg_ .___SShadowHorizontal_1no9j_gg_._position_median_1no9j_gg_:before{background:var(--intergalactic-scroll-area-dropdown-menu-left,
34
+ linear-gradient(to right, rgba(255, 255, 255, 1) 34.38%, rgba(255, 255, 255, 0) 100%)
35
+ )}.___SDropdownMenuList_1no9j_gg_ .___SShadowHorizontal_1no9j_gg_._position_median_1no9j_gg_:after{background:var(--intergalactic-scroll-area-dropdown-menu-right,
36
+ linear-gradient(to left, rgba(255, 255, 255, 1) 34.38%, rgba(255, 255, 255, 0) 100%)
37
+ )}.___SDropdownMenuList_1no9j_gg_ .___SShadowHorizontal_1no9j_gg_._position_start_1no9j_gg_:before{background:var(--intergalactic-scroll-area-dropdown-menu-left,
38
+ linear-gradient(to right, rgba(255, 255, 255, 1) 34.38%, rgba(255, 255, 255, 0) 100%)
39
+ )}.___SDropdownMenuList_1no9j_gg_ .___SShadowHorizontal_1no9j_gg_._position_end_1no9j_gg_:after{background:var(--intergalactic-scroll-area-dropdown-menu-right,
40
+ linear-gradient(to left, rgba(255, 255, 255, 1) 34.38%, rgba(255, 255, 255, 0) 100%)
41
+ )}.___SDropdownMenuList_1no9j_gg_ .___SShadowVertical_1no9j_gg_:after,.___SDropdownMenuList_1no9j_gg_ .___SShadowVertical_1no9j_gg_:before{width:100%;height:16px;border-radius:var(--intergalactic-control-rounded, 6px)}.___SDropdownMenuList_1no9j_gg_ .___SShadowVertical_1no9j_gg_._position_median_1no9j_gg_:before{background:var(--intergalactic-scroll-area-dropdown-menu-top,
42
+ linear-gradient(to bottom, rgba(255, 255, 255, 1) 34.38%, rgba(255, 255, 255, 0) 100%)
43
+ )}.___SDropdownMenuList_1no9j_gg_ .___SShadowVertical_1no9j_gg_._position_median_1no9j_gg_:after{background:var(--intergalactic-scroll-area-dropdown-menu-bottom,
44
+ linear-gradient(to top, rgba(255, 255, 255, 1) 34.38%, rgba(255, 255, 255, 0) 100%)
45
+ )}.___SDropdownMenuList_1no9j_gg_ .___SShadowVertical_1no9j_gg_._position_start_1no9j_gg_:before{background:var(--intergalactic-scroll-area-dropdown-menu-top,
46
+ linear-gradient(to bottom, rgba(255, 255, 255, 1) 34.38%, rgba(255, 255, 255, 0) 100%)
47
+ )}.___SDropdownMenuList_1no9j_gg_ .___SShadowVertical_1no9j_gg_._position_end_1no9j_gg_:after{background:var(--intergalactic-scroll-area-dropdown-menu-bottom,
48
+ linear-gradient(to top, rgba(255, 255, 255, 1) 34.38%, rgba(255, 255, 255, 0) 100%)
49
+ )}.___SDropdownMenuItemContainer_1no9j_gg_.__nesting-trigger_1no9j_gg_{justify-content:space-between}.___SDropdownMenuItemAddon_1no9j_gg_,.___SItemContentText_1no9j_gg_{display:inline-flex;margin-left:var(--intergalactic-spacing-1x, 4px);margin-right:var(--intergalactic-spacing-1x, 4px)}.___SDropdownMenuItemAddon_1no9j_gg_:first-child,.___SItemContentText_1no9j_gg_:first-child{margin-left:0}.___SDropdownMenuItemAddon_1no9j_gg_:last-child,.___SItemContentText_1no9j_gg_:last-child{margin-right:0}.___SDropdownMenuNesting_1no9j_gg_,.___SDropdownMenuNesting_1no9j_gg_._size_l_1no9j_gg_,.___SDropdownMenuNesting_1no9j_gg_._size_m_1no9j_gg_{padding:0}.___SDropdownMenuNesting_1no9j_gg_.__highlighted_1no9j_gg_{z-index:1;box-shadow:var(--intergalactic-keyboard-focus, 0px 0px 0px 3px rgba(0, 143, 248, 0.5)) inset}.___SDropdownNestingItem_1no9j_gg_._size_l_1no9j_gg_,.___SDropdownNestingItem_1no9j_gg_._size_m_1no9j_gg_{padding-right:0}.___SDropdownNestingItem_1no9j_gg_ .___SDropdownMenuItemContainer_1no9j_gg_{width:auto;padding-top:0;padding-bottom:0;padding-left:0;min-height:auto}.___SItemContent_1no9j_gg_:focus{outline:0}.___SItemHint_1no9j_gg_{color:var(--intergalactic-text-secondary, #6c6e79)}`,
50
+ "1no9j_gg_"
51
+ ), {
52
+ __SDropdownMenuItemContainer: "___SDropdownMenuItemContainer_1no9j_gg_",
53
+ "_nesting-trigger": "__nesting-trigger_1no9j_gg_",
54
+ __SDropdownMenuNesting: "___SDropdownMenuNesting_1no9j_gg_",
55
+ _size_l: "_size_l_1no9j_gg_",
56
+ _size_m: "_size_m_1no9j_gg_",
57
+ _highlighted: "__highlighted_1no9j_gg_",
58
+ __SDropdownNestingItem: "___SDropdownNestingItem_1no9j_gg_",
59
+ __SItemContent: "___SItemContent_1no9j_gg_",
60
+ __SItemHint: "___SItemHint_1no9j_gg_",
61
+ __SDropdownMenuList: "___SDropdownMenuList_1no9j_gg_",
62
+ __SShadowHorizontal: "___SShadowHorizontal_1no9j_gg_",
63
+ _position_median: "_position_median_1no9j_gg_",
64
+ _position_start: "_position_start_1no9j_gg_",
65
+ _position_end: "_position_end_1no9j_gg_",
66
+ __SShadowVertical: "___SShadowVertical_1no9j_gg_",
67
+ __SDropdownMenuItemAddon: "___SDropdownMenuItemAddon_1no9j_gg_",
68
+ __SItemContentText: "___SItemContentText_1no9j_gg_"
69
+ })
70
+ ), U = function(_) {
71
+ var t = _.children;
72
+ return /* @__PURE__ */ i.createElement(de.Provider, {
73
+ value: !0
74
+ }, t);
75
+ }, z = /* @__PURE__ */ i.createContext({}), M = /* @__PURE__ */ function(r) {
76
+ te(t, r);
77
+ var _ = ne(t);
78
+ function t() {
79
+ var a;
80
+ Z(this, t);
81
+ for (var n = arguments.length, o = new Array(n), e = 0; e < n; e++)
82
+ o[e] = arguments[e];
83
+ return a = _.call.apply(_, [this].concat(o)), C(V(a), "actionsRef", /* @__PURE__ */ i.createRef()), C(V(a), "role", "menu"), a;
84
+ }
85
+ return ee(t, [{
86
+ key: "uncontrolledProps",
87
+ value: function() {
88
+ var n = this;
89
+ return u(u({}, I(y(t.prototype), "uncontrolledProps", this).call(this)), {}, {
90
+ visible: [null, function(o) {
91
+ o === !0 && setTimeout(function() {
92
+ var e, s, d = (e = n.menuRef.current) === null || e === void 0 ? void 0 : e.querySelectorAll('[role="menuitemcheckbox"], [role="menuitemradio"]'), l = (s = n.menuRef.current) === null || s === void 0 ? void 0 : s.querySelector('[aria-checked="true"]');
93
+ if (l && d && n.asProps.itemsCount === void 0) {
94
+ n.scrollToNode(l, !0);
95
+ for (var m = 0; m < d.length; m++)
96
+ if (d[m] === l) {
97
+ n.handlers.highlightedIndex(m);
98
+ break;
99
+ }
100
+ }
101
+ }, 30);
102
+ }]
103
+ });
104
+ }
105
+ }, {
106
+ key: "itemRef",
107
+ value: function(n, o, e) {
108
+ I(y(t.prototype), "itemRef", this).call(this, n, o, e), e === document.activeElement && I(y(t.prototype), "scrollToNode", this).call(this, e);
109
+ }
110
+ }, {
111
+ key: "getTriggerProps",
112
+ value: function() {
113
+ var n = this.asProps, o = n.Children, e = n.uid, s = n.visible, d = A(o, [v.Menu.displayName]), l = d ? "igc-".concat(e, "-list") : "igc-".concat(e, "-popper");
114
+ return u(u({}, I(y(t.prototype), "getTriggerProps", this).call(this)), {}, {
115
+ onKeyDown: E(this.handlePreventCommonKeyDown.bind(this), this.handleOpenKeyDown.bind(this), this.handleKeyDownForMenu("trigger")),
116
+ "aria-controls": s ? l : void 0,
117
+ "aria-haspopup": d ? "true" : "dialog"
118
+ });
119
+ }
120
+ }, {
121
+ key: "getListProps",
122
+ value: function() {
123
+ return u(u({}, I(y(t.prototype), "getListProps", this).call(this)), {}, {
124
+ onKeyDown: E(this.handlePreventCommonKeyDown.bind(this), this.handleKeyDownForMenu("list"), this.handleArrowKeyDown.bind(this))
125
+ });
126
+ }
127
+ }, {
128
+ key: "getPopperProps",
129
+ value: function() {
130
+ return u(u({}, I(y(t.prototype), "getPopperProps", this).call(this)), {}, {
131
+ onKeyDown: E(this.handlePreventCommonKeyDown.bind(this), this.handlePreventPopperKeyDown.bind(this))
132
+ });
133
+ }
134
+ }, {
135
+ key: "getActionsProps",
136
+ value: function() {
137
+ return u(u({}, this.getListProps()), {}, {
138
+ ref: this.actionsRef,
139
+ onKeyDown: E(this.handlePreventTabOnActions.bind(this), this.handlePreventCommonKeyDown.bind(this), this.handleKeyDownForMenu("list"), this.handleArrowKeyDown.bind(this))
140
+ });
141
+ }
142
+ }, {
143
+ key: "getItemProps",
144
+ value: function(n, o) {
145
+ var e, s = this, d = this.asProps, l = d.highlightedIndex, m = d.visible, g = (e = n.index) !== null && e !== void 0 ? e : o, p = g === l, c = u(u({}, I(y(t.prototype), "getItemProps", this).call(this, n, g)), {}, {
146
+ tabIndex: p && m ? 0 : -1,
147
+ ref: function(w) {
148
+ return s.itemRef(n, g, w);
149
+ },
150
+ actionsRef: this.actionsRef
151
+ });
152
+ if (n.tag === ce) {
153
+ var f, b, S;
154
+ c.use = (f = n.use) !== null && f !== void 0 ? f : "tertiary", c.theme = (b = n.theme) !== null && b !== void 0 ? b : "muted", c.size = (S = n.size) !== null && S !== void 0 ? S : "s";
155
+ }
156
+ return n.selected && (c["aria-checked"] = !0), I(y(t.prototype), "childRole", this) === "menuitemradio" && (c.onClick = function() {
157
+ s.handlers.visible(!1);
158
+ }), c;
159
+ }
160
+ }, {
161
+ key: "handleKeyDownForMenu",
162
+ value: function(n) {
163
+ var o = this;
164
+ return function(e) {
165
+ var s, d, l = o.asProps, m = l.visible, g = l.placement, p = l.inlineActions;
166
+ if (n === "list" && !((s = o.menuRef.current) !== null && s !== void 0 && s.contains(e.target)) && !p)
167
+ return e.stopPropagation(), !1;
168
+ var c = e.key === "ArrowRight" && (g == null ? void 0 : g.startsWith("right")) || e.key === "ArrowLeft" && (g == null ? void 0 : g.startsWith("left")), f = e.key === "ArrowLeft" && (g == null ? void 0 : g.startsWith("right")) || e.key === "ArrowRight" && (g == null ? void 0 : g.startsWith("left")) || e.key === "Escape", b = (d = e.target.getAttribute("role")) === null || d === void 0 ? void 0 : d.startsWith(I(y(t.prototype), "childRole", o));
169
+ if (n === "trigger" && (!m || p) && c && b)
170
+ return o.handlers.visible(!0), o.handlers.highlightedIndex(0), setTimeout(function() {
171
+ var j, w = o.asProps.highlightedIndex;
172
+ (j = o.itemRefs[w]) === null || j === void 0 || j.focus();
173
+ }, 0), e.preventDefault(), e.stopPropagation(), !1;
174
+ if (n === "list" && m && f && b && (!p || p && (e.key === "Escape" || o.asProps.highlightedIndex === 0))) {
175
+ var S;
176
+ return o.handlers.visible(!1), (S = o.triggerRef.current) === null || S === void 0 || S.focus(), e.preventDefault(), e.stopPropagation(), !1;
177
+ }
178
+ };
179
+ }
180
+ }, {
181
+ key: "handlePreventTabOnActions",
182
+ value: function(n) {
183
+ if (n.key === "Tab")
184
+ return n.stopPropagation(), n.preventDefault(), !1;
185
+ }
186
+ }, {
187
+ key: "render",
188
+ value: function() {
189
+ var n = this.asProps, o = this.asProps, e = o.Children, s = o.selectedIndex, d = o.interaction, l = o.timeout;
190
+ return this.itemProps = [], /* @__PURE__ */ i.createElement(q.Provider, {
191
+ value: s
192
+ }, /* @__PURE__ */ i.createElement(D, h({
193
+ timeout: l || (d === "hover" ? [0, 100] : void 0)
194
+ }, n), /* @__PURE__ */ i.createElement(e, null)));
195
+ }
196
+ }]), t;
197
+ }(_e);
198
+ C(M, "displayName", "DropdownMenu");
199
+ C(M, "style", pe);
200
+ C(M, "enhance", Object.values(ae));
201
+ C(M, "defaultProps", {
202
+ size: "m",
203
+ defaultVisible: !1,
204
+ defaultHighlightedIndex: 0,
205
+ defaultSelectedIndex: 0,
206
+ i18n: ge,
207
+ locale: "en",
208
+ interaction: "click",
209
+ inlineActions: !1,
210
+ placement: "bottom-start",
211
+ timeout: 0
212
+ });
213
+ C(M, "nestedMenuInteraction", {
214
+ trigger: [["onClick", "onMouseEnter"], ["onClick", "onMouseLeave"]],
215
+ popper: [["onMouseEnter"], ["onMouseLeave"]]
216
+ });
217
+ function fe(r) {
218
+ var _ = arguments[0], t, a = r.styles, n = r.Children, o = k;
219
+ return t = x(a), /* @__PURE__ */ i.createElement(U, t.cn("ListBoxContextProvider", {}), /* @__PURE__ */ i.createElement(o, t.cn("SDropdownMenuList", u({}, h({
220
+ shadow: !0
221
+ }, _))), /* @__PURE__ */ i.createElement(k.Container, {
222
+ tabIndex: void 0
223
+ }, /* @__PURE__ */ i.createElement(n, t.cn("Children", {}))), /* @__PURE__ */ i.createElement(k.Bar, {
224
+ orientation: "horizontal"
225
+ }), /* @__PURE__ */ i.createElement(k.Bar, {
226
+ orientation: "vertical"
227
+ })));
228
+ }
229
+ function ve(r) {
230
+ var _ = arguments[0], t, a = r.styles, n = N;
231
+ return t = x(a), /* @__PURE__ */ i.createElement(n, t.cn("SDropdownMenuActions", u({}, h({}, _))));
232
+ }
233
+ function be(r) {
234
+ var _ = arguments[0], t = r.visible, a = r.disablePortal, n = r.ignorePortalsStacking, o = r.disableEnforceFocus, e = r.interaction, s = r.autoFocus, d = r.animationsDisabled, l = {
235
+ visible: t,
236
+ disablePortal: a,
237
+ ignorePortalsStacking: n,
238
+ disableEnforceFocus: o,
239
+ interaction: e,
240
+ autoFocus: s,
241
+ animationsDisabled: d
242
+ };
243
+ return /* @__PURE__ */ i.createElement(U, null, /* @__PURE__ */ i.createElement(v.Popper, W({}, l, {
244
+ role: null
245
+ }), /* @__PURE__ */ i.createElement(v.List, h({}, _))));
246
+ }
247
+ function Se(r) {
248
+ var _ = arguments[0], t, a = r.id, n = r.styles, o = r.disabled, e = r.Children, s = r.forwardRef, d = r.role, l = r.tabIndex, m = r.actionsRef, g = r["aria-checked"], p = D.Item, c = i.useRef(), f = i.useState(!1), b = T(f, 2), S = b[0], j = b[1], w = {
249
+ contentId: a,
250
+ ref: G(s, c),
251
+ role: d,
252
+ tabIndex: l,
253
+ ariaChecked: g
254
+ }, H = [], L = A(e, [v.displayName], !0), K = A(e, [v.Item.Hint.displayName], !0), P = A(e, [v.Item.Content.displayName], !0) || L || K;
255
+ if (K) {
256
+ var F = "igc-".concat(le(), "-option-hint");
257
+ w.hintId = F, H.push(F);
258
+ }
259
+ L && (w.hasSubMenu = !0), w.ariaDescribes = H, i.useEffect(function() {
260
+ var B = function(R) {
261
+ R.target === c.current && (j(!0), L && R.stopPropagation());
262
+ }, $ = function(R) {
263
+ R.target === c.current && (j(!1), m.current && (c.current.tabIndex = -1));
264
+ };
265
+ return document.addEventListener("focus", B, {
266
+ capture: !0
267
+ }), document.addEventListener("blur", $, {
268
+ capture: !0
269
+ }), function() {
270
+ document.removeEventListener("focus", B, {
271
+ capture: !0
272
+ }), document.removeEventListener("blur", $, {
273
+ capture: !0
274
+ });
275
+ };
276
+ }, [c.current]);
277
+ var J = ue();
278
+ return t = x(n), /* @__PURE__ */ i.createElement(z.Provider, {
279
+ value: w
280
+ }, /* @__PURE__ */ i.createElement(p, t.cn("SDropdownMenuItemContainer", u({}, h({
281
+ ref: P ? void 0 : w.ref,
282
+ "use:highlighted": !o && S && J.current === "keyboard",
283
+ "use:role": P ? void 0 : d,
284
+ "use:id": P ? void 0 : a,
285
+ "use:tabIndex": P ? void 0 : l,
286
+ "use:aria-checked": P ? void 0 : g
287
+ }, _))), /* @__PURE__ */ i.createElement(e, t.cn("Children", {}))));
288
+ }
289
+ function O(r) {
290
+ var _ = se(r, r.forwardRef), t = T(_, 2), a = t[0], n = t[1], o = n.className, e = Y(n, he), s = x(r.styles);
291
+ return /* @__PURE__ */ i.createElement(a, W({
292
+ className: ie(s.cn("SDropdownMenuItemAddon", r).className, o) || void 0
293
+ }, e));
294
+ }
295
+ function we() {
296
+ var r = arguments[0];
297
+ return /* @__PURE__ */ i.createElement(D.Trigger, h({}, r));
298
+ }
299
+ function Ie(r) {
300
+ var _ = arguments[0], t, a = r.styles, n = N, o = i.useRef(), e = i.useContext(z), s = void 0;
301
+ e.hasSubMenu && (s = "true");
302
+ var d = i.useState(new Set(e.ariaDescribes)), l = T(d, 2), m = l[0], g = l[1];
303
+ return i.useEffect(function() {
304
+ var p = o.current, c = p == null ? void 0 : p.parentElement;
305
+ c.getAttribute("aria-haspopup") === "true" && c.getAttribute("aria-describedby") && g(function(f) {
306
+ return f.add(c.getAttribute("aria-describedby")), new Set(f);
307
+ });
308
+ }, [e.ariaDescribes]), t = x(a), /* @__PURE__ */ i.createElement(n, t.cn("SItemContent", u({}, h({
309
+ role: e.role,
310
+ id: e.contentId,
311
+ tabIndex: e.tabIndex,
312
+ ref: G(e.ref, o),
313
+ "use:aria-describedby": X(m).join(" "),
314
+ "aria-haspopup": e.hasSubMenu ? "true" : void 0,
315
+ "aria-expanded": s,
316
+ "aria-checked": e.ariaChecked,
317
+ alignItems: "center",
318
+ justifyContent: e.hasSubMenu ? "space-between" : void 0
319
+ }, _))));
320
+ }
321
+ function ye(r) {
322
+ var _ = arguments[0], t, a = r.styles, n = me;
323
+ return t = x(a), /* @__PURE__ */ i.createElement(n, t.cn("SItemContentText", u({}, h({}, _))));
324
+ }
325
+ function xe(r) {
326
+ var _ = arguments[0], t, a = r.styles, n = N, o = i.useContext(z), e = o.hintId;
327
+ return t = x(a), /* @__PURE__ */ i.createElement(n, t.cn("SItemHint", u({}, h({
328
+ id: e,
329
+ "aria-hidden": "true"
330
+ }, _))));
331
+ }
332
+ function De(r) {
333
+ var _ = arguments[0], t, a = D.Item;
334
+ return t = x(r.styles), /* @__PURE__ */ i.createElement(a, t.cn("SDropdownMenuItemContainer", u({}, h({
335
+ variant: "hint"
336
+ }, _))));
337
+ }
338
+ function je(r) {
339
+ var _ = arguments[0], t, a = D.Item;
340
+ return t = x(r.styles), /* @__PURE__ */ i.createElement(a, t.cn("SDropdownMenuItemContainer", u({}, h({
341
+ variant: "title"
342
+ }, _))));
343
+ }
344
+ function Ce(r) {
345
+ var _ = arguments[0], t = r.forwardRef;
346
+ return /* @__PURE__ */ i.createElement(v.Item, h({
347
+ ref: t
348
+ }, _));
349
+ }
350
+ function Me(r) {
351
+ var _ = arguments[0], t = r.forwardRef;
352
+ return /* @__PURE__ */ i.createElement(v.Item.Content, h({
353
+ tag: v.Trigger,
354
+ ref: t,
355
+ "use:role": "menuitem"
356
+ }, _));
357
+ }
358
+ var v = oe(M, {
359
+ Trigger: we,
360
+ Popper: D.Popper,
361
+ List: fe,
362
+ Actions: ve,
363
+ Menu: be,
364
+ Item: [Se, {
365
+ Addon: O,
366
+ Content: Ie,
367
+ Text: ye,
368
+ Hint: xe
369
+ }],
370
+ /**
371
+ * @deprecated. Use just Item. See examples on
372
+ */
373
+ Nesting: [Ce, {
374
+ Trigger: Me,
375
+ Addon: O
376
+ }],
377
+ ItemTitle: je,
378
+ ItemHint: De,
379
+ Group: D.Group
380
+ }, {
381
+ parent: [D]
382
+ });
383
+ v.selectedIndexContext = q;
384
+ export {
385
+ v as default
386
+ };
@@ -0,0 +1,4 @@
1
+ import { default as o } from "./DropdownMenu.mjs";
2
+ export {
3
+ o as default
4
+ };
@@ -0,0 +1,33 @@
1
+ import r from "./de.json.mjs";
2
+ import o from "./en.json.mjs";
3
+ import m from "./es.json.mjs";
4
+ import t from "./fr.json.mjs";
5
+ import i from "./it.json.mjs";
6
+ import p from "./ja.json.mjs";
7
+ import f from "./ko.json.mjs";
8
+ import e from "./nl.json.mjs";
9
+ import s from "./pt.json.mjs";
10
+ import a from "./tr.json.mjs";
11
+ import l from "./vi.json.mjs";
12
+ import v from "./zh.json.mjs";
13
+ import d from "./pl.json.mjs";
14
+ import n from "./sv.json.mjs";
15
+ var B = {
16
+ de: r,
17
+ en: o,
18
+ es: m,
19
+ fr: t,
20
+ it: i,
21
+ ja: p,
22
+ ko: f,
23
+ nl: e,
24
+ pt: s,
25
+ tr: a,
26
+ vi: l,
27
+ zh: v,
28
+ pl: d,
29
+ sv: n
30
+ };
31
+ export {
32
+ B as localizedMessages
33
+ };
@@ -0,0 +1,7 @@
1
+ const e = "Drücken Sie Tab, um zum Popover zu gehen", t = {
2
+ triggerHint: e
3
+ };
4
+ export {
5
+ t as default,
6
+ e as triggerHint
7
+ };
@@ -0,0 +1,4 @@
1
+ const e = {};
2
+ export {
3
+ e as default
4
+ };
@@ -0,0 +1,7 @@
1
+ const r = "Presiona Tab para ir a Popover", t = {
2
+ triggerHint: r
3
+ };
4
+ export {
5
+ t as default,
6
+ r as triggerHint
7
+ };
@@ -0,0 +1,7 @@
1
+ const r = "Appuyez sur la touche Tab pour accéder au popover", t = {
2
+ triggerHint: r
3
+ };
4
+ export {
5
+ t as default,
6
+ r as triggerHint
7
+ };
@@ -0,0 +1,7 @@
1
+ const r = "Premi Tab per andare a Popover", t = {
2
+ triggerHint: r
3
+ };
4
+ export {
5
+ t as default,
6
+ r as triggerHint
7
+ };
@@ -0,0 +1,7 @@
1
+ const t = "Tabキーを押してポップオーバーに移動", r = {
2
+ triggerHint: t
3
+ };
4
+ export {
5
+ r as default,
6
+ t as triggerHint
7
+ };
@@ -0,0 +1,7 @@
1
+ const t = "팝업창으로 이동하려면 Tab 키를 누르세요", r = {
2
+ triggerHint: t
3
+ };
4
+ export {
5
+ r as default,
6
+ t as triggerHint
7
+ };
@@ -0,0 +1,7 @@
1
+ const t = "Druk op Tab om naar de popover te gaan", r = {
2
+ triggerHint: t
3
+ };
4
+ export {
5
+ r as default,
6
+ t as triggerHint
7
+ };
@@ -0,0 +1,7 @@
1
+ const t = "Naciśnij Tab, aby przejść do okienka popover", e = {
2
+ triggerHint: t
3
+ };
4
+ export {
5
+ e as default,
6
+ t as triggerHint
7
+ };
@@ -0,0 +1,7 @@
1
+ const r = "Pressione Tab para acessar o pop-over", t = {
2
+ triggerHint: r
3
+ };
4
+ export {
5
+ t as default,
6
+ r as triggerHint
7
+ };
@@ -0,0 +1,7 @@
1
+ const t = "Tryck på Tab för att gå till popover", r = {
2
+ triggerHint: t
3
+ };
4
+ export {
5
+ r as default,
6
+ t as triggerHint
7
+ };
@@ -0,0 +1,7 @@
1
+ const t = "Popover'a gitmek için Tab tuşuna basın", i = {
2
+ triggerHint: t
3
+ };
4
+ export {
5
+ i as default,
6
+ t as triggerHint
7
+ };
@@ -0,0 +1,7 @@
1
+ const t = "Nhấn Tab để chuyển đến cửa sổ bật lên", n = {
2
+ triggerHint: t
3
+ };
4
+ export {
5
+ n as default,
6
+ t as triggerHint
7
+ };
@@ -0,0 +1,7 @@
1
+ const t = "按 T​​ab 转到弹出框", r = {
2
+ triggerHint: t
3
+ };
4
+ export {
5
+ r as default,
6
+ t as triggerHint
7
+ };
package/package.json CHANGED
@@ -1,24 +1,31 @@
1
1
  {
2
2
  "name": "@semcore/dropdown-menu",
3
3
  "description": "Semrush DropdownMenu Component",
4
- "version": "4.45.2-prerelease.9",
4
+ "version": "4.46.0-prerelease.15",
5
5
  "main": "lib/cjs/index.js",
6
6
  "module": "lib/es6/index.js",
7
7
  "typings": "lib/types/index.d.ts",
8
8
  "sideEffects": false,
9
9
  "author": "UI-kit team <ui-kit-team@semrush.com>",
10
10
  "license": "MIT",
11
+ "exports": {
12
+ "require": "./lib/cjs/index.js",
13
+ "import": "./lib/esm/index.mjs",
14
+ "types": "./lib/types/index.d.ts"
15
+ },
11
16
  "dependencies": {
12
- "@semcore/dropdown": "4.42.4-prerelease.9",
13
- "@semcore/flex-box": "5.41.0-prerelease.9",
14
- "@semcore/scroll-area": "5.45.0-prerelease.9",
15
- "@semcore/utils": "4.47.1-prerelease.9",
16
- "@semcore/icon": "4.58.0-prerelease.9",
17
- "@semcore/typography": "5.52.0-prerelease.9",
17
+ "@semcore/button": "5.42.0-prerelease.15",
18
+ "@semcore/dropdown": "4.43.0-prerelease.15",
19
+ "@semcore/flex-box": "5.41.0-prerelease.15",
20
+ "@semcore/scroll-area": "5.45.0-prerelease.15",
21
+ "@semcore/utils": "4.48.0-prerelease.15",
22
+ "@semcore/icon": "4.60.0-prerelease.15",
23
+ "@semcore/typography": "5.52.0-prerelease.15",
24
+ "@semcore/popper": "5.46.0-prerelease.15",
18
25
  "classnames": "2.2.6"
19
26
  },
20
27
  "peerDependencies": {
21
- "@semcore/core": "^2.39.0-prerelease.9",
28
+ "@semcore/core": "^2.39.0-prerelease.15",
22
29
  "react": "16.8 - 18",
23
30
  "react-dom": "16.8 - 18"
24
31
  },
@@ -32,10 +39,10 @@
32
39
  "@types/classnames": "2.2.6",
33
40
  "@semcore/testing-utils": "1.0.0",
34
41
  "@semcore/base-trigger": "4.26.1",
35
- "@semcore/icon": "4.58.0-prerelease.9",
36
- "@semcore/button": "5.42.0-prerelease.9"
42
+ "@semcore/button": "5.42.0-prerelease.15",
43
+ "@semcore/icon": "4.60.0-prerelease.15"
37
44
  },
38
45
  "scripts": {
39
- "build": "pnpm semcore-builder --source=js"
46
+ "build": "pnpm semcore-builder --source=js && pnpm vite build"
40
47
  }
41
48
  }
package/vite.config.ts ADDED
@@ -0,0 +1,24 @@
1
+ import { defineConfig, mergeConfig } from 'vite';
2
+
3
+ import viteConfig from '../../commonVite.config';
4
+
5
+ export default mergeConfig(
6
+ viteConfig,
7
+ defineConfig({
8
+ build: {
9
+ lib: {
10
+ entry: './src/index.js',
11
+ },
12
+ rollupOptions: {
13
+ external: [
14
+ 'react',
15
+ 'react-dom',
16
+ 'react/jsx-runtime',
17
+ /@babel\/runtime\/*/,
18
+ /@semcore\/*/,
19
+ 'classnames',
20
+ ],
21
+ },
22
+ },
23
+ }),
24
+ );