@jetbrains/ring-ui-built 7.0.62 → 7.0.64
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/card.js +4 -3
- package/components/_helpers/{dialog__body-scroll-preventer.js → dialog-body-scroll-preventer.js} +4 -4
- package/components/_helpers/input.js +8 -8
- package/components/_helpers/{select__filter.js → select-filter.js} +1 -1
- package/components/_helpers/services-link.js +3 -3
- package/components/_helpers/theme.js +2 -2
- package/components/alert/alert.d.ts +1 -1
- package/components/alert/alert.js +9 -8
- package/components/alert/container.d.ts +1 -1
- package/components/alert/container.js +2 -2
- package/components/alert-service/alert-service.d.ts +2 -2
- package/components/alert-service/alert-service.js +4 -4
- package/components/analytics/{analytics__custom-plugin.d.ts → analytics-custom-plugin.d.ts} +1 -1
- package/components/analytics/{analytics__custom-plugin.js → analytics-custom-plugin.js} +2 -2
- package/components/auth/{auth__core.d.ts → auth-core.d.ts} +9 -8
- package/components/auth/{auth__core.js → auth-core.js} +18 -22
- package/components/auth/auth.d.ts +2 -2
- package/components/auth/auth.js +8 -8
- package/components/auth/background-flow.d.ts +2 -2
- package/components/auth/background-flow.js +1 -3
- package/components/auth/down-notification.js +6 -6
- package/components/auth/iframe-flow.d.ts +3 -3
- package/components/auth/iframe-flow.js +9 -11
- package/components/auth/request-builder.d.ts +2 -1
- package/components/auth/request-builder.js +1 -2
- package/components/auth/storage.d.ts +3 -3
- package/components/auth/storage.js +9 -11
- package/components/auth/token-validator.d.ts +2 -1
- package/components/auth/token-validator.js +12 -3
- package/components/auth/window-flow.d.ts +3 -3
- package/components/auth/window-flow.js +5 -7
- package/components/auth-dialog/auth-dialog.js +9 -9
- package/components/auth-dialog-service/auth-dialog-service.d.ts +1 -1
- package/components/auth-dialog-service/auth-dialog-service.js +5 -5
- package/components/avatar/avatar-info.d.ts +1 -1
- package/components/avatar/avatar.d.ts +1 -1
- package/components/avatar/avatar.figma.js +1 -2
- package/components/avatar/avatar.js +16 -17
- package/components/avatar/fallback-avatar.js +17 -18
- package/components/avatar-stack/avatar-stack.d.ts +3 -3
- package/components/avatar-stack/avatar-stack.figma.js +1 -2
- package/components/avatar-stack/avatar-stack.js +12 -12
- package/components/banner/banner.js +4 -4
- package/components/breadcrumbs/breadcrumbs.d.ts +1 -1
- package/components/breadcrumbs/breadcrumbs.figma.js +1 -2
- package/components/button/{button__classes.d.ts → button.classes.d.ts} +1 -1
- package/components/button/button.classes.js +2 -0
- package/components/button/button.d.ts +4 -4
- package/components/button/button.figma.js +1 -2
- package/components/button/button.js +9 -9
- package/components/button-group/button-group.d.ts +1 -1
- package/components/button-group/button-group.js +1 -1
- package/components/button-group/caption.d.ts +1 -1
- package/components/button-set/button-set.d.ts +1 -1
- package/components/button-toolbar/button-toolbar.d.ts +1 -1
- package/components/caret/caret.js +24 -17
- package/components/checkbox/checkbox-group.figma.js +1 -2
- package/components/checkbox/checkbox.d.ts +1 -1
- package/components/checkbox/checkbox.figma.js +1 -2
- package/components/checkbox/checkbox.js +8 -8
- package/components/clipboard/clipboard.js +8 -8
- package/components/code/code.d.ts +1 -1
- package/components/code/code.js +3 -3
- package/components/collapse/collapse-content.d.ts +3 -3
- package/components/collapse/collapse-control.d.ts +2 -2
- package/components/collapse/collapse.d.ts +3 -3
- package/components/confirm/confirm.d.ts +1 -1
- package/components/confirm/confirm.js +8 -8
- package/components/confirm-service/confirm-service.d.ts +3 -3
- package/components/confirm-service/confirm-service.js +5 -5
- package/components/content-layout/content-layout.d.ts +1 -1
- package/components/content-layout/content-layout.js +2 -2
- package/components/content-layout/sidebar.d.ts +1 -1
- package/components/contenteditable/contenteditable.d.ts +1 -1
- package/components/contenteditable/contenteditable.js +2 -1
- package/components/control-help/control-help.d.ts +1 -1
- package/components/control-label/control-label.d.ts +1 -1
- package/components/data-list/data-list.d.ts +5 -5
- package/components/data-list/data-list.js +8 -8
- package/components/data-list/data-list.mock.d.ts +2 -2
- package/components/data-list/data-list.mock.js +24 -24
- package/components/data-list/item.d.ts +3 -3
- package/components/data-list/item.js +9 -9
- package/components/data-list/selection.d.ts +1 -1
- package/components/data-list/selection.js +8 -1
- package/components/data-list/title.d.ts +2 -2
- package/components/data-list/title.js +3 -3
- package/components/date-picker/consts.d.ts +1 -1
- package/components/date-picker/date-input.d.ts +1 -1
- package/components/date-picker/date-input.js +7 -7
- package/components/date-picker/date-picker.d.ts +5 -5
- package/components/date-picker/date-picker.js +27 -22
- package/components/date-picker/date-popup.d.ts +1 -1
- package/components/date-picker/date-popup.js +9 -8
- package/components/date-picker/day.d.ts +2 -2
- package/components/date-picker/day.js +4 -4
- package/components/date-picker/formats.js +1 -0
- package/components/date-picker/month-names.d.ts +1 -1
- package/components/date-picker/month-names.js +1 -1
- package/components/date-picker/month-slider.d.ts +2 -2
- package/components/date-picker/month-slider.js +1 -1
- package/components/date-picker/month.d.ts +1 -1
- package/components/date-picker/months.d.ts +1 -1
- package/components/date-picker/months.js +2 -2
- package/components/date-picker/years.d.ts +1 -1
- package/components/date-picker/years.js +2 -2
- package/components/dialog/{dialog__body-scroll-preventer.js → dialog-body-scroll-preventer.js} +1 -1
- package/components/dialog/dialog.d.ts +1 -1
- package/components/dialog/dialog.js +15 -15
- package/components/dropdown/anchor.d.ts +1 -1
- package/components/dropdown/anchor.js +4 -4
- package/components/dropdown/dropdown.d.ts +2 -2
- package/components/dropdown/dropdown.js +6 -6
- package/components/dropdown-menu/dropdown-menu.d.ts +5 -5
- package/components/dropdown-menu/dropdown-menu.js +11 -11
- package/components/editable-heading/editable-heading.d.ts +1 -1
- package/components/editable-heading/editable-heading.js +8 -7
- package/components/error-bubble/error-bubble.d.ts +1 -1
- package/components/error-bubble/error-bubble.figma.js +1 -2
- package/components/error-bubble/error-bubble.js +2 -2
- package/components/error-message/error-message.d.ts +2 -2
- package/components/error-message/error-message.js +3 -3
- package/components/footer/footer.d.ts +1 -1
- package/components/footer/footer.js +2 -2
- package/components/global/compose-refs.d.ts +2 -0
- package/components/global/compose-refs.js +19 -0
- package/components/global/composeRefs.d.ts +6 -2
- package/components/global/composeRefs.js +6 -16
- package/components/global/create-stateful-context.d.ts +1 -1
- package/components/global/dom.d.ts +1 -1
- package/components/global/dom.js +2 -3
- package/components/global/focus-sensor-hoc.d.ts +1 -1
- package/components/global/focus-sensor-hoc.js +2 -2
- package/components/global/fuzzy-highlight.d.ts +2 -2
- package/components/global/get-event-key.d.ts +1 -1
- package/components/global/memoize.js +1 -1
- package/components/global/rerender-hoc.d.ts +1 -1
- package/components/global/rerender-hoc.js +2 -2
- package/components/global/theme.d.ts +1 -1
- package/components/global/url.js +3 -3
- package/components/global/use-event-callback.js +1 -1
- package/components/grid/col.d.ts +1 -1
- package/components/grid/col.js +1 -1
- package/components/grid/grid.d.ts +1 -1
- package/components/grid/grid.js +1 -1
- package/components/grid/row.d.ts +1 -1
- package/components/grid/row.js +1 -1
- package/components/group/group.d.ts +1 -1
- package/components/group/group.js +1 -1
- package/components/header/header-icon.d.ts +2 -2
- package/components/header/header-icon.js +4 -4
- package/components/header/header.d.ts +1 -1
- package/components/header/header.js +17 -17
- package/components/header/links.d.ts +1 -1
- package/components/header/logo.d.ts +1 -1
- package/components/header/logo.js +2 -2
- package/components/header/profile.d.ts +5 -5
- package/components/header/profile.js +14 -14
- package/components/header/services-link.d.ts +1 -1
- package/components/header/services-link.js +1 -1
- package/components/header/services.d.ts +2 -2
- package/components/header/services.js +7 -7
- package/components/header/smart-profile.d.ts +3 -3
- package/components/header/smart-profile.js +25 -25
- package/components/header/smart-services.d.ts +3 -3
- package/components/header/smart-services.js +4 -4
- package/components/header/tray.d.ts +1 -1
- package/components/heading/heading.d.ts +1 -1
- package/components/http/http.mock.d.ts +1 -1
- package/components/hub-source/{hub-source__user.d.ts → hub-source-user.d.ts} +3 -2
- package/components/hub-source/{hub-source__users-groups.d.ts → hub-source-users-groups.d.ts} +3 -2
- package/components/hub-source/hub-source.d.ts +2 -2
- package/components/icon/{icon__svg.d.ts → icon-svg.d.ts} +1 -1
- package/components/icon/{icon__svg.js → icon-svg.js} +1 -1
- package/components/icon/icon.d.ts +2 -2
- package/components/icon/icon.js +3 -3
- package/components/icon/index.js +2 -2
- package/components/input/input.d.ts +3 -3
- package/components/input/input.figma.js +1 -2
- package/components/input/input.js +5 -5
- package/components/island/adaptive-island-hoc.d.ts +1 -1
- package/components/island/content.d.ts +1 -1
- package/components/island/content.js +2 -2
- package/components/island/header.d.ts +1 -1
- package/components/island/header.js +4 -4
- package/components/island/island.d.ts +1 -1
- package/components/link/clickable-link.d.ts +12 -0
- package/components/link/clickable-link.js +51 -0
- package/components/link/clickableLink.d.ts +11 -12
- package/components/link/clickableLink.js +5 -50
- package/components/link/link.d.ts +2 -2
- package/components/link/link.js +3 -3
- package/components/list/consts.d.ts +4 -5
- package/components/list/{list__custom.d.ts → list-custom.d.ts} +1 -1
- package/components/list/{list__custom.js → list-custom.js} +1 -1
- package/components/list/{list__hint.d.ts → list-hint.d.ts} +1 -1
- package/components/list/{list__hint.js → list-hint.js} +1 -1
- package/components/list/{list__item.d.ts → list-item.d.ts} +2 -2
- package/components/list/{list__item.js → list-item.js} +10 -9
- package/components/list/{list__separator.d.ts → list-separator.d.ts} +1 -1
- package/components/list/{list__separator.js → list-separator.js} +1 -1
- package/components/list/{list__title.d.ts → list-title.d.ts} +1 -1
- package/components/list/{list__title.js → list-title.js} +3 -3
- package/components/list/{list__users-groups-source.d.ts → list-users-groups-source.d.ts} +3 -2
- package/components/list/{list__users-groups-source.js → list-users-groups-source.js} +11 -11
- package/components/list/{list__classes.d.ts → list.classes.d.ts} +1 -1
- package/components/list/list.d.ts +7 -7
- package/components/list/list.js +36 -35
- package/components/loader/{loader__core.js → loader-core.js} +3 -2
- package/components/loader/loader.d.ts +2 -2
- package/components/loader/loader.js +1 -1
- package/components/loader-inline/loader-inline.d.ts +1 -1
- package/components/loader-screen/loader-screen.d.ts +1 -1
- package/components/loader-screen/loader-screen.js +1 -1
- package/components/login-dialog/login-dialog.d.ts +1 -1
- package/components/login-dialog/login-dialog.js +9 -9
- package/components/login-dialog/service.d.ts +1 -1
- package/components/login-dialog/service.js +6 -6
- package/components/markdown/markdown.d.ts +1 -1
- package/components/markdown/markdown.js +1 -1
- package/components/message/message.d.ts +4 -4
- package/components/message/message.js +7 -7
- package/components/old-browsers-message/old-browsers-message.js +1 -1
- package/components/pager/pager.d.ts +2 -2
- package/components/pager/pager.js +28 -27
- package/components/panel/panel.d.ts +1 -1
- package/components/panel/panel.js +1 -1
- package/components/permissions/{permissions__cache.js → permissions-cache.js} +4 -4
- package/components/permissions/permissions.d.ts +2 -2
- package/components/permissions/permissions.js +2 -3
- package/components/popup/popup.d.ts +2 -2
- package/components/popup/popup.js +4 -4
- package/components/popup/popup.target.d.ts +1 -1
- package/components/popup/position-css.js +2 -4
- package/components/popup/position.js +10 -9
- package/components/popup-menu/popup-menu.d.ts +4 -4
- package/components/popup-menu/popup-menu.js +10 -10
- package/components/progress-bar/progress-bar.d.ts +1 -1
- package/components/progress-bar/progress-bar.js +1 -1
- package/components/query-assist/{query-assist__suggestions.d.ts → query-assist-suggestions.d.ts} +1 -1
- package/components/query-assist/{query-assist__suggestions.js → query-assist-suggestions.js} +11 -11
- package/components/query-assist/query-assist.d.ts +4 -4
- package/components/query-assist/query-assist.js +30 -30
- package/components/radio/{radio__item.d.ts → radio-item.d.ts} +1 -1
- package/components/radio/{radio__item.js → radio-item.js} +3 -3
- package/components/radio/radio.d.ts +2 -2
- package/components/radio/radio.js +1 -1
- package/components/scrollable-section/scrollable-section.d.ts +1 -1
- package/components/scrollable-section/scrollable-section.js +1 -1
- package/components/select/{select__filter.d.ts → select-filter.d.ts} +2 -2
- package/components/select/{select__filter.js → select-filter.js} +12 -12
- package/components/select/{select__popup.d.ts → select-popup.d.ts} +8 -8
- package/components/select/{select__popup.js → select-popup.js} +21 -19
- package/components/select/select.d.ts +6 -6
- package/components/select/select.js +44 -42
- package/components/shortcuts/core.js +4 -4
- package/components/shortcuts/shortcuts-hoc.d.ts +2 -2
- package/components/shortcuts/shortcuts.d.ts +1 -1
- package/components/slider/slider.d.ts +5 -5
- package/components/slider/slider.js +7 -6
- package/components/slider/slider.utils.d.ts +1 -1
- package/components/slider/slider.utils.js +2 -3
- package/components/storage/{storage__local.d.ts → storage-local.d.ts} +1 -1
- package/components/storage/{storage__local.js → storage-local.js} +11 -11
- package/components/storage/storage.d.ts +1 -1
- package/components/storage/storage.js +5 -5
- package/components/style.css +1 -1
- package/components/tab-trap/tab-trap.d.ts +1 -1
- package/components/tab-trap/tab-trap.js +1 -1
- package/components/table/cell.d.ts +1 -1
- package/components/table/disable-hover-hoc.d.ts +1 -1
- package/components/table/header-cell.d.ts +1 -1
- package/components/table/header-cell.js +3 -3
- package/components/table/header.d.ts +2 -2
- package/components/table/header.js +7 -7
- package/components/table/multitable.d.ts +3 -3
- package/components/table/multitable.js +1 -1
- package/components/table/row-with-focus-sensor.d.ts +3 -3
- package/components/table/row-with-focus-sensor.js +5 -5
- package/components/table/row.d.ts +4 -4
- package/components/table/row.js +5 -5
- package/components/table/selection-adapter.d.ts +2 -1
- package/components/table/selection-shortcuts-hoc.d.ts +4 -3
- package/components/table/selection-shortcuts-hoc.js +1 -2
- package/components/table/selection.js +5 -6
- package/components/table/simple-table.d.ts +2 -2
- package/components/table/simple-table.js +6 -6
- package/components/table/smart-table.d.ts +2 -2
- package/components/table/smart-table.js +6 -6
- package/components/table/table.d.ts +7 -7
- package/components/table/table.js +11 -11
- package/components/tabs/collapsible-more.d.ts +3 -3
- package/components/tabs/collapsible-more.js +12 -12
- package/components/tabs/collapsible-tab.d.ts +2 -2
- package/components/tabs/collapsible-tab.js +2 -2
- package/components/tabs/collapsible-tabs.d.ts +2 -2
- package/components/tabs/collapsible-tabs.js +18 -18
- package/components/tabs/custom-item.d.ts +2 -2
- package/components/tabs/dumb-tabs.d.ts +3 -3
- package/components/tabs/dumb-tabs.js +14 -14
- package/components/tabs/smart-tabs.d.ts +1 -1
- package/components/tabs/smart-tabs.js +11 -11
- package/components/tabs/tab-link.d.ts +2 -2
- package/components/tabs/tab-link.js +1 -1
- package/components/tabs/tab.d.ts +2 -2
- package/components/tabs/tabs.js +11 -11
- package/components/tag/tag.d.ts +5 -3
- package/components/tag/tag.js +14 -12
- package/components/tags-input/tags-input.d.ts +8 -8
- package/components/tags-input/tags-input.js +26 -20
- package/components/tags-list/tags-list.d.ts +2 -2
- package/components/tags-list/tags-list.js +5 -5
- package/components/text/text.d.ts +1 -1
- package/components/toggle/toggle.d.ts +1 -1
- package/components/toggle/toggle.js +2 -2
- package/components/tooltip/tooltip.d.ts +2 -2
- package/components/tooltip/tooltip.js +1 -1
- package/components/upload/upload.d.ts +3 -3
- package/components/upload/upload.js +7 -7
- package/components/user-agreement/service.d.ts +2 -2
- package/components/user-agreement/service.js +10 -11
- package/components/user-agreement/user-agreement.d.ts +1 -1
- package/components/user-agreement/user-agreement.js +10 -10
- package/components/user-card/card.d.ts +1 -1
- package/components/user-card/card.js +4 -4
- package/components/user-card/smart-user-card-tooltip.d.ts +2 -2
- package/components/user-card/smart-user-card-tooltip.js +4 -4
- package/components/user-card/tooltip.d.ts +3 -3
- package/components/user-card/tooltip.js +4 -4
- package/components/user-card/user-card.js +4 -4
- package/package.json +1 -1
- package/components/button/button__classes.js +0 -2
- /package/components/_helpers/{button__classes.js → button.classes.js} +0 -0
- /package/components/_helpers/{icon__svg.js → icon-svg.js} +0 -0
- /package/components/_helpers/{query-assist__suggestions.js → query-assist-suggestions.js} +0 -0
- /package/components/dialog/{dialog__body-scroll-preventer.d.ts → dialog-body-scroll-preventer.d.ts} +0 -0
- /package/components/global/{variables.d.ts → variables.interface.d.ts} +0 -0
- /package/components/global/{variables.js → variables.interface.js} +0 -0
- /package/components/hub-source/{hub-source__user.js → hub-source-user.js} +0 -0
- /package/components/hub-source/{hub-source__users-groups.js → hub-source-users-groups.js} +0 -0
- /package/components/icon/{icon__constants.d.ts → icon.constants.d.ts} +0 -0
- /package/components/icon/{icon__constants.js → icon.constants.js} +0 -0
- /package/components/list/{list__classes.js → list.classes.js} +0 -0
- /package/components/loader/{loader__core.d.ts → loader-core.d.ts} +0 -0
- /package/components/old-browsers-message/{old-browsers-message__stop.d.ts → old-browsers-message-stop.d.ts} +0 -0
- /package/components/old-browsers-message/{old-browsers-message__stop.js → old-browsers-message-stop.js} +0 -0
- /package/components/permissions/{permissions__cache.d.ts → permissions-cache.d.ts} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { HTMLAttributes, ReactNode } from 'react';
|
|
1
|
+
import { type HTMLAttributes, type ReactNode } from 'react';
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
export declare const FOCUSABLE_ELEMENTS = "input, button, select, textarea, a[href], *[tabindex]:not([data-trap-button]):not([data-scrollable-container])";
|
|
4
4
|
export interface TabTrapProps extends HTMLAttributes<HTMLElement> {
|
|
@@ -93,7 +93,7 @@ const TabTrap = /*#__PURE__*/forwardRef(function TabTrap(_ref, ref) {
|
|
|
93
93
|
}
|
|
94
94
|
if (focusBackOnExit) {
|
|
95
95
|
const prevFocused = event.nativeEvent.relatedTarget;
|
|
96
|
-
if (prevFocused
|
|
96
|
+
if (prevFocused && nodeRef.current && prevFocused instanceof Element && nodeRef.current.contains(prevFocused)) {
|
|
97
97
|
restoreFocus();
|
|
98
98
|
}
|
|
99
99
|
} else {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PureComponent, ReactNode, SyntheticEvent, ThHTMLAttributes } from 'react';
|
|
1
|
+
import { PureComponent, type ReactNode, type SyntheticEvent, type ThHTMLAttributes } from 'react';
|
|
2
2
|
export interface Column<T = never> {
|
|
3
3
|
id: string;
|
|
4
4
|
sortable?: boolean | null | undefined;
|
|
@@ -9,8 +9,8 @@ import Icon from '../icon/icon.js';
|
|
|
9
9
|
import joinDataTestAttributes from '../global/data-tests.js';
|
|
10
10
|
import { s as style } from '../_helpers/table.js';
|
|
11
11
|
import 'util-deprecate';
|
|
12
|
-
import '../icon/
|
|
13
|
-
import '../_helpers/
|
|
12
|
+
import '../icon/icon.constants.js';
|
|
13
|
+
import '../_helpers/icon-svg.js';
|
|
14
14
|
import 'core-js/modules/es.regexp.exec.js';
|
|
15
15
|
import 'core-js/modules/es.string.replace.js';
|
|
16
16
|
import '../global/memoize.js';
|
|
@@ -65,7 +65,7 @@ class HeaderCell extends PureComponent {
|
|
|
65
65
|
"data-test": joinDataTestAttributes('ring-table-header-cell', dataTest),
|
|
66
66
|
children: [jsx("span", {
|
|
67
67
|
onClick: this.onChildrenClick,
|
|
68
|
-
role:
|
|
68
|
+
role: 'presentation',
|
|
69
69
|
children: this.props.children
|
|
70
70
|
}), column.getHeaderValue ? column.getHeaderValue() : column.title, this.sortable && jsx("span", {
|
|
71
71
|
className: style.sorter,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ChangeEventHandler, PureComponent, SyntheticEvent } from 'react';
|
|
2
|
-
import { Column, SortParams } from './header-cell';
|
|
1
|
+
import { type ChangeEventHandler, PureComponent, type SyntheticEvent } from 'react';
|
|
2
|
+
import { type Column, type SortParams } from './header-cell';
|
|
3
3
|
export interface HeaderProps {
|
|
4
4
|
columns: readonly Column[];
|
|
5
5
|
selectable: boolean;
|
|
@@ -11,12 +11,12 @@ import '@jetbrains/icons/checkmark-12px';
|
|
|
11
11
|
import '@jetbrains/icons/remove-12px';
|
|
12
12
|
import '../icon/icon.js';
|
|
13
13
|
import 'util-deprecate';
|
|
14
|
-
import '../icon/
|
|
15
|
-
import '../_helpers/
|
|
14
|
+
import '../icon/icon.constants.js';
|
|
15
|
+
import '../_helpers/icon-svg.js';
|
|
16
16
|
import 'core-js/modules/es.regexp.exec.js';
|
|
17
17
|
import 'core-js/modules/es.string.replace.js';
|
|
18
18
|
import '../global/memoize.js';
|
|
19
|
-
import '../global/
|
|
19
|
+
import '../global/compose-refs.js';
|
|
20
20
|
import 'memoize-one';
|
|
21
21
|
import '../control-help/control-help.js';
|
|
22
22
|
import '@jetbrains/icons/unsorted-12px';
|
|
@@ -82,7 +82,7 @@ class Header extends PureComponent {
|
|
|
82
82
|
const regularCells = this.createCells();
|
|
83
83
|
return jsxs("thead", {
|
|
84
84
|
id: this.id,
|
|
85
|
-
"data-test":
|
|
85
|
+
"data-test": 'ring-table-header',
|
|
86
86
|
style: {
|
|
87
87
|
top: topStickOffset
|
|
88
88
|
},
|
|
@@ -91,16 +91,16 @@ class Header extends PureComponent {
|
|
|
91
91
|
[style.subHeaderSticky]: sticky
|
|
92
92
|
}),
|
|
93
93
|
children: [caption && jsx("tr", {
|
|
94
|
-
"data-test":
|
|
94
|
+
"data-test": 'ring-table-header-row',
|
|
95
95
|
children: jsx("th", {
|
|
96
96
|
className: classNames(style.headerCell, style.caption),
|
|
97
97
|
colSpan: regularCells.length + 1,
|
|
98
|
-
"data-test":
|
|
98
|
+
"data-test": 'ring-table-header-cell',
|
|
99
99
|
children: caption
|
|
100
100
|
})
|
|
101
101
|
}), jsx("tr", {
|
|
102
102
|
className: style.subHeader,
|
|
103
|
-
"data-test":
|
|
103
|
+
"data-test": 'ring-table-header-row',
|
|
104
104
|
children: regularCells
|
|
105
105
|
})]
|
|
106
106
|
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { PureComponent, ReactElement } from 'react';
|
|
2
|
-
import { TableAttrs } from './table';
|
|
3
|
-
import { SelectionItem } from './selection';
|
|
1
|
+
import { PureComponent, type ReactElement } from 'react';
|
|
2
|
+
import { type TableAttrs } from './table';
|
|
3
|
+
import { type SelectionItem } from './selection';
|
|
4
4
|
type TableComponent = ReactElement<TableAttrs<SelectionItem>>;
|
|
5
5
|
export interface MultiTableProps {
|
|
6
6
|
children: TableComponent[];
|
|
@@ -116,7 +116,7 @@ class MultiTable extends PureComponent {
|
|
|
116
116
|
}
|
|
117
117
|
render() {
|
|
118
118
|
return jsx("div", {
|
|
119
|
-
"data-test":
|
|
119
|
+
"data-test": 'ring-multitable',
|
|
120
120
|
children: Children.map(this.props.children, child => {
|
|
121
121
|
const props = {
|
|
122
122
|
shortcuts: this.shortcuts
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { PureComponent } from 'react';
|
|
2
|
-
import { FocusSensorProps } from '../global/focus-sensor-hoc';
|
|
3
|
-
import Row, { RowProps } from './row';
|
|
4
|
-
import { SelectionItem } from './selection';
|
|
2
|
+
import { type FocusSensorProps } from '../global/focus-sensor-hoc';
|
|
3
|
+
import Row, { type RowProps } from './row';
|
|
4
|
+
import { type SelectionItem } from './selection';
|
|
5
5
|
export interface RowWithFocusSensorCallbacksProps<T extends SelectionItem> extends Omit<FocusSensorProps<RowProps<T>, HTMLTableRowElement, typeof Row>, 'onFocus'> {
|
|
6
6
|
onFocus?: (item: T) => void;
|
|
7
7
|
onSelect?: (item: T, selected: boolean) => void;
|
|
@@ -4,7 +4,7 @@ import { jsx } from 'react/jsx-runtime';
|
|
|
4
4
|
import { PureComponent } from 'react';
|
|
5
5
|
import focusSensorHOC from '../global/focus-sensor-hoc.js';
|
|
6
6
|
import Row from './row.js';
|
|
7
|
-
import '../global/
|
|
7
|
+
import '../global/compose-refs.js';
|
|
8
8
|
import 'memoize-one';
|
|
9
9
|
import 'classnames';
|
|
10
10
|
import '@jetbrains/icons/chevron-right';
|
|
@@ -15,18 +15,18 @@ import '@jetbrains/icons/checkmark-12px';
|
|
|
15
15
|
import '@jetbrains/icons/remove-12px';
|
|
16
16
|
import '../icon/icon.js';
|
|
17
17
|
import 'util-deprecate';
|
|
18
|
-
import '../icon/
|
|
19
|
-
import '../_helpers/
|
|
18
|
+
import '../icon/icon.constants.js';
|
|
19
|
+
import '../_helpers/icon-svg.js';
|
|
20
20
|
import 'core-js/modules/es.regexp.exec.js';
|
|
21
21
|
import 'core-js/modules/es.string.replace.js';
|
|
22
22
|
import '../global/memoize.js';
|
|
23
23
|
import '../control-help/control-help.js';
|
|
24
24
|
import '../button/button.js';
|
|
25
25
|
import '@jetbrains/icons/chevron-12px-down';
|
|
26
|
-
import '../link/
|
|
26
|
+
import '../link/clickable-link.js';
|
|
27
27
|
import '../global/controls-height.js';
|
|
28
28
|
import '../global/configuration.js';
|
|
29
|
-
import '../_helpers/
|
|
29
|
+
import '../_helpers/button.classes.js';
|
|
30
30
|
import '../tooltip/tooltip.js';
|
|
31
31
|
import '../popup/popup.js';
|
|
32
32
|
import 'react-dom';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { HTMLAttributes, PureComponent } from 'react';
|
|
1
|
+
import { type HTMLAttributes, PureComponent } from 'react';
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
import { FocusSensorAddProps } from '../global/focus-sensor-hoc';
|
|
4
|
-
import { Column } from './header-cell';
|
|
5
|
-
import { SelectionItem } from './selection';
|
|
3
|
+
import { type FocusSensorAddProps } from '../global/focus-sensor-hoc';
|
|
4
|
+
import { type Column } from './header-cell';
|
|
5
|
+
import { type SelectionItem } from './selection';
|
|
6
6
|
export interface RowProps<T extends SelectionItem> extends Omit<HTMLAttributes<HTMLTableRowElement>, 'onClick' | 'onDoubleClick' | 'onSelect'>, FocusSensorAddProps<HTMLTableRowElement> {
|
|
7
7
|
item: T;
|
|
8
8
|
columns: readonly Column<T>[] | ((item: T) => readonly Column<T>[]);
|
package/components/table/row.js
CHANGED
|
@@ -11,24 +11,24 @@ import { Button } from '../button/button.js';
|
|
|
11
11
|
import Tooltip from '../tooltip/tooltip.js';
|
|
12
12
|
import joinDataTestAttributes from '../global/data-tests.js';
|
|
13
13
|
import getUID from '../global/get-uid.js';
|
|
14
|
-
import { createComposedRef } from '../global/
|
|
14
|
+
import { createComposedRef } from '../global/compose-refs.js';
|
|
15
15
|
import Cell from './cell.js';
|
|
16
16
|
import { s as style } from '../_helpers/table.js';
|
|
17
17
|
import '@jetbrains/icons/checkmark-12px';
|
|
18
18
|
import '@jetbrains/icons/remove-12px';
|
|
19
19
|
import '../icon/icon.js';
|
|
20
20
|
import 'util-deprecate';
|
|
21
|
-
import '../icon/
|
|
22
|
-
import '../_helpers/
|
|
21
|
+
import '../icon/icon.constants.js';
|
|
22
|
+
import '../_helpers/icon-svg.js';
|
|
23
23
|
import 'core-js/modules/es.regexp.exec.js';
|
|
24
24
|
import 'core-js/modules/es.string.replace.js';
|
|
25
25
|
import '../global/memoize.js';
|
|
26
26
|
import '../control-help/control-help.js';
|
|
27
27
|
import '@jetbrains/icons/chevron-12px-down';
|
|
28
|
-
import '../link/
|
|
28
|
+
import '../link/clickable-link.js';
|
|
29
29
|
import '../global/controls-height.js';
|
|
30
30
|
import '../global/configuration.js';
|
|
31
|
-
import '../_helpers/
|
|
31
|
+
import '../_helpers/button.classes.js';
|
|
32
32
|
import '../popup/popup.js';
|
|
33
33
|
import 'react-dom';
|
|
34
34
|
import '../global/schedule-raf.js';
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import Selection
|
|
1
|
+
import type Selection from './selection';
|
|
2
|
+
import type { SelectionItem } from './selection';
|
|
2
3
|
export default function selectionAdapter(getSelection: () => Selection<SelectionItem>): {
|
|
3
4
|
readonly size: number;
|
|
4
5
|
readonly items: SelectionItem[];
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { ComponentClass } from 'react';
|
|
2
|
-
import { ShortcutsMap } from '../shortcuts/core';
|
|
3
|
-
import Selection
|
|
1
|
+
import { type ComponentClass } from 'react';
|
|
2
|
+
import { type ShortcutsMap } from '../shortcuts/core';
|
|
3
|
+
import type Selection from './selection';
|
|
4
|
+
import type { SelectionItem } from './selection';
|
|
4
5
|
export interface SelectionShortcutsOuterProps<T extends SelectionItem> {
|
|
5
6
|
selection: Selection<T>;
|
|
6
7
|
selectable?: boolean | undefined;
|
|
@@ -44,9 +44,8 @@ function selectionShortcutsHOC(ComposedComponent) {
|
|
|
44
44
|
_defineProperty(this, "shiftSelect", selection => {
|
|
45
45
|
if (this.shiftSelectionMode === 'addition') {
|
|
46
46
|
return selection.select();
|
|
47
|
-
} else {
|
|
48
|
-
return selection.deselect();
|
|
49
47
|
}
|
|
48
|
+
return selection.deselect();
|
|
50
49
|
});
|
|
51
50
|
_defineProperty(this, "onShiftUpPress", e => {
|
|
52
51
|
e.preventDefault();
|
|
@@ -141,9 +141,8 @@ let Selection$1 = class Selection {
|
|
|
141
141
|
let value = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : this._focused;
|
|
142
142
|
if (this.isSelected(value)) {
|
|
143
143
|
return this.deselect(value);
|
|
144
|
-
} else {
|
|
145
|
-
return this.select(value);
|
|
146
144
|
}
|
|
145
|
+
return this.select(value);
|
|
147
146
|
}
|
|
148
147
|
selectAll() {
|
|
149
148
|
return this.cloneWith({
|
|
@@ -167,7 +166,7 @@ let Selection$1 = class Selection {
|
|
|
167
166
|
return this._focused === value;
|
|
168
167
|
}
|
|
169
168
|
isSelected(value) {
|
|
170
|
-
return value
|
|
169
|
+
return value !== null && this._selected.has(value);
|
|
171
170
|
}
|
|
172
171
|
getFocused() {
|
|
173
172
|
return this._focused;
|
|
@@ -178,11 +177,11 @@ let Selection$1 = class Selection {
|
|
|
178
177
|
getActive() {
|
|
179
178
|
if (this._selected.size) {
|
|
180
179
|
return new Set(this._selected);
|
|
181
|
-
}
|
|
180
|
+
}
|
|
181
|
+
if (this._focused) {
|
|
182
182
|
return new Set([this._focused]);
|
|
183
|
-
} else {
|
|
184
|
-
return new Set();
|
|
185
183
|
}
|
|
184
|
+
return new Set();
|
|
186
185
|
}
|
|
187
186
|
};
|
|
188
187
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PureComponent } from 'react';
|
|
2
|
-
import { TableAttrs } from './table';
|
|
3
|
-
import Selection, { SelectionItem } from './selection';
|
|
2
|
+
import { type TableAttrs } from './table';
|
|
3
|
+
import Selection, { type SelectionItem } from './selection';
|
|
4
4
|
export interface SimpleTableProps<T extends SelectionItem> extends Omit<TableAttrs<T>, 'selection' | 'onSelect' | 'selectable'> {
|
|
5
5
|
}
|
|
6
6
|
declare class SimpleTable<T extends SelectionItem> extends PureComponent<SimpleTableProps<T>> {
|
|
@@ -8,7 +8,7 @@ import TableContainer from './table.js';
|
|
|
8
8
|
import Selection$1 from './selection.js';
|
|
9
9
|
import 'react-movable';
|
|
10
10
|
import '../global/focus-sensor-hoc.js';
|
|
11
|
-
import '../global/
|
|
11
|
+
import '../global/compose-refs.js';
|
|
12
12
|
import 'memoize-one';
|
|
13
13
|
import '../global/get-uid.js';
|
|
14
14
|
import '../shortcuts/shortcuts.js';
|
|
@@ -18,7 +18,7 @@ import 'combokeys';
|
|
|
18
18
|
import '../global/sniffer.js';
|
|
19
19
|
import 'sniffr';
|
|
20
20
|
import '../loader/loader.js';
|
|
21
|
-
import '../loader/
|
|
21
|
+
import '../loader/loader-core.js';
|
|
22
22
|
import '../global/dom.js';
|
|
23
23
|
import './header.js';
|
|
24
24
|
import '../checkbox/checkbox.js';
|
|
@@ -26,8 +26,8 @@ import '@jetbrains/icons/checkmark-12px';
|
|
|
26
26
|
import '@jetbrains/icons/remove-12px';
|
|
27
27
|
import '../icon/icon.js';
|
|
28
28
|
import 'util-deprecate';
|
|
29
|
-
import '../icon/
|
|
30
|
-
import '../_helpers/
|
|
29
|
+
import '../icon/icon.constants.js';
|
|
30
|
+
import '../_helpers/icon-svg.js';
|
|
31
31
|
import 'core-js/modules/es.string.replace.js';
|
|
32
32
|
import '../global/memoize.js';
|
|
33
33
|
import '../control-help/control-help.js';
|
|
@@ -43,10 +43,10 @@ import '@jetbrains/icons/chevron-right';
|
|
|
43
43
|
import '@jetbrains/icons/chevron-down';
|
|
44
44
|
import '@jetbrains/icons/drag';
|
|
45
45
|
import '../button/button.js';
|
|
46
|
-
import '../link/
|
|
46
|
+
import '../link/clickable-link.js';
|
|
47
47
|
import '../global/controls-height.js';
|
|
48
48
|
import '../global/configuration.js';
|
|
49
|
-
import '../_helpers/
|
|
49
|
+
import '../_helpers/button.classes.js';
|
|
50
50
|
import '../tooltip/tooltip.js';
|
|
51
51
|
import '../popup/popup.js';
|
|
52
52
|
import 'react-dom';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PureComponent } from 'react';
|
|
2
|
-
import { TableAttrs } from './table';
|
|
3
|
-
import Selection, { SelectionItem } from './selection';
|
|
2
|
+
import { type TableAttrs } from './table';
|
|
3
|
+
import Selection, { type SelectionItem } from './selection';
|
|
4
4
|
export interface SmartTableProps<T extends SelectionItem> extends Omit<TableAttrs<T>, 'selection' | 'onSelect'> {
|
|
5
5
|
onSelectionChange: (selection: Selection<T>) => void;
|
|
6
6
|
selection?: Selection<T>;
|
|
@@ -7,7 +7,7 @@ import Selection$1 from './selection.js';
|
|
|
7
7
|
import 'classnames';
|
|
8
8
|
import 'react-movable';
|
|
9
9
|
import '../global/focus-sensor-hoc.js';
|
|
10
|
-
import '../global/
|
|
10
|
+
import '../global/compose-refs.js';
|
|
11
11
|
import 'memoize-one';
|
|
12
12
|
import '../global/get-uid.js';
|
|
13
13
|
import '../shortcuts/shortcuts.js';
|
|
@@ -17,7 +17,7 @@ import 'combokeys';
|
|
|
17
17
|
import '../global/sniffer.js';
|
|
18
18
|
import 'sniffr';
|
|
19
19
|
import '../loader/loader.js';
|
|
20
|
-
import '../loader/
|
|
20
|
+
import '../loader/loader-core.js';
|
|
21
21
|
import '../global/dom.js';
|
|
22
22
|
import './header.js';
|
|
23
23
|
import '../checkbox/checkbox.js';
|
|
@@ -25,8 +25,8 @@ import '@jetbrains/icons/checkmark-12px';
|
|
|
25
25
|
import '@jetbrains/icons/remove-12px';
|
|
26
26
|
import '../icon/icon.js';
|
|
27
27
|
import 'util-deprecate';
|
|
28
|
-
import '../icon/
|
|
29
|
-
import '../_helpers/
|
|
28
|
+
import '../icon/icon.constants.js';
|
|
29
|
+
import '../_helpers/icon-svg.js';
|
|
30
30
|
import 'core-js/modules/es.string.replace.js';
|
|
31
31
|
import '../global/memoize.js';
|
|
32
32
|
import '../control-help/control-help.js';
|
|
@@ -43,10 +43,10 @@ import '@jetbrains/icons/chevron-right';
|
|
|
43
43
|
import '@jetbrains/icons/chevron-down';
|
|
44
44
|
import '@jetbrains/icons/drag';
|
|
45
45
|
import '../button/button.js';
|
|
46
|
-
import '../link/
|
|
46
|
+
import '../link/clickable-link.js';
|
|
47
47
|
import '../global/controls-height.js';
|
|
48
48
|
import '../global/configuration.js';
|
|
49
|
-
import '../_helpers/
|
|
49
|
+
import '../_helpers/button.classes.js';
|
|
50
50
|
import '../tooltip/tooltip.js';
|
|
51
51
|
import '../popup/popup.js';
|
|
52
52
|
import 'react-dom';
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @name Table
|
|
3
3
|
*/
|
|
4
|
-
import { Component, PureComponent, ReactNode, SyntheticEvent } from 'react';
|
|
4
|
+
import { Component, PureComponent, type ReactNode, type SyntheticEvent } from 'react';
|
|
5
5
|
import * as React from 'react';
|
|
6
|
-
import { OnChangeMeta } from 'react-movable/lib/types';
|
|
7
|
-
import { FocusSensorAddProps, FocusSensorProps } from '../global/focus-sensor-hoc';
|
|
8
|
-
import { SelectionItem } from './selection';
|
|
9
|
-
import { SelectionShortcutsAddProps, SelectionShortcutsProps } from './selection-shortcuts-hoc';
|
|
10
|
-
import { DisableHoverAddProps, DisableHoverProps } from './disable-hover-hoc';
|
|
6
|
+
import { type OnChangeMeta } from 'react-movable/lib/types';
|
|
7
|
+
import { type FocusSensorAddProps, type FocusSensorProps } from '../global/focus-sensor-hoc';
|
|
8
|
+
import { type SelectionItem } from './selection';
|
|
9
|
+
import { type SelectionShortcutsAddProps, type SelectionShortcutsProps } from './selection-shortcuts-hoc';
|
|
10
|
+
import { type DisableHoverAddProps, type DisableHoverProps } from './disable-hover-hoc';
|
|
11
11
|
import Row from './row-with-focus-sensor';
|
|
12
|
-
import { Column, SortParams } from './header-cell';
|
|
12
|
+
import { type Column, type SortParams } from './header-cell';
|
|
13
13
|
export interface ReorderParams<T> {
|
|
14
14
|
data: T[];
|
|
15
15
|
oldIndex: number;
|
|
@@ -13,22 +13,22 @@ import { s as style } from '../_helpers/table.js';
|
|
|
13
13
|
import selectionShortcutsHOC from './selection-shortcuts-hoc.js';
|
|
14
14
|
import disableHoverHOC from './disable-hover-hoc.js';
|
|
15
15
|
import RowWithFocusSensorCallbacks from './row-with-focus-sensor.js';
|
|
16
|
-
import '../global/
|
|
16
|
+
import '../global/compose-refs.js';
|
|
17
17
|
import 'memoize-one';
|
|
18
18
|
import '../shortcuts/core.js';
|
|
19
19
|
import 'core-js/modules/es.regexp.exec.js';
|
|
20
20
|
import 'combokeys';
|
|
21
21
|
import '../global/sniffer.js';
|
|
22
22
|
import 'sniffr';
|
|
23
|
-
import '../loader/
|
|
23
|
+
import '../loader/loader-core.js';
|
|
24
24
|
import '../global/dom.js';
|
|
25
25
|
import '../checkbox/checkbox.js';
|
|
26
26
|
import '@jetbrains/icons/checkmark-12px';
|
|
27
27
|
import '@jetbrains/icons/remove-12px';
|
|
28
28
|
import '../icon/icon.js';
|
|
29
29
|
import 'util-deprecate';
|
|
30
|
-
import '../icon/
|
|
31
|
-
import '../_helpers/
|
|
30
|
+
import '../icon/icon.constants.js';
|
|
31
|
+
import '../_helpers/icon-svg.js';
|
|
32
32
|
import 'core-js/modules/es.string.replace.js';
|
|
33
33
|
import '../global/memoize.js';
|
|
34
34
|
import '../control-help/control-help.js';
|
|
@@ -41,10 +41,10 @@ import '@jetbrains/icons/chevron-right';
|
|
|
41
41
|
import '@jetbrains/icons/chevron-down';
|
|
42
42
|
import '@jetbrains/icons/drag';
|
|
43
43
|
import '../button/button.js';
|
|
44
|
-
import '../link/
|
|
44
|
+
import '../link/clickable-link.js';
|
|
45
45
|
import '../global/controls-height.js';
|
|
46
46
|
import '../global/configuration.js';
|
|
47
|
-
import '../_helpers/
|
|
47
|
+
import '../_helpers/button.classes.js';
|
|
48
48
|
import '../tooltip/tooltip.js';
|
|
49
49
|
import '../popup/popup.js';
|
|
50
50
|
import 'react-dom';
|
|
@@ -241,9 +241,9 @@ class Table extends PureComponent {
|
|
|
241
241
|
const tbody = Array.isArray(children) && children.length > 0 ? children : empty;
|
|
242
242
|
return jsxs("table", {
|
|
243
243
|
className: classes,
|
|
244
|
-
"data-test":
|
|
244
|
+
"data-test": 'ring-table',
|
|
245
245
|
children: [jsx(Header, _objectSpread2({}, headerProps)), jsx("tbody", _objectSpread2(_objectSpread2({}, props), {}, {
|
|
246
|
-
"data-test":
|
|
246
|
+
"data-test": 'ring-table-body',
|
|
247
247
|
children: tbody
|
|
248
248
|
}))]
|
|
249
249
|
});
|
|
@@ -255,7 +255,7 @@ class Table extends PureComponent {
|
|
|
255
255
|
props = {},
|
|
256
256
|
isDragged
|
|
257
257
|
} = _ref4;
|
|
258
|
-
if (value
|
|
258
|
+
if (value === null || value === undefined) {
|
|
259
259
|
return null;
|
|
260
260
|
}
|
|
261
261
|
const {
|
|
@@ -304,13 +304,13 @@ class Table extends PureComponent {
|
|
|
304
304
|
};
|
|
305
305
|
return jsxs("div", {
|
|
306
306
|
className: wrapperClasses,
|
|
307
|
-
"data-test":
|
|
307
|
+
"data-test": 'ring-table-wrapper',
|
|
308
308
|
ref: this.props.innerRef,
|
|
309
309
|
children: [focused && jsx(Shortcuts, {
|
|
310
310
|
map: this.props.shortcutsMap,
|
|
311
311
|
scope: this.state.shortcutsScope
|
|
312
312
|
}), jsx("div", {
|
|
313
|
-
role:
|
|
313
|
+
role: 'presentation',
|
|
314
314
|
onMouseDown: this.onMouseDown,
|
|
315
315
|
children: draggable ? jsx(List, {
|
|
316
316
|
values: data,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ReactElement, ReactNode } from 'react';
|
|
2
|
-
import { ButtonButtonProps, ContainerProps } from '../button/button';
|
|
3
|
-
import { TabProps } from './tab';
|
|
1
|
+
import { type ReactElement, type ReactNode } from 'react';
|
|
2
|
+
import { type ButtonButtonProps, type ContainerProps } from '../button/button';
|
|
3
|
+
import { type TabProps } from './tab';
|
|
4
4
|
export interface FakeMoreButtonProps {
|
|
5
5
|
hasActiveChildren: boolean;
|
|
6
6
|
moreClassName?: string | null | undefined;
|
|
@@ -40,7 +40,7 @@ import 'util-deprecate';
|
|
|
40
40
|
import 'memoize-one';
|
|
41
41
|
import '../global/memoize.js';
|
|
42
42
|
import '../global/create-stateful-context.js';
|
|
43
|
-
import '../list/
|
|
43
|
+
import '../list/list-item.js';
|
|
44
44
|
import '../avatar/avatar.js';
|
|
45
45
|
import '../global/url.js';
|
|
46
46
|
import '../_helpers/avatar-info.js';
|
|
@@ -50,27 +50,27 @@ import '../checkbox/checkbox.js';
|
|
|
50
50
|
import '@jetbrains/icons/checkmark-12px';
|
|
51
51
|
import '@jetbrains/icons/remove-12px';
|
|
52
52
|
import '../icon/icon.js';
|
|
53
|
-
import '../icon/
|
|
54
|
-
import '../_helpers/
|
|
55
|
-
import '../global/
|
|
53
|
+
import '../icon/icon.constants.js';
|
|
54
|
+
import '../_helpers/icon-svg.js';
|
|
55
|
+
import '../global/compose-refs.js';
|
|
56
56
|
import '../control-help/control-help.js';
|
|
57
57
|
import '../link/link.js';
|
|
58
|
-
import '../link/
|
|
58
|
+
import '../link/clickable-link.js';
|
|
59
59
|
import '../_helpers/link.js';
|
|
60
60
|
import '../_helpers/list.js';
|
|
61
61
|
import '../list/consts.js';
|
|
62
|
-
import '../list/
|
|
63
|
-
import '../list/
|
|
62
|
+
import '../list/list.classes.js';
|
|
63
|
+
import '../list/list-custom.js';
|
|
64
64
|
import '../global/get-event-key.js';
|
|
65
|
-
import '../list/
|
|
66
|
-
import '../list/
|
|
67
|
-
import '../list/
|
|
65
|
+
import '../list/list-title.js';
|
|
66
|
+
import '../list/list-separator.js';
|
|
67
|
+
import '../list/list-hint.js';
|
|
68
68
|
import '../global/typescript-utils.js';
|
|
69
69
|
import '../button/button.js';
|
|
70
70
|
import '@jetbrains/icons/chevron-down';
|
|
71
71
|
import '@jetbrains/icons/chevron-12px-down';
|
|
72
72
|
import '../global/controls-height.js';
|
|
73
|
-
import '../_helpers/
|
|
73
|
+
import '../_helpers/button.classes.js';
|
|
74
74
|
|
|
75
75
|
const _excluded = ["hasActiveChildren", "moreClassName", "moreActiveClassName"];
|
|
76
76
|
const AnchorLink = _ref => {
|
|
@@ -100,7 +100,7 @@ const MoreButton = /*#__PURE__*/memo(_ref2 => {
|
|
|
100
100
|
morePopupItemClassName,
|
|
101
101
|
morePopupBeforeEnd
|
|
102
102
|
} = _ref2;
|
|
103
|
-
const onSelectHandler = useMemo(() => onSelect
|
|
103
|
+
const onSelectHandler = useMemo(() => onSelect ? listItem => {
|
|
104
104
|
if (listItem.disabled === true || listItem.custom === true) {
|
|
105
105
|
return;
|
|
106
106
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ReactElement } from 'react';
|
|
1
|
+
import { type ReactElement } from 'react';
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
import { TabProps } from './tab';
|
|
3
|
+
import { type TabProps } from './tab';
|
|
4
4
|
export interface TabTitleProps {
|
|
5
5
|
selected: boolean;
|
|
6
6
|
child: ReactElement<TabProps> | null;
|
|
@@ -7,7 +7,7 @@ import { CustomItem } from './custom-item.js';
|
|
|
7
7
|
import '../link/link.js';
|
|
8
8
|
import '../global/data-tests.js';
|
|
9
9
|
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
10
|
-
import '../link/
|
|
10
|
+
import '../link/clickable-link.js';
|
|
11
11
|
import '../_helpers/link.js';
|
|
12
12
|
|
|
13
13
|
const _excluded = ["items", "selected", "collapsed", "onSelect"];
|
|
@@ -19,7 +19,7 @@ const TabTitle = /*#__PURE__*/React.memo(function TabTitle(_ref) {
|
|
|
19
19
|
collapsed = false,
|
|
20
20
|
tabIndex
|
|
21
21
|
} = _ref;
|
|
22
|
-
if (child
|
|
22
|
+
if (child === null || typeof child !== 'object' || child.type === CustomItem) {
|
|
23
23
|
return child;
|
|
24
24
|
}
|
|
25
25
|
const {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ReactElement, ReactNode } from 'react';
|
|
2
|
-
import { TabProps } from './tab';
|
|
1
|
+
import { type ReactElement, type ReactNode } from 'react';
|
|
2
|
+
import { type TabProps } from './tab';
|
|
3
3
|
export interface CollapsibleTabsProps {
|
|
4
4
|
children: ReactElement<TabProps>[];
|
|
5
5
|
selected?: string | undefined;
|