@jetbrains/ring-ui-built 7.0.7 → 7.0.9
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/README.md +1 -0
- package/components/_helpers/anchor.js +1 -1
- package/components/_helpers/button__classes.js +1 -1
- package/components/_helpers/caption.js +1 -1
- package/components/_helpers/card.js +1 -1
- package/components/_helpers/date-picker.js +1 -1
- package/components/_helpers/dialog__body-scroll-preventer.js +1 -1
- package/components/_helpers/grid.js +1 -1
- package/components/_helpers/header.js +1 -1
- package/components/_helpers/heading.js +1 -1
- package/components/_helpers/icon__svg.js +1 -1
- package/components/_helpers/input.js +1 -1
- package/components/_helpers/island.js +1 -1
- package/components/_helpers/link.js +1 -1
- package/components/_helpers/list.js +1 -1
- package/components/_helpers/query-assist__suggestions.js +1 -1
- package/components/_helpers/select__filter.js +1 -1
- package/components/_helpers/services-link.js +1 -1
- package/components/_helpers/sidebar.js +1 -1
- package/components/_helpers/tab-link.js +1 -1
- package/components/_helpers/table.js +1 -1
- package/components/_helpers/theme.js +4 -4
- package/components/_helpers/title.js +1 -1
- package/components/alert/alert.js +1 -1
- package/components/alert/container.js +1 -1
- package/components/auth/auth__core.js +1 -1
- package/components/auth/down-notification.js +1 -1
- package/components/auth-dialog/auth-dialog.js +1 -1
- package/components/avatar/avatar.js +1 -1
- package/components/breadcrumbs/breadcrumbs.js +1 -1
- package/components/button-set/button-set.js +1 -1
- package/components/button-toolbar/button-toolbar.js +1 -1
- package/components/checkbox/checkbox.js +1 -1
- package/components/clipboard/clipboard.js +1 -1
- package/components/code/code.js +2 -2
- package/components/collapse/collapse-content.d.ts +1 -2
- package/components/collapse/collapse-content.js +19 -8
- package/components/collapse/collapse.d.ts +2 -0
- package/components/collapse/collapse.js +10 -7
- package/components/confirm/confirm.js +1 -1
- package/components/confirm-service/confirm-service.js +1 -1
- package/components/control-help/control-help.js +1 -1
- package/components/control-label/control-label.js +1 -1
- package/components/data-list/data-list.js +2 -2
- package/components/date-picker/month-names.js +1 -1
- package/components/date-picker/months.js +1 -1
- package/components/date-picker/years.js +1 -1
- package/components/editable-heading/editable-heading.js +1 -1
- package/components/error-bubble/error-bubble.js +1 -1
- package/components/error-message/error-message.js +1 -1
- package/components/footer/footer.js +1 -1
- package/components/global/create-stateful-context.js +1 -1
- package/components/global/focus-sensor-hoc.js +1 -1
- package/components/group/group.js +1 -1
- package/components/header/services.js +1 -1
- package/components/heading/heading.js +1 -1
- package/components/i18n/i18n-context.js +1 -1
- package/components/input/input-legacy.js +1 -1
- package/components/island/adaptive-island-hoc.js +1 -1
- package/components/island/content.js +2 -2
- package/components/island/header.js +2 -2
- package/components/list/list.d.ts +0 -6
- package/components/list/list.js +3 -48
- package/components/list/list__item.js +2 -2
- package/components/loader/loader__core.js +1 -1
- package/components/loader-inline/loader-inline.js +1 -1
- package/components/loader-screen/loader-screen.js +1 -1
- package/components/login-dialog/login-dialog.js +1 -1
- package/components/markdown/markdown.js +1 -1
- package/components/message/message.js +1 -1
- package/components/old-browsers-message/white-list.js +2 -2
- package/components/pager/pager.js +1 -1
- package/components/panel/panel.js +1 -1
- package/components/popup/popup.d.ts +1 -0
- package/components/popup/popup.js +6 -4
- package/components/popup/position.js +2 -2
- package/components/popup-menu/popup-menu.d.ts +1 -0
- package/components/popup-menu/popup-menu.js +3 -5
- package/components/progress-bar/progress-bar.js +1 -1
- package/components/query-assist/query-assist.js +1 -4
- package/components/radio/radio__item.js +4 -4
- package/components/scrollable-section/scrollable-section.js +1 -1
- package/components/select/select.js +1 -4
- package/components/select/select__popup.js +1 -0
- package/components/slider/slider.js +2 -2
- package/components/style.css +1 -1
- package/components/tab-trap/tab-trap.js +1 -1
- package/components/table/selection-shortcuts-hoc.js +1 -1
- package/components/table/table.js +6 -4
- package/components/tabs/collapsible-more.d.ts +1 -1
- package/components/tabs/collapsible-more.js +3 -3
- package/components/tabs/collapsible-tab.js +1 -2
- package/components/tabs/collapsible-tabs.d.ts +1 -1
- package/components/tabs/dumb-tabs.d.ts +2 -5
- package/components/tabs/dumb-tabs.js +14 -12
- package/components/tag/tag.js +1 -1
- package/components/tags-input/tags-input.js +1 -1
- package/components/text/text.js +1 -1
- package/components/toggle/toggle.js +1 -1
- package/components/tooltip/tooltip.js +1 -1
- package/components/user-agreement/service.js +1 -1
- package/components/user-agreement/user-agreement.js +1 -1
- package/components/user-card/tooltip.js +1 -1
- package/package.json +2 -2
@@ -42,7 +42,7 @@ import '../link/clickableLink.js';
|
|
42
42
|
import '../global/controls-height.js';
|
43
43
|
import '../_helpers/button__classes.js';
|
44
44
|
|
45
|
-
var styles = {"description":"
|
45
|
+
var styles = {"description":"description_rui_2cda"};
|
46
46
|
|
47
47
|
class Confirm extends PureComponent {
|
48
48
|
constructor() {
|
@@ -2,7 +2,7 @@ import { a as _objectWithoutProperties, b as _objectSpread2 } from '../_helpers/
|
|
2
2
|
import 'core-js/modules/es.symbol.description.js';
|
3
3
|
import { createRoot } from 'react-dom/client';
|
4
4
|
import Confirm from '../confirm/confirm.js';
|
5
|
-
import {
|
5
|
+
import { ControlsHeightContext, getGlobalControlsHeight } from '../global/controls-height.js';
|
6
6
|
import { jsx } from 'react/jsx-runtime';
|
7
7
|
import 'core-js/modules/web.dom-collections.iterator.js';
|
8
8
|
import 'react';
|
@@ -2,7 +2,7 @@ import { a as _objectWithoutProperties, b as _objectSpread2 } from '../_helpers/
|
|
2
2
|
import classNames from 'classnames';
|
3
3
|
import { jsx } from 'react/jsx-runtime';
|
4
4
|
|
5
|
-
var styles = {"help":"
|
5
|
+
var styles = {"help":"help_rui_0799"};
|
6
6
|
|
7
7
|
const _excluded = ["className"];
|
8
8
|
function ControlHelp(_ref) {
|
@@ -3,7 +3,7 @@ import 'react';
|
|
3
3
|
import classNames from 'classnames';
|
4
4
|
import { jsx } from 'react/jsx-runtime';
|
5
5
|
|
6
|
-
var styles = {"label":"
|
6
|
+
var styles = {"label":"label_rui_40a4","formLabel":"formLabel_rui_40a4","secondaryLabel":"secondaryLabel_rui_40a4","disabledLabel":"disabledLabel_rui_40a4"};
|
7
7
|
|
8
8
|
const _excluded = ["children", "type", "disabled"];
|
9
9
|
var LabelType;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { _ as _defineProperty, b as _objectSpread2 } from '../_helpers/_rollupPluginBabelHelpers.js';
|
2
2
|
import 'core-js/modules/web.dom-collections.iterator.js';
|
3
|
-
import {
|
3
|
+
import { Component, PureComponent } from 'react';
|
4
4
|
import classNames from 'classnames';
|
5
5
|
import focusSensorHOC from '../global/focus-sensor-hoc.js';
|
6
6
|
import selectionShortcutsHOC from '../table/selection-shortcuts-hoc.js';
|
@@ -10,7 +10,7 @@ import Shortcuts from '../shortcuts/shortcuts.js';
|
|
10
10
|
import Loader from '../loader/loader.js';
|
11
11
|
import Item, { moreLessButtonStates } from './item.js';
|
12
12
|
import { s as styles } from '../_helpers/title.js';
|
13
|
-
import {
|
13
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
14
14
|
import '../global/composeRefs.js';
|
15
15
|
import 'memoize-one';
|
16
16
|
import '../shortcuts/core.js';
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import {
|
1
|
+
import { b as _objectSpread2, _ as _defineProperty } from '../_helpers/_rollupPluginBabelHelpers.js';
|
2
2
|
import 'core-js/modules/web.dom-collections.iterator.js';
|
3
3
|
import { PureComponent } from 'react';
|
4
4
|
import classNames from 'classnames';
|
@@ -12,7 +12,7 @@ import useEventCallback from '../global/use-event-callback.js';
|
|
12
12
|
import Month from './month.js';
|
13
13
|
import MonthNames from './month-names.js';
|
14
14
|
import { s as styles } from '../_helpers/date-picker.js';
|
15
|
-
import units, { DOUBLE, WEEK, weekdays
|
15
|
+
import units, { DOUBLE, HALF, WEEK, weekdays } from './consts.js';
|
16
16
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
17
17
|
import 'core-js/modules/web.dom-collections.iterator.js';
|
18
18
|
import 'date-fns/addDays';
|
@@ -12,7 +12,7 @@ import { startOfYear } from 'date-fns/startOfYear';
|
|
12
12
|
import { subYears } from 'date-fns/subYears';
|
13
13
|
import linearFunction from '../global/linear-function.js';
|
14
14
|
import { s as styles } from '../_helpers/date-picker.js';
|
15
|
-
import units, {
|
15
|
+
import units, { DOUBLE, HALF, yearDuration } from './consts.js';
|
16
16
|
import { jsx } from 'react/jsx-runtime';
|
17
17
|
import 'core-js/modules/es.regexp.exec.js';
|
18
18
|
import 'date-fns/add';
|
@@ -35,7 +35,7 @@ import 'combokeys';
|
|
35
35
|
import '../global/sniffer.js';
|
36
36
|
import 'sniffr';
|
37
37
|
|
38
|
-
var styles = {"editableHeading":"
|
38
|
+
var styles = {"editableHeading":"editableHeading_rui_0870","fullSize":"fullSize_rui_0870","isEditing":"isEditing_rui_0870","headingWrapperButton":"headingWrapperButton_rui_0870","disabled":"disabled_rui_0870","selectionMode":"selectionMode_rui_0870","heading":"heading_rui_0870","multiline":"multiline_rui_0870","input":"input_rui_0870","error":"error_rui_0870","textarea":"textarea_rui_0870","textareaNotOverflow":"textareaNotOverflow_rui_0870","textareaFade":"textareaFade_rui_0870","textareaWrapper":"textareaWrapper_rui_0870","button":"button_rui_0870","errorText":"errorText_rui_0870","level1":"level1_rui_0870","level2":"level2_rui_0870","level3":"level3_rui_0870","sizeS":"sizeS_rui_0870","sizeM":"sizeM_rui_0870","sizeL":"sizeL_rui_0870","sizeFULL":"sizeFULL_rui_0870"};
|
39
39
|
|
40
40
|
const _excluded = ["level", "className", "headingClassName", "inputClassName", "children", "isEditing", "isSavingPossible", "isSaving", "embedded", "size", "onEdit", "onSave", "onCancel", "autoFocus", "data-test", "error", "disabled", "multiline", "renderMenu", "onFocus", "onBlur", "onChange", "onScroll", "maxInputRows", "translations"];
|
41
41
|
function noop() {}
|
@@ -22,7 +22,7 @@ import '../popup/position.js';
|
|
22
22
|
import 'core-js/modules/es.array.sort.js';
|
23
23
|
import '../popup/popup.target.js';
|
24
24
|
|
25
|
-
var styles = {"errorBubblePopup":"
|
25
|
+
var styles = {"errorBubblePopup":"errorBubblePopup_rui_b075","errorBubbleWrapper":"errorBubbleWrapper_rui_b075","errorBubble":"errorBubble_rui_b075"};
|
26
26
|
|
27
27
|
const _excluded = ["children", "className"];
|
28
28
|
class ErrorBubble extends PureComponent {
|
@@ -13,7 +13,7 @@ import 'core-js/modules/es.string.replace.js';
|
|
13
13
|
import '../global/memoize.js';
|
14
14
|
import 'core-js/modules/web.dom-collections.iterator.js';
|
15
15
|
|
16
|
-
var styles = {"errorMessage":"
|
16
|
+
var styles = {"errorMessage":"errorMessage_rui_c974","title":"title_rui_c974","description":"description_rui_c974","content":"content_rui_c974","icon":"icon_rui_c974"};
|
17
17
|
|
18
18
|
class ErrorMessage extends Component {
|
19
19
|
render() {
|
@@ -8,7 +8,7 @@ import 'core-js/modules/web.dom-collections.iterator.js';
|
|
8
8
|
import '../link/clickableLink.js';
|
9
9
|
import '../_helpers/link.js';
|
10
10
|
|
11
|
-
var styles = {"footer":"
|
11
|
+
var styles = {"footer":"footer_rui_fade font_rui_8bff","footerFloating":"footerFloating_rui_fade footer_rui_fade font_rui_8bff","column":"column_rui_fade","columnItem":"columnItem_rui_fade","columnLeft":"columnLeft_rui_fade column_rui_fade","columnCenter":"columnCenter_rui_fade column_rui_fade","line":"line_rui_fade","columnRight":"columnRight_rui_fade column_rui_fade","lineCenter":"lineCenter_rui_fade"};
|
12
12
|
|
13
13
|
const FooterColumn = /*#__PURE__*/memo(function FooterColumn(_ref) {
|
14
14
|
let {
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import 'core-js/modules/web.dom-collections.iterator.js';
|
2
|
-
import {
|
2
|
+
import { memo, createContext, useState, useContext, useEffect } from 'react';
|
3
3
|
import { jsx } from 'react/jsx-runtime';
|
4
4
|
|
5
5
|
function createStatefulContext(initialValue) {
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import {
|
1
|
+
import { b as _objectSpread2, _ as _defineProperty, a as _objectWithoutProperties } from '../_helpers/_rollupPluginBabelHelpers.js';
|
2
2
|
import 'core-js/modules/web.dom-collections.iterator.js';
|
3
3
|
import { Component } from 'react';
|
4
4
|
import { createComposedRef } from './composeRefs.js';
|
@@ -3,7 +3,7 @@ import { Component } from 'react';
|
|
3
3
|
import classNames from 'classnames';
|
4
4
|
import { jsx } from 'react/jsx-runtime';
|
5
5
|
|
6
|
-
var styles = {"group":"
|
6
|
+
var styles = {"group":"group_rui_365e"};
|
7
7
|
|
8
8
|
const _excluded = ["children", "className"];
|
9
9
|
class Group extends Component {
|
@@ -6,7 +6,7 @@ import servicesIcon from '@jetbrains/icons/services-20px';
|
|
6
6
|
import classNames from 'classnames';
|
7
7
|
import Dropdown from '../dropdown/dropdown.js';
|
8
8
|
import Popup from '../popup/popup.js';
|
9
|
-
import {
|
9
|
+
import { T as Theme, d as darkStyles } from '../_helpers/theme.js';
|
10
10
|
import HeaderIcon from './header-icon.js';
|
11
11
|
import { s as styles, S as ServicesLink } from '../_helpers/services-link.js';
|
12
12
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import {
|
1
|
+
import { b as _objectSpread2, a as _objectWithoutProperties } from '../_helpers/_rollupPluginBabelHelpers.js';
|
2
2
|
import { memo } from 'react';
|
3
3
|
import classNames from 'classnames';
|
4
4
|
import deprecate from 'util-deprecate';
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import * as React from 'react';
|
2
2
|
import { useEffect } from 'react';
|
3
|
-
import {
|
3
|
+
import { getTranslations, translate, setTranslations } from './i18n.js';
|
4
4
|
import { jsx } from 'react/jsx-runtime';
|
5
5
|
import '../_helpers/_rollupPluginBabelHelpers.js';
|
6
6
|
import 'core-js/modules/web.dom-collections.iterator.js';
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { _ as _defineProperty, b as _objectSpread2 } from '../_helpers/_rollupPluginBabelHelpers.js';
|
2
2
|
import 'core-js/modules/web.dom-collections.iterator.js';
|
3
|
-
import {
|
3
|
+
import { Component, createContext } from 'react';
|
4
4
|
import { interpolateLinear } from '../global/linear-function.js';
|
5
5
|
import { jsx } from 'react/jsx-runtime';
|
6
6
|
|
@@ -1,6 +1,6 @@
|
|
1
|
-
import { _ as _defineProperty,
|
1
|
+
import { _ as _defineProperty, b as _objectSpread2, a as _objectWithoutProperties } from '../_helpers/_rollupPluginBabelHelpers.js';
|
2
2
|
import 'core-js/modules/web.dom-collections.iterator.js';
|
3
|
-
import {
|
3
|
+
import { forwardRef, Component } from 'react';
|
4
4
|
import classNames from 'classnames';
|
5
5
|
import createResizeDetector from 'element-resize-detector';
|
6
6
|
import scheduleRAF from '../global/schedule-raf.js';
|
@@ -1,10 +1,10 @@
|
|
1
|
-
import { _ as _defineProperty,
|
1
|
+
import { _ as _defineProperty, b as _objectSpread2, a as _objectWithoutProperties } from '../_helpers/_rollupPluginBabelHelpers.js';
|
2
2
|
import { Component } from 'react';
|
3
3
|
import classNames from 'classnames';
|
4
4
|
import { interpolateLinear } from '../global/linear-function.js';
|
5
5
|
import { s as styles } from '../_helpers/island.js';
|
6
6
|
import { PhaseContext } from './adaptive-island-hoc.js';
|
7
|
-
import {
|
7
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
8
8
|
import 'core-js/modules/web.dom-collections.iterator.js';
|
9
9
|
|
10
10
|
const _excluded = ["children", "className", "wrapWithTitle", "border", "phase"];
|
@@ -67,7 +67,6 @@ export interface ListState<T = unknown> {
|
|
67
67
|
needScrollToActive: boolean;
|
68
68
|
scrolling: boolean;
|
69
69
|
hasOverflow: boolean;
|
70
|
-
disabledHover: boolean;
|
71
70
|
scrolledToBottom: boolean;
|
72
71
|
}
|
73
72
|
interface RenderVirtualizedInnerParams extends Partial<WindowScrollerChildProps> {
|
@@ -109,7 +108,6 @@ export default class List<T = unknown> extends Component<ListProps<T>, ListState
|
|
109
108
|
componentDidUpdate(prevProps: ListProps<T>): void;
|
110
109
|
componentWillUnmount(): void;
|
111
110
|
scheduleScrollListener: (cb: () => void) => void;
|
112
|
-
scheduleHoverListener: (cb: () => void) => void;
|
113
111
|
static isItemType: typeof isItemType;
|
114
112
|
static ListHint: typeof ListHint;
|
115
113
|
static ListProps: {
|
@@ -129,7 +127,6 @@ export default class List<T = unknown> extends Component<ListProps<T>, ListState
|
|
129
127
|
virtualizedList?: VirtualizedList | null;
|
130
128
|
unmounted?: boolean;
|
131
129
|
container?: HTMLElement | null;
|
132
|
-
hoverHandler: (arg: number) => () => void;
|
133
130
|
private _bufferSize;
|
134
131
|
sizeCacheKey: (index: number) => string | Type.ITEM | Type.MARGIN;
|
135
132
|
private _cache;
|
@@ -142,15 +139,12 @@ export default class List<T = unknown> extends Component<ListProps<T>, ListState
|
|
142
139
|
downHandler: (e: KeyboardEvent) => void;
|
143
140
|
homeHandler: (e: KeyboardEvent) => void;
|
144
141
|
endHandler: (e: KeyboardEvent) => void;
|
145
|
-
onDocumentMouseMove: () => void;
|
146
|
-
onDocumentKeyDown: (e: KeyboardEvent) => void;
|
147
142
|
moveHandler(index: number, retryCallback: (e: KeyboardEvent) => void, e: KeyboardEvent): void;
|
148
143
|
mouseHandler: () => void;
|
149
144
|
scrollHandler: () => void;
|
150
145
|
enterHandler: (event: KeyboardEvent, shortcut?: string) => boolean;
|
151
146
|
getFirst(): ListDataItem<T> | undefined;
|
152
147
|
getSelected(): ListDataItem<T> | null;
|
153
|
-
clearSelected: () => void;
|
154
148
|
defaultItemHeight(): number;
|
155
149
|
scrollEndHandler: () => void;
|
156
150
|
checkOverflow: () => void;
|
package/components/list/list.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import { _ as _defineProperty,
|
1
|
+
import { _ as _defineProperty, b as _objectSpread2, 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
4
|
import { Component, createElement } from 'react';
|
@@ -22,7 +22,7 @@ import ListCustom from './list__custom.js';
|
|
22
22
|
import ListTitle from './list__title.js';
|
23
23
|
import ListSeparator from './list__separator.js';
|
24
24
|
import ListHint from './list__hint.js';
|
25
|
-
import { Type,
|
25
|
+
import { Type, Dimension, DEFAULT_ITEM_TYPE } from './consts.js';
|
26
26
|
import { s as styles } from '../_helpers/list.js';
|
27
27
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
28
28
|
import 'core-js/modules/es.regexp.exec.js';
|
@@ -91,26 +91,12 @@ class List extends Component {
|
|
91
91
|
needScrollToActive: false,
|
92
92
|
scrolling: false,
|
93
93
|
hasOverflow: false,
|
94
|
-
disabledHover: false,
|
95
94
|
scrolledToBottom: false
|
96
95
|
});
|
97
96
|
_defineProperty(this, "scheduleScrollListener", scheduleRAF());
|
98
|
-
_defineProperty(this, "scheduleHoverListener", scheduleRAF());
|
99
97
|
_defineProperty(this, "virtualizedList", void 0);
|
100
98
|
_defineProperty(this, "unmounted", void 0);
|
101
99
|
_defineProperty(this, "container", void 0);
|
102
|
-
_defineProperty(this, "hoverHandler", memoize(index => () => this.scheduleHoverListener(() => {
|
103
|
-
if (this.state.disabledHover) {
|
104
|
-
return;
|
105
|
-
}
|
106
|
-
if (this.container) {
|
107
|
-
this.setState({
|
108
|
-
activeIndex: index,
|
109
|
-
activeItem: this.props.data[index],
|
110
|
-
needScrollToActive: false
|
111
|
-
});
|
112
|
-
}
|
113
|
-
})));
|
114
100
|
// eslint-disable-next-line @typescript-eslint/no-magic-numbers
|
115
101
|
_defineProperty(this, "_bufferSize", 10);
|
116
102
|
// keep X items above and below of the visible area
|
@@ -214,21 +200,6 @@ class List extends Component {
|
|
214
200
|
_defineProperty(this, "endHandler", e => {
|
215
201
|
this.moveHandler(this.props.data.length - 1, this.upHandler, e);
|
216
202
|
});
|
217
|
-
_defineProperty(this, "onDocumentMouseMove", () => {
|
218
|
-
if (this.state.disabledHover) {
|
219
|
-
this.setState({
|
220
|
-
disabledHover: false
|
221
|
-
});
|
222
|
-
}
|
223
|
-
});
|
224
|
-
_defineProperty(this, "onDocumentKeyDown", e => {
|
225
|
-
const metaKeys = [16, 17, 18, 19, 20, 91]; // eslint-disable-line @typescript-eslint/no-magic-numbers
|
226
|
-
if (!this.state.disabledHover && !metaKeys.includes(e.keyCode)) {
|
227
|
-
this.setState({
|
228
|
-
disabledHover: true
|
229
|
-
});
|
230
|
-
}
|
231
|
-
});
|
232
203
|
_defineProperty(this, "mouseHandler", () => {
|
233
204
|
this.setState({
|
234
205
|
scrolling: false
|
@@ -257,12 +228,6 @@ class List extends Component {
|
|
257
228
|
return true; // propagate event to the parent component (e.g., QueryAssist)
|
258
229
|
}
|
259
230
|
});
|
260
|
-
_defineProperty(this, "clearSelected", () => {
|
261
|
-
this.setState({
|
262
|
-
activeIndex: null,
|
263
|
-
needScrollToActive: false
|
264
|
-
});
|
265
|
-
});
|
266
231
|
_defineProperty(this, "scrollEndHandler", () => this.scheduleScrollListener(() => {
|
267
232
|
const innerContainer = this.inner;
|
268
233
|
if (innerContainer) {
|
@@ -311,11 +276,7 @@ class List extends Component {
|
|
311
276
|
});
|
312
277
|
} else {
|
313
278
|
// Hack around SelectNG implementation
|
314
|
-
const
|
315
|
-
selectedLabel,
|
316
|
-
originalModel
|
317
|
-
} = item,
|
318
|
-
restProps = _objectWithoutProperties(item, _excluded);
|
279
|
+
const restProps = _objectWithoutProperties(item, _excluded);
|
319
280
|
const cleanedProps = restProps;
|
320
281
|
if (cleanedProps.url) {
|
321
282
|
cleanedProps.href = cleanedProps.url;
|
@@ -331,7 +292,6 @@ class List extends Component {
|
|
331
292
|
if (itemProps.hoverClassName != null && itemProps.hover) {
|
332
293
|
itemProps.className = classNames(itemProps.className, itemProps.hoverClassName);
|
333
294
|
}
|
334
|
-
itemProps.onMouseOver = this.hoverHandler(realIndex);
|
335
295
|
itemProps.tabIndex = -1;
|
336
296
|
itemProps.scrolling = isScrolling;
|
337
297
|
const selectHandler = this.selectHandler(realIndex);
|
@@ -470,8 +430,6 @@ class List extends Component {
|
|
470
430
|
return nextState;
|
471
431
|
}
|
472
432
|
componentDidMount() {
|
473
|
-
document.addEventListener('mousemove', this.onDocumentMouseMove);
|
474
|
-
document.addEventListener('keydown', this.onDocumentKeyDown, true);
|
475
433
|
if (this.props.activeIndex == null && shouldActivateFirstItem(this.props)) {
|
476
434
|
this.activateFirst();
|
477
435
|
}
|
@@ -490,8 +448,6 @@ class List extends Component {
|
|
490
448
|
}
|
491
449
|
componentWillUnmount() {
|
492
450
|
this.unmounted = true;
|
493
|
-
document.removeEventListener('mousemove', this.onDocumentMouseMove);
|
494
|
-
document.removeEventListener('keydown', this.onDocumentKeyDown, true);
|
495
451
|
}
|
496
452
|
hasActivatableItems() {
|
497
453
|
return this._hasActivatableItems(this.props.data);
|
@@ -666,7 +622,6 @@ class List extends Component {
|
|
666
622
|
className: classes,
|
667
623
|
onMouseOut: this.props.onMouseOut,
|
668
624
|
onBlur: this.props.onMouseOut,
|
669
|
-
onMouseLeave: this.clearSelected,
|
670
625
|
"data-test": "ring-list",
|
671
626
|
children: [this.props.shortcuts && /*#__PURE__*/jsx(Shortcuts, {
|
672
627
|
map: this.props.shortcutsMap ? _objectSpread2(_objectSpread2({}, this.shortcutsMap), this.props.shortcutsMap) : this.shortcutsMap,
|
@@ -25,11 +25,11 @@ import '../icon/icon__constants.js';
|
|
25
25
|
import '../_helpers/icon__svg.js';
|
26
26
|
import '../global/memoize.js';
|
27
27
|
|
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":"
|
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
31
|
const RING_UNIT = 8;
|
32
|
-
const DEFAULT_PADDING =
|
32
|
+
const DEFAULT_PADDING = 8;
|
33
33
|
const CHECKBOX_WIDTH = 28;
|
34
34
|
class ListItem extends PureComponent {
|
35
35
|
constructor() {
|
@@ -3,7 +3,7 @@ import 'core-js/modules/es.regexp.exec.js';
|
|
3
3
|
import { getPixelRatio } from '../global/dom.js';
|
4
4
|
import 'core-js/modules/web.dom-collections.iterator.js';
|
5
5
|
|
6
|
-
var styles = {"canvas":"
|
6
|
+
var styles = {"canvas":"canvas_rui_47a4","animate":"animate_rui_47a4","rotation-keyframes":"rotation-keyframes_rui_47a4","text":"text_rui_47a4"};
|
7
7
|
|
8
8
|
const INITIAL_TICKS = 100;
|
9
9
|
class Particle {
|
@@ -5,7 +5,7 @@ import joinDataTestAttributes from '../global/data-tests.js';
|
|
5
5
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
6
6
|
import 'core-js/modules/web.dom-collections.iterator.js';
|
7
7
|
|
8
|
-
var styles = {"loader":"
|
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
11
|
class LoaderInline extends PureComponent {
|
@@ -9,7 +9,7 @@ import '../loader/loader__core.js';
|
|
9
9
|
import 'core-js/modules/es.regexp.exec.js';
|
10
10
|
import '../global/dom.js';
|
11
11
|
|
12
|
-
var styles = {"loaderScreen":"
|
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
15
|
class LoaderScreen extends PureComponent {
|
@@ -47,7 +47,7 @@ import '../auth/response-parser.js';
|
|
47
47
|
import 'es6-error';
|
48
48
|
import '../global/url.js';
|
49
49
|
|
50
|
-
var styles = {"iFrame":"
|
50
|
+
var styles = {"iFrame":"iFrame_rui_ea70","dialogContent":"dialogContent_rui_ea70","nonOpaqueLoader":"nonOpaqueLoader_rui_ea70","fallbackLinkContainer":"fallbackLinkContainer_rui_ea70"};
|
51
51
|
|
52
52
|
const HUB_AUTH_PAGE_LOGIN_STARTED = 'HUB_AUTH_PAGE_LOGIN_STARTED';
|
53
53
|
const HUB_AUTH_PAGE_LOGIN_DIMENSIONS = 'HUB_AUTH_PAGE_LOGIN_DIMENSIONS';
|
@@ -4,7 +4,7 @@ import { s as styles$1 } from '../_helpers/heading.js';
|
|
4
4
|
import { l as linkStyles } from '../_helpers/link.js';
|
5
5
|
import { jsx } from 'react/jsx-runtime';
|
6
6
|
|
7
|
-
var styles = {"inline":"
|
7
|
+
var styles = {"inline":"inline_rui_e3b3","markdown":"markdown_rui_e3b3 font_rui_8bff"};
|
8
8
|
|
9
9
|
class Markdown extends PureComponent {
|
10
10
|
render() {
|
@@ -38,7 +38,7 @@ import '../global/controls-height.js';
|
|
38
38
|
import '../_helpers/button__classes.js';
|
39
39
|
import '../i18n/i18n.js';
|
40
40
|
|
41
|
-
var styles = {"container":"
|
41
|
+
var styles = {"container":"container_rui_f3db","message":"message_rui_f3db","icon":"icon_rui_f3db","title":"title_rui_f3db font-lower_rui_8bff font_rui_8bff","description":"description_rui_f3db","gotIt":"gotIt_rui_f3db","tail":"tail_rui_f3db"};
|
42
42
|
|
43
43
|
const UNIT = 8;
|
44
44
|
const TAIL_SIZE = 11;
|
@@ -8,11 +8,11 @@ const MAJOR_VERSION_INDEX = 0;
|
|
8
8
|
/**
|
9
9
|
* SUPPORTED_BROWSERS are defined by Babel plugin, see babel config
|
10
10
|
*/
|
11
|
-
if (!["and_chr
|
11
|
+
if (!["and_chr 131", "and_uc 15.5", "chrome 129", "chrome 128", "chrome 127", "chrome 109", "edge 129", "edge 128", "firefox 130", "ios_saf 17.6-17.7", "ios_saf 17.5", "op_mob 80", "safari 17.6", "samsung 26"]) {
|
12
12
|
// eslint-disable-next-line no-console
|
13
13
|
console.warn('Ring UI: no SUPPORTED_BROWSERS passed. Please check babel config.');
|
14
14
|
}
|
15
|
-
const SUPPORTED = ["and_chr
|
15
|
+
const SUPPORTED = ["and_chr 131", "and_uc 15.5", "chrome 129", "chrome 128", "chrome 127", "chrome 109", "edge 129", "edge 128", "firefox 130", "ios_saf 17.6-17.7", "ios_saf 17.5", "op_mob 80", "safari 17.6", "samsung 26"] || [];
|
16
16
|
const WHITE_LISTED_BROWSERS = ['chrome', 'firefox', 'safari', 'edge'];
|
17
17
|
const WHITE_LIST = SUPPORTED.reduce((acc, item) => {
|
18
18
|
var _item$match;
|
@@ -87,7 +87,7 @@ import '../text/text.js';
|
|
87
87
|
import '../_helpers/select__filter.js';
|
88
88
|
import '../i18n/i18n.js';
|
89
89
|
|
90
|
-
var style = {"pager":"
|
90
|
+
var style = {"pager":"pager_rui_2db7","links":"links_rui_2db7","link":"link_rui_2db7","linkDisabled":"linkDisabled_rui_2db7","actions":"actions_rui_2db7","pageSize":"pageSize_rui_2db7"};
|
91
91
|
|
92
92
|
class Pager extends PureComponent {
|
93
93
|
constructor() {
|
@@ -3,7 +3,7 @@ import { PureComponent } from 'react';
|
|
3
3
|
import classNames from 'classnames';
|
4
4
|
import { jsx } from 'react/jsx-runtime';
|
5
5
|
|
6
|
-
var styles = {"panel":"
|
6
|
+
var styles = {"panel":"panel_rui_1067 panel_rui_381e"};
|
7
7
|
|
8
8
|
const _excluded = ["className", "children"];
|
9
9
|
class Panel extends PureComponent {
|
@@ -31,6 +31,7 @@ export interface BasePopupProps {
|
|
31
31
|
legacy: boolean;
|
32
32
|
withTail?: boolean;
|
33
33
|
tailOffset?: number;
|
34
|
+
largeBorderRadius?: boolean;
|
34
35
|
anchorElement?: HTMLElement | null | undefined;
|
35
36
|
target?: string | Element | null | undefined;
|
36
37
|
className?: string | null | undefined;
|
@@ -12,7 +12,7 @@ import Shortcuts from '../shortcuts/shortcuts.js';
|
|
12
12
|
import joinDataTestAttributes from '../global/data-tests.js';
|
13
13
|
import TabTrap from '../tab-trap/tab-trap.js';
|
14
14
|
import position from './position.js';
|
15
|
-
import { DEFAULT_DIRECTIONS,
|
15
|
+
import { Display, DEFAULT_DIRECTIONS, Directions, Dimension, MinWidth, MaxHeight } from './popup.consts.js';
|
16
16
|
import { PopupTargetContext, PopupTarget } from './popup.target.js';
|
17
17
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
18
18
|
import '../shortcuts/core.js';
|
@@ -21,7 +21,7 @@ import '../global/sniffer.js';
|
|
21
21
|
import 'sniffr';
|
22
22
|
import 'core-js/modules/es.array.sort.js';
|
23
23
|
|
24
|
-
var styles = {"popup":"
|
24
|
+
var styles = {"popup":"popup_rui_7cd4 font_rui_8bff","largeBorderRadius":"largeBorderRadius_rui_7cd4","hidden":"hidden_rui_7cd4","showing":"showing_rui_7cd4","attached":"attached_rui_7cd4"};
|
25
25
|
|
26
26
|
const isPossibleClientSideNavigation = event => {
|
27
27
|
const target = event.target;
|
@@ -283,13 +283,15 @@ class Popup extends PureComponent {
|
|
283
283
|
onMouseOver,
|
284
284
|
onMouseOut,
|
285
285
|
onContextMenu,
|
286
|
-
'data-test': dataTest
|
286
|
+
'data-test': dataTest,
|
287
|
+
largeBorderRadius
|
287
288
|
} = this.props;
|
288
289
|
const showing = this.state.display === Display.SHOWING;
|
289
290
|
const classes = classNames(className, styles.popup, {
|
290
291
|
[styles.attached]: attached,
|
291
292
|
[styles.hidden]: hidden,
|
292
|
-
[styles.showing]: showing
|
293
|
+
[styles.showing]: showing,
|
294
|
+
[styles.largeBorderRadius]: largeBorderRadius
|
293
295
|
});
|
294
296
|
const direction = (this.state.direction || '').toLowerCase().replace(/[_]/g, '-');
|
295
297
|
return /*#__PURE__*/jsx(PopupTargetContext.Consumer, {
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { b as _objectSpread2 } from '../_helpers/_rollupPluginBabelHelpers.js';
|
2
2
|
import 'core-js/modules/es.array.sort.js';
|
3
|
-
import { getRect, isMounted,
|
4
|
-
import {
|
3
|
+
import { getRect, isMounted, getDocumentScrollTop, getDocumentScrollLeft, getWindowHeight } from '../global/dom.js';
|
4
|
+
import { MaxHeight, Dimension, MinWidth, Directions } from './popup.consts.js';
|
5
5
|
import 'core-js/modules/es.regexp.exec.js';
|
6
6
|
import 'core-js/modules/web.dom-collections.iterator.js';
|
7
7
|
|
@@ -27,6 +27,7 @@ export default class PopupMenu<T = unknown> extends Popup<PopupMenuProps<T>> {
|
|
27
27
|
static defaultProps: {
|
28
28
|
renderOptimization: boolean;
|
29
29
|
closeOnSelect: boolean;
|
30
|
+
largeBorderRadius: boolean;
|
30
31
|
shortcuts: boolean;
|
31
32
|
hidden: boolean;
|
32
33
|
onOutsideClick(): void;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { _ as _defineProperty,
|
1
|
+
import { _ as _defineProperty, b as _objectSpread2, a as _objectWithoutProperties } from '../_helpers/_rollupPluginBabelHelpers.js';
|
2
2
|
import 'core-js/modules/web.dom-collections.iterator.js';
|
3
3
|
import Popup from '../popup/popup.js';
|
4
4
|
import List from '../list/list.js';
|
@@ -73,9 +73,6 @@ class PopupMenu extends Popup {
|
|
73
73
|
/** @override */
|
74
74
|
getInternalContent() {
|
75
75
|
const _this$props = this.props,
|
76
|
-
{
|
77
|
-
className
|
78
|
-
} = _this$props,
|
79
76
|
props = _objectWithoutProperties(_this$props, _excluded);
|
80
77
|
return /*#__PURE__*/jsx("div", {
|
81
78
|
children: /*#__PURE__*/jsx(List, _objectSpread2(_objectSpread2({
|
@@ -92,7 +89,8 @@ _defineProperty(PopupMenu, "isItemType", List.isItemType);
|
|
92
89
|
_defineProperty(PopupMenu, "ListProps", List.ListProps);
|
93
90
|
_defineProperty(PopupMenu, "defaultProps", _objectSpread2(_objectSpread2(_objectSpread2({}, List.defaultProps), Popup.defaultProps), {}, {
|
94
91
|
renderOptimization: false,
|
95
|
-
closeOnSelect: false
|
92
|
+
closeOnSelect: false,
|
93
|
+
largeBorderRadius: true
|
96
94
|
}));
|
97
95
|
const {
|
98
96
|
ListProps
|
@@ -4,7 +4,7 @@ import { PureComponent } from 'react';
|
|
4
4
|
import classNames from 'classnames';
|
5
5
|
import { jsx } from 'react/jsx-runtime';
|
6
6
|
|
7
|
-
var styles = {"progressBar":"
|
7
|
+
var styles = {"progressBar":"progressBar_rui_5875","globalMode":"globalMode_rui_5875","line":"line_rui_5875","progress-bar-animation":"progress-bar-animation_rui_5875","staticLineColor":"staticLineColor_rui_5875"};
|
8
8
|
|
9
9
|
const _excluded = ["className", "global", "max", "value", "label", "staticColor"];
|
10
10
|
class ProgressBar extends PureComponent {
|