@kaizen/components 2.3.3 → 2.3.5

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 (59) hide show
  1. package/dist/cjs/src/TitleBlock/TitleBlock.cjs +7 -1
  2. package/dist/cjs/src/TitleBlock/subcomponents/MainActions.cjs +15 -4
  3. package/dist/cjs/src/TitleBlock/subcomponents/SecondaryActions.cjs +24 -6
  4. package/dist/esm/src/TitleBlock/TitleBlock.mjs +7 -1
  5. package/dist/esm/src/TitleBlock/subcomponents/MainActions.mjs +15 -4
  6. package/dist/esm/src/TitleBlock/subcomponents/SecondaryActions.mjs +24 -6
  7. package/dist/styles.css +1 -1
  8. package/locales/ar.json +24 -4
  9. package/locales/bg.json +24 -4
  10. package/locales/cs.json +24 -4
  11. package/locales/cy.json +24 -4
  12. package/locales/da.json +24 -4
  13. package/locales/de.json +24 -4
  14. package/locales/el.json +24 -4
  15. package/locales/en-GB.json +24 -4
  16. package/locales/en.json +24 -4
  17. package/locales/es-419.json +24 -4
  18. package/locales/es.json +24 -4
  19. package/locales/et.json +24 -4
  20. package/locales/fi.json +24 -4
  21. package/locales/fr-CA.json +24 -4
  22. package/locales/fr.json +24 -4
  23. package/locales/he.json +24 -4
  24. package/locales/hi.json +24 -4
  25. package/locales/ht.json +24 -4
  26. package/locales/hu.json +24 -4
  27. package/locales/id.json +24 -4
  28. package/locales/it.json +24 -4
  29. package/locales/ja.json +24 -4
  30. package/locales/km-KH.json +24 -4
  31. package/locales/ko.json +24 -4
  32. package/locales/lt.json +24 -4
  33. package/locales/lv.json +24 -4
  34. package/locales/mi.json +24 -4
  35. package/locales/ms.json +24 -4
  36. package/locales/nb.json +24 -4
  37. package/locales/nl.json +24 -4
  38. package/locales/pl.json +24 -4
  39. package/locales/pt-BR.json +24 -4
  40. package/locales/pt.json +24 -4
  41. package/locales/ro.json +24 -4
  42. package/locales/ru.json +24 -4
  43. package/locales/si-LK.json +24 -4
  44. package/locales/sk.json +24 -4
  45. package/locales/sr.json +24 -4
  46. package/locales/sv.json +24 -4
  47. package/locales/th.json +24 -4
  48. package/locales/tl.json +24 -4
  49. package/locales/tr.json +24 -4
  50. package/locales/uk.json +24 -4
  51. package/locales/vi.json +24 -4
  52. package/locales/zh-TW.json +24 -4
  53. package/locales/zh.json +24 -4
  54. package/package.json +1 -1
  55. package/src/TitleBlock/TitleBlock.module.scss +1 -1
  56. package/src/TitleBlock/TitleBlock.tsx +8 -1
  57. package/src/TitleBlock/_docs/TitleBlock.stories.tsx +24 -0
  58. package/src/TitleBlock/subcomponents/MainActions.tsx +17 -3
  59. package/src/TitleBlock/subcomponents/SecondaryActions.tsx +35 -3
@@ -2,6 +2,7 @@
2
2
 
3
3
  var tslib = require('tslib');
4
4
  var React = require('react');
5
+ var i18nReactIntl = require('@cultureamp/i18n-react-intl');
5
6
  var classnames = require('classnames');
6
7
  var Avatar = require('../Avatar/Avatar.cjs');
7
8
  require('../ButtonV1/Button/Button.cjs');
@@ -212,6 +213,7 @@ var TitleBlock = function (_a) {
212
213
  isSmall = _o.isSmall,
213
214
  isMedium = _o.isMedium;
214
215
  var isSmallOrMediumViewport = isMedium || isSmall;
216
+ var formatMessage = i18nReactIntl.useIntl().formatMessage;
215
217
  return React__default.default.createElement(React__default.default.Fragment, null, React__default.default.createElement("div", {
216
218
  id: id,
217
219
  className: classnames__default.default(TitleBlock_module.titleBlock, TitleBlock_module["".concat(variant, "Variant")], Boolean(subtitle) && TitleBlock_module.hasSubtitle, Boolean(pageSwitcherSelect) && TitleBlock_module.hasPageSwitcherSelect, collapseNavigationArea && !((_b = sectionTitle !== null && sectionTitle !== void 0 ? sectionTitle : sectionTitleDescription) !== null && _b !== void 0 ? _b : renderSectionTitle) && TitleBlock_module.collapseNavigationArea, title && title.length >= 30 && TitleBlock_module.hasLongTitle, subtitle && typeof subtitle === 'string' && subtitle.length >= 18 && TitleBlock_module.hasLongSubtitle, hasNavigationTabs && TitleBlock_module.hasNavigationTabs)
@@ -238,7 +240,11 @@ var TitleBlock = function (_a) {
238
240
  name: "menu",
239
241
  isPresentational: true
240
242
  }),
241
- label: "Open menu",
243
+ label: formatMessage({
244
+ id: 'kzTitleBlock.hamburgerMenuLabel',
245
+ defaultMessage: 'Open menu',
246
+ description: 'Label for the dropdown menu which displays navigation items'
247
+ }),
242
248
  reversed: utils.isReversed(variant)
243
249
  })), avatar && renderAvatar(avatar, avatarAutomationId), React__default.default.createElement("div", {
244
250
  className: TitleBlock_module.titleAndSubtitle
@@ -2,6 +2,7 @@
2
2
 
3
3
  var tslib = require('tslib');
4
4
  var React = require('react');
5
+ var i18nReactIntl = require('@cultureamp/i18n-react-intl');
5
6
  var Button = require('../../ButtonV1/Button/Button.cjs');
6
7
  var IconButton = require('../../ButtonV1/IconButton/IconButton.cjs');
7
8
  var Icon = require('../../Icon/Icon.cjs');
@@ -19,12 +20,12 @@ function _interopDefault(e) {
19
20
  };
20
21
  }
21
22
  var React__default = /*#__PURE__*/_interopDefault(React);
22
- var renderSecondaryAndOverflowMenu = function (secondaryOverflowMenuItems, reversed) {
23
+ var renderSecondaryAndOverflowMenu = function (secondaryAndOverflowMenuLabel, secondaryOverflowMenuItems, reversed) {
23
24
  if (!secondaryOverflowMenuItems) return undefined;
24
25
  return React__default.default.createElement(index.Menu, {
25
26
  align: "right",
26
27
  button: React__default.default.createElement(IconButton.IconButton, {
27
- label: 'Open secondary and overflow menu',
28
+ label: secondaryAndOverflowMenuLabel,
28
29
  reversed: reversed,
29
30
  icon: React__default.default.createElement(Icon.Icon, {
30
31
  name: "more_horiz",
@@ -47,6 +48,12 @@ var MainActions = function (_a) {
47
48
  secondaryOverflowMenuItems = _a.secondaryOverflowMenuItems,
48
49
  _e = _a.reversed,
49
50
  reversed = _e === void 0 ? false : _e;
51
+ var formatMessage = i18nReactIntl.useIntl().formatMessage;
52
+ var secondaryAndOverflowMenuLabel = formatMessage({
53
+ id: 'kzTitleBlock.secondaryAndOverflowMenuLabel',
54
+ defaultMessage: 'Open secondary and overflow menu',
55
+ description: 'Label for the dropdown menu which displays additional actions'
56
+ });
50
57
  var items;
51
58
  // Build combined secondary + overflow menu items once, to be spread into the toolbar items
52
59
  var secondaryAndOverflowMenu = [];
@@ -77,7 +84,7 @@ var MainActions = function (_a) {
77
84
  if (allMenuItems.length > 0) {
78
85
  secondaryAndOverflowMenu.push({
79
86
  key: 'overflowMenu',
80
- node: renderSecondaryAndOverflowMenu(allMenuItems, reversed)
87
+ node: renderSecondaryAndOverflowMenu(secondaryAndOverflowMenuLabel, allMenuItems, reversed)
81
88
  });
82
89
  }
83
90
  var defaultActionItem = defaultAction ? [{
@@ -97,7 +104,11 @@ var MainActions = function (_a) {
97
104
  }, React__default.default.createElement(index.Menu, {
98
105
  align: "right",
99
106
  button: React__default.default.createElement(IconButton.IconButton, {
100
- label: 'Open default action overflow menu',
107
+ label: formatMessage({
108
+ id: 'kzTitleBlock.defaultActionMinimizedOverflowMenuLabel',
109
+ defaultMessage: 'Open default action overflow menu',
110
+ description: 'Label for the dropdown menu which displays the default action item'
111
+ }),
101
112
  reversed: reversed,
102
113
  icon: React__default.default.createElement(Icon.Icon, {
103
114
  name: "more_horiz",
@@ -2,6 +2,7 @@
2
2
 
3
3
  var tslib = require('tslib');
4
4
  var React = require('react');
5
+ var i18nReactIntl = require('@cultureamp/i18n-react-intl');
5
6
  var Button = require('../../ButtonV1/Button/Button.cjs');
6
7
  var IconButton = require('../../ButtonV1/IconButton/IconButton.cjs');
7
8
  var Icon = require('../../Icon/Icon.cjs');
@@ -17,7 +18,7 @@ function _interopDefault(e) {
17
18
  };
18
19
  }
19
20
  var React__default = /*#__PURE__*/_interopDefault(React);
20
- var renderSecondaryOverflowMenu = function (secondaryOverflowMenuItems, reversed) {
21
+ var renderSecondaryOverflowMenu = function (menuAriaLabel, menuLabel, secondaryOverflowMenuItems, reversed) {
21
22
  if (!secondaryOverflowMenuItems || secondaryOverflowMenuItems.length === 0) return undefined;
22
23
  return React__default.default.createElement("div", {
23
24
  className: TitleBlock_module.secondaryOverflowMenu
@@ -26,7 +27,8 @@ var renderSecondaryOverflowMenu = function (secondaryOverflowMenuItems, reversed
26
27
  button: React__default.default.createElement(Button.Button, {
27
28
  secondary: true,
28
29
  reversed: reversed,
29
- label: "Menu",
30
+ label: menuLabel,
31
+ "aria-label": menuAriaLabel,
30
32
  "data-automation-id": constants.TITLE_BLOCK_ZEN_SECONDARY_MENU_HTML_ID,
31
33
  "data-testid": constants.TITLE_BLOCK_ZEN_SECONDARY_MENU_HTML_ID,
32
34
  icon: React__default.default.createElement(Icon.Icon, {
@@ -42,7 +44,7 @@ var renderSecondaryOverflowMenu = function (secondaryOverflowMenuItems, reversed
42
44
  }))));
43
45
  };
44
46
  // New: combined overflow menu (secondary actions converted + overflow menu items)
45
- var renderCombinedSecondaryOverflowMenu = function (secondaryActions, secondaryOverflowMenuItems, reversed) {
47
+ var renderCombinedSecondaryOverflowMenu = function (combinedMenuLabel, secondaryActions, secondaryOverflowMenuItems, reversed) {
46
48
  var secondaryConverted = secondaryActions ? utils.convertSecondaryActionsToMenuItems(secondaryActions) : [];
47
49
  var overflowItems = secondaryOverflowMenuItems !== null && secondaryOverflowMenuItems !== void 0 ? secondaryOverflowMenuItems : [];
48
50
  if (secondaryConverted.length === 0 && overflowItems.length === 0) return undefined;
@@ -52,7 +54,7 @@ var renderCombinedSecondaryOverflowMenu = function (secondaryActions, secondaryO
52
54
  }, React__default.default.createElement(index.Menu, {
53
55
  align: "right",
54
56
  button: React__default.default.createElement(IconButton.IconButton, {
55
- label: "Open combined secondary + overflow menu",
57
+ label: combinedMenuLabel,
56
58
  reversed: reversed,
57
59
  icon: React__default.default.createElement(Icon.Icon, {
58
60
  name: "more_horiz",
@@ -74,7 +76,23 @@ var SecondaryActions = function (_a) {
74
76
  secondaryOverflowMenuItems = _a.secondaryOverflowMenuItems,
75
77
  _b = _a.reversed,
76
78
  reversed = _b === void 0 ? false : _b;
79
+ var formatMessage = i18nReactIntl.useIntl().formatMessage;
77
80
  if (!secondaryActions && !secondaryOverflowMenuItems) return null;
81
+ var menuLabel = formatMessage({
82
+ id: 'kzTitleBlock.overflowMenuLabel',
83
+ defaultMessage: 'Menu',
84
+ description: 'Label for the dropdown menu which displays additional action items'
85
+ });
86
+ var menuAriaLabel = formatMessage({
87
+ id: 'kzTitleBlock.overflowMenuAriaLabel',
88
+ defaultMessage: 'Opens overflow menu',
89
+ description: 'Aria Label for the dropdown menu which displays additional action items'
90
+ });
91
+ var combinedMenuLabel = formatMessage({
92
+ id: 'kzTitleBlock.combinedOverflowMenuLabel',
93
+ defaultMessage: 'Open combined secondary and overflow menu',
94
+ description: 'Label for the dropdown menu which displays additional action items and secondary actions'
95
+ });
78
96
  var secondaryActionsAsToolbarItems = secondaryActions ? secondaryActions.map(function (action, i) {
79
97
  if ('menuItems' in action) {
80
98
  return {
@@ -118,8 +136,8 @@ var SecondaryActions = function (_a) {
118
136
  };
119
137
  }
120
138
  }) : [];
121
- var overflowMenu = renderSecondaryOverflowMenu(secondaryOverflowMenuItems, reversed);
122
- var combinedOverflowMenu = renderCombinedSecondaryOverflowMenu(secondaryActions, secondaryOverflowMenuItems, reversed);
139
+ var overflowMenu = renderSecondaryOverflowMenu(menuAriaLabel, menuLabel, secondaryOverflowMenuItems, reversed);
140
+ var combinedOverflowMenu = renderCombinedSecondaryOverflowMenu(combinedMenuLabel, secondaryActions, secondaryOverflowMenuItems, reversed);
123
141
  var toolbarItems = tslib.__spreadArray(tslib.__spreadArray(tslib.__spreadArray([], secondaryActionsAsToolbarItems, true), overflowMenu ? [{
124
142
  key: 'overflowMenu',
125
143
  node: overflowMenu
@@ -1,5 +1,6 @@
1
1
  import { __assign } from 'tslib';
2
2
  import React from 'react';
3
+ import { useIntl } from '@cultureamp/i18n-react-intl';
3
4
  import classnames from 'classnames';
4
5
  import { Avatar } from '../Avatar/Avatar.mjs';
5
6
  import '../ButtonV1/Button/Button.mjs';
@@ -204,6 +205,7 @@ const TitleBlock = /*#__PURE__*/function () {
204
205
  isSmall = _o.isSmall,
205
206
  isMedium = _o.isMedium;
206
207
  var isSmallOrMediumViewport = isMedium || isSmall;
208
+ var formatMessage = useIntl().formatMessage;
207
209
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
208
210
  id: id,
209
211
  className: classnames(styles.titleBlock, styles["".concat(variant, "Variant")], Boolean(subtitle) && styles.hasSubtitle, Boolean(pageSwitcherSelect) && styles.hasPageSwitcherSelect, collapseNavigationArea && !((_b = sectionTitle !== null && sectionTitle !== void 0 ? sectionTitle : sectionTitleDescription) !== null && _b !== void 0 ? _b : renderSectionTitle) && styles.collapseNavigationArea, title && title.length >= 30 && styles.hasLongTitle, subtitle && typeof subtitle === 'string' && subtitle.length >= 18 && styles.hasLongSubtitle, hasNavigationTabs && styles.hasNavigationTabs)
@@ -230,7 +232,11 @@ const TitleBlock = /*#__PURE__*/function () {
230
232
  name: "menu",
231
233
  isPresentational: true
232
234
  }),
233
- label: "Open menu",
235
+ label: formatMessage({
236
+ id: 'kzTitleBlock.hamburgerMenuLabel',
237
+ defaultMessage: 'Open menu',
238
+ description: 'Label for the dropdown menu which displays navigation items'
239
+ }),
234
240
  reversed: isReversed(variant)
235
241
  }))), avatar && renderAvatar(avatar, avatarAutomationId), /*#__PURE__*/React.createElement("div", {
236
242
  className: styles.titleAndSubtitle
@@ -1,5 +1,6 @@
1
1
  import { __spreadArray, __assign } from 'tslib';
2
2
  import React from 'react';
3
+ import { useIntl } from '@cultureamp/i18n-react-intl';
3
4
  import { Button } from '../../ButtonV1/Button/Button.mjs';
4
5
  import { IconButton } from '../../ButtonV1/IconButton/IconButton.mjs';
5
6
  import { Icon } from '../../Icon/Icon.mjs';
@@ -11,12 +12,12 @@ import { createTabletOverflowMenuItems, isMenuGroupNotButton } from '../utils.mj
11
12
  import { TitleBlockMenuItem } from './TitleBlockMenuItem.mjs';
12
13
  import { Toolbar } from './Toolbar.mjs';
13
14
  import styles from './MainActions.module.scss.mjs';
14
- var renderSecondaryAndOverflowMenu = function (secondaryOverflowMenuItems, reversed) {
15
+ var renderSecondaryAndOverflowMenu = function (secondaryAndOverflowMenuLabel, secondaryOverflowMenuItems, reversed) {
15
16
  if (!secondaryOverflowMenuItems) return undefined;
16
17
  return /*#__PURE__*/React.createElement(Menu, {
17
18
  align: "right",
18
19
  button: /*#__PURE__*/React.createElement(IconButton, {
19
- label: 'Open secondary and overflow menu',
20
+ label: secondaryAndOverflowMenuLabel,
20
21
  reversed: reversed,
21
22
  icon: /*#__PURE__*/React.createElement(Icon, {
22
23
  name: "more_horiz",
@@ -40,6 +41,12 @@ const MainActions = /*#__PURE__*/function () {
40
41
  secondaryOverflowMenuItems = _a.secondaryOverflowMenuItems,
41
42
  _e = _a.reversed,
42
43
  reversed = _e === void 0 ? false : _e;
44
+ var formatMessage = useIntl().formatMessage;
45
+ var secondaryAndOverflowMenuLabel = formatMessage({
46
+ id: 'kzTitleBlock.secondaryAndOverflowMenuLabel',
47
+ defaultMessage: 'Open secondary and overflow menu',
48
+ description: 'Label for the dropdown menu which displays additional actions'
49
+ });
43
50
  var items;
44
51
  // Build combined secondary + overflow menu items once, to be spread into the toolbar items
45
52
  var secondaryAndOverflowMenu = [];
@@ -70,7 +77,7 @@ const MainActions = /*#__PURE__*/function () {
70
77
  if (allMenuItems.length > 0) {
71
78
  secondaryAndOverflowMenu.push({
72
79
  key: 'overflowMenu',
73
- node: renderSecondaryAndOverflowMenu(allMenuItems, reversed)
80
+ node: renderSecondaryAndOverflowMenu(secondaryAndOverflowMenuLabel, allMenuItems, reversed)
74
81
  });
75
82
  }
76
83
  var defaultActionItem = defaultAction ? [{
@@ -90,7 +97,11 @@ const MainActions = /*#__PURE__*/function () {
90
97
  }, /*#__PURE__*/React.createElement(Menu, {
91
98
  align: "right",
92
99
  button: /*#__PURE__*/React.createElement(IconButton, {
93
- label: 'Open default action overflow menu',
100
+ label: formatMessage({
101
+ id: 'kzTitleBlock.defaultActionMinimizedOverflowMenuLabel',
102
+ defaultMessage: 'Open default action overflow menu',
103
+ description: 'Label for the dropdown menu which displays the default action item'
104
+ }),
94
105
  reversed: reversed,
95
106
  icon: /*#__PURE__*/React.createElement(Icon, {
96
107
  name: "more_horiz",
@@ -1,5 +1,6 @@
1
1
  import { __assign, __spreadArray } from 'tslib';
2
2
  import React from 'react';
3
+ import { useIntl } from '@cultureamp/i18n-react-intl';
3
4
  import { Button } from '../../ButtonV1/Button/Button.mjs';
4
5
  import { IconButton } from '../../ButtonV1/IconButton/IconButton.mjs';
5
6
  import { Icon } from '../../Icon/Icon.mjs';
@@ -9,7 +10,7 @@ import { TITLE_BLOCK_ZEN_SECONDARY_MENU_HTML_ID } from '../constants.mjs';
9
10
  import { convertSecondaryActionsToMenuItems } from '../utils.mjs';
10
11
  import { TitleBlockMenuItem } from './TitleBlockMenuItem.mjs';
11
12
  import { Toolbar } from './Toolbar.mjs';
12
- var renderSecondaryOverflowMenu = function (secondaryOverflowMenuItems, reversed) {
13
+ var renderSecondaryOverflowMenu = function (menuAriaLabel, menuLabel, secondaryOverflowMenuItems, reversed) {
13
14
  if (!secondaryOverflowMenuItems || secondaryOverflowMenuItems.length === 0) return undefined;
14
15
  return /*#__PURE__*/React.createElement("div", {
15
16
  className: styles.secondaryOverflowMenu
@@ -18,7 +19,8 @@ var renderSecondaryOverflowMenu = function (secondaryOverflowMenuItems, reversed
18
19
  button: /*#__PURE__*/React.createElement(Button, {
19
20
  secondary: true,
20
21
  reversed: reversed,
21
- label: "Menu",
22
+ label: menuLabel,
23
+ "aria-label": menuAriaLabel,
22
24
  "data-automation-id": TITLE_BLOCK_ZEN_SECONDARY_MENU_HTML_ID,
23
25
  "data-testid": TITLE_BLOCK_ZEN_SECONDARY_MENU_HTML_ID,
24
26
  icon: /*#__PURE__*/React.createElement(Icon, {
@@ -34,7 +36,7 @@ var renderSecondaryOverflowMenu = function (secondaryOverflowMenuItems, reversed
34
36
  }))));
35
37
  };
36
38
  // New: combined overflow menu (secondary actions converted + overflow menu items)
37
- var renderCombinedSecondaryOverflowMenu = function (secondaryActions, secondaryOverflowMenuItems, reversed) {
39
+ var renderCombinedSecondaryOverflowMenu = function (combinedMenuLabel, secondaryActions, secondaryOverflowMenuItems, reversed) {
38
40
  var secondaryConverted = secondaryActions ? convertSecondaryActionsToMenuItems(secondaryActions) : [];
39
41
  var overflowItems = secondaryOverflowMenuItems !== null && secondaryOverflowMenuItems !== void 0 ? secondaryOverflowMenuItems : [];
40
42
  if (secondaryConverted.length === 0 && overflowItems.length === 0) return undefined;
@@ -44,7 +46,7 @@ var renderCombinedSecondaryOverflowMenu = function (secondaryActions, secondaryO
44
46
  }, /*#__PURE__*/React.createElement(Menu, {
45
47
  align: "right",
46
48
  button: /*#__PURE__*/React.createElement(IconButton, {
47
- label: "Open combined secondary + overflow menu",
49
+ label: combinedMenuLabel,
48
50
  reversed: reversed,
49
51
  icon: /*#__PURE__*/React.createElement(Icon, {
50
52
  name: "more_horiz",
@@ -67,7 +69,23 @@ const SecondaryActions = /*#__PURE__*/function () {
67
69
  secondaryOverflowMenuItems = _a.secondaryOverflowMenuItems,
68
70
  _b = _a.reversed,
69
71
  reversed = _b === void 0 ? false : _b;
72
+ var formatMessage = useIntl().formatMessage;
70
73
  if (!secondaryActions && !secondaryOverflowMenuItems) return null;
74
+ var menuLabel = formatMessage({
75
+ id: 'kzTitleBlock.overflowMenuLabel',
76
+ defaultMessage: 'Menu',
77
+ description: 'Label for the dropdown menu which displays additional action items'
78
+ });
79
+ var menuAriaLabel = formatMessage({
80
+ id: 'kzTitleBlock.overflowMenuAriaLabel',
81
+ defaultMessage: 'Opens overflow menu',
82
+ description: 'Aria Label for the dropdown menu which displays additional action items'
83
+ });
84
+ var combinedMenuLabel = formatMessage({
85
+ id: 'kzTitleBlock.combinedOverflowMenuLabel',
86
+ defaultMessage: 'Open combined secondary and overflow menu',
87
+ description: 'Label for the dropdown menu which displays additional action items and secondary actions'
88
+ });
71
89
  var secondaryActionsAsToolbarItems = secondaryActions ? secondaryActions.map(function (action, i) {
72
90
  if ('menuItems' in action) {
73
91
  return {
@@ -111,8 +129,8 @@ const SecondaryActions = /*#__PURE__*/function () {
111
129
  };
112
130
  }
113
131
  }) : [];
114
- var overflowMenu = renderSecondaryOverflowMenu(secondaryOverflowMenuItems, reversed);
115
- var combinedOverflowMenu = renderCombinedSecondaryOverflowMenu(secondaryActions, secondaryOverflowMenuItems, reversed);
132
+ var overflowMenu = renderSecondaryOverflowMenu(menuAriaLabel, menuLabel, secondaryOverflowMenuItems, reversed);
133
+ var combinedOverflowMenu = renderCombinedSecondaryOverflowMenu(combinedMenuLabel, secondaryActions, secondaryOverflowMenuItems, reversed);
116
134
  var toolbarItems = __spreadArray(__spreadArray(__spreadArray([], secondaryActionsAsToolbarItems, true), overflowMenu ? [{
117
135
  key: 'overflowMenu',
118
136
  node: overflowMenu
package/dist/styles.css CHANGED
@@ -10248,7 +10248,6 @@
10248
10248
  display: none;
10249
10249
  align-self: self-start;
10250
10250
  box-sizing: border-box;
10251
- overflow: hidden;
10252
10251
  height: 3rem;
10253
10252
  width: 3rem;
10254
10253
  margin-inline-end: calc(1.5rem / 2);
@@ -10258,6 +10257,7 @@
10258
10257
  max-width: 100%;
10259
10258
  }
10260
10259
  .TitleBlock-module_avatar__mEjJ8.TitleBlock-module_withBorder__D8Mz2 {
10260
+ overflow: hidden;
10261
10261
  border: 3px solid var(--color-white, #ffffff);
10262
10262
  border-radius: 50%;
10263
10263
  }
package/locales/ar.json CHANGED
@@ -220,6 +220,30 @@
220
220
  "description" : "Prompts user to interact with button to hide information",
221
221
  "message" : "إخفاء المعلومات:"
222
222
  },
223
+ "kzTitleBlock.combinedOverflowMenuLabel" : {
224
+ "description" : "Label for the dropdown menu which displays additional action items and secondary actions",
225
+ "message" : "افتح القائمة الثانوية وقائمة الخيارات الإضافية"
226
+ },
227
+ "kzTitleBlock.defaultActionMinimizedOverflowMenuLabel" : {
228
+ "description" : "Label for the dropdown menu which displays the default action item",
229
+ "message" : "افتح قائمة الخيارات الإضافية للإجراء الافتراضي"
230
+ },
231
+ "kzTitleBlock.hamburgerMenuLabel" : {
232
+ "description" : "Label for the dropdown menu which displays navigation items",
233
+ "message" : "فتح القائمة"
234
+ },
235
+ "kzTitleBlock.overflowMenuAriaLabel" : {
236
+ "description" : "Aria Label for the dropdown menu which displays additional action items",
237
+ "message" : "يفتح قائمة الخيارات الإضافية"
238
+ },
239
+ "kzTitleBlock.overflowMenuLabel" : {
240
+ "description" : "Label for the dropdown menu which displays additional action items",
241
+ "message" : "القائمة"
242
+ },
243
+ "kzTitleBlock.secondaryAndOverflowMenuLabel" : {
244
+ "description" : "Label for the dropdown menu which displays additional actions",
245
+ "message" : "افتح القائمة الثانوية وقائمة الخيارات الإضافية"
246
+ },
223
247
  "singleSelect.chevronButton" : {
224
248
  "description" : "Aria label text for the SingleSelect button to open and close suggestions list",
225
249
  "message" : "عرض الاقتراحات لـ {field}"
@@ -227,9 +251,5 @@
227
251
  "singleSelect.clearButtonAlt_v2" : {
228
252
  "description" : "Alt text for the clear selection button. The button clears the selection the user has made via a dropdown. The field placeholder is the label of the dropdown.",
229
253
  "message" : "محو الاختيار: {field}"
230
- },
231
- "splitButton.dropdownButton.label" : {
232
- "description" : "Label for a dropdown menu holding additional actions",
233
- "message" : "إجراءات إضافية"
234
254
  }
235
255
  }
package/locales/bg.json CHANGED
@@ -220,6 +220,30 @@
220
220
  "description" : "Prompts user to interact with button to hide information",
221
221
  "message" : "Скриване на информация:"
222
222
  },
223
+ "kzTitleBlock.combinedOverflowMenuLabel" : {
224
+ "description" : "Label for the dropdown menu which displays additional action items and secondary actions",
225
+ "message" : "Отваряне на комбинираното вторично и допълнително меню"
226
+ },
227
+ "kzTitleBlock.defaultActionMinimizedOverflowMenuLabel" : {
228
+ "description" : "Label for the dropdown menu which displays the default action item",
229
+ "message" : "Отваряне на допълнителното меню с действия по подразбиране"
230
+ },
231
+ "kzTitleBlock.hamburgerMenuLabel" : {
232
+ "description" : "Label for the dropdown menu which displays navigation items",
233
+ "message" : "Отваряне на менюто"
234
+ },
235
+ "kzTitleBlock.overflowMenuAriaLabel" : {
236
+ "description" : "Aria Label for the dropdown menu which displays additional action items",
237
+ "message" : "Отваря допълнителното меню"
238
+ },
239
+ "kzTitleBlock.overflowMenuLabel" : {
240
+ "description" : "Label for the dropdown menu which displays additional action items",
241
+ "message" : "Меню"
242
+ },
243
+ "kzTitleBlock.secondaryAndOverflowMenuLabel" : {
244
+ "description" : "Label for the dropdown menu which displays additional actions",
245
+ "message" : "Отваряне на вторичното и допълнително меню"
246
+ },
223
247
  "singleSelect.chevronButton" : {
224
248
  "description" : "Aria label text for the SingleSelect button to open and close suggestions list",
225
249
  "message" : "Покажи предложения за {field}"
@@ -227,9 +251,5 @@
227
251
  "singleSelect.clearButtonAlt_v2" : {
228
252
  "description" : "Alt text for the clear selection button. The button clears the selection the user has made via a dropdown. The field placeholder is the label of the dropdown.",
229
253
  "message" : "Изчистване на избора: {field}"
230
- },
231
- "splitButton.dropdownButton.label" : {
232
- "description" : "Label for a dropdown menu holding additional actions",
233
- "message" : "Допълнителни действия"
234
254
  }
235
255
  }
package/locales/cs.json CHANGED
@@ -220,6 +220,30 @@
220
220
  "description" : "Prompts user to interact with button to hide information",
221
221
  "message" : "Skrýt informace:"
222
222
  },
223
+ "kzTitleBlock.combinedOverflowMenuLabel" : {
224
+ "description" : "Label for the dropdown menu which displays additional action items and secondary actions",
225
+ "message" : "Otevřít kombinovanou sekundární a rozbalovací nabídku"
226
+ },
227
+ "kzTitleBlock.defaultActionMinimizedOverflowMenuLabel" : {
228
+ "description" : "Label for the dropdown menu which displays the default action item",
229
+ "message" : "Otevřít výchozí rozbalovací nabídku akcí"
230
+ },
231
+ "kzTitleBlock.hamburgerMenuLabel" : {
232
+ "description" : "Label for the dropdown menu which displays navigation items",
233
+ "message" : "Otevřít nabídku"
234
+ },
235
+ "kzTitleBlock.overflowMenuAriaLabel" : {
236
+ "description" : "Aria Label for the dropdown menu which displays additional action items",
237
+ "message" : "Otevře rozbalovací nabídku"
238
+ },
239
+ "kzTitleBlock.overflowMenuLabel" : {
240
+ "description" : "Label for the dropdown menu which displays additional action items",
241
+ "message" : "Nabídka"
242
+ },
243
+ "kzTitleBlock.secondaryAndOverflowMenuLabel" : {
244
+ "description" : "Label for the dropdown menu which displays additional actions",
245
+ "message" : "Otevřít sekundární a rozbalovací nabídku"
246
+ },
223
247
  "singleSelect.chevronButton" : {
224
248
  "description" : "Aria label text for the SingleSelect button to open and close suggestions list",
225
249
  "message" : "Zobrazit návrhy pro pole {field}"
@@ -227,9 +251,5 @@
227
251
  "singleSelect.clearButtonAlt_v2" : {
228
252
  "description" : "Alt text for the clear selection button. The button clears the selection the user has made via a dropdown. The field placeholder is the label of the dropdown.",
229
253
  "message" : "Vymazat výběr: {field}"
230
- },
231
- "splitButton.dropdownButton.label" : {
232
- "description" : "Label for a dropdown menu holding additional actions",
233
- "message" : "Další akce"
234
254
  }
235
255
  }
package/locales/cy.json CHANGED
@@ -220,6 +220,30 @@
220
220
  "description" : "Prompts user to interact with button to hide information",
221
221
  "message" : "Cuddio gwybodaeth:"
222
222
  },
223
+ "kzTitleBlock.combinedOverflowMenuLabel" : {
224
+ "description" : "Label for the dropdown menu which displays additional action items and secondary actions",
225
+ "message" : "Agor y ddewislen eilaidd ac orlif gyfunol"
226
+ },
227
+ "kzTitleBlock.defaultActionMinimizedOverflowMenuLabel" : {
228
+ "description" : "Label for the dropdown menu which displays the default action item",
229
+ "message" : "Agor y ddewislen orlif gweithredu ddiofyn"
230
+ },
231
+ "kzTitleBlock.hamburgerMenuLabel" : {
232
+ "description" : "Label for the dropdown menu which displays navigation items",
233
+ "message" : "Agor y ddewislen"
234
+ },
235
+ "kzTitleBlock.overflowMenuAriaLabel" : {
236
+ "description" : "Aria Label for the dropdown menu which displays additional action items",
237
+ "message" : "Yn agor y ddewislen orlif"
238
+ },
239
+ "kzTitleBlock.overflowMenuLabel" : {
240
+ "description" : "Label for the dropdown menu which displays additional action items",
241
+ "message" : "Dewislen"
242
+ },
243
+ "kzTitleBlock.secondaryAndOverflowMenuLabel" : {
244
+ "description" : "Label for the dropdown menu which displays additional actions",
245
+ "message" : "Agor y ddewislen eilaidd ac orlif"
246
+ },
223
247
  "singleSelect.chevronButton" : {
224
248
  "description" : "Aria label text for the SingleSelect button to open and close suggestions list",
225
249
  "message" : "Dangos awgrymiadau ar gyfer {field}"
@@ -227,9 +251,5 @@
227
251
  "singleSelect.clearButtonAlt_v2" : {
228
252
  "description" : "Alt text for the clear selection button. The button clears the selection the user has made via a dropdown. The field placeholder is the label of the dropdown.",
229
253
  "message" : "Clirio'r dewisiad: {field}"
230
- },
231
- "splitButton.dropdownButton.label" : {
232
- "description" : "Label for a dropdown menu holding additional actions",
233
- "message" : "Gweithredoedd ychwanegol"
234
254
  }
235
255
  }
package/locales/da.json CHANGED
@@ -220,6 +220,30 @@
220
220
  "description" : "Prompts user to interact with button to hide information",
221
221
  "message" : "Skjul oplysninger:"
222
222
  },
223
+ "kzTitleBlock.combinedOverflowMenuLabel" : {
224
+ "description" : "Label for the dropdown menu which displays additional action items and secondary actions",
225
+ "message" : "Åbn kombineret sekundær og overløbsmenu"
226
+ },
227
+ "kzTitleBlock.defaultActionMinimizedOverflowMenuLabel" : {
228
+ "description" : "Label for the dropdown menu which displays the default action item",
229
+ "message" : "Åbn standardoverløbsmenu for handlinger"
230
+ },
231
+ "kzTitleBlock.hamburgerMenuLabel" : {
232
+ "description" : "Label for the dropdown menu which displays navigation items",
233
+ "message" : "Åbn menu"
234
+ },
235
+ "kzTitleBlock.overflowMenuAriaLabel" : {
236
+ "description" : "Aria Label for the dropdown menu which displays additional action items",
237
+ "message" : "Åbner overløbsmenuen"
238
+ },
239
+ "kzTitleBlock.overflowMenuLabel" : {
240
+ "description" : "Label for the dropdown menu which displays additional action items",
241
+ "message" : "Menu"
242
+ },
243
+ "kzTitleBlock.secondaryAndOverflowMenuLabel" : {
244
+ "description" : "Label for the dropdown menu which displays additional actions",
245
+ "message" : "Åbn sekundær og overløbsmenu"
246
+ },
223
247
  "singleSelect.chevronButton" : {
224
248
  "description" : "Aria label text for the SingleSelect button to open and close suggestions list",
225
249
  "message" : "Vis forslag for {field}"
@@ -227,9 +251,5 @@
227
251
  "singleSelect.clearButtonAlt_v2" : {
228
252
  "description" : "Alt text for the clear selection button. The button clears the selection the user has made via a dropdown. The field placeholder is the label of the dropdown.",
229
253
  "message" : "Ryd valg: {field}"
230
- },
231
- "splitButton.dropdownButton.label" : {
232
- "description" : "Label for a dropdown menu holding additional actions",
233
- "message" : "Yderligere handlinger"
234
254
  }
235
255
  }
package/locales/de.json CHANGED
@@ -220,6 +220,30 @@
220
220
  "description" : "Prompts user to interact with button to hide information",
221
221
  "message" : "Informationen ausblenden:"
222
222
  },
223
+ "kzTitleBlock.combinedOverflowMenuLabel" : {
224
+ "description" : "Label for the dropdown menu which displays additional action items and secondary actions",
225
+ "message" : "Kombiniertes Sekundär- und Überlaufmenü öffnen"
226
+ },
227
+ "kzTitleBlock.defaultActionMinimizedOverflowMenuLabel" : {
228
+ "description" : "Label for the dropdown menu which displays the default action item",
229
+ "message" : "Standard-Maßnahmen-Überlaufmenü öffnen"
230
+ },
231
+ "kzTitleBlock.hamburgerMenuLabel" : {
232
+ "description" : "Label for the dropdown menu which displays navigation items",
233
+ "message" : "Menü öffnen"
234
+ },
235
+ "kzTitleBlock.overflowMenuAriaLabel" : {
236
+ "description" : "Aria Label for the dropdown menu which displays additional action items",
237
+ "message" : "Öffnet das Überlaufmenü"
238
+ },
239
+ "kzTitleBlock.overflowMenuLabel" : {
240
+ "description" : "Label for the dropdown menu which displays additional action items",
241
+ "message" : "Menü"
242
+ },
243
+ "kzTitleBlock.secondaryAndOverflowMenuLabel" : {
244
+ "description" : "Label for the dropdown menu which displays additional actions",
245
+ "message" : "Sekundär- und Überlaufmenü öffnen"
246
+ },
223
247
  "singleSelect.chevronButton" : {
224
248
  "description" : "Aria label text for the SingleSelect button to open and close suggestions list",
225
249
  "message" : "Vorschläge für {field} anzeigen"
@@ -227,9 +251,5 @@
227
251
  "singleSelect.clearButtonAlt_v2" : {
228
252
  "description" : "Alt text for the clear selection button. The button clears the selection the user has made via a dropdown. The field placeholder is the label of the dropdown.",
229
253
  "message" : "Auswahl löschen: {field}"
230
- },
231
- "splitButton.dropdownButton.label" : {
232
- "description" : "Label for a dropdown menu holding additional actions",
233
- "message" : "Zusätzliche Maßnahmen"
234
254
  }
235
255
  }
package/locales/el.json CHANGED
@@ -220,6 +220,30 @@
220
220
  "description" : "Prompts user to interact with button to hide information",
221
221
  "message" : "Κρύψτε πληροφορίες:"
222
222
  },
223
+ "kzTitleBlock.combinedOverflowMenuLabel" : {
224
+ "description" : "Label for the dropdown menu which displays additional action items and secondary actions",
225
+ "message" : "Άνοιγμα συνδυαστικού δευτερεύοντος μενού και μενού υπερχείλισης"
226
+ },
227
+ "kzTitleBlock.defaultActionMinimizedOverflowMenuLabel" : {
228
+ "description" : "Label for the dropdown menu which displays the default action item",
229
+ "message" : "Άνοιγμα μενού υπερχείλισης προεπιλεγμένων ενεργειών"
230
+ },
231
+ "kzTitleBlock.hamburgerMenuLabel" : {
232
+ "description" : "Label for the dropdown menu which displays navigation items",
233
+ "message" : "Άνοιγμα μενού"
234
+ },
235
+ "kzTitleBlock.overflowMenuAriaLabel" : {
236
+ "description" : "Aria Label for the dropdown menu which displays additional action items",
237
+ "message" : "Άνοιγμα μενού υπερχείλισης"
238
+ },
239
+ "kzTitleBlock.overflowMenuLabel" : {
240
+ "description" : "Label for the dropdown menu which displays additional action items",
241
+ "message" : "Μενού"
242
+ },
243
+ "kzTitleBlock.secondaryAndOverflowMenuLabel" : {
244
+ "description" : "Label for the dropdown menu which displays additional actions",
245
+ "message" : "Άνοιγμα δευτερεύοντος μενού και μενού υπερχείλισης"
246
+ },
223
247
  "singleSelect.chevronButton" : {
224
248
  "description" : "Aria label text for the SingleSelect button to open and close suggestions list",
225
249
  "message" : "Εμφάνιση προτάσεων για το πεδίο \"{field}\""
@@ -227,9 +251,5 @@
227
251
  "singleSelect.clearButtonAlt_v2" : {
228
252
  "description" : "Alt text for the clear selection button. The button clears the selection the user has made via a dropdown. The field placeholder is the label of the dropdown.",
229
253
  "message" : "Απαλοιφή επιλογής: {field}"
230
- },
231
- "splitButton.dropdownButton.label" : {
232
- "description" : "Label for a dropdown menu holding additional actions",
233
- "message" : "Περαιτέρω ενέργειες"
234
254
  }
235
255
  }