@jetbrains/ring-ui-built 7.0.72 → 7.0.73
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/components/_helpers/anchor.js +55 -13
- package/components/_helpers/avatar-info.js +44 -11
- package/components/_helpers/caption.js +2 -2
- package/components/_helpers/card.js +21 -21
- package/components/_helpers/icon-svg.js +75 -17
- package/components/_helpers/input.js +13 -13
- package/components/_helpers/query-assist-suggestions.js +5 -5
- package/components/_helpers/select-filter.js +5 -5
- package/components/_helpers/services-link.js +5 -5
- package/components/_helpers/sidebar.js +6 -6
- package/components/_helpers/tab-link.js +69 -17
- package/components/_helpers/theme.js +231 -54
- package/components/_helpers/title.js +5 -5
- package/components/alert/alert.d.ts +1 -1
- package/components/alert/alert.js +12 -10
- package/components/alert/container.js +4 -4
- package/components/alert-service/alert-service.d.ts +1 -1
- package/components/alert-service/alert-service.js +5 -4
- package/components/auth/auth-core.js +8 -8
- package/components/auth/auth.js +3 -2
- package/components/auth/down-notification.js +61 -17
- package/components/auth/iframe-flow.js +7 -6
- package/components/auth/storage.js +3 -2
- package/components/auth/token-validator.js +1 -1
- package/components/auth/window-flow.js +2 -2
- package/components/auth-dialog/auth-dialog.d.ts +1 -1
- package/components/auth-dialog/auth-dialog.js +15 -14
- package/components/auth-dialog-service/auth-dialog-service.js +4 -6
- package/components/avatar/avatar-info.d.ts +1 -1
- package/components/avatar/avatar-info.js +3 -2
- package/components/avatar/avatar.d.ts +1 -1
- package/components/avatar/avatar.js +16 -15
- package/components/avatar/fallback-avatar.d.ts +1 -1
- package/components/avatar/fallback-avatar.js +183 -59
- package/components/avatar-stack/avatar-stack.d.ts +1 -1
- package/components/avatar-stack/avatar-stack.js +115 -29
- package/components/banner/banner.d.ts +1 -1
- package/components/banner/banner.js +11 -10
- package/components/breadcrumbs/breadcrumbs.d.ts +1 -1
- package/components/breadcrumbs/breadcrumbs.js +3 -2
- package/components/button/button.d.ts +1 -1
- package/components/button/button.js +11 -10
- package/components/button-group/button-group.d.ts +1 -1
- package/components/button-group/button-group.js +6 -8
- package/components/button-group/caption.d.ts +1 -1
- package/components/button-group/caption.js +1 -1
- package/components/button-set/button-set.d.ts +1 -1
- package/components/button-set/button-set.js +2 -5
- package/components/button-toolbar/button-toolbar.d.ts +1 -1
- package/components/button-toolbar/button-toolbar.js +2 -5
- package/components/checkbox/checkbox.d.ts +1 -1
- package/components/checkbox/checkbox.js +12 -17
- package/components/clipboard/clipboard.js +2 -1
- package/components/code/code.d.ts +1 -1
- package/components/code/code.js +5 -5
- package/components/collapse/collapse-content.js +161 -77
- package/components/collapse/collapse-control.js +69 -22
- package/components/collapse/collapse.js +83 -31
- package/components/confirm/confirm.d.ts +1 -1
- package/components/confirm/confirm.js +11 -13
- package/components/confirm-service/confirm-service.js +4 -3
- package/components/content-layout/content-layout.d.ts +1 -1
- package/components/content-layout/content-layout.js +4 -7
- package/components/content-layout/sidebar.d.ts +1 -1
- package/components/content-layout/sidebar.js +1 -1
- package/components/contenteditable/contenteditable.d.ts +2 -2
- package/components/contenteditable/contenteditable.js +50 -14
- package/components/control-help/control-help.d.ts +1 -1
- package/components/control-help/control-help.js +45 -9
- package/components/control-label/control-label.js +62 -13
- package/components/data-list/data-list.d.ts +1 -1
- package/components/data-list/data-list.js +10 -9
- package/components/data-list/data-list.mock.d.ts +1 -1
- package/components/data-list/data-list.mock.js +79 -78
- package/components/data-list/item.d.ts +2 -2
- package/components/data-list/item.js +18 -17
- package/components/data-list/title.d.ts +1 -1
- package/components/data-list/title.js +2 -1
- package/components/date-picker/consts.js +1 -1
- package/components/date-picker/date-input.d.ts +1 -1
- package/components/date-picker/date-input.js +4 -3
- package/components/date-picker/date-picker.d.ts +1 -1
- package/components/date-picker/date-picker.js +97 -31
- package/components/date-picker/date-popup.d.ts +1 -1
- package/components/date-picker/date-popup.js +11 -10
- package/components/date-picker/day.d.ts +1 -1
- package/components/date-picker/day.js +4 -3
- package/components/date-picker/month-names.d.ts +1 -1
- package/components/date-picker/month-names.js +98 -22
- package/components/date-picker/month-slider.d.ts +1 -1
- package/components/date-picker/month-slider.js +4 -4
- package/components/date-picker/month.d.ts +1 -1
- package/components/date-picker/month.js +79 -18
- package/components/date-picker/months.d.ts +1 -1
- package/components/date-picker/months.js +163 -53
- package/components/date-picker/weekdays.d.ts +1 -1
- package/components/date-picker/weekdays.js +56 -16
- package/components/date-picker/years.d.ts +1 -1
- package/components/date-picker/years.js +5 -5
- package/components/dialog/dialog.d.ts +1 -1
- package/components/dialog/dialog.js +21 -23
- package/components/dropdown/anchor.d.ts +1 -1
- package/components/dropdown/anchor.js +2 -1
- package/components/dropdown/dropdown.d.ts +1 -1
- package/components/dropdown/dropdown.js +7 -8
- package/components/dropdown-menu/dropdown-menu.js +299 -83
- package/components/editable-heading/editable-heading.d.ts +2 -2
- package/components/editable-heading/editable-heading.js +523 -174
- package/components/error-bubble/error-bubble.d.ts +1 -1
- package/components/error-bubble/error-bubble.js +7 -9
- package/components/error-message/error-message.d.ts +1 -1
- package/components/error-message/error-message.js +8 -10
- package/components/footer/footer.js +205 -61
- package/components/global/create-stateful-context.d.ts +1 -1
- package/components/global/create-stateful-context.js +73 -18
- package/components/global/focus-sensor-hoc.js +2 -2
- package/components/global/get-uid.js +1 -1
- package/components/global/react-dom-renderer.d.ts +1 -1
- package/components/global/react-dom-renderer.js +2 -2
- package/components/global/rerender-hoc.js +23 -6
- package/components/global/theme.js +3 -2
- package/components/global/use-event-callback.js +37 -13
- package/components/grid/col.d.ts +1 -1
- package/components/grid/col.js +3 -3
- package/components/grid/grid.d.ts +1 -1
- package/components/grid/grid.js +3 -6
- package/components/grid/row.d.ts +1 -1
- package/components/grid/row.js +3 -3
- package/components/group/group.d.ts +1 -1
- package/components/group/group.js +3 -6
- package/components/header/header-icon.d.ts +1 -1
- package/components/header/header-icon.js +3 -2
- package/components/header/header.d.ts +1 -1
- package/components/header/header.js +7 -12
- package/components/header/links.d.ts +1 -1
- package/components/header/links.js +45 -10
- package/components/header/logo.d.ts +1 -1
- package/components/header/logo.js +4 -3
- package/components/header/profile.js +17 -16
- package/components/header/services-link.d.ts +1 -1
- package/components/header/services-link.js +1 -1
- package/components/header/services.d.ts +1 -1
- package/components/header/services.js +35 -16
- package/components/header/smart-profile.d.ts +1 -1
- package/components/header/smart-profile.js +6 -5
- package/components/header/smart-services.d.ts +1 -1
- package/components/header/smart-services.js +3 -2
- package/components/header/tray.d.ts +1 -1
- package/components/header/tray.js +3 -3
- package/components/heading/heading.js +188 -44
- package/components/i18n/i18n-context.js +51 -13
- package/components/icon/icon-svg.d.ts +1 -1
- package/components/icon/icon-svg.js +2 -1
- package/components/icon/icon.d.ts +1 -1
- package/components/icon/icon.js +6 -5
- package/components/icon/index.js +2 -1
- package/components/input/input.d.ts +1 -1
- package/components/input/input.js +2 -1
- package/components/island/adaptive-island-hoc.js +4 -4
- package/components/island/content.d.ts +1 -1
- package/components/island/content.js +36 -17
- package/components/island/header.d.ts +1 -1
- package/components/island/header.js +32 -14
- package/components/island/island.d.ts +1 -1
- package/components/island/island.js +3 -5
- package/components/link/clickable-link.d.ts +1 -1
- package/components/link/clickable-link.js +2 -2
- package/components/link/link.js +4 -4
- package/components/list/list-custom.d.ts +1 -1
- package/components/list/list-custom.js +2 -2
- package/components/list/list-hint.d.ts +1 -1
- package/components/list/list-hint.js +3 -7
- package/components/list/list-item.d.ts +1 -1
- package/components/list/list-item.js +23 -26
- package/components/list/list-separator.d.ts +1 -1
- package/components/list/list-separator.js +3 -3
- package/components/list/list-title.d.ts +1 -1
- package/components/list/list-title.js +7 -7
- package/components/list/list-users-groups-source.js +6 -5
- package/components/list/list.d.ts +6 -6
- package/components/list/list.js +33 -31
- package/components/loader/loader.d.ts +1 -1
- package/components/loader/loader.js +8 -14
- package/components/loader-inline/loader-inline.d.ts +1 -1
- package/components/loader-inline/loader-inline.js +4 -7
- package/components/loader-screen/loader-screen.d.ts +1 -1
- package/components/loader-screen/loader-screen.js +3 -6
- package/components/login-dialog/login-dialog.d.ts +1 -1
- package/components/login-dialog/login-dialog.js +10 -9
- package/components/login-dialog/service.js +4 -3
- package/components/markdown/markdown.d.ts +1 -1
- package/components/markdown/markdown.js +3 -6
- package/components/message/message.d.ts +1 -1
- package/components/message/message.js +13 -15
- package/components/old-browsers-message/white-list.js +2 -2
- package/components/pager/pager.d.ts +5 -5
- package/components/pager/pager.js +28 -27
- package/components/panel/panel.d.ts +1 -1
- package/components/panel/panel.js +3 -6
- package/components/popup/popup.d.ts +2 -2
- package/components/popup/popup.js +14 -11
- package/components/popup/popup.target.js +68 -16
- package/components/popup-menu/popup-menu.d.ts +1 -1
- package/components/popup-menu/popup-menu.js +7 -9
- package/components/progress-bar/progress-bar.d.ts +1 -1
- package/components/progress-bar/progress-bar.js +4 -7
- package/components/query-assist/query-assist-suggestions.d.ts +1 -1
- package/components/query-assist/query-assist-suggestions.js +5 -4
- package/components/query-assist/query-assist.d.ts +2 -2
- package/components/query-assist/query-assist.js +37 -34
- package/components/radio/radio-item.d.ts +1 -1
- package/components/radio/radio-item.js +40 -20
- package/components/radio/radio.d.ts +1 -1
- package/components/radio/radio.js +3 -5
- package/components/scrollable-section/scrollable-section.d.ts +1 -1
- package/components/scrollable-section/scrollable-section.js +100 -38
- package/components/select/select-filter.d.ts +1 -1
- package/components/select/select-filter.js +5 -4
- package/components/select/select-popup.d.ts +7 -7
- package/components/select/select-popup.js +26 -25
- package/components/select/select.d.ts +3 -3
- package/components/select/select.js +52 -52
- package/components/shortcuts/shortcuts-hoc.js +3 -3
- package/components/slider/slider.js +591 -196
- package/components/storage/storage-local.js +2 -1
- package/components/storage/storage.js +2 -1
- package/components/style.css +1 -1
- package/components/tab-trap/tab-trap.js +247 -102
- package/components/table/cell.d.ts +1 -1
- package/components/table/cell.js +2 -2
- package/components/table/disable-hover-hoc.js +3 -3
- package/components/table/header-cell.d.ts +1 -1
- package/components/table/header-cell.js +7 -6
- package/components/table/header.d.ts +2 -2
- package/components/table/header.js +14 -13
- package/components/table/multitable.d.ts +1 -1
- package/components/table/multitable.js +3 -3
- package/components/table/row-with-focus-sensor.d.ts +1 -1
- package/components/table/row-with-focus-sensor.js +3 -2
- package/components/table/row.d.ts +1 -1
- package/components/table/row.js +51 -24
- package/components/table/selection-shortcuts-hoc.js +2 -2
- package/components/table/simple-table.d.ts +1 -1
- package/components/table/simple-table.js +4 -3
- package/components/table/smart-table.d.ts +1 -1
- package/components/table/smart-table.js +4 -3
- package/components/table/table.d.ts +2 -2
- package/components/table/table.js +21 -23
- package/components/tabs/collapsible-more.d.ts +3 -3
- package/components/tabs/collapsible-more.js +253 -83
- package/components/tabs/collapsible-tab.d.ts +1 -1
- package/components/tabs/collapsible-tab.js +4 -3
- package/components/tabs/collapsible-tabs.d.ts +2 -2
- package/components/tabs/collapsible-tabs.js +450 -188
- package/components/tabs/dumb-tabs.d.ts +2 -2
- package/components/tabs/dumb-tabs.js +10 -9
- package/components/tabs/smart-tabs.d.ts +1 -1
- package/components/tabs/smart-tabs.js +6 -5
- package/components/tabs/tab-link.d.ts +1 -1
- package/components/tabs/tab-link.js +2 -1
- package/components/tabs/tab.d.ts +1 -1
- package/components/tabs/tab.js +2 -2
- package/components/tabs/tabs.js +5 -4
- package/components/tag/tag.d.ts +5 -5
- package/components/tag/tag.js +14 -13
- package/components/tags-input/tags-input.d.ts +1 -1
- package/components/tags-input/tags-input.js +10 -9
- package/components/tags-list/tags-list.d.ts +2 -2
- package/components/tags-list/tags-list.js +4 -3
- package/components/text/text.d.ts +1 -1
- package/components/text/text.js +2 -2
- package/components/toggle/toggle.d.ts +1 -1
- package/components/toggle/toggle.js +12 -11
- package/components/tooltip/tooltip.d.ts +1 -1
- package/components/tooltip/tooltip.js +7 -6
- package/components/upload/upload.js +10 -9
- package/components/user-agreement/service.js +11 -10
- package/components/user-agreement/user-agreement.d.ts +1 -1
- package/components/user-agreement/user-agreement.js +19 -18
- package/components/user-card/card.d.ts +1 -1
- package/components/user-card/card.js +3 -2
- package/components/user-card/smart-user-card-tooltip.d.ts +2 -2
- package/components/user-card/smart-user-card-tooltip.js +7 -6
- package/components/user-card/tooltip.d.ts +2 -2
- package/components/user-card/tooltip.js +7 -6
- package/components/user-card/user-card.js +4 -3
- package/package.json +3 -9
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
1
|
import { PureComponent } from 'react';
|
|
3
2
|
import classNames from 'classnames';
|
|
4
3
|
import searchIcon from '@jetbrains/icons/search';
|
|
@@ -22,10 +21,12 @@ import '../global/controls-height.js';
|
|
|
22
21
|
import { createComposedRef } from '../global/compose-refs.js';
|
|
23
22
|
import { DEFAULT_DIRECTIONS } from '../popup/popup.consts.js';
|
|
24
23
|
import { s as styles, S as SelectFilter } from '../_helpers/select-filter.js';
|
|
24
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
25
25
|
import { ControlsHeight } from '../global/configuration.js';
|
|
26
26
|
import 'util-deprecate';
|
|
27
27
|
import '../icon/icon.constants.js';
|
|
28
28
|
import '../_helpers/icon-svg.js';
|
|
29
|
+
import 'react-compiler-runtime';
|
|
29
30
|
import 'react-dom';
|
|
30
31
|
import '../global/schedule-raf.js';
|
|
31
32
|
import '../global/data-tests.js';
|
|
@@ -39,9 +40,9 @@ import '../global/create-stateful-context.js';
|
|
|
39
40
|
import '../list/list-item.js';
|
|
40
41
|
import '../avatar/avatar.js';
|
|
41
42
|
import '../global/url.js';
|
|
42
|
-
import '../_helpers/avatar-info.js';
|
|
43
|
-
import '../avatar/avatar-size.js';
|
|
44
43
|
import '../avatar/fallback-avatar.js';
|
|
44
|
+
import '../avatar/avatar-size.js';
|
|
45
|
+
import '../_helpers/avatar-info.js';
|
|
45
46
|
import '../checkbox/checkbox.js';
|
|
46
47
|
import '@jetbrains/icons/checkmark-12px';
|
|
47
48
|
import '@jetbrains/icons/remove-12px';
|
|
@@ -49,9 +50,9 @@ import '../control-help/control-help.js';
|
|
|
49
50
|
import '../link/link.js';
|
|
50
51
|
import '../link/clickable-link.js';
|
|
51
52
|
import '../_helpers/link.js';
|
|
52
|
-
import '../_helpers/list.js';
|
|
53
53
|
import '../list/consts.js';
|
|
54
54
|
import '../list/list.classes.js';
|
|
55
|
+
import '../_helpers/list.js';
|
|
55
56
|
import '../list/list-custom.js';
|
|
56
57
|
import '../global/get-event-key.js';
|
|
57
58
|
import '../list/list-title.js';
|
|
@@ -227,21 +228,21 @@ class SelectPopup extends PureComponent {
|
|
|
227
228
|
getFilter() {
|
|
228
229
|
if (this.props.filter || this.props.tags) {
|
|
229
230
|
var _this$props$filterIco;
|
|
230
|
-
return jsxs("div", {
|
|
231
|
+
return /*#__PURE__*/jsxs("div", {
|
|
231
232
|
className: styles.filterWrapper,
|
|
232
|
-
"data-test":
|
|
233
|
-
children: [!this.props.tags && jsx(Icon, {
|
|
233
|
+
"data-test": "ring-select-popup-filter",
|
|
234
|
+
children: [!this.props.tags && /*#__PURE__*/jsx(Icon, {
|
|
234
235
|
glyph: (_this$props$filterIco = this.props.filterIcon) !== null && _this$props$filterIco !== void 0 ? _this$props$filterIco : searchIcon,
|
|
235
236
|
className: styles.filterIcon,
|
|
236
|
-
"data-test-custom":
|
|
237
|
-
}), jsx(FilterWithShortcuts, {
|
|
237
|
+
"data-test-custom": "ring-select-popup-filter-icon"
|
|
238
|
+
}), /*#__PURE__*/jsx(FilterWithShortcuts, {
|
|
238
239
|
rgShortcutsOptions: this.state.popupFilterShortcutsOptions,
|
|
239
240
|
rgShortcutsMap: this.popupFilterShortcutsMap,
|
|
240
241
|
value: this.props.filterValue,
|
|
241
242
|
inputRef: this.composedFilterRef(this.filterRef, this.props.filterRef),
|
|
242
243
|
onBlur: this.popupFilterOnBlur,
|
|
243
244
|
onFocus: this.onFilterFocus,
|
|
244
|
-
className:
|
|
245
|
+
className: "ring-js-shortcuts",
|
|
245
246
|
inputClassName: classNames({
|
|
246
247
|
[styles.filterWithTagsInput]: this.props.tags
|
|
247
248
|
}),
|
|
@@ -250,7 +251,7 @@ class SelectPopup extends PureComponent {
|
|
|
250
251
|
onChange: this.props.onFilter,
|
|
251
252
|
onClick: this.onClickHandler,
|
|
252
253
|
onClear: this.props.tags ? undefined : this.props.onClear,
|
|
253
|
-
"data-test-custom":
|
|
254
|
+
"data-test-custom": "ring-select-popup-filter-input",
|
|
254
255
|
listId: this.props.listId,
|
|
255
256
|
enableShortcuts: Object.keys(this.popupFilterShortcutsMap)
|
|
256
257
|
})]
|
|
@@ -273,8 +274,8 @@ class SelectPopup extends PureComponent {
|
|
|
273
274
|
return undefined;
|
|
274
275
|
}
|
|
275
276
|
getTags() {
|
|
276
|
-
return Array.isArray(this.props.selected) && jsx("div", {
|
|
277
|
-
children: jsx(TagsList, {
|
|
277
|
+
return Array.isArray(this.props.selected) && /*#__PURE__*/jsx("div", {
|
|
278
|
+
children: /*#__PURE__*/jsx(TagsList, {
|
|
278
279
|
tags: this.props.selected,
|
|
279
280
|
activeIndex: this.state.tagsActiveIndex,
|
|
280
281
|
handleRemove: this.handleRemoveTag,
|
|
@@ -289,7 +290,7 @@ class SelectPopup extends PureComponent {
|
|
|
289
290
|
const classes = classNames([styles.filterWithTags, {
|
|
290
291
|
[styles.filterWithTagsFocused]: !this.state.popupFilterShortcutsOptions.disabled
|
|
291
292
|
}]);
|
|
292
|
-
return jsxs("div", {
|
|
293
|
+
return /*#__PURE__*/jsxs("div", {
|
|
293
294
|
className: classes,
|
|
294
295
|
children: [this.getTags(), this.getFilter()]
|
|
295
296
|
});
|
|
@@ -303,11 +304,11 @@ class SelectPopup extends PureComponent {
|
|
|
303
304
|
data
|
|
304
305
|
} = this.props;
|
|
305
306
|
const hasMoreThanOneItem = data.length > 1;
|
|
306
|
-
return (loading || message) && jsxs("div", {
|
|
307
|
+
return (loading || message) && /*#__PURE__*/jsxs("div", {
|
|
307
308
|
className: classNames(styles.bottomLine, {
|
|
308
309
|
[styles.bottomLineOverItem]: hasMoreThanOneItem
|
|
309
310
|
}),
|
|
310
|
-
children: [loading && jsx(LoaderInline, {}), message && jsx("div", {
|
|
311
|
+
children: [loading && /*#__PURE__*/jsx(LoaderInline, {}), message && /*#__PURE__*/jsx("div", {
|
|
311
312
|
className: styles.message,
|
|
312
313
|
children: message
|
|
313
314
|
})]
|
|
@@ -330,7 +331,7 @@ class SelectPopup extends PureComponent {
|
|
|
330
331
|
if (this.props.toolbar) {
|
|
331
332
|
maxHeight -= TOOLBAR_HEIGHT;
|
|
332
333
|
}
|
|
333
|
-
return jsx(List, {
|
|
334
|
+
return /*#__PURE__*/jsx(List, {
|
|
334
335
|
id: this.props.listId,
|
|
335
336
|
maxHeight: maxHeight,
|
|
336
337
|
data: this.props.data,
|
|
@@ -361,13 +362,13 @@ class SelectPopup extends PureComponent {
|
|
|
361
362
|
getSelectAll = () => {
|
|
362
363
|
const multiple = this.props.multiple;
|
|
363
364
|
const activeFilters = this.props.data.filter(item => !item.disabled);
|
|
364
|
-
return Array.isArray(this.props.selected) && jsxs("div", {
|
|
365
|
+
return Array.isArray(this.props.selected) && /*#__PURE__*/jsxs("div", {
|
|
365
366
|
className: styles.selectAll,
|
|
366
|
-
children: [activeFilters.length === 0 ? jsx("span", {}) : jsx(Button, {
|
|
367
|
+
children: [activeFilters.length === 0 ? /*#__PURE__*/jsx("span", {}) : /*#__PURE__*/jsx(Button, {
|
|
367
368
|
inline: true,
|
|
368
369
|
onClick: this.handleSelectAll,
|
|
369
370
|
children: activeFilters.length !== this.props.selected.length ? multiple.selectAllLabel || 'Select all' : multiple.deselectAllLabel || 'Deselect all'
|
|
370
|
-
}), multiple.renderSelectedItemsDescription?.(this.props.selected, activeFilters.length) || jsx(Text, {
|
|
371
|
+
}), multiple.renderSelectedItemsDescription?.(this.props.selected, activeFilters.length) || /*#__PURE__*/jsx(Text, {
|
|
371
372
|
info: true,
|
|
372
373
|
children: `${this.props.selected.length} selected`
|
|
373
374
|
})]
|
|
@@ -446,14 +447,14 @@ class SelectPopup extends PureComponent {
|
|
|
446
447
|
filter
|
|
447
448
|
} = this.props;
|
|
448
449
|
const classes = classNames(styles.popup, className);
|
|
449
|
-
return jsx(PopupTargetContext.Consumer, {
|
|
450
|
+
return /*#__PURE__*/jsx(PopupTargetContext.Consumer, {
|
|
450
451
|
children: ringPopupTarget => {
|
|
451
452
|
const filterWithTags = this.getFilterWithTags();
|
|
452
453
|
const selectAll = multiple && typeof multiple === 'object' && !multiple.limit && multiple.selectAll && this.getSelectAll();
|
|
453
454
|
const list = this.getList(this.props.ringPopupTarget || ringPopupTarget);
|
|
454
455
|
const bottomLine = this.getBottomLine();
|
|
455
456
|
const hasContent = filterWithTags || selectAll || list || bottomLine || toolbar || topbar;
|
|
456
|
-
return jsx(Popup, {
|
|
457
|
+
return /*#__PURE__*/jsx(Popup, {
|
|
457
458
|
trapFocus: false,
|
|
458
459
|
ref: this.popupRef,
|
|
459
460
|
hidden: hidden || !hasContent,
|
|
@@ -473,12 +474,12 @@ class SelectPopup extends PureComponent {
|
|
|
473
474
|
autoCorrectTopOverflow: false,
|
|
474
475
|
style: style,
|
|
475
476
|
largeBorderRadius: true,
|
|
476
|
-
children: jsxs("div", {
|
|
477
|
+
children: /*#__PURE__*/jsxs("div", {
|
|
477
478
|
dir: dir,
|
|
478
|
-
children: [!hidden && filter && jsx(Shortcuts, {
|
|
479
|
+
children: [!hidden && filter && /*#__PURE__*/jsx(Shortcuts, {
|
|
479
480
|
map: this.shortcutsMap,
|
|
480
481
|
scope: this.shortcutsScope
|
|
481
|
-
}), topbar, hidden ? jsx("div", {}) : filterWithTags, selectAll, list, bottomLine, toolbar]
|
|
482
|
+
}), topbar, hidden ? /*#__PURE__*/jsx("div", {}) : filterWithTags, selectAll, list, bottomLine, toolbar]
|
|
482
483
|
})
|
|
483
484
|
});
|
|
484
485
|
}
|
|
@@ -235,7 +235,7 @@ export default class Select<T = unknown> extends Component<SelectProps<T>, Selec
|
|
|
235
235
|
_showPopup: () => void;
|
|
236
236
|
_hidePopup: (tryFocusAnchor?: boolean) => void;
|
|
237
237
|
addHandler: () => void;
|
|
238
|
-
getToolbar():
|
|
238
|
+
getToolbar(): React.JSX.Element | null;
|
|
239
239
|
getTopbar(): ReactNode;
|
|
240
240
|
getLowerCaseLabel: typeof getLowerCaseLabel;
|
|
241
241
|
doesLabelMatch: typeof doesLabelMatch;
|
|
@@ -276,8 +276,8 @@ export default class Select<T = unknown> extends Component<SelectProps<T>, Selec
|
|
|
276
276
|
'shift+down': typeof noop;
|
|
277
277
|
space: typeof noop;
|
|
278
278
|
};
|
|
279
|
-
renderSelect(activeItemId: string | undefined):
|
|
280
|
-
render():
|
|
279
|
+
renderSelect(activeItemId: string | undefined): React.JSX.Element;
|
|
280
|
+
render(): React.JSX.Element;
|
|
281
281
|
}
|
|
282
282
|
export type SingleSelectAttrs<T = unknown> = React.JSX.LibraryManagedAttributes<typeof Select, SingleSelectProps<T>>;
|
|
283
283
|
export type MultipleSelectAttrs<T = unknown> = React.JSX.LibraryManagedAttributes<typeof Select, MultipleSelectProps<T>>;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { jsx, jsxs, Fragment as Fragment$1 } from 'react/jsx-runtime';
|
|
2
1
|
import { Component, Fragment } from 'react';
|
|
3
2
|
import classNames from 'classnames';
|
|
4
3
|
import chevronDownIcon from '@jetbrains/icons/chevron-down';
|
|
@@ -7,6 +6,7 @@ import { dequal } from 'dequal';
|
|
|
7
6
|
import joinDataTestAttributes from '../global/data-tests.js';
|
|
8
7
|
import { isArray } from '../global/typescript-utils.js';
|
|
9
8
|
import { A as Anchor } from '../_helpers/anchor.js';
|
|
9
|
+
import { jsx, jsxs, Fragment as Fragment$1 } from 'react/jsx-runtime';
|
|
10
10
|
import Avatar from '../avatar/avatar.js';
|
|
11
11
|
import Popup from '../popup/popup.js';
|
|
12
12
|
import List, { ActiveItemContext } from '../list/list.js';
|
|
@@ -24,11 +24,12 @@ import { ControlsHeightContext } from '../global/controls-height.js';
|
|
|
24
24
|
import SelectPopup from './select-popup.js';
|
|
25
25
|
import { ControlsHeight } from '../global/configuration.js';
|
|
26
26
|
import { Size as Size$1 } from '../avatar/avatar-size.js';
|
|
27
|
+
import 'react-compiler-runtime';
|
|
27
28
|
import 'util-deprecate';
|
|
28
29
|
import '../global/url.js';
|
|
29
30
|
import '../global/dom.js';
|
|
30
|
-
import '../_helpers/avatar-info.js';
|
|
31
31
|
import '../avatar/fallback-avatar.js';
|
|
32
|
+
import '../_helpers/avatar-info.js';
|
|
32
33
|
import 'react-dom';
|
|
33
34
|
import '../global/schedule-raf.js';
|
|
34
35
|
import '../tab-trap/tab-trap.js';
|
|
@@ -57,9 +58,9 @@ import '../control-help/control-help.js';
|
|
|
57
58
|
import '../link/link.js';
|
|
58
59
|
import '../link/clickable-link.js';
|
|
59
60
|
import '../_helpers/link.js';
|
|
60
|
-
import '../_helpers/list.js';
|
|
61
61
|
import '../list/consts.js';
|
|
62
62
|
import '../list/list.classes.js';
|
|
63
|
+
import '../_helpers/list.js';
|
|
63
64
|
import '../list/list-custom.js';
|
|
64
65
|
import '../global/get-event-key.js';
|
|
65
66
|
import '../list/list-title.js';
|
|
@@ -79,9 +80,6 @@ import '../_helpers/select-filter.js';
|
|
|
79
80
|
|
|
80
81
|
var styles = {"select":"ring-select-select","value":"ring-select-value ring-global-ellipsis ring-global-font","icons":"ring-select-icons","toolbar":"ring-select-toolbar","button":"ring-select-button","buttonSpaced":"ring-select-buttonSpaced","inputMode":"ring-select-inputMode","heightS":"ring-select-heightS","heightL":"ring-select-heightL","selectedIcon":"ring-select-selectedIcon ring-global-resetButton","clearIcon":"ring-select-clearIcon","sizeS":"ring-select-sizeS","sizeM":"ring-select-sizeM","sizeL":"ring-select-sizeL","sizeFULL":"ring-select-sizeFULL","sizeAUTO":"ring-select-sizeAUTO","buttonMode":"ring-select-buttonMode","open":"ring-select-open","buttonContainer":"ring-select-buttonContainer","buttonValue":"ring-select-buttonValue ring-global-ellipsis","buttonValueOpen":"ring-select-buttonValueOpen","buttonValueEmpty":"ring-select-buttonValueEmpty","label":"ring-select-label","disabled":"ring-select-disabled","avatar":"ring-select-avatar","popup":"ring-select-popup","chevron":"ring-select-chevron","chevronIcon":"ring-select-chevronIcon"};
|
|
81
82
|
|
|
82
|
-
/**
|
|
83
|
-
* @name Select
|
|
84
|
-
*/
|
|
85
83
|
function noop() {}
|
|
86
84
|
/**
|
|
87
85
|
* @enum {number}
|
|
@@ -506,10 +504,10 @@ class Select extends Component {
|
|
|
506
504
|
separator: reset.separator,
|
|
507
505
|
key: reset.label,
|
|
508
506
|
rgItemType: List.ListProps.Type.CUSTOM,
|
|
509
|
-
template: jsx(Button, {
|
|
507
|
+
template: /*#__PURE__*/jsx(Button, {
|
|
510
508
|
inline: true,
|
|
511
509
|
className: styles.button,
|
|
512
|
-
"data-test":
|
|
510
|
+
"data-test": "ring-select-reset-tags-button",
|
|
513
511
|
height: ControlsHeight.S,
|
|
514
512
|
children: reset.label
|
|
515
513
|
}),
|
|
@@ -539,7 +537,7 @@ class Select extends Component {
|
|
|
539
537
|
// eslint-disable-next-line no-underscore-dangle
|
|
540
538
|
const _shownData = this._prependResetOption(shownData);
|
|
541
539
|
const activeIndex = this._getActiveIndex(_shownData);
|
|
542
|
-
return jsx(I18nContext.Consumer, {
|
|
540
|
+
return /*#__PURE__*/jsx(I18nContext.Consumer, {
|
|
543
541
|
children: ({
|
|
544
542
|
translate
|
|
545
543
|
}) => {
|
|
@@ -551,7 +549,7 @@ class Select extends Component {
|
|
|
551
549
|
var _this$props$notFoundM;
|
|
552
550
|
message = (_this$props$notFoundM = this.props.notFoundMessage) !== null && _this$props$notFoundM !== void 0 ? _this$props$notFoundM : translate('noOptionsFound');
|
|
553
551
|
}
|
|
554
|
-
return jsx(SelectPopup, {
|
|
552
|
+
return /*#__PURE__*/jsx(SelectPopup, {
|
|
555
553
|
data: _shownData,
|
|
556
554
|
message: message,
|
|
557
555
|
toolbar: showPopup && this.getToolbar(),
|
|
@@ -568,7 +566,8 @@ class Select extends Component {
|
|
|
568
566
|
top: this.props.top,
|
|
569
567
|
left: this.props.left,
|
|
570
568
|
offset: this.props.offset,
|
|
571
|
-
filter: this.isInputMode() ? false : this.props.filter
|
|
569
|
+
filter: this.isInputMode() ? false : this.props.filter // disable popup filter in INPUT mode
|
|
570
|
+
,
|
|
572
571
|
filterIcon: this.props.filterIcon,
|
|
573
572
|
filterRef: this.props.filterRef,
|
|
574
573
|
multiple: this.props.multiple,
|
|
@@ -638,21 +637,21 @@ class Select extends Component {
|
|
|
638
637
|
if (!isToolbarHasElements) {
|
|
639
638
|
return null;
|
|
640
639
|
}
|
|
641
|
-
return jsxs("div", {
|
|
640
|
+
return /*#__PURE__*/jsxs("div", {
|
|
642
641
|
className: classNames({
|
|
643
642
|
[styles.toolbar]: Boolean(this.state.addButton || renderBottomToolbar)
|
|
644
643
|
}),
|
|
645
|
-
"data-test":
|
|
646
|
-
children: [renderBottomToolbar && renderBottomToolbar(), this.state.addButton && jsx(Button, {
|
|
644
|
+
"data-test": "ring-select-toolbar",
|
|
645
|
+
children: [renderBottomToolbar && renderBottomToolbar(), this.state.addButton && /*#__PURE__*/jsx(Button, {
|
|
647
646
|
inline: true,
|
|
648
647
|
delayed: delayed,
|
|
649
648
|
className: classNames(styles.button, styles.buttonSpaced),
|
|
650
649
|
onClick: this.addHandler,
|
|
651
|
-
"data-test":
|
|
650
|
+
"data-test": "ring-select-toolbar-button",
|
|
652
651
|
children: prefix ? `${prefix} ${label}` : label
|
|
653
|
-
}), hint && jsx(List.ListHint, {
|
|
652
|
+
}), hint && /*#__PURE__*/jsx(List.ListHint, {
|
|
654
653
|
label: hint,
|
|
655
|
-
"data-test":
|
|
654
|
+
"data-test": "ring-select-toolbar-hint"
|
|
656
655
|
})]
|
|
657
656
|
});
|
|
658
657
|
}
|
|
@@ -939,9 +938,9 @@ class Select extends Component {
|
|
|
939
938
|
const icons = [];
|
|
940
939
|
const height = this.getHeight();
|
|
941
940
|
if (!Array.isArray(selected) && selected?.icon) {
|
|
942
|
-
icons.push(jsx("button", {
|
|
943
|
-
title:
|
|
944
|
-
type:
|
|
941
|
+
icons.push(/*#__PURE__*/jsx("button", {
|
|
942
|
+
title: "Toggle options popup",
|
|
943
|
+
type: "button",
|
|
945
944
|
className: styles.selectedIcon,
|
|
946
945
|
disabled: this.props.disabled,
|
|
947
946
|
onClick: this._clickHandler,
|
|
@@ -951,9 +950,9 @@ class Select extends Component {
|
|
|
951
950
|
}, 'selected'));
|
|
952
951
|
}
|
|
953
952
|
if (clear && !disabled && !this._selectionIsEmpty()) {
|
|
954
|
-
icons.push(jsx(Button, {
|
|
955
|
-
title:
|
|
956
|
-
"data-test":
|
|
953
|
+
icons.push(/*#__PURE__*/jsx(Button, {
|
|
954
|
+
title: "Clear selection",
|
|
955
|
+
"data-test": "ring-clear-select",
|
|
957
956
|
className: styles.clearIcon,
|
|
958
957
|
disabled: this.props.disabled,
|
|
959
958
|
onClick: this.clear,
|
|
@@ -962,8 +961,8 @@ class Select extends Component {
|
|
|
962
961
|
}, 'close'));
|
|
963
962
|
}
|
|
964
963
|
if (!hideArrow) {
|
|
965
|
-
icons.push(jsx(Button, {
|
|
966
|
-
title:
|
|
964
|
+
icons.push(/*#__PURE__*/jsx(Button, {
|
|
965
|
+
title: "Toggle options popup",
|
|
967
966
|
className: styles.chevron,
|
|
968
967
|
iconClassName: styles.chevronIcon,
|
|
969
968
|
icon: chevronDownIcon,
|
|
@@ -975,7 +974,7 @@ class Select extends Component {
|
|
|
975
974
|
return icons;
|
|
976
975
|
}
|
|
977
976
|
_getAvatar() {
|
|
978
|
-
return !Array.isArray(this.state.selected) && (this.state.selected?.avatar || this.state.selected?.showGeneratedAvatar) && jsx(Avatar, {
|
|
977
|
+
return !Array.isArray(this.state.selected) && (this.state.selected?.avatar || this.state.selected?.showGeneratedAvatar) && /*#__PURE__*/jsx(Avatar, {
|
|
979
978
|
className: styles.avatar,
|
|
980
979
|
url: this.state.selected.avatar,
|
|
981
980
|
username: this.state.selected.username,
|
|
@@ -1019,7 +1018,7 @@ class Select extends Component {
|
|
|
1019
1018
|
if (this.props.type === Type.INPUT || this.props.type === Type.BUTTON) {
|
|
1020
1019
|
const icons = this._getIcons();
|
|
1021
1020
|
style = getStyle(icons.length);
|
|
1022
|
-
iconsNode = jsx("div", {
|
|
1021
|
+
iconsNode = /*#__PURE__*/jsx("div", {
|
|
1023
1022
|
className: styles.icons,
|
|
1024
1023
|
children: icons
|
|
1025
1024
|
});
|
|
@@ -1034,22 +1033,22 @@ class Select extends Component {
|
|
|
1034
1033
|
switch (this.props.type) {
|
|
1035
1034
|
case Type.INPUT_WITHOUT_CONTROLS:
|
|
1036
1035
|
case Type.INPUT:
|
|
1037
|
-
return jsxs(Fragment$1, {
|
|
1038
|
-
children: [jsxs("div", {
|
|
1036
|
+
return /*#__PURE__*/jsxs(Fragment$1, {
|
|
1037
|
+
children: [/*#__PURE__*/jsxs("div", {
|
|
1039
1038
|
ref: this.nodeRef,
|
|
1040
1039
|
className: classNames(classes, styles.inputMode),
|
|
1041
1040
|
"data-test": joinDataTestAttributes('ring-select', dataTest),
|
|
1042
|
-
role:
|
|
1041
|
+
role: "presentation" // has interactive elements inside
|
|
1043
1042
|
,
|
|
1044
1043
|
onMouseDown: this.mouseDownHandler,
|
|
1045
1044
|
onMouseUp: this.mouseUpHandler,
|
|
1046
|
-
children: [shortcutsEnabled && jsx(Shortcuts, {
|
|
1045
|
+
children: [shortcutsEnabled && /*#__PURE__*/jsx(Shortcuts, {
|
|
1047
1046
|
map: this.getShortcutsMap(),
|
|
1048
1047
|
scope: this.shortcutsScope
|
|
1049
|
-
}), jsx(Input, {
|
|
1048
|
+
}), /*#__PURE__*/jsx(Input, {
|
|
1050
1049
|
...ariaProps,
|
|
1051
1050
|
height: this.props.height,
|
|
1052
|
-
autoComplete:
|
|
1051
|
+
autoComplete: "off",
|
|
1053
1052
|
id: this.props.id,
|
|
1054
1053
|
onClick: this._clickHandler,
|
|
1055
1054
|
inputRef: this.composedFilterRef(this.filterRef, this.props.filterRef),
|
|
@@ -1060,13 +1059,14 @@ class Select extends Component {
|
|
|
1060
1059
|
size: Size.FULL,
|
|
1061
1060
|
onChange: this._filterChangeHandler,
|
|
1062
1061
|
onFocus: this._focusHandler,
|
|
1063
|
-
onBlur: this._blurHandler
|
|
1062
|
+
onBlur: this._blurHandler
|
|
1064
1063
|
// Input with error style without description
|
|
1064
|
+
,
|
|
1065
1065
|
error: this.props.error ? '' : null,
|
|
1066
1066
|
label: this.props.type === Type.INPUT ? this._getLabel() : null,
|
|
1067
1067
|
placeholder: this.props.inputPlaceholder,
|
|
1068
1068
|
onKeyDown: this.props.onKeyDown,
|
|
1069
|
-
"data-test":
|
|
1069
|
+
"data-test": "ring-select__focus",
|
|
1070
1070
|
enableShortcuts: shortcutsEnabled ? Object.keys({
|
|
1071
1071
|
...this.getShortcutsMap(),
|
|
1072
1072
|
...this._popup?.list?.shortcutsMap
|
|
@@ -1074,27 +1074,27 @@ class Select extends Component {
|
|
|
1074
1074
|
icon: this.props.filterIcon,
|
|
1075
1075
|
afterInput: iconsNode
|
|
1076
1076
|
}), this._renderPopup()]
|
|
1077
|
-
}), this.props.error && jsx("div", {
|
|
1077
|
+
}), this.props.error && /*#__PURE__*/jsx("div", {
|
|
1078
1078
|
className: classNames(inputStyles.errorText, inputStyles[`size${this.props.size}`]),
|
|
1079
1079
|
children: this.props.error
|
|
1080
1080
|
})]
|
|
1081
1081
|
});
|
|
1082
1082
|
case Type.BUTTON:
|
|
1083
|
-
return jsxs("div", {
|
|
1083
|
+
return /*#__PURE__*/jsxs("div", {
|
|
1084
1084
|
ref: this.nodeRef,
|
|
1085
1085
|
className: classNames(classes, styles.buttonMode),
|
|
1086
1086
|
"data-test": joinDataTestAttributes('ring-select', dataTest),
|
|
1087
|
-
children: [selectedLabel && jsx(ControlLabel, {
|
|
1087
|
+
children: [selectedLabel && /*#__PURE__*/jsx(ControlLabel, {
|
|
1088
1088
|
type: this.props.labelType,
|
|
1089
1089
|
disabled: this.props.disabled,
|
|
1090
1090
|
htmlFor: this.props.id,
|
|
1091
1091
|
children: selectedLabel
|
|
1092
|
-
}), shortcutsEnabled && jsx(Shortcuts, {
|
|
1092
|
+
}), shortcutsEnabled && /*#__PURE__*/jsx(Shortcuts, {
|
|
1093
1093
|
map: this.getShortcutsMap(),
|
|
1094
1094
|
scope: this.shortcutsScope
|
|
1095
|
-
}), jsxs("div", {
|
|
1095
|
+
}), /*#__PURE__*/jsxs("div", {
|
|
1096
1096
|
className: styles.buttonContainer,
|
|
1097
|
-
children: [jsxs(Button, {
|
|
1097
|
+
children: [/*#__PURE__*/jsxs(Button, {
|
|
1098
1098
|
...ariaProps,
|
|
1099
1099
|
height: this.props.height,
|
|
1100
1100
|
id: this.props.id,
|
|
@@ -1105,25 +1105,25 @@ class Select extends Component {
|
|
|
1105
1105
|
}),
|
|
1106
1106
|
disabled: this.props.disabled,
|
|
1107
1107
|
style: style,
|
|
1108
|
-
"data-test":
|
|
1108
|
+
"data-test": "ring-select__button ring-select__focus",
|
|
1109
1109
|
children: [this._getAvatar(), this._getPlaceholder()]
|
|
1110
1110
|
}), iconsNode]
|
|
1111
1111
|
}), this._renderPopup()]
|
|
1112
1112
|
});
|
|
1113
1113
|
case Type.INLINE:
|
|
1114
|
-
return jsxs("div", {
|
|
1114
|
+
return /*#__PURE__*/jsxs("div", {
|
|
1115
1115
|
className: classes,
|
|
1116
1116
|
ref: this.nodeRef,
|
|
1117
1117
|
"data-test": joinDataTestAttributes('ring-select', dataTest),
|
|
1118
|
-
children: [shortcutsEnabled && jsx(Shortcuts, {
|
|
1118
|
+
children: [shortcutsEnabled && /*#__PURE__*/jsx(Shortcuts, {
|
|
1119
1119
|
map: this.getShortcutsMap(),
|
|
1120
1120
|
scope: this.shortcutsScope
|
|
1121
|
-
}), jsx(Anchor, {
|
|
1121
|
+
}), /*#__PURE__*/jsx(Anchor, {
|
|
1122
1122
|
...ariaProps,
|
|
1123
1123
|
className: (_this$props$buttonCla = this.props.buttonClassName) !== null && _this$props$buttonCla !== void 0 ? _this$props$buttonCla : undefined,
|
|
1124
1124
|
id: this.props.id,
|
|
1125
1125
|
onClick: this._clickHandler,
|
|
1126
|
-
"data-test":
|
|
1126
|
+
"data-test": "ring-select__focus",
|
|
1127
1127
|
disabled: this.props.disabled,
|
|
1128
1128
|
active: this.state.showPopup,
|
|
1129
1129
|
children: this._getPlaceholder()
|
|
@@ -1131,8 +1131,8 @@ class Select extends Component {
|
|
|
1131
1131
|
});
|
|
1132
1132
|
default:
|
|
1133
1133
|
if (this.props.customAnchor) {
|
|
1134
|
-
return jsxs(Fragment, {
|
|
1135
|
-
children: [shortcutsEnabled && jsx(Shortcuts, {
|
|
1134
|
+
return /*#__PURE__*/jsxs(Fragment, {
|
|
1135
|
+
children: [shortcutsEnabled && /*#__PURE__*/jsx(Shortcuts, {
|
|
1136
1136
|
map: this.getShortcutsMap(),
|
|
1137
1137
|
scope: this.shortcutsScope
|
|
1138
1138
|
}), this.props.customAnchor({
|
|
@@ -1152,17 +1152,17 @@ class Select extends Component {
|
|
|
1152
1152
|
})]
|
|
1153
1153
|
});
|
|
1154
1154
|
}
|
|
1155
|
-
return jsx("span", {
|
|
1155
|
+
return /*#__PURE__*/jsx("span", {
|
|
1156
1156
|
id: this.props.id,
|
|
1157
1157
|
ref: this.nodeRef,
|
|
1158
|
-
"data-test":
|
|
1158
|
+
"data-test": "ring-select",
|
|
1159
1159
|
children: this._renderPopup()
|
|
1160
1160
|
});
|
|
1161
1161
|
}
|
|
1162
1162
|
}
|
|
1163
1163
|
render() {
|
|
1164
|
-
return jsx(ActiveItemContext.Provider, {
|
|
1165
|
-
children: jsx(ActiveItemContext.ValueContext.Consumer, {
|
|
1164
|
+
return /*#__PURE__*/jsx(ActiveItemContext.Provider, {
|
|
1165
|
+
children: /*#__PURE__*/jsx(ActiveItemContext.ValueContext.Consumer, {
|
|
1166
1166
|
children: activeItemId => this.renderSelect(activeItemId)
|
|
1167
1167
|
})
|
|
1168
1168
|
});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { jsx } from 'react/jsx-runtime';
|
|
2
1
|
import { Component } from 'react';
|
|
3
2
|
import getUID from '../global/get-uid.js';
|
|
4
3
|
import Shortcuts from './shortcuts.js';
|
|
4
|
+
import { jsx } from 'react/jsx-runtime';
|
|
5
5
|
import './core.js';
|
|
6
6
|
import 'combokeys';
|
|
7
7
|
import '../global/sniffer.js';
|
|
@@ -16,12 +16,12 @@ function shortcutsHOC(ComposedComponent) {
|
|
|
16
16
|
rgShortcutsMap,
|
|
17
17
|
...props
|
|
18
18
|
} = this.props;
|
|
19
|
-
return jsx(Shortcuts, {
|
|
19
|
+
return /*#__PURE__*/jsx(Shortcuts, {
|
|
20
20
|
scope: this._shortcutsScopeUid,
|
|
21
21
|
map: rgShortcutsMap,
|
|
22
22
|
options: rgShortcutsOptions,
|
|
23
23
|
disabled: rgShortcutsOptions.disabled,
|
|
24
|
-
children: jsx(ComposedComponent, {
|
|
24
|
+
children: /*#__PURE__*/jsx(ComposedComponent, {
|
|
25
25
|
...props
|
|
26
26
|
})
|
|
27
27
|
});
|