@jetbrains/ring-ui-built 7.0.10 → 7.0.12
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 +2 -2
- package/components/_helpers/caption.js +2 -2
- package/components/_helpers/card.js +19 -19
- package/components/_helpers/icon__svg.js +2 -2
- package/components/_helpers/input.js +11 -11
- package/components/_helpers/query-assist__suggestions.js +5 -5
- package/components/_helpers/select__filter.js +4 -4
- package/components/_helpers/services-link.js +4 -4
- package/components/_helpers/sidebar.js +6 -6
- package/components/_helpers/tab-link.js +7 -7
- package/components/_helpers/theme.js +7 -7
- package/components/_helpers/title.js +5 -5
- package/components/alert/alert.d.ts +1 -1
- package/components/alert/alert.js +7 -8
- package/components/alert/container.js +2 -2
- package/components/alert-service/alert-service.d.ts +1 -1
- package/components/alert-service/alert-service.js +7 -4
- package/components/auth/auth.js +2 -2
- package/components/auth/auth__core.js +1 -1
- package/components/auth/down-notification.js +9 -9
- package/components/auth/iframe-flow.js +2 -2
- package/components/auth/storage.js +1 -1
- package/components/auth-dialog/auth-dialog.d.ts +1 -1
- package/components/auth-dialog/auth-dialog.js +10 -10
- package/components/auth-dialog-service/auth-dialog-service.js +6 -3
- package/components/avatar/avatar.d.ts +1 -1
- package/components/avatar/avatar.js +10 -7
- package/components/avatar/fallback-avatar.d.ts +1 -1
- package/components/avatar/fallback-avatar.js +12 -12
- package/components/breadcrumbs/breadcrumbs.d.ts +1 -1
- package/components/breadcrumbs/breadcrumbs.js +2 -3
- package/components/button/button.d.ts +1 -1
- package/components/button/button.js +7 -7
- package/components/button-group/button-group.d.ts +1 -1
- package/components/button-group/button-group.js +8 -5
- 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 +5 -2
- package/components/button-toolbar/button-toolbar.d.ts +1 -1
- package/components/button-toolbar/button-toolbar.js +5 -2
- package/components/checkbox/checkbox.d.ts +1 -1
- package/components/checkbox/checkbox.js +15 -9
- package/components/clipboard/clipboard.js +1 -1
- package/components/code/code.d.ts +1 -1
- package/components/code/code.js +4 -4
- package/components/collapse/collapse-content.js +4 -4
- package/components/collapse/collapse-control.js +5 -2
- package/components/collapse/collapse.js +6 -3
- package/components/confirm/confirm.d.ts +1 -1
- package/components/confirm/confirm.js +11 -8
- package/components/confirm-service/confirm-service.js +3 -3
- package/components/content-layout/content-layout.d.ts +1 -1
- package/components/content-layout/content-layout.js +6 -3
- 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 +7 -5
- package/components/control-help/control-help.d.ts +1 -1
- package/components/control-help/control-help.js +2 -2
- package/components/control-label/control-label.js +2 -3
- package/components/data-list/data-list.d.ts +3 -3
- package/components/data-list/data-list.js +8 -8
- package/components/data-list/data-list.mock.d.ts +1 -1
- package/components/data-list/data-list.mock.js +58 -58
- package/components/data-list/item.d.ts +2 -2
- package/components/data-list/item.js +13 -13
- package/components/data-list/title.d.ts +1 -1
- package/components/data-list/title.js +1 -1
- package/components/date-picker/date-input.d.ts +1 -1
- package/components/date-picker/date-input.js +2 -2
- package/components/date-picker/date-picker.d.ts +1 -1
- package/components/date-picker/date-picker.js +10 -10
- package/components/date-picker/date-popup.d.ts +1 -1
- package/components/date-picker/date-popup.js +9 -9
- package/components/date-picker/day.d.ts +1 -1
- package/components/date-picker/day.js +2 -3
- package/components/date-picker/month-names.d.ts +1 -1
- package/components/date-picker/month-names.js +6 -6
- package/components/date-picker/month-slider.d.ts +1 -1
- package/components/date-picker/month-slider.js +3 -3
- package/components/date-picker/month.d.ts +1 -1
- package/components/date-picker/month.js +6 -6
- package/components/date-picker/months.d.ts +1 -1
- package/components/date-picker/months.js +6 -6
- package/components/date-picker/weekdays.d.ts +1 -1
- package/components/date-picker/weekdays.js +3 -3
- package/components/date-picker/years.d.ts +1 -1
- package/components/date-picker/years.js +3 -3
- package/components/dialog/dialog.d.ts +1 -1
- package/components/dialog/dialog.js +15 -12
- package/components/dropdown/anchor.d.ts +1 -1
- package/components/dropdown/anchor.js +1 -1
- package/components/dropdown/dropdown.d.ts +1 -1
- package/components/dropdown/dropdown.js +7 -5
- package/components/dropdown-menu/dropdown-menu.js +8 -8
- package/components/editable-heading/editable-heading.d.ts +2 -2
- package/components/editable-heading/editable-heading.js +15 -15
- package/components/error-bubble/error-bubble.d.ts +1 -1
- package/components/error-bubble/error-bubble.js +7 -4
- package/components/error-message/error-message.d.ts +1 -1
- package/components/error-message/error-message.js +9 -6
- package/components/footer/footer.js +8 -8
- package/components/global/create-stateful-context.d.ts +1 -1
- package/components/global/create-stateful-context.js +3 -3
- package/components/global/focus-sensor-hoc.js +2 -2
- 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 +3 -3
- package/components/global/theme.js +1 -1
- package/components/grid/col.d.ts +1 -1
- package/components/grid/col.js +2 -2
- package/components/grid/grid.d.ts +1 -1
- package/components/grid/grid.js +5 -2
- package/components/grid/row.d.ts +1 -1
- package/components/grid/row.js +2 -2
- package/components/group/group.d.ts +1 -1
- package/components/group/group.js +5 -2
- package/components/header/header-icon.d.ts +1 -1
- package/components/header/header-icon.js +2 -2
- package/components/header/header.d.ts +1 -1
- package/components/header/header.js +9 -3
- package/components/header/links.d.ts +1 -1
- package/components/header/links.js +3 -2
- package/components/header/logo.d.ts +1 -1
- package/components/header/logo.js +3 -3
- package/components/header/profile.d.ts +1 -1
- package/components/header/profile.js +11 -11
- 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 +8 -8
- package/components/header/smart-profile.d.ts +1 -1
- package/components/header/smart-profile.js +2 -2
- package/components/header/smart-services.d.ts +1 -1
- package/components/header/smart-services.js +2 -2
- package/components/header/tray.d.ts +1 -1
- package/components/header/tray.js +3 -3
- package/components/heading/heading.js +9 -6
- package/components/i18n/i18n-context.js +2 -2
- package/components/icon/icon.d.ts +1 -1
- package/components/icon/icon.js +4 -4
- package/components/icon/icon__svg.d.ts +1 -1
- package/components/icon/icon__svg.js +1 -1
- package/components/icon/index.js +1 -1
- package/components/input/input.d.ts +1 -1
- package/components/input/input.js +1 -1
- package/components/island/adaptive-island-hoc.d.ts +2 -2
- package/components/island/adaptive-island-hoc.js +4 -4
- package/components/island/content.d.ts +1 -1
- package/components/island/content.js +6 -6
- package/components/island/header.d.ts +1 -1
- package/components/island/header.js +5 -5
- package/components/island/island.d.ts +3 -3
- package/components/island/island.js +5 -2
- package/components/link/clickableLink.d.ts +1 -1
- package/components/link/clickableLink.js +2 -2
- package/components/link/link.d.ts +4 -4
- package/components/link/link.js +3 -3
- package/components/list/list.d.ts +6 -6
- package/components/list/list.js +20 -21
- 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 +6 -2
- package/components/list/list__item.d.ts +1 -1
- package/components/list/list__item.js +19 -15
- package/components/list/list__link.d.ts +1 -1
- package/components/list/list__link.js +6 -2
- package/components/list/list__separator.d.ts +1 -1
- package/components/list/list__separator.js +2 -2
- package/components/list/list__title.d.ts +1 -1
- package/components/list/list__title.js +4 -4
- package/components/list/list__users-groups-source.js +1 -1
- package/components/loader/loader.d.ts +1 -1
- package/components/loader/loader.js +8 -2
- package/components/loader-inline/loader-inline.d.ts +1 -1
- package/components/loader-inline/loader-inline.js +7 -4
- package/components/loader-screen/loader-screen.d.ts +1 -1
- package/components/loader-screen/loader-screen.js +6 -3
- package/components/login-dialog/login-dialog.d.ts +1 -1
- package/components/login-dialog/login-dialog.js +6 -6
- package/components/login-dialog/service.js +3 -3
- package/components/markdown/markdown.d.ts +1 -1
- package/components/markdown/markdown.js +5 -2
- package/components/message/message.d.ts +1 -1
- package/components/message/message.js +14 -11
- package/components/old-browsers-message/white-list.js +2 -2
- package/components/pager/pager.d.ts +5 -5
- package/components/pager/pager.js +21 -21
- package/components/panel/panel.d.ts +1 -1
- package/components/panel/panel.js +5 -2
- package/components/popup/popup.d.ts +2 -2
- package/components/popup/popup.js +9 -11
- package/components/popup/popup.target.js +3 -3
- package/components/popup-menu/popup-menu.d.ts +1 -1
- package/components/popup-menu/popup-menu.js +6 -3
- package/components/progress-bar/progress-bar.d.ts +1 -1
- package/components/progress-bar/progress-bar.js +6 -3
- package/components/query-assist/query-assist.d.ts +2 -2
- package/components/query-assist/query-assist.js +20 -22
- package/components/query-assist/query-assist__suggestions.d.ts +1 -1
- package/components/query-assist/query-assist__suggestions.js +1 -1
- package/components/radio/radio.d.ts +1 -1
- package/components/radio/radio.js +5 -2
- package/components/radio/radio__item.d.ts +1 -1
- package/components/radio/radio__item.js +8 -8
- package/components/scrollable-section/scrollable-section.d.ts +1 -1
- package/components/scrollable-section/scrollable-section.js +2 -2
- package/components/select/select.d.ts +3 -3
- package/components/select/select.js +35 -34
- package/components/select/select__filter.d.ts +1 -1
- package/components/select/select__filter.js +1 -1
- package/components/select/select__popup.d.ts +7 -7
- package/components/select/select__popup.js +18 -18
- package/components/shortcuts/shortcuts-hoc.d.ts +2 -2
- package/components/shortcuts/shortcuts-hoc.js +3 -3
- package/components/slider/slider.js +9 -10
- package/components/storage/storage.js +1 -1
- package/components/storage/storage__local.js +1 -1
- package/components/style.css +1 -1
- package/components/tab-trap/tab-trap.js +5 -5
- package/components/table/cell.d.ts +1 -1
- package/components/table/cell.js +2 -2
- package/components/table/disable-hover-hoc.d.ts +2 -2
- package/components/table/disable-hover-hoc.js +2 -2
- package/components/table/header-cell.d.ts +1 -1
- package/components/table/header-cell.js +5 -5
- package/components/table/header.d.ts +2 -2
- package/components/table/header.js +8 -8
- package/components/table/multitable.d.ts +1 -1
- package/components/table/multitable.js +2 -2
- package/components/table/row-with-focus-sensor.d.ts +1 -1
- package/components/table/row-with-focus-sensor.js +2 -2
- package/components/table/row.d.ts +1 -1
- package/components/table/row.js +12 -12
- package/components/table/selection-shortcuts-hoc.js +2 -2
- package/components/table/simple-table.d.ts +1 -1
- package/components/table/simple-table.js +2 -2
- package/components/table/smart-table.d.ts +1 -1
- package/components/table/smart-table.js +2 -2
- package/components/table/table.d.ts +4 -4
- package/components/table/table.js +17 -14
- package/components/tabs/collapsible-more.d.ts +3 -3
- package/components/tabs/collapsible-more.js +8 -8
- package/components/tabs/collapsible-tab.d.ts +1 -1
- package/components/tabs/collapsible-tab.js +3 -3
- package/components/tabs/collapsible-tabs.d.ts +2 -2
- package/components/tabs/collapsible-tabs.js +6 -6
- package/components/tabs/dumb-tabs.d.ts +2 -3
- package/components/tabs/dumb-tabs.js +6 -6
- package/components/tabs/smart-tabs.d.ts +1 -1
- package/components/tabs/smart-tabs.js +2 -2
- package/components/tabs/tab-link.d.ts +1 -1
- package/components/tabs/tab-link.js +1 -1
- package/components/tabs/tab.d.ts +1 -1
- package/components/tabs/tab.js +2 -2
- package/components/tabs/tabs.js +1 -1
- package/components/tag/tag.d.ts +5 -5
- package/components/tag/tag.js +12 -9
- package/components/tags-input/tags-input.d.ts +1 -1
- package/components/tags-input/tags-input.js +5 -5
- package/components/tags-list/tags-list.d.ts +2 -2
- package/components/tags-list/tags-list.js +2 -2
- 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 +9 -9
- package/components/tooltip/tooltip.d.ts +1 -1
- package/components/tooltip/tooltip.js +6 -6
- package/components/user-agreement/service.js +7 -7
- package/components/user-agreement/user-agreement.d.ts +1 -1
- package/components/user-agreement/user-agreement.js +13 -13
- package/components/user-card/card.d.ts +1 -1
- package/components/user-card/card.js +1 -1
- 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 +2 -2
- package/components/user-card/tooltip.js +4 -4
- package/components/user-card/user-card.js +1 -1
- package/package.json +2 -2
@@ -50,7 +50,7 @@ export declare const ActiveItemContext: {
|
|
50
50
|
ValueContext: import("react").Context<string | undefined>;
|
51
51
|
UpdateContext: import("react").Context<(value: string | undefined) => void>;
|
52
52
|
Provider: {
|
53
|
-
({ children }: import("../global/create-stateful-context").ProviderProps): import("react").JSX.Element;
|
53
|
+
({ children }: import("../global/create-stateful-context").ProviderProps): import("react/jsx-runtime").JSX.Element;
|
54
54
|
displayName: string;
|
55
55
|
};
|
56
56
|
useUpdate: (value: string | undefined, skipUpdate?: boolean) => void;
|
@@ -151,19 +151,19 @@ export default class List<T = unknown> extends Component<ListProps<T>, ListState
|
|
151
151
|
getVisibleListHeight(maxHeight: number): number;
|
152
152
|
private _deprecatedGenerateKeyFromContent;
|
153
153
|
getId(item: ListDataItem<T> | null): string | undefined;
|
154
|
-
renderItem: ({ index, style, isScrolling, parent, key }: Partial<ListRowProps>) => import("react").JSX.Element;
|
154
|
+
renderItem: ({ index, style, isScrolling, parent, key }: Partial<ListRowProps>) => import("react/jsx-runtime").JSX.Element;
|
155
155
|
addItemDataTestToProp: (props: ListDataItemProps<T>) => ListDataItemProps<T>;
|
156
156
|
virtualizedListRef: (el: VirtualizedList | null) => void;
|
157
157
|
containerRef: (el: HTMLElement | null) => void;
|
158
158
|
private _inner?;
|
159
159
|
get inner(): HTMLElement | null | undefined;
|
160
|
-
renderVirtualizedInner({ height, maxHeight, autoHeight, rowCount, isScrolling, onChildScroll, scrollTop, registerChild, }: RenderVirtualizedInnerParams): import("react").JSX.Element;
|
161
|
-
renderVirtualized(maxHeight: number | null | undefined, rowCount: number): import("react").JSX.Element;
|
162
|
-
renderSimple(maxHeight: number | null | undefined, rowCount: number): import("react").JSX.Element;
|
160
|
+
renderVirtualizedInner({ height, maxHeight, autoHeight, rowCount, isScrolling, onChildScroll, scrollTop, registerChild, }: RenderVirtualizedInnerParams): import("react/jsx-runtime").JSX.Element;
|
161
|
+
renderVirtualized(maxHeight: number | null | undefined, rowCount: number): import("react/jsx-runtime").JSX.Element;
|
162
|
+
renderSimple(maxHeight: number | null | undefined, rowCount: number): import("react/jsx-runtime").JSX.Element;
|
163
163
|
id: string;
|
164
164
|
shortcutsScope: string;
|
165
165
|
shortcutsMap: ShortcutsMap;
|
166
166
|
/** @override */
|
167
|
-
render(): import("react").JSX.Element;
|
167
|
+
render(): import("react/jsx-runtime").JSX.Element;
|
168
168
|
}
|
169
169
|
export type ListAttrs<T = unknown> = JSX.LibraryManagedAttributes<typeof List, ListProps<T>>;
|
package/components/list/list.js
CHANGED
@@ -2,6 +2,7 @@ import { _ as _defineProperty, b as _objectSpread2, a as _objectWithoutPropertie
|
|
2
2
|
import 'core-js/modules/es.symbol.description.js';
|
3
3
|
import 'core-js/modules/web.dom-collections.iterator.js';
|
4
4
|
import { Component, createElement } from 'react';
|
5
|
+
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
5
6
|
import classNames from 'classnames';
|
6
7
|
import VirtualizedList from 'react-virtualized/dist/es/List';
|
7
8
|
import AutoSizer from 'react-virtualized/dist/es/AutoSizer';
|
@@ -24,7 +25,6 @@ import ListSeparator from './list__separator.js';
|
|
24
25
|
import ListHint from './list__hint.js';
|
25
26
|
import { Type, Dimension, DEFAULT_ITEM_TYPE } from './consts.js';
|
26
27
|
import { s as styles } from '../_helpers/list.js';
|
27
|
-
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
28
28
|
import 'core-js/modules/es.regexp.exec.js';
|
29
29
|
import '../shortcuts/core.js';
|
30
30
|
import 'combokeys';
|
@@ -269,7 +269,7 @@ class List extends Component {
|
|
269
269
|
// top and bottom margins
|
270
270
|
if (index === 0 || index === this.props.data.length + 1 || item.rgItemType === Type.MARGIN) {
|
271
271
|
itemKey = key || "".concat(Type.MARGIN, "_").concat(index);
|
272
|
-
el =
|
272
|
+
el = jsx("div", {
|
273
273
|
style: {
|
274
274
|
height: Dimension.MARGIN
|
275
275
|
}
|
@@ -334,7 +334,7 @@ class List extends Component {
|
|
334
334
|
key: itemProps.key
|
335
335
|
}));
|
336
336
|
}
|
337
|
-
return parent ?
|
337
|
+
return parent ? jsx(CellMeasurer, {
|
338
338
|
cache: this._cache,
|
339
339
|
parent: parent,
|
340
340
|
rowIndex: index,
|
@@ -343,23 +343,23 @@ class List extends Component {
|
|
343
343
|
let {
|
344
344
|
registerChild
|
345
345
|
} = _ref2;
|
346
|
-
return
|
346
|
+
return jsx("div", {
|
347
347
|
ref: registerChild,
|
348
348
|
style: style,
|
349
349
|
role: "row",
|
350
350
|
"aria-selected": isActive,
|
351
351
|
id: itemId,
|
352
|
-
children:
|
352
|
+
children: jsx("div", {
|
353
353
|
role: "cell",
|
354
354
|
children: el
|
355
355
|
})
|
356
356
|
});
|
357
357
|
}
|
358
|
-
}, itemKey) :
|
358
|
+
}, itemKey) : jsx("div", {
|
359
359
|
role: "row",
|
360
360
|
"aria-selected": isActive,
|
361
361
|
id: itemId,
|
362
|
-
children:
|
362
|
+
children: jsx("div", {
|
363
363
|
role: "cell",
|
364
364
|
children: el
|
365
365
|
})
|
@@ -520,16 +520,16 @@ class List extends Component {
|
|
520
520
|
const dirOverride = {
|
521
521
|
direction: 'inherit'
|
522
522
|
}; // Virtualized sets "direction: ltr" by default https://github.com/bvaughn/react-virtualized/issues/457
|
523
|
-
return
|
523
|
+
return jsx(AutoSizer, {
|
524
524
|
disableHeight: true,
|
525
525
|
onResize: this.props.onResize,
|
526
526
|
children: _ref4 => {
|
527
527
|
let {
|
528
528
|
width
|
529
529
|
} = _ref4;
|
530
|
-
return
|
530
|
+
return jsx("div", {
|
531
531
|
ref: registerChild,
|
532
|
-
children:
|
532
|
+
children: jsx(VirtualizedList, {
|
533
533
|
"aria-label": this.props.ariaLabel,
|
534
534
|
ref: this.virtualizedListRef,
|
535
535
|
className: classNames('ring-list__i', {
|
@@ -553,9 +553,8 @@ class List extends Component {
|
|
553
553
|
estimatedRowSize: this.defaultItemHeight(),
|
554
554
|
rowHeight: this._cache.rowHeight,
|
555
555
|
rowRenderer: this.renderItem,
|
556
|
-
overscanRowCount: this._bufferSize
|
556
|
+
overscanRowCount: this._bufferSize,
|
557
557
|
// ensure rerendering
|
558
|
-
,
|
559
558
|
noop: () => {},
|
560
559
|
scrollToIndex: !this.props.disableScrollToActive && this.state.needScrollToActive && this.state.activeIndex != null ? this.state.activeIndex + 1 : undefined,
|
561
560
|
scrollToAlignment: "center",
|
@@ -574,7 +573,7 @@ class List extends Component {
|
|
574
573
|
rowCount
|
575
574
|
});
|
576
575
|
}
|
577
|
-
return
|
576
|
+
return jsx(WindowScroller, {
|
578
577
|
children: props => this.renderVirtualizedInner(_objectSpread2(_objectSpread2({}, props), {}, {
|
579
578
|
rowCount,
|
580
579
|
autoHeight: true
|
@@ -589,11 +588,11 @@ class List extends Component {
|
|
589
588
|
isScrolling: this.state.scrolling
|
590
589
|
}));
|
591
590
|
}
|
592
|
-
return
|
591
|
+
return jsx("div", {
|
593
592
|
className: classNames('ring-list__i', styles.simpleInner),
|
594
593
|
onScroll: this.scrollHandler,
|
595
594
|
onMouseMove: this.mouseHandler,
|
596
|
-
children:
|
595
|
+
children: jsx("div", {
|
597
596
|
"aria-label": this.props.ariaLabel,
|
598
597
|
role: "grid",
|
599
598
|
style: maxHeight ? {
|
@@ -612,24 +611,24 @@ class List extends Component {
|
|
612
611
|
const rowCount = this.props.data.length + 2;
|
613
612
|
const maxHeight = this.props.maxHeight && this.getVisibleListHeight(this.props.maxHeight);
|
614
613
|
const classes = classNames(styles.list, this.props.className);
|
615
|
-
return
|
616
|
-
children: [
|
614
|
+
return jsxs(Fragment, {
|
615
|
+
children: [jsx(ActiveItemContext.Updater, {
|
617
616
|
value: this.getId(this.state.activeItem),
|
618
617
|
skipUpdate: this.props.hidden || !isActivatable(this.state.activeItem)
|
619
|
-
}),
|
618
|
+
}), jsxs("div", {
|
620
619
|
id: this.props.id,
|
621
620
|
ref: this.containerRef,
|
622
621
|
className: classes,
|
623
622
|
onMouseOut: this.props.onMouseOut,
|
624
623
|
onBlur: this.props.onMouseOut,
|
625
624
|
"data-test": "ring-list",
|
626
|
-
children: [this.props.shortcuts &&
|
625
|
+
children: [this.props.shortcuts && jsx(Shortcuts, {
|
627
626
|
map: this.props.shortcutsMap ? _objectSpread2(_objectSpread2({}, this.shortcutsMap), this.props.shortcutsMap) : this.shortcutsMap,
|
628
627
|
scope: this.shortcutsScope
|
629
|
-
}), this.props.renderOptimization ? this.renderVirtualized(maxHeight, rowCount) : this.renderSimple(maxHeight, rowCount), this.state.hasOverflow && !this.state.scrolledToBottom &&
|
628
|
+
}), this.props.renderOptimization ? this.renderVirtualized(maxHeight, rowCount) : this.renderSimple(maxHeight, rowCount), this.state.hasOverflow && !this.state.scrolledToBottom && jsx("div", {
|
630
629
|
className: styles.fade,
|
631
630
|
style: fadeStyles
|
632
|
-
}), hint &&
|
631
|
+
}), hint && jsx(ListHint, {
|
633
632
|
label: hint
|
634
633
|
})]
|
635
634
|
})]
|
@@ -3,5 +3,5 @@ import * as React from 'react';
|
|
3
3
|
import { ListDataItemProps } from './consts';
|
4
4
|
export default class ListCustom<T> extends PureComponent<ListDataItemProps<T>> {
|
5
5
|
handleKeyPress: (event: React.KeyboardEvent) => void;
|
6
|
-
render():
|
6
|
+
render(): import("react/jsx-runtime").JSX.Element;
|
7
7
|
}
|
@@ -1,11 +1,11 @@
|
|
1
1
|
import { _ as _defineProperty, a as _objectWithoutProperties } from '../_helpers/_rollupPluginBabelHelpers.js';
|
2
2
|
import 'core-js/modules/web.dom-collections.iterator.js';
|
3
|
+
import { jsx } from 'react/jsx-runtime';
|
3
4
|
import { PureComponent } from 'react';
|
4
5
|
import classNames from 'classnames';
|
5
6
|
import joinDataTestAttributes from '../global/data-tests.js';
|
6
7
|
import getEventKey from '../global/get-event-key.js';
|
7
8
|
import { s as styles } from '../_helpers/list.js';
|
8
|
-
import { jsx } from 'react/jsx-runtime';
|
9
9
|
|
10
10
|
const _excluded = ["scrolling", "hover", "className", "disabled", "template", "rgItemType", "tabIndex", "onClick", "onCheckboxChange", "onMouseOver", "onMouseUp", "role", "tagName"];
|
11
11
|
class ListCustom extends PureComponent {
|
@@ -46,7 +46,7 @@ class ListCustom extends PureComponent {
|
|
46
46
|
}, restProps['data-test']);
|
47
47
|
const content = typeof template === 'function' ? template(this.props) : template;
|
48
48
|
const TagName = tagName || 'span';
|
49
|
-
return
|
49
|
+
return jsx(TagName, {
|
50
50
|
role: role || 'button',
|
51
51
|
tabIndex: tabIndex,
|
52
52
|
onClick: onClick,
|
@@ -1,11 +1,15 @@
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
1
2
|
import { PureComponent } from 'react';
|
2
3
|
import classNames from 'classnames';
|
3
4
|
import { s as styles } from '../_helpers/list.js';
|
4
|
-
import { jsx } from 'react/jsx-runtime';
|
5
5
|
|
6
|
+
/**
|
7
|
+
* @constructor
|
8
|
+
* @extends {ReactComponent}
|
9
|
+
*/
|
6
10
|
class ListHint extends PureComponent {
|
7
11
|
render() {
|
8
|
-
return
|
12
|
+
return jsx("span", {
|
9
13
|
className: classNames(styles.item, styles.hint),
|
10
14
|
"data-test": "ring-list-hint",
|
11
15
|
children: this.props.label
|
@@ -1,6 +1,7 @@
|
|
1
1
|
import { _ as _defineProperty, a as _objectWithoutProperties } from '../_helpers/_rollupPluginBabelHelpers.js';
|
2
2
|
import 'core-js/modules/es.symbol.description.js';
|
3
3
|
import 'core-js/modules/web.dom-collections.iterator.js';
|
4
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
4
5
|
import { PureComponent } from 'react';
|
5
6
|
import classNames from 'classnames';
|
6
7
|
import joinDataTestAttributes from '../global/data-tests.js';
|
@@ -9,7 +10,6 @@ import Checkbox from '../checkbox/checkbox.js';
|
|
9
10
|
import Icon from '../icon/icon.js';
|
10
11
|
import getUID from '../global/get-uid.js';
|
11
12
|
import { s as styles } from '../_helpers/list.js';
|
12
|
-
import { jsx, jsxs } from 'react/jsx-runtime';
|
13
13
|
import '../global/url.js';
|
14
14
|
import 'core-js/modules/es.regexp.exec.js';
|
15
15
|
import 'core-js/modules/es.string.replace.js';
|
@@ -28,6 +28,10 @@ import '../global/memoize.js';
|
|
28
28
|
var globalStyles = {"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_8bff","font":"font_rui_8bff","font-lower":"font-lower_rui_8bff font_rui_8bff","font-smaller":"font-smaller_rui_8bff font-lower_rui_8bff font_rui_8bff","font-smaller-lower":"font-smaller-lower_rui_8bff font-smaller_rui_8bff font-lower_rui_8bff font_rui_8bff","font-larger-lower":"font-larger-lower_rui_8bff font-lower_rui_8bff font_rui_8bff","font-larger":"font-larger_rui_8bff font-larger-lower_rui_8bff font-lower_rui_8bff font_rui_8bff","thin-font":"thin-font_rui_8bff","monospace-font":"monospace-font_rui_8bff","ellipsis":"ellipsis_rui_8bff","resetButton":"resetButton_rui_8bff"};
|
29
29
|
|
30
30
|
const _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"];
|
31
|
+
/**
|
32
|
+
* @constructor
|
33
|
+
* @extends {ReactComponent}
|
34
|
+
*/
|
31
35
|
const RING_UNIT = 8;
|
32
36
|
const DEFAULT_PADDING = 8;
|
33
37
|
const CHECKBOX_WIDTH = 28;
|
@@ -103,25 +107,25 @@ class ListItem extends PureComponent {
|
|
103
107
|
'ring-list-item-action': !disabled,
|
104
108
|
'ring-list-item-selected': checkbox
|
105
109
|
}, restProps['data-test']);
|
106
|
-
const labelElement =
|
110
|
+
const labelElement = jsx("span", {
|
107
111
|
className: styles.label,
|
108
112
|
title: computedTitle,
|
109
113
|
"data-test": "ring-list-item-label",
|
110
114
|
children: label
|
111
115
|
});
|
112
|
-
return
|
116
|
+
return jsxs("div", {
|
113
117
|
className: styles.itemContainer,
|
114
118
|
"data-test": dataTest,
|
115
|
-
children: [showCheckbox &&
|
119
|
+
children: [showCheckbox && jsx("div", {
|
116
120
|
className: styles.checkboxContainer,
|
117
|
-
children:
|
121
|
+
children: jsx(Checkbox, {
|
118
122
|
"aria-labelledby": this.id,
|
119
123
|
checked: checkbox,
|
120
124
|
disabled: disabled,
|
121
125
|
onChange: onCheckboxChange,
|
122
126
|
onClick: this.stopBubbling
|
123
127
|
})
|
124
|
-
}),
|
128
|
+
}), jsxs("button", {
|
125
129
|
id: this.id,
|
126
130
|
type: "button",
|
127
131
|
tabIndex: tabIndex,
|
@@ -133,43 +137,43 @@ class ListItem extends PureComponent {
|
|
133
137
|
className: classes,
|
134
138
|
style: style,
|
135
139
|
disabled: disabled,
|
136
|
-
children: [
|
140
|
+
children: [jsxs("div", {
|
137
141
|
className: styles.top,
|
138
142
|
onMouseOut: this.stopBubbling,
|
139
143
|
onBlur: this.stopBubbling,
|
140
|
-
children: [!showCheckbox &&
|
144
|
+
children: [!showCheckbox && jsxs("div", {
|
141
145
|
className: styles.left,
|
142
|
-
children: [leftNodes, glyph &&
|
146
|
+
children: [leftNodes, glyph && jsx(Icon, {
|
143
147
|
className: styles.glyph,
|
144
148
|
glyph: glyph,
|
145
149
|
size: this.props.iconSize,
|
146
150
|
suppressSizeWarning: this.props.suppressSizeWarning
|
147
|
-
}), (avatar || shouldShowGeneratedAvatar) &&
|
151
|
+
}), (avatar || shouldShowGeneratedAvatar) && jsx(Avatar, {
|
148
152
|
className: styles.avatar,
|
149
153
|
url: avatar,
|
150
154
|
size: Size.Size20,
|
151
155
|
subavatar: subavatar,
|
152
156
|
username: username
|
153
157
|
})]
|
154
|
-
}), labelWrapper ? labelWrapper(labelElement) : labelElement, description &&
|
158
|
+
}), labelWrapper ? labelWrapper(labelElement) : labelElement, description && jsx("span", {
|
155
159
|
className: styles.description,
|
156
160
|
"data-test": "ring-list-item-description",
|
157
161
|
children: description
|
158
|
-
}),
|
162
|
+
}), jsxs("div", {
|
159
163
|
className: styles.right,
|
160
|
-
children: [rightGlyph &&
|
164
|
+
children: [rightGlyph && jsx(Icon, {
|
161
165
|
className: styles.rightGlyph,
|
162
166
|
glyph: rightGlyph,
|
163
167
|
suppressSizeWarning: this.props.suppressSizeWarning,
|
164
168
|
size: this.props.iconSize
|
165
|
-
}), icon &&
|
169
|
+
}), icon && jsx("div", {
|
166
170
|
className: styles.icon,
|
167
171
|
style: {
|
168
172
|
backgroundImage: "url(\"".concat(icon, "\")")
|
169
173
|
}
|
170
174
|
}), rightNodes]
|
171
175
|
})]
|
172
|
-
}), details &&
|
176
|
+
}), details && jsx("div", {
|
173
177
|
className: detailsClasses,
|
174
178
|
children: details
|
175
179
|
})]
|
@@ -1,16 +1,20 @@
|
|
1
1
|
import { a as _objectWithoutProperties, b as _objectSpread2 } from '../_helpers/_rollupPluginBabelHelpers.js';
|
2
2
|
import 'core-js/modules/es.symbol.description.js';
|
3
|
+
import { jsx } from 'react/jsx-runtime';
|
3
4
|
import { PureComponent } from 'react';
|
4
5
|
import classNames from 'classnames';
|
5
6
|
import Link, { linkHOC } from '../link/link.js';
|
6
7
|
import joinDataTestAttributes from '../global/data-tests.js';
|
7
8
|
import { s as styles } from '../_helpers/list.js';
|
8
|
-
import { jsx } from 'react/jsx-runtime';
|
9
9
|
import '../link/clickableLink.js';
|
10
10
|
import 'core-js/modules/web.dom-collections.iterator.js';
|
11
11
|
import '../_helpers/link.js';
|
12
12
|
|
13
13
|
const _excluded = ["scrolling", "data-test", "className", "label", "hover", "description", "rgItemType", "url", "onCheckboxChange", "disabled", "LinkComponent", "compact", "hoverClassName", "children"];
|
14
|
+
/**
|
15
|
+
* @constructor
|
16
|
+
* @extends {ReactComponent}
|
17
|
+
*/
|
14
18
|
class ListLink extends PureComponent {
|
15
19
|
render() {
|
16
20
|
const _this$props = this.props,
|
@@ -37,7 +41,7 @@ class ListLink extends PureComponent {
|
|
37
41
|
[styles.scrolling]: scrolling
|
38
42
|
});
|
39
43
|
const Comp = LinkComponent ? linkHOC(LinkComponent) : Link;
|
40
|
-
return
|
44
|
+
return jsx(Comp, _objectSpread2(_objectSpread2({
|
41
45
|
pseudo: !this.props.href
|
42
46
|
}, restProps), {}, {
|
43
47
|
hover: hover && !disabled,
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { PureComponent } from 'react';
|
2
2
|
import { ListDataItemProps } from './consts';
|
3
3
|
export default class ListSeparator<T> extends PureComponent<ListDataItemProps<T>> {
|
4
|
-
render(): import("react").JSX.Element;
|
4
|
+
render(): import("react/jsx-runtime").JSX.Element;
|
5
5
|
}
|
@@ -1,8 +1,8 @@
|
|
1
1
|
import 'core-js/modules/es.symbol.description.js';
|
2
|
+
import { jsx } from 'react/jsx-runtime';
|
2
3
|
import { PureComponent } from 'react';
|
3
4
|
import classNames from 'classnames';
|
4
5
|
import { s as styles } from '../_helpers/list.js';
|
5
|
-
import { jsx } from 'react/jsx-runtime';
|
6
6
|
|
7
7
|
class ListSeparator extends PureComponent {
|
8
8
|
render() {
|
@@ -14,7 +14,7 @@ class ListSeparator extends PureComponent {
|
|
14
14
|
const classes = classNames(styles.separator, className, {
|
15
15
|
[styles.separator_first]: isFirst
|
16
16
|
});
|
17
|
-
return
|
17
|
+
return jsx("span", {
|
18
18
|
"data-test": "ring-list-separator",
|
19
19
|
className: classes,
|
20
20
|
children: description
|
@@ -1,8 +1,8 @@
|
|
1
1
|
import 'core-js/modules/es.symbol.description.js';
|
2
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
2
3
|
import { PureComponent } from 'react';
|
3
4
|
import classNames from 'classnames';
|
4
5
|
import { s as styles } from '../_helpers/list.js';
|
5
|
-
import { jsxs, jsx } from 'react/jsx-runtime';
|
6
6
|
|
7
7
|
class ListTitle extends PureComponent {
|
8
8
|
render() {
|
@@ -15,14 +15,14 @@ class ListTitle extends PureComponent {
|
|
15
15
|
const classes = classNames(styles.title, className, {
|
16
16
|
[styles.title_first]: isFirst
|
17
17
|
});
|
18
|
-
return
|
18
|
+
return jsxs("span", {
|
19
19
|
className: classes,
|
20
20
|
"data-test": "ring-list-title",
|
21
|
-
children: [
|
21
|
+
children: [jsx("span", {
|
22
22
|
className: classNames(styles.label, styles.text),
|
23
23
|
"data-test": "ring-list-title-label",
|
24
24
|
children: label
|
25
|
-
}),
|
25
|
+
}), jsx("div", {
|
26
26
|
className: styles.description,
|
27
27
|
"data-test": "ring-list-title-description",
|
28
28
|
children: description
|
@@ -6,6 +6,7 @@ import List from './list.js';
|
|
6
6
|
import '../hub-source/hub-source.js';
|
7
7
|
import 'core-js/modules/es.symbol.description.js';
|
8
8
|
import 'react';
|
9
|
+
import 'react/jsx-runtime';
|
9
10
|
import 'classnames';
|
10
11
|
import 'react-virtualized/dist/es/List';
|
11
12
|
import 'react-virtualized/dist/es/AutoSizer';
|
@@ -25,7 +26,6 @@ import 'combokeys';
|
|
25
26
|
import '../global/sniffer.js';
|
26
27
|
import 'sniffr';
|
27
28
|
import '../global/create-stateful-context.js';
|
28
|
-
import 'react/jsx-runtime';
|
29
29
|
import './list__link.js';
|
30
30
|
import '../link/link.js';
|
31
31
|
import '../link/clickableLink.js';
|
@@ -1,13 +1,19 @@
|
|
1
1
|
import { _ as _defineProperty, a as _objectWithoutProperties, b as _objectSpread2 } from '../_helpers/_rollupPluginBabelHelpers.js';
|
2
2
|
import 'core-js/modules/web.dom-collections.iterator.js';
|
3
|
+
import { jsx } from 'react/jsx-runtime';
|
3
4
|
import { PureComponent } from 'react';
|
4
5
|
import joinDataTestAttributes from '../global/data-tests.js';
|
5
6
|
import LoaderCore from './loader__core.js';
|
6
|
-
import { jsx } from 'react/jsx-runtime';
|
7
7
|
import 'core-js/modules/es.regexp.exec.js';
|
8
8
|
import '../global/dom.js';
|
9
9
|
|
10
10
|
const _excluded = ["message", "size", "colors", "data-test", "stop", "deterministic"];
|
11
|
+
/**
|
12
|
+
* @name Loader
|
13
|
+
*/
|
14
|
+
/**
|
15
|
+
* Displays a large animated loader with an optional caption. Typical use cases: page loading animation, major action animation.
|
16
|
+
*/
|
11
17
|
class Loader extends PureComponent {
|
12
18
|
constructor() {
|
13
19
|
super(...arguments);
|
@@ -42,7 +48,7 @@ class Loader extends PureComponent {
|
|
42
48
|
deterministic
|
43
49
|
} = _this$props,
|
44
50
|
restProps = _objectWithoutProperties(_this$props, _excluded);
|
45
|
-
return
|
51
|
+
return jsx("div", _objectSpread2(_objectSpread2({
|
46
52
|
"data-test": joinDataTestAttributes('ring-loader', dataTest)
|
47
53
|
}, restProps), {}, {
|
48
54
|
ref: this.initLoader
|
@@ -6,7 +6,7 @@ export interface LoaderInlineProps extends HTMLAttributes<HTMLDivElement> {
|
|
6
6
|
* @name Loader Inline
|
7
7
|
*/
|
8
8
|
declare class LoaderInline extends PureComponent<LoaderInlineProps> {
|
9
|
-
render(): import("react").JSX.Element;
|
9
|
+
render(): import("react/jsx-runtime").JSX.Element;
|
10
10
|
}
|
11
11
|
export type LoaderInlineAtrrs = JSX.LibraryManagedAttributes<typeof LoaderInline, LoaderInlineProps>;
|
12
12
|
export default LoaderInline;
|
@@ -1,13 +1,16 @@
|
|
1
1
|
import { a as _objectWithoutProperties, b as _objectSpread2 } from '../_helpers/_rollupPluginBabelHelpers.js';
|
2
|
+
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
2
3
|
import { PureComponent } from 'react';
|
3
4
|
import classNames from 'classnames';
|
4
5
|
import joinDataTestAttributes from '../global/data-tests.js';
|
5
|
-
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
6
6
|
import 'core-js/modules/web.dom-collections.iterator.js';
|
7
7
|
|
8
8
|
var styles = {"loader":"loader_rui_e6f2","spin":"spin_rui_e6f2","pulse":"pulse_rui_e6f2","children":"children_rui_e6f2"};
|
9
9
|
|
10
10
|
const _excluded = ["className", "data-test", "children"];
|
11
|
+
/**
|
12
|
+
* @name Loader Inline
|
13
|
+
*/
|
11
14
|
class LoaderInline extends PureComponent {
|
12
15
|
render() {
|
13
16
|
const _this$props = this.props,
|
@@ -18,12 +21,12 @@ class LoaderInline extends PureComponent {
|
|
18
21
|
} = _this$props,
|
19
22
|
restProps = _objectWithoutProperties(_this$props, _excluded);
|
20
23
|
const classes = classNames(styles.loader, className);
|
21
|
-
const loader =
|
24
|
+
const loader = jsx("div", _objectSpread2(_objectSpread2({}, restProps), {}, {
|
22
25
|
"data-test": joinDataTestAttributes('ring-loader-inline', dataTest),
|
23
26
|
className: classes
|
24
27
|
}));
|
25
|
-
return children ?
|
26
|
-
children: [loader,
|
28
|
+
return children ? jsxs(Fragment, {
|
29
|
+
children: [loader, jsx("span", {
|
27
30
|
className: styles.children,
|
28
31
|
children: children
|
29
32
|
})]
|
@@ -1,8 +1,8 @@
|
|
1
1
|
import { a as _objectWithoutProperties, b as _objectSpread2 } from '../_helpers/_rollupPluginBabelHelpers.js';
|
2
|
+
import { jsx } from 'react/jsx-runtime';
|
2
3
|
import { PureComponent } from 'react';
|
3
4
|
import classNames from 'classnames';
|
4
5
|
import Loader from '../loader/loader.js';
|
5
|
-
import { jsx } from 'react/jsx-runtime';
|
6
6
|
import 'core-js/modules/web.dom-collections.iterator.js';
|
7
7
|
import '../global/data-tests.js';
|
8
8
|
import '../loader/loader__core.js';
|
@@ -12,6 +12,9 @@ import '../global/dom.js';
|
|
12
12
|
var styles = {"loaderScreen":"loaderScreen_rui_c963","loader":"loader_rui_c963","loaderWithoutSpacing":"loaderWithoutSpacing_rui_c963"};
|
13
13
|
|
14
14
|
const _excluded = ["message", "className", "containerClassName"];
|
15
|
+
/**
|
16
|
+
* @name Loader Screen
|
17
|
+
*/
|
15
18
|
class LoaderScreen extends PureComponent {
|
16
19
|
render() {
|
17
20
|
const _this$props = this.props,
|
@@ -25,9 +28,9 @@ class LoaderScreen extends PureComponent {
|
|
25
28
|
const loaderClasses = classNames(className, styles.loader, {
|
26
29
|
[styles.loaderWithoutSpacing]: !message
|
27
30
|
});
|
28
|
-
return
|
31
|
+
return jsx("div", {
|
29
32
|
className: containerClasses,
|
30
|
-
children:
|
33
|
+
children: jsx(Loader, _objectSpread2(_objectSpread2({}, restProps), {}, {
|
31
34
|
message: message,
|
32
35
|
className: loaderClasses
|
33
36
|
}))
|
@@ -31,6 +31,6 @@ export default class LoginDialog extends Component<LoginDialogProps> {
|
|
31
31
|
showFallbackTimout?: number;
|
32
32
|
startFallbackCountdown(): void;
|
33
33
|
onMessage: (event: MessageEvent) => void;
|
34
|
-
render(): import("react").JSX.Element;
|
34
|
+
render(): import("react/jsx-runtime").JSX.Element;
|
35
35
|
}
|
36
36
|
export type LoginDialogAttrs = JSX.LibraryManagedAttributes<typeof LoginDialog, LoginDialogProps>;
|