@jetbrains/ring-ui-built 6.0.34 → 6.0.36
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/_rollupPluginBabelHelpers.js +1 -10
- package/components/_helpers/anchor.js +9 -6
- package/components/_helpers/caption.js +5 -4
- package/components/_helpers/card.js +65 -49
- package/components/_helpers/icon__svg.js +4 -3
- package/components/_helpers/input.js +45 -36
- package/components/_helpers/query-assist__suggestions.js +18 -14
- package/components/_helpers/select__filter.js +22 -17
- package/components/_helpers/services-link.js +14 -12
- package/components/_helpers/sidebar.js +20 -16
- package/components/_helpers/tab-link.js +21 -13
- package/components/_helpers/theme.js +18 -11
- package/components/_helpers/title.js +20 -16
- package/components/alert/alert.d.ts +2 -1
- package/components/alert/alert.js +20 -17
- package/components/alert/container.d.ts +2 -2
- package/components/alert/container.js +14 -11
- package/components/alert-service/alert-service.d.ts +2 -2
- package/components/alert-service/alert-service.js +14 -14
- package/components/analytics/analytics.js +1 -1
- package/components/analytics/analytics__custom-plugin.js +1 -1
- package/components/auth/auth.js +1 -0
- package/components/auth/auth__core.js +3 -2
- package/components/auth/background-flow.js +1 -1
- package/components/auth/down-notification.d.ts +1 -1
- package/components/auth/down-notification.js +21 -14
- package/components/auth/iframe-flow.js +7 -5
- package/components/auth/request-builder.js +1 -1
- package/components/auth/response-parser.js +1 -1
- package/components/auth/storage.js +3 -2
- package/components/auth/token-validator.js +1 -1
- package/components/auth/window-flow.js +1 -1
- package/components/auth-dialog/auth-dialog.d.ts +2 -2
- package/components/auth-dialog/auth-dialog.js +42 -32
- package/components/auth-dialog-service/auth-dialog-service.js +6 -7
- package/components/avatar/avatar.d.ts +2 -2
- package/components/avatar/avatar.js +29 -28
- package/components/avatar/fallback-avatar.d.ts +2 -2
- package/components/avatar/fallback-avatar.js +50 -37
- package/components/badge/badge.d.ts +2 -2
- package/components/badge/badge.js +7 -8
- package/components/breadcrumbs/breadcrumbs.d.ts +6 -0
- package/components/breadcrumbs/breadcrumbs.js +27 -0
- package/components/button/button.d.ts +2 -1
- package/components/button/button.js +26 -25
- package/components/button-group/button-group.d.ts +4 -2
- package/components/button-group/button-group.js +19 -10
- package/components/button-group/caption.d.ts +2 -2
- package/components/button-group/caption.js +1 -0
- package/components/button-set/button-set.d.ts +2 -2
- package/components/button-set/button-set.js +7 -8
- package/components/button-toolbar/button-toolbar.d.ts +2 -2
- package/components/button-toolbar/button-toolbar.js +4 -6
- package/components/caret/caret.js +1 -1
- package/components/checkbox/checkbox.d.ts +3 -2
- package/components/checkbox/checkbox.js +33 -28
- package/components/clipboard/clipboard.js +3 -2
- package/components/code/code.d.ts +3 -3
- package/components/code/code.js +14 -11
- package/components/collapse/collapse-content.d.ts +2 -1
- package/components/collapse/collapse-content.js +13 -10
- package/components/collapse/collapse-control.d.ts +1 -1
- package/components/collapse/collapse-control.js +10 -11
- package/components/collapse/collapse.d.ts +2 -1
- package/components/collapse/collapse.js +16 -16
- package/components/confirm/confirm.d.ts +2 -1
- package/components/confirm/confirm.js +29 -21
- package/components/confirm-service/confirm-service.js +6 -4
- package/components/content-layout/content-layout.d.ts +2 -2
- package/components/content-layout/content-layout.js +12 -12
- package/components/content-layout/sidebar.d.ts +2 -2
- package/components/content-layout/sidebar.js +1 -0
- package/components/contenteditable/contenteditable.d.ts +3 -3
- package/components/contenteditable/contenteditable.js +5 -7
- package/components/control-help/control-help.d.ts +4 -0
- package/components/control-help/control-help.js +16 -0
- package/components/control-label/control-label.d.ts +2 -1
- package/components/control-label/control-label.js +7 -4
- package/components/data-list/data-list.d.ts +11 -11
- package/components/data-list/data-list.js +44 -40
- package/components/data-list/data-list.mock.d.ts +2 -2
- package/components/data-list/data-list.mock.js +165 -73
- package/components/data-list/item.d.ts +3 -3
- package/components/data-list/item.js +49 -40
- package/components/data-list/selection.js +1 -1
- package/components/data-list/title.d.ts +3 -3
- package/components/data-list/title.js +2 -0
- package/components/date-picker/date-input.d.ts +1 -1
- package/components/date-picker/date-input.js +5 -3
- package/components/date-picker/date-picker.d.ts +2 -1
- package/components/date-picker/date-picker.js +43 -34
- package/components/date-picker/date-popup.d.ts +2 -1
- package/components/date-picker/date-popup.js +51 -45
- package/components/date-picker/day.d.ts +2 -2
- package/components/date-picker/day.js +11 -8
- package/components/date-picker/month-names.d.ts +2 -2
- package/components/date-picker/month-names.js +27 -25
- package/components/date-picker/month-slider.d.ts +2 -2
- package/components/date-picker/month-slider.js +15 -13
- package/components/date-picker/month.d.ts +2 -2
- package/components/date-picker/month.js +18 -15
- package/components/date-picker/months.d.ts +2 -2
- package/components/date-picker/months.js +18 -15
- package/components/date-picker/weekdays.d.ts +2 -2
- package/components/date-picker/weekdays.js +14 -13
- package/components/date-picker/years.d.ts +3 -3
- package/components/date-picker/years.js +19 -17
- package/components/dialog/dialog.d.ts +2 -1
- package/components/dialog/dialog.js +48 -45
- package/components/dropdown/anchor.d.ts +3 -3
- package/components/dropdown/anchor.js +1 -0
- package/components/dropdown/dropdown.d.ts +2 -1
- package/components/dropdown/dropdown.js +12 -12
- package/components/dropdown-menu/dropdown-menu.d.ts +3 -3
- package/components/dropdown-menu/dropdown-menu.js +41 -29
- package/components/editable-heading/editable-heading.d.ts +2 -1
- package/components/editable-heading/editable-heading.js +74 -58
- package/components/error-bubble/error-bubble.d.ts +2 -2
- package/components/error-bubble/error-bubble.js +20 -19
- package/components/error-message/error-message.d.ts +2 -2
- package/components/error-message/error-message.js +22 -20
- package/components/footer/footer.d.ts +2 -2
- package/components/footer/footer.js +31 -27
- package/components/form/form.js +1 -1
- package/components/global/create-stateful-context.d.ts +5 -5
- package/components/global/create-stateful-context.js +10 -7
- package/components/global/data-tests.js +1 -1
- package/components/global/dom.js +1 -1
- package/components/global/focus-sensor-hoc.js +4 -3
- package/components/global/fuzzy-highlight.js +1 -1
- package/components/global/get-event-key.d.ts +1 -1
- package/components/global/inject-styles.js +1 -1
- package/components/global/listeners.js +1 -1
- package/components/global/normalize-indent.js +1 -1
- package/components/global/react-dom-renderer.d.ts +2 -2
- package/components/global/react-dom-renderer.js +4 -3
- package/components/global/rerender-hoc.d.ts +2 -2
- package/components/global/rerender-hoc.js +5 -4
- package/components/global/theme.d.ts +3 -3
- package/components/global/theme.js +1 -0
- package/components/global/trivial-template-tag.js +1 -1
- package/components/grid/col.d.ts +2 -2
- package/components/grid/col.js +7 -5
- package/components/grid/grid.d.ts +2 -2
- package/components/grid/grid.js +7 -8
- package/components/grid/row.d.ts +2 -2
- package/components/grid/row.js +7 -5
- package/components/group/group.d.ts +2 -2
- package/components/group/group.js +7 -8
- package/components/header/header.d.ts +2 -2
- package/components/header/header.js +12 -14
- package/components/header/logo.d.ts +2 -2
- package/components/header/logo.js +7 -5
- package/components/header/profile.d.ts +4 -3
- package/components/header/profile.js +40 -29
- package/components/header/services-link.d.ts +2 -2
- package/components/header/services-link.js +1 -0
- package/components/header/services.d.ts +2 -2
- package/components/header/services.js +31 -31
- package/components/header/smart-profile.d.ts +2 -2
- package/components/header/smart-profile.js +5 -3
- package/components/header/smart-services.d.ts +2 -2
- package/components/header/smart-services.js +4 -3
- package/components/header/tray-icon.d.ts +2 -2
- package/components/header/tray-icon.js +4 -3
- package/components/header/tray.d.ts +2 -2
- package/components/header/tray.js +11 -8
- package/components/heading/heading.d.ts +6 -6
- package/components/heading/heading.js +8 -9
- package/components/http/http.js +1 -1
- package/components/http/http.mock.js +2 -1
- package/components/hub-source/hub-source.js +1 -1
- package/components/hub-source/hub-source__user.js +1 -1
- package/components/hub-source/hub-source__users-groups.js +1 -1
- package/components/i18n/i18n-context.d.ts +1 -1
- package/components/i18n/i18n-context.js +7 -4
- package/components/icon/icon.d.ts +2 -2
- package/components/icon/icon.js +12 -10
- package/components/icon/icon__svg.d.ts +3 -3
- package/components/icon/icon__svg.js +1 -0
- package/components/icon/index.js +1 -0
- package/components/input/input.d.ts +3 -2
- package/components/input/input.js +2 -0
- package/components/island/adaptive-island-hoc.d.ts +11 -11
- package/components/island/adaptive-island-hoc.js +10 -7
- package/components/island/content.d.ts +3 -3
- package/components/island/content.js +29 -23
- package/components/island/header.d.ts +2 -2
- package/components/island/header.js +18 -13
- package/components/island/island.d.ts +10 -10
- package/components/island/island.js +7 -8
- package/components/island-legacy/content-legacy.d.ts +2 -2
- package/components/island-legacy/content-legacy.js +7 -5
- package/components/island-legacy/header-legacy.d.ts +2 -2
- package/components/island-legacy/header-legacy.js +10 -7
- package/components/island-legacy/island-legacy.d.ts +2 -2
- package/components/island-legacy/island-legacy.js +7 -5
- package/components/link/clickableLink.d.ts +2 -1
- package/components/link/clickableLink.js +8 -6
- package/components/link/link.d.ts +15 -15
- package/components/link/link.js +12 -9
- package/components/list/consts.d.ts +2 -1
- package/components/list/list.d.ts +10 -10
- package/components/list/list.js +109 -95
- package/components/list/list__custom.d.ts +2 -1
- package/components/list/list__custom.js +7 -5
- package/components/list/list__hint.d.ts +2 -2
- package/components/list/list__hint.js +7 -9
- package/components/list/list__item.d.ts +2 -2
- package/components/list/list__item.js +73 -65
- package/components/list/list__link.d.ts +2 -2
- package/components/list/list__link.js +8 -10
- package/components/list/list__separator.d.ts +2 -2
- package/components/list/list__separator.js +7 -5
- package/components/list/list__title.d.ts +2 -2
- package/components/list/list__title.js +15 -11
- package/components/list/list__users-groups-source.js +3 -1
- package/components/loader/loader.d.ts +2 -2
- package/components/loader/loader.js +5 -10
- package/components/loader/loader__core.js +1 -1
- package/components/loader-inline/loader-inline.d.ts +2 -2
- package/components/loader-inline/loader-inline.js +10 -9
- package/components/loader-screen/loader-screen.d.ts +2 -2
- package/components/loader-screen/loader-screen.js +10 -11
- package/components/login-dialog/login-dialog.d.ts +2 -2
- package/components/login-dialog/login-dialog.js +21 -16
- package/components/login-dialog/service.js +6 -4
- package/components/markdown/markdown.d.ts +2 -2
- package/components/markdown/markdown.js +7 -8
- package/components/message/message.d.ts +2 -2
- package/components/message/message.js +50 -41
- package/components/old-browsers-message/white-list.js +1 -1
- package/components/pager/pager.d.ts +2 -1
- package/components/pager/pager.js +71 -53
- package/components/panel/panel.d.ts +2 -2
- package/components/panel/panel.js +7 -8
- package/components/permissions/permissions.js +1 -1
- package/components/permissions/permissions__cache.js +1 -1
- package/components/popup/popup.d.ts +2 -1
- package/components/popup/popup.js +46 -39
- package/components/popup/popup.target.d.ts +3 -3
- package/components/popup/popup.target.js +11 -8
- package/components/popup-menu/popup-menu.d.ts +2 -2
- package/components/popup-menu/popup-menu.js +13 -9
- package/components/progress-bar/progress-bar.d.ts +2 -2
- package/components/progress-bar/progress-bar.js +17 -18
- package/components/query-assist/query-assist.d.ts +3 -2
- package/components/query-assist/query-assist.js +122 -109
- package/components/query-assist/query-assist__suggestions.d.ts +2 -2
- package/components/query-assist/query-assist__suggestions.js +3 -1
- package/components/radio/radio.d.ts +3 -3
- package/components/radio/radio.js +8 -8
- package/components/radio/radio__item.d.ts +9 -6
- package/components/radio/radio__item.js +46 -37
- package/components/select/select.d.ts +5 -2
- package/components/select/select.js +201 -180
- package/components/select/select__filter.d.ts +2 -2
- package/components/select/select__filter.js +2 -0
- package/components/select/select__popup.d.ts +6 -4
- package/components/select/select__popup.js +101 -84
- package/components/shortcuts/core.d.ts +0 -1
- package/components/shortcuts/core.js +1 -1
- package/components/shortcuts/shortcuts-hoc.d.ts +8 -8
- package/components/shortcuts/shortcuts-hoc.js +10 -8
- package/components/shortcuts/shortcuts.js +1 -1
- package/components/slider/slider.d.ts +2 -1
- package/components/slider/slider.js +78 -78
- package/components/slider/slider.utils.js +1 -1
- package/components/storage/storage.js +2 -1
- package/components/storage/storage__fallback.js +1 -1
- package/components/storage/storage__local.js +3 -2
- package/components/style.css +1 -1
- package/components/tab-trap/tab-trap.d.ts +2 -1
- package/components/tab-trap/tab-trap.js +25 -20
- package/components/table/cell.d.ts +2 -2
- package/components/table/cell.js +7 -5
- package/components/table/disable-hover-hoc.d.ts +9 -9
- package/components/table/disable-hover-hoc.js +4 -3
- package/components/table/header-cell.d.ts +2 -2
- package/components/table/header-cell.js +17 -13
- package/components/table/header.d.ts +3 -3
- package/components/table/header.js +34 -26
- package/components/table/multitable.d.ts +2 -2
- package/components/table/multitable.js +12 -10
- package/components/table/row-with-focus-sensor.d.ts +3 -3
- package/components/table/row-with-focus-sensor.js +5 -3
- package/components/table/row.d.ts +2 -1
- package/components/table/row.js +50 -44
- package/components/table/selection-adapter.js +1 -1
- package/components/table/selection-shortcuts-hoc.js +4 -3
- package/components/table/selection.js +1 -1
- package/components/table/smart-table.d.ts +44 -44
- package/components/table/smart-table.js +5 -3
- package/components/table/table.d.ts +2 -1
- package/components/table/table.js +55 -45
- package/components/tabs/collapsible-more.d.ts +4 -4
- package/components/tabs/collapsible-more.js +37 -30
- package/components/tabs/collapsible-tab.d.ts +2 -1
- package/components/tabs/collapsible-tab.js +6 -6
- package/components/tabs/collapsible-tabs.d.ts +4 -4
- package/components/tabs/collapsible-tabs.js +51 -46
- package/components/tabs/dumb-tabs.d.ts +2 -1
- package/components/tabs/dumb-tabs.js +24 -18
- package/components/tabs/smart-tabs.d.ts +2 -2
- package/components/tabs/smart-tabs.js +8 -4
- package/components/tabs/tab-link.d.ts +3 -3
- package/components/tabs/tab-link.js +1 -0
- package/components/tabs/tab.d.ts +2 -2
- package/components/tabs/tab.js +7 -5
- package/components/tabs/tabs.js +2 -0
- package/components/tag/tag.d.ts +2 -1
- package/components/tag/tag.js +31 -28
- package/components/tags-input/tags-input.d.ts +3 -2
- package/components/tags-input/tags-input.js +52 -47
- package/components/tags-list/tags-list.d.ts +2 -1
- package/components/tags-list/tags-list.js +8 -5
- package/components/text/text.d.ts +2 -2
- package/components/text/text.js +7 -4
- package/components/toggle/toggle.d.ts +2 -2
- package/components/toggle/toggle.js +25 -20
- package/components/tooltip/tooltip.d.ts +2 -1
- package/components/tooltip/tooltip.js +26 -21
- package/components/user-agreement/service.js +20 -12
- package/components/user-agreement/user-agreement.d.ts +2 -2
- package/components/user-agreement/user-agreement.js +56 -39
- package/components/user-card/card.d.ts +2 -1
- package/components/user-card/card.js +1 -0
- package/components/user-card/smart-user-card-tooltip.d.ts +3 -3
- package/components/user-card/smart-user-card-tooltip.js +11 -7
- package/components/user-card/tooltip.d.ts +3 -3
- package/components/user-card/tooltip.js +15 -11
- package/components/user-card/user-card.js +1 -0
- package/package.json +5 -5
@@ -1,7 +1,7 @@
|
|
1
1
|
/**
|
2
2
|
* @name List
|
3
3
|
*/
|
4
|
-
import
|
4
|
+
import { Component, ReactNode, SyntheticEvent } from 'react';
|
5
5
|
import PropTypes from 'prop-types';
|
6
6
|
import VirtualizedList, { ListRowProps } from 'react-virtualized/dist/es/List';
|
7
7
|
import { Size } from 'react-virtualized/dist/es/AutoSizer';
|
@@ -48,17 +48,17 @@ export interface ListProps<T = unknown> {
|
|
48
48
|
preventListOverscroll?: boolean | undefined;
|
49
49
|
}
|
50
50
|
export declare const ActiveItemContext: {
|
51
|
-
ValueContext:
|
52
|
-
UpdateContext:
|
51
|
+
ValueContext: import("react").Context<string | undefined>;
|
52
|
+
UpdateContext: import("react").Context<(value: string | undefined) => void>;
|
53
53
|
Provider: {
|
54
|
-
({ children }: import("../global/create-stateful-context").ProviderProps):
|
54
|
+
({ children }: import("../global/create-stateful-context").ProviderProps): import("react").JSX.Element;
|
55
55
|
propTypes: {
|
56
56
|
children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
57
57
|
};
|
58
58
|
displayName: string;
|
59
59
|
};
|
60
60
|
useUpdate: (value: string | undefined, skipUpdate?: boolean | undefined) => void;
|
61
|
-
Updater:
|
61
|
+
Updater: import("react").MemoExoticComponent<{
|
62
62
|
({ value, skipUpdate }: import("../global/create-stateful-context").UpdaterProps<string | undefined>): null;
|
63
63
|
displayName: string;
|
64
64
|
}>;
|
@@ -189,19 +189,19 @@ export default class List<T = unknown> extends Component<ListProps<T>, ListState
|
|
189
189
|
getVisibleListHeight(maxHeight: number): number;
|
190
190
|
private _deprecatedGenerateKeyFromContent;
|
191
191
|
getId(item: ListDataItem<T> | null): string | undefined;
|
192
|
-
renderItem: ({ index, style, isScrolling, parent, key }: Partial<ListRowProps>) =>
|
192
|
+
renderItem: ({ index, style, isScrolling, parent, key }: Partial<ListRowProps>) => import("react").JSX.Element;
|
193
193
|
addItemDataTestToProp: (props: ListDataItemProps<T>) => ListDataItemProps<T>;
|
194
194
|
virtualizedListRef: (el: VirtualizedList | null) => void;
|
195
195
|
containerRef: (el: HTMLElement | null) => void;
|
196
196
|
private _inner?;
|
197
197
|
get inner(): HTMLElement | null | undefined;
|
198
|
-
renderVirtualizedInner({ height, maxHeight, autoHeight, rowCount, isScrolling, onChildScroll, scrollTop, registerChild }: RenderVirtualizedInnerParams):
|
199
|
-
renderVirtualized(maxHeight: number | null | undefined, rowCount: number):
|
200
|
-
renderSimple(maxHeight: number | null | undefined, rowCount: number):
|
198
|
+
renderVirtualizedInner({ height, maxHeight, autoHeight, rowCount, isScrolling, onChildScroll, scrollTop, registerChild }: RenderVirtualizedInnerParams): import("react").JSX.Element;
|
199
|
+
renderVirtualized(maxHeight: number | null | undefined, rowCount: number): import("react").JSX.Element;
|
200
|
+
renderSimple(maxHeight: number | null | undefined, rowCount: number): import("react").JSX.Element;
|
201
201
|
id: string;
|
202
202
|
shortcutsScope: string;
|
203
203
|
shortcutsMap: ShortcutsMap;
|
204
204
|
/** @override */
|
205
|
-
render():
|
205
|
+
render(): import("react").JSX.Element;
|
206
206
|
}
|
207
207
|
export type ListAttrs<T = unknown> = JSX.LibraryManagedAttributes<typeof List, ListProps<T>>;
|
package/components/list/list.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import { _ as _defineProperty, a as _inherits, b as _createClass, d as _objectSpread2,
|
1
|
+
import { _ as _defineProperty, a as _inherits, b as _createClass, d as _objectSpread2, e as _classCallCheck, f as _callSuper, c as _objectWithoutProperties } from '../_helpers/_rollupPluginBabelHelpers.js';
|
2
2
|
import 'core-js/modules/es.symbol.js';
|
3
3
|
import 'core-js/modules/es.symbol.description.js';
|
4
4
|
import 'core-js/modules/es.array.concat.js';
|
@@ -9,7 +9,7 @@ import 'core-js/modules/es.array.map.js';
|
|
9
9
|
import 'core-js/modules/es.object.assign.js';
|
10
10
|
import 'core-js/modules/es.object.to-string.js';
|
11
11
|
import 'core-js/modules/es.string.includes.js';
|
12
|
-
import
|
12
|
+
import { Component, createElement } from 'react';
|
13
13
|
import PropTypes from 'prop-types';
|
14
14
|
import classNames from 'classnames';
|
15
15
|
import VirtualizedList from 'react-virtualized/dist/es/List';
|
@@ -33,6 +33,7 @@ import ListSeparator from './list__separator.js';
|
|
33
33
|
import ListHint from './list__hint.js';
|
34
34
|
import { Type, Dimension, DEFAULT_ITEM_TYPE } from './consts.js';
|
35
35
|
import { m as modules_3b67a421 } from '../_helpers/list.js';
|
36
|
+
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
36
37
|
import 'core-js/modules/es.array.reduce.js';
|
37
38
|
import 'core-js/modules/es.object.entries.js';
|
38
39
|
import 'core-js/modules/es.regexp.to-string.js';
|
@@ -70,6 +71,7 @@ import '../_helpers/icon__svg.js';
|
|
70
71
|
import 'core-js/modules/es.string.starts-with.js';
|
71
72
|
import '../global/prop-types.js';
|
72
73
|
import '../global/composeRefs.js';
|
74
|
+
import '../control-help/control-help.js';
|
73
75
|
import '../global/get-event-key.js';
|
74
76
|
|
75
77
|
var _excluded = ["selectedLabel", "originalModel"];
|
@@ -347,7 +349,7 @@ var List = /*#__PURE__*/function (_Component) {
|
|
347
349
|
// top and bottom margins
|
348
350
|
if (index === 0 || index === _this.props.data.length + 1 || item.rgItemType === Type.MARGIN) {
|
349
351
|
itemKey = key || "".concat(Type.MARGIN, "_").concat(index);
|
350
|
-
el = /*#__PURE__*/
|
352
|
+
el = /*#__PURE__*/jsx("div", {
|
351
353
|
style: {
|
352
354
|
height: Dimension.MARGIN
|
353
355
|
}
|
@@ -411,33 +413,36 @@ var List = /*#__PURE__*/function (_Component) {
|
|
411
413
|
default:
|
412
414
|
throw new Error("Unknown menu element type: ".concat(itemProps.rgItemType));
|
413
415
|
}
|
414
|
-
el = /*#__PURE__*/
|
416
|
+
el = /*#__PURE__*/createElement(ItemComponent, _objectSpread2(_objectSpread2({}, itemProps), {}, {
|
415
417
|
key: itemProps.key
|
416
418
|
}));
|
417
419
|
}
|
418
|
-
return parent ? /*#__PURE__*/
|
420
|
+
return parent ? /*#__PURE__*/jsx(CellMeasurer, {
|
419
421
|
cache: _this._cache,
|
420
|
-
key: itemKey,
|
421
422
|
parent: parent,
|
422
423
|
rowIndex: index,
|
423
|
-
columnIndex: 0
|
424
|
-
|
425
|
-
|
426
|
-
|
427
|
-
|
428
|
-
|
429
|
-
|
430
|
-
|
431
|
-
|
432
|
-
|
433
|
-
|
434
|
-
|
424
|
+
columnIndex: 0,
|
425
|
+
children: function children(_ref2) {
|
426
|
+
var registerChild = _ref2.registerChild;
|
427
|
+
return /*#__PURE__*/jsx("div", {
|
428
|
+
ref: registerChild,
|
429
|
+
style: style,
|
430
|
+
role: "row",
|
431
|
+
id: itemId,
|
432
|
+
children: /*#__PURE__*/jsx("div", {
|
433
|
+
role: "cell",
|
434
|
+
children: el
|
435
|
+
})
|
436
|
+
});
|
437
|
+
}
|
438
|
+
}, itemKey) : /*#__PURE__*/jsx("div", {
|
435
439
|
role: "row",
|
436
440
|
id: itemId,
|
437
|
-
|
438
|
-
|
439
|
-
|
440
|
-
|
441
|
+
children: /*#__PURE__*/jsx("div", {
|
442
|
+
role: "cell",
|
443
|
+
children: el
|
444
|
+
})
|
445
|
+
}, itemKey);
|
441
446
|
});
|
442
447
|
_defineProperty(_this, "addItemDataTestToProp", function (props) {
|
443
448
|
props['data-test'] = joinDataTestAttributes('ring-list-item', props['data-test']);
|
@@ -595,46 +600,48 @@ var List = /*#__PURE__*/function (_Component) {
|
|
595
600
|
var dirOverride = {
|
596
601
|
direction: 'inherit'
|
597
602
|
}; // Virtualized sets "direction: ltr" by default https://github.com/bvaughn/react-virtualized/issues/457
|
598
|
-
return /*#__PURE__*/
|
603
|
+
return /*#__PURE__*/jsx(AutoSizer, {
|
599
604
|
disableHeight: true,
|
600
|
-
onResize: this.props.onResize
|
601
|
-
|
602
|
-
|
603
|
-
|
604
|
-
|
605
|
-
|
606
|
-
|
607
|
-
|
608
|
-
|
609
|
-
|
610
|
-
|
611
|
-
|
612
|
-
|
613
|
-
|
614
|
-
|
615
|
-
|
616
|
-
|
617
|
-
|
618
|
-
|
619
|
-
|
620
|
-
|
621
|
-
|
622
|
-
|
623
|
-
|
624
|
-
|
625
|
-
|
626
|
-
|
627
|
-
|
628
|
-
|
629
|
-
|
630
|
-
|
631
|
-
|
632
|
-
|
633
|
-
|
634
|
-
|
635
|
-
|
636
|
-
|
637
|
-
|
605
|
+
onResize: this.props.onResize,
|
606
|
+
children: function children(_ref4) {
|
607
|
+
var width = _ref4.width;
|
608
|
+
return /*#__PURE__*/jsx("div", {
|
609
|
+
ref: registerChild,
|
610
|
+
children: /*#__PURE__*/jsx(VirtualizedList, {
|
611
|
+
"aria-label": _this3.props.ariaLabel,
|
612
|
+
ref: _this3.virtualizedListRef,
|
613
|
+
className: classNames('ring-list__i', {
|
614
|
+
[modules_3b67a421.overscrollNone]: _this3.props.preventListOverscroll
|
615
|
+
}),
|
616
|
+
autoHeight: autoHeight,
|
617
|
+
style: maxHeight ? _objectSpread2({
|
618
|
+
maxHeight,
|
619
|
+
height: 'auto'
|
620
|
+
}, dirOverride) : dirOverride,
|
621
|
+
autoContainerWidth: true,
|
622
|
+
height: height,
|
623
|
+
width: width,
|
624
|
+
isScrolling: isScrolling,
|
625
|
+
onScroll: function onScroll(e) {
|
626
|
+
onChildScroll(e);
|
627
|
+
_this3.scrollEndHandler();
|
628
|
+
},
|
629
|
+
scrollTop: scrollTop,
|
630
|
+
rowCount: rowCount,
|
631
|
+
estimatedRowSize: _this3.defaultItemHeight(),
|
632
|
+
rowHeight: _this3._cache.rowHeight,
|
633
|
+
rowRenderer: _this3.renderItem,
|
634
|
+
overscanRowCount: _this3._bufferSize
|
635
|
+
// ensure rerendering
|
636
|
+
,
|
637
|
+
noop: function noop() {},
|
638
|
+
scrollToIndex: !_this3.props.disableScrollToActive && _this3.state.needScrollToActive && _this3.state.activeIndex != null ? _this3.state.activeIndex + 1 : undefined,
|
639
|
+
scrollToAlignment: "center",
|
640
|
+
deferredMeasurementCache: _this3._cache,
|
641
|
+
onRowsRendered: _this3.checkOverflow
|
642
|
+
})
|
643
|
+
});
|
644
|
+
}
|
638
645
|
});
|
639
646
|
}
|
640
647
|
}, {
|
@@ -648,11 +655,13 @@ var List = /*#__PURE__*/function (_Component) {
|
|
648
655
|
rowCount
|
649
656
|
});
|
650
657
|
}
|
651
|
-
return /*#__PURE__*/
|
652
|
-
|
653
|
-
|
654
|
-
|
655
|
-
|
658
|
+
return /*#__PURE__*/jsx(WindowScroller, {
|
659
|
+
children: function children(props) {
|
660
|
+
return _this4.renderVirtualizedInner(_objectSpread2(_objectSpread2({}, props), {}, {
|
661
|
+
rowCount,
|
662
|
+
autoHeight: true
|
663
|
+
}));
|
664
|
+
}
|
656
665
|
});
|
657
666
|
}
|
658
667
|
}, {
|
@@ -665,17 +674,19 @@ var List = /*#__PURE__*/function (_Component) {
|
|
665
674
|
isScrolling: this.state.scrolling
|
666
675
|
}));
|
667
676
|
}
|
668
|
-
return /*#__PURE__*/
|
677
|
+
return /*#__PURE__*/jsx("div", {
|
669
678
|
className: classNames('ring-list__i', modules_3b67a421.simpleInner),
|
670
679
|
onScroll: this.scrollHandler,
|
671
|
-
onMouseMove: this.mouseHandler
|
672
|
-
|
673
|
-
|
674
|
-
|
675
|
-
|
676
|
-
|
677
|
-
|
678
|
-
|
680
|
+
onMouseMove: this.mouseHandler,
|
681
|
+
children: /*#__PURE__*/jsx("div", {
|
682
|
+
"aria-label": this.props.ariaLabel,
|
683
|
+
role: "grid",
|
684
|
+
style: maxHeight ? {
|
685
|
+
maxHeight: this.getVisibleListHeight(maxHeight)
|
686
|
+
} : undefined,
|
687
|
+
children: items
|
688
|
+
})
|
689
|
+
});
|
679
690
|
}
|
680
691
|
}, {
|
681
692
|
key: "render",
|
@@ -688,26 +699,29 @@ var List = /*#__PURE__*/function (_Component) {
|
|
688
699
|
var rowCount = this.props.data.length + 2;
|
689
700
|
var maxHeight = this.props.maxHeight && this.getVisibleListHeight(this.props.maxHeight);
|
690
701
|
var classes = classNames(modules_3b67a421.list, this.props.className);
|
691
|
-
return /*#__PURE__*/
|
692
|
-
|
693
|
-
|
694
|
-
|
695
|
-
|
696
|
-
|
697
|
-
|
698
|
-
|
699
|
-
|
700
|
-
|
701
|
-
|
702
|
-
|
703
|
-
|
704
|
-
|
705
|
-
|
706
|
-
|
707
|
-
|
708
|
-
|
709
|
-
|
710
|
-
|
702
|
+
return /*#__PURE__*/jsxs(Fragment, {
|
703
|
+
children: [/*#__PURE__*/jsx(ActiveItemContext.Updater, {
|
704
|
+
value: this.getId(this.state.activeItem),
|
705
|
+
skipUpdate: this.props.hidden || !isActivatable(this.state.activeItem)
|
706
|
+
}), /*#__PURE__*/jsxs("div", {
|
707
|
+
id: this.props.id,
|
708
|
+
ref: this.containerRef,
|
709
|
+
className: classes,
|
710
|
+
onMouseOut: this.props.onMouseOut,
|
711
|
+
onBlur: this.props.onMouseOut,
|
712
|
+
onMouseLeave: this.clearSelected,
|
713
|
+
"data-test": "ring-list",
|
714
|
+
children: [this.props.shortcuts && /*#__PURE__*/jsx(Shortcuts, {
|
715
|
+
map: this.props.shortcutsMap ? _objectSpread2(_objectSpread2({}, this.shortcutsMap), this.props.shortcutsMap) : this.shortcutsMap,
|
716
|
+
scope: this.shortcutsScope
|
717
|
+
}), this.props.renderOptimization ? this.renderVirtualized(maxHeight, rowCount) : this.renderSimple(maxHeight, rowCount), this.state.hasOverflow && !this.state.scrolledToBottom && /*#__PURE__*/jsx("div", {
|
718
|
+
className: modules_3b67a421.fade,
|
719
|
+
style: fadeStyles
|
720
|
+
}), hint && /*#__PURE__*/jsx(ListHint, {
|
721
|
+
label: hint
|
722
|
+
})]
|
723
|
+
})]
|
724
|
+
});
|
711
725
|
}
|
712
726
|
}], [{
|
713
727
|
key: "getDerivedStateFromProps",
|
@@ -1,4 +1,5 @@
|
|
1
|
-
import
|
1
|
+
import { PureComponent } from 'react';
|
2
|
+
import * as React from 'react';
|
2
3
|
import { ListDataItemProps } from './consts';
|
3
4
|
export default class ListCustom<T> extends PureComponent<ListDataItemProps<T>> {
|
4
5
|
handleKeyPress: (event: React.KeyboardEvent) => void;
|
@@ -1,11 +1,12 @@
|
|
1
|
-
import { a as _inherits, b as _createClass, c as _objectWithoutProperties,
|
1
|
+
import { a as _inherits, b as _createClass, c as _objectWithoutProperties, e as _classCallCheck, f as _callSuper, _ as _defineProperty } from '../_helpers/_rollupPluginBabelHelpers.js';
|
2
2
|
import 'core-js/modules/es.array.concat.js';
|
3
|
-
import
|
3
|
+
import { PureComponent } from 'react';
|
4
4
|
import PropTypes from 'prop-types';
|
5
5
|
import classNames from 'classnames';
|
6
6
|
import joinDataTestAttributes from '../global/data-tests.js';
|
7
7
|
import getEventKey from '../global/get-event-key.js';
|
8
8
|
import { m as modules_3b67a421 } from '../_helpers/list.js';
|
9
|
+
import { jsx } from 'react/jsx-runtime';
|
9
10
|
import 'core-js/modules/es.array.reduce.js';
|
10
11
|
import 'core-js/modules/es.object.entries.js';
|
11
12
|
import 'core-js/modules/es.object.to-string.js';
|
@@ -56,7 +57,7 @@ var ListCustom = /*#__PURE__*/function (_PureComponent) {
|
|
56
57
|
}, restProps['data-test']);
|
57
58
|
var content = typeof template === 'function' ? template(this.props) : template;
|
58
59
|
var TagName = tagName || 'span';
|
59
|
-
return /*#__PURE__*/
|
60
|
+
return /*#__PURE__*/jsx(TagName, {
|
60
61
|
role: role || 'button',
|
61
62
|
tabIndex: tabIndex,
|
62
63
|
onClick: onClick,
|
@@ -65,8 +66,9 @@ var ListCustom = /*#__PURE__*/function (_PureComponent) {
|
|
65
66
|
onFocus: onMouseOver,
|
66
67
|
onMouseUp: onMouseUp,
|
67
68
|
className: classes,
|
68
|
-
"data-test": dataTest
|
69
|
-
|
69
|
+
"data-test": dataTest,
|
70
|
+
children: content
|
71
|
+
});
|
70
72
|
}
|
71
73
|
}]);
|
72
74
|
}(PureComponent);
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import
|
1
|
+
import { PureComponent, ReactNode } from 'react';
|
2
2
|
import PropTypes from 'prop-types';
|
3
3
|
export interface ListHintProps {
|
4
4
|
label: ReactNode;
|
@@ -11,5 +11,5 @@ export default class ListHint extends PureComponent<ListHintProps> {
|
|
11
11
|
static propTypes: {
|
12
12
|
label: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
13
13
|
};
|
14
|
-
render():
|
14
|
+
render(): import("react").JSX.Element;
|
15
15
|
}
|
@@ -1,13 +1,10 @@
|
|
1
|
-
import { _ as _defineProperty, a as _inherits, b as _createClass,
|
2
|
-
import
|
1
|
+
import { _ as _defineProperty, a as _inherits, b as _createClass, e as _classCallCheck, f as _callSuper } from '../_helpers/_rollupPluginBabelHelpers.js';
|
2
|
+
import { PureComponent } from 'react';
|
3
3
|
import PropTypes from 'prop-types';
|
4
4
|
import classNames from 'classnames';
|
5
5
|
import { m as modules_3b67a421 } from '../_helpers/list.js';
|
6
|
+
import { jsx } from 'react/jsx-runtime';
|
6
7
|
|
7
|
-
/**
|
8
|
-
* @constructor
|
9
|
-
* @extends {ReactComponent}
|
10
|
-
*/
|
11
8
|
var ListHint = /*#__PURE__*/function (_PureComponent) {
|
12
9
|
function ListHint() {
|
13
10
|
_classCallCheck(this, ListHint);
|
@@ -17,10 +14,11 @@ var ListHint = /*#__PURE__*/function (_PureComponent) {
|
|
17
14
|
return _createClass(ListHint, [{
|
18
15
|
key: "render",
|
19
16
|
value: function render() {
|
20
|
-
return /*#__PURE__*/
|
17
|
+
return /*#__PURE__*/jsx("span", {
|
21
18
|
className: classNames(modules_3b67a421.item, modules_3b67a421.hint),
|
22
|
-
"data-test": "ring-list-hint"
|
23
|
-
|
19
|
+
"data-test": "ring-list-hint",
|
20
|
+
children: this.props.label
|
21
|
+
});
|
24
22
|
}
|
25
23
|
}]);
|
26
24
|
}(PureComponent);
|
@@ -1,8 +1,8 @@
|
|
1
|
-
import
|
1
|
+
import { PureComponent, SyntheticEvent } from 'react';
|
2
2
|
import { ListDataItemProps } from './consts';
|
3
3
|
export default class ListItem<T> extends PureComponent<ListDataItemProps<T>> {
|
4
4
|
id: string;
|
5
5
|
stopBubbling: (e: SyntheticEvent) => void;
|
6
6
|
private _isString;
|
7
|
-
render():
|
7
|
+
render(): import("react").JSX.Element;
|
8
8
|
}
|
@@ -1,9 +1,9 @@
|
|
1
|
-
import { a as _inherits, b as _createClass, c as _objectWithoutProperties,
|
1
|
+
import { a as _inherits, b as _createClass, c as _objectWithoutProperties, e as _classCallCheck, f as _callSuper, _ as _defineProperty } from '../_helpers/_rollupPluginBabelHelpers.js';
|
2
2
|
import 'core-js/modules/es.symbol.js';
|
3
3
|
import 'core-js/modules/es.symbol.description.js';
|
4
4
|
import 'core-js/modules/es.array.concat.js';
|
5
5
|
import 'core-js/modules/es.array.index-of.js';
|
6
|
-
import
|
6
|
+
import { PureComponent } from 'react';
|
7
7
|
import PropTypes from 'prop-types';
|
8
8
|
import classNames from 'classnames';
|
9
9
|
import joinDataTestAttributes from '../global/data-tests.js';
|
@@ -12,6 +12,7 @@ import Checkbox from '../checkbox/checkbox.js';
|
|
12
12
|
import Icon from '../icon/icon.js';
|
13
13
|
import getUID from '../global/get-uid.js';
|
14
14
|
import { m as modules_3b67a421 } from '../_helpers/list.js';
|
15
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
15
16
|
import 'core-js/modules/es.array.reduce.js';
|
16
17
|
import 'core-js/modules/es.object.entries.js';
|
17
18
|
import 'core-js/modules/es.object.to-string.js';
|
@@ -36,6 +37,7 @@ import '@jetbrains/icons/checkmark-12px';
|
|
36
37
|
import '@jetbrains/icons/remove-12px';
|
37
38
|
import '../global/prop-types.js';
|
38
39
|
import '../global/composeRefs.js';
|
40
|
+
import '../control-help/control-help.js';
|
39
41
|
import 'util-deprecate';
|
40
42
|
import '../icon/icon__constants.js';
|
41
43
|
import '../_helpers/icon__svg.js';
|
@@ -47,10 +49,6 @@ import 'core-js/modules/es.weak-map.js';
|
|
47
49
|
var modules_5b0fb3e8 = {"footer-height":"calc(var(--ring-unit)*8)","breakpoint-small":"640px","breakpoint-middle":"960px","breakpoint-large":"1200px","extra-small-screen-media":"(max-width: 639px)","small-screen-media":"(min-width: 640px) and (max-width: 959px)","middle-screen-media":"(min-width: 960px) and (max-width: 1199px)","large-screen-media":"(min-width: 1200px)","clearfix":"clearfix_rui_f295","font":"font_rui_f295","font-lower":"font-lower_rui_f295 font_rui_f295","font-smaller":"font-smaller_rui_f295 font-lower_rui_f295 font_rui_f295","font-smaller-lower":"font-smaller-lower_rui_f295 font-smaller_rui_f295 font-lower_rui_f295 font_rui_f295","font-larger-lower":"font-larger-lower_rui_f295 font-lower_rui_f295 font_rui_f295","font-larger":"font-larger_rui_f295 font-larger-lower_rui_f295 font-lower_rui_f295 font_rui_f295","thin-font":"thin-font_rui_f295","monospace-font":"monospace-font_rui_f295","ellipsis":"ellipsis_rui_f295","resetButton":"resetButton_rui_f295"};
|
48
50
|
|
49
51
|
var _excluded = ["scrolling", "className", "disabled", "checkbox", "avatar", "subavatar", "glyph", "icon", "rightGlyph", "description", "label", "title", "details", "hover", "rgItemType", "level", "tabIndex", "compact", "onClick", "onCheckboxChange", "onMouseOver", "onMouseDown", "onMouseUp", "rightNodes", "leftNodes", "showGeneratedAvatar", "username", "labelWrapper"];
|
50
|
-
/**
|
51
|
-
* @constructor
|
52
|
-
* @extends {ReactComponent}
|
53
|
-
*/
|
54
52
|
var RING_UNIT = 8;
|
55
53
|
var DEFAULT_PADDING = 16;
|
56
54
|
var CHECKBOX_WIDTH = 28;
|
@@ -137,68 +135,78 @@ var ListItem = /*#__PURE__*/function (_PureComponent) {
|
|
137
135
|
'ring-list-item-action': !disabled,
|
138
136
|
'ring-list-item-selected': checkbox
|
139
137
|
}, restProps['data-test']);
|
140
|
-
var labelElement = /*#__PURE__*/
|
138
|
+
var labelElement = /*#__PURE__*/jsx("span", {
|
141
139
|
className: modules_3b67a421.label,
|
142
140
|
title: computedTitle,
|
143
|
-
"data-test": "ring-list-item-label"
|
144
|
-
|
145
|
-
|
141
|
+
"data-test": "ring-list-item-label",
|
142
|
+
children: label
|
143
|
+
});
|
144
|
+
return /*#__PURE__*/jsxs("div", {
|
146
145
|
className: modules_3b67a421.itemContainer,
|
147
|
-
"data-test": dataTest
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
146
|
+
"data-test": dataTest,
|
147
|
+
children: [showCheckbox && /*#__PURE__*/jsx("div", {
|
148
|
+
className: modules_3b67a421.checkboxContainer,
|
149
|
+
children: /*#__PURE__*/jsx(Checkbox, {
|
150
|
+
"aria-labelledby": this.id,
|
151
|
+
checked: checkbox,
|
152
|
+
disabled: disabled,
|
153
|
+
onChange: onCheckboxChange,
|
154
|
+
onClick: this.stopBubbling
|
155
|
+
})
|
156
|
+
}), /*#__PURE__*/jsxs("button", {
|
157
|
+
id: this.id,
|
158
|
+
type: "button",
|
159
|
+
tabIndex: tabIndex,
|
160
|
+
onClick: onClick,
|
161
|
+
onMouseOver: onMouseOver,
|
162
|
+
onMouseDown: onMouseDown,
|
163
|
+
onFocus: onMouseOver,
|
164
|
+
onMouseUp: onMouseUp,
|
165
|
+
className: classes,
|
166
|
+
style: style,
|
167
|
+
disabled: disabled,
|
168
|
+
children: [/*#__PURE__*/jsxs("div", {
|
169
|
+
className: modules_3b67a421.top,
|
170
|
+
onMouseOut: this.stopBubbling,
|
171
|
+
onBlur: this.stopBubbling,
|
172
|
+
children: [!showCheckbox && /*#__PURE__*/jsxs("div", {
|
173
|
+
className: modules_3b67a421.left,
|
174
|
+
children: [leftNodes, glyph && /*#__PURE__*/jsx(Icon, {
|
175
|
+
className: modules_3b67a421.glyph,
|
176
|
+
glyph: glyph,
|
177
|
+
size: this.props.iconSize,
|
178
|
+
suppressSizeWarning: this.props.suppressSizeWarning
|
179
|
+
}), (avatar || shouldShowGeneratedAvatar) && /*#__PURE__*/jsx(Avatar, {
|
180
|
+
className: modules_3b67a421.avatar,
|
181
|
+
url: avatar,
|
182
|
+
size: Size.Size20,
|
183
|
+
subavatar: subavatar,
|
184
|
+
username: username
|
185
|
+
})]
|
186
|
+
}), labelWrapper ? labelWrapper(labelElement) : labelElement, description && /*#__PURE__*/jsx("span", {
|
187
|
+
className: modules_3b67a421.description,
|
188
|
+
"data-test": "ring-list-item-description",
|
189
|
+
children: description
|
190
|
+
}), /*#__PURE__*/jsxs("div", {
|
191
|
+
className: modules_3b67a421.right,
|
192
|
+
children: [rightGlyph && /*#__PURE__*/jsx(Icon, {
|
193
|
+
className: modules_3b67a421.rightGlyph,
|
194
|
+
glyph: rightGlyph,
|
195
|
+
suppressSizeWarning: this.props.suppressSizeWarning,
|
196
|
+
size: this.props.iconSize
|
197
|
+
}), icon && /*#__PURE__*/jsx("div", {
|
198
|
+
className: modules_3b67a421.icon,
|
199
|
+
style: {
|
200
|
+
backgroundImage: "url(\"".concat(icon, "\")")
|
201
|
+
}
|
202
|
+
}), rightNodes]
|
203
|
+
})]
|
204
|
+
}), details && /*#__PURE__*/jsx("div", {
|
205
|
+
className: detailsClasses,
|
206
|
+
children: details
|
207
|
+
})]
|
208
|
+
})]
|
209
|
+
});
|
202
210
|
}
|
203
211
|
}]);
|
204
212
|
}(PureComponent);
|
@@ -1,9 +1,9 @@
|
|
1
|
-
import
|
1
|
+
import { PureComponent } from 'react';
|
2
2
|
import { ListDataItemProps } from './consts';
|
3
3
|
/**
|
4
4
|
* @constructor
|
5
5
|
* @extends {ReactComponent}
|
6
6
|
*/
|
7
7
|
export default class ListLink<T> extends PureComponent<ListDataItemProps<T>> {
|
8
|
-
render():
|
8
|
+
render(): import("react").JSX.Element;
|
9
9
|
}
|