@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
@@ -1,5 +1,6 @@
|
|
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 { jsxs, jsx } from 'react/jsx-runtime';
|
3
4
|
import { PureComponent } from 'react';
|
4
5
|
import classNames from 'classnames';
|
5
6
|
import checkmarkIcon from '@jetbrains/icons/checkmark-12px';
|
@@ -7,7 +8,6 @@ import minusIcon from '@jetbrains/icons/remove-12px';
|
|
7
8
|
import Icon from '../icon/icon.js';
|
8
9
|
import { createComposedRef } from '../global/composeRefs.js';
|
9
10
|
import ControlHelp from '../control-help/control-help.js';
|
10
|
-
import { jsxs, jsx } from 'react/jsx-runtime';
|
11
11
|
import 'util-deprecate';
|
12
12
|
import '../icon/icon__constants.js';
|
13
13
|
import '../_helpers/icon__svg.js';
|
@@ -19,6 +19,12 @@ import 'memoize-one';
|
|
19
19
|
var styles = {"checkbox":"checkbox_rui_d990","cell":"cell_rui_d990","icon":"icon_rui_d990","check":"check_rui_d990 icon_rui_d990","minus":"minus_rui_d990 icon_rui_d990","input":"input_rui_d990","cellWrapper":"cellWrapper_rui_d990","focus":"focus_rui_d990","label":"label_rui_d990"};
|
20
20
|
|
21
21
|
const _excluded = ["children", "label", "className", "containerClassName", "containerStyle", "cellClassName", "labelClassName", "indeterminate", "inputRef", "help"];
|
22
|
+
/**
|
23
|
+
* @name Checkbox
|
24
|
+
*/
|
25
|
+
/**
|
26
|
+
* Displays a checkbox.
|
27
|
+
*/
|
22
28
|
class Checkbox extends PureComponent {
|
23
29
|
constructor() {
|
24
30
|
super(...arguments);
|
@@ -63,30 +69,30 @@ class Checkbox extends PureComponent {
|
|
63
69
|
const containerClasses = classNames(styles.checkbox, containerClassName);
|
64
70
|
const cellClasses = classNames(styles.cell, cellClassName);
|
65
71
|
const labelClasses = classNames(styles.label, labelClassName);
|
66
|
-
return
|
72
|
+
return jsxs("label", {
|
67
73
|
className: containerClasses,
|
68
74
|
style: containerStyle,
|
69
75
|
"data-test": "ring-checkbox",
|
70
|
-
children: [
|
76
|
+
children: [jsx("input", _objectSpread2(_objectSpread2({}, restProps), {}, {
|
71
77
|
"data-checked": restProps.checked,
|
72
78
|
ref: this.composedInputRef(this.inputRef, inputRef),
|
73
79
|
type: "checkbox",
|
74
80
|
className: classes
|
75
|
-
})),
|
81
|
+
})), jsx("div", {
|
76
82
|
className: styles.cellWrapper,
|
77
|
-
children:
|
83
|
+
children: jsxs("span", {
|
78
84
|
className: cellClasses,
|
79
|
-
children: [
|
85
|
+
children: [jsx(Icon, {
|
80
86
|
glyph: checkmarkIcon,
|
81
87
|
className: styles.check
|
82
|
-
}),
|
88
|
+
}), jsx(Icon, {
|
83
89
|
glyph: minusIcon,
|
84
90
|
className: styles.minus
|
85
91
|
})]
|
86
92
|
})
|
87
|
-
}),
|
93
|
+
}), jsxs("span", {
|
88
94
|
className: labelClasses,
|
89
|
-
children: [label || children, help &&
|
95
|
+
children: [label || children, help && jsx(ControlHelp, {
|
90
96
|
children: help
|
91
97
|
})]
|
92
98
|
})]
|
@@ -2,6 +2,7 @@ import alertService from '../alert-service/alert-service.js';
|
|
2
2
|
import { copyTextToClipboard, copyHTMLToClipboard } from './clipboard-fallback.js';
|
3
3
|
import '../_helpers/_rollupPluginBabelHelpers.js';
|
4
4
|
import 'core-js/modules/web.dom-collections.iterator.js';
|
5
|
+
import 'react/jsx-runtime';
|
5
6
|
import 'react-dom/client';
|
6
7
|
import '../global/get-uid.js';
|
7
8
|
import '../alert/alert.js';
|
@@ -18,7 +19,6 @@ import '../_helpers/icon__svg.js';
|
|
18
19
|
import 'core-js/modules/es.regexp.exec.js';
|
19
20
|
import 'core-js/modules/es.string.replace.js';
|
20
21
|
import '../global/memoize.js';
|
21
|
-
import 'react/jsx-runtime';
|
22
22
|
import '../loader-inline/loader-inline.js';
|
23
23
|
import '../global/data-tests.js';
|
24
24
|
import '../global/dom.js';
|
@@ -25,7 +25,7 @@ export default class Code extends PureComponent<CodeProps> {
|
|
25
25
|
highlight(): Promise<void>;
|
26
26
|
get codeRef(): HTMLElement | null | undefined;
|
27
27
|
get initCodeRef(): import("react").RefObject<HTMLElement> | ((ref: HTMLElement | null) => void);
|
28
|
-
render(): import("react").JSX.Element;
|
28
|
+
render(): import("react/jsx-runtime").JSX.Element;
|
29
29
|
}
|
30
30
|
declare const code: (strings: TemplateStringsArray, ...interpolations: unknown[]) => void;
|
31
31
|
export { code, highlight };
|
package/components/code/code.js
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
import { _ as _defineProperty } 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 highlight from 'highlight.js/lib/core';
|
@@ -7,7 +8,6 @@ export { default as highlight } from 'highlight.js/lib/core';
|
|
7
8
|
import normalizeIndent from '../global/normalize-indent.js';
|
8
9
|
import trivialTemplateTag from '../global/trivial-template-tag.js';
|
9
10
|
import memoize from '../global/memoize.js';
|
10
|
-
import { jsx } from 'react/jsx-runtime';
|
11
11
|
import 'core-js/modules/es.array.reverse.js';
|
12
12
|
import 'core-js/modules/es.regexp.exec.js';
|
13
13
|
|
@@ -87,10 +87,10 @@ class Code extends PureComponent {
|
|
87
87
|
[styles.inline]: inline,
|
88
88
|
[styles.softWrap]: softWrap
|
89
89
|
});
|
90
|
-
return
|
90
|
+
return jsx(Tag, {
|
91
91
|
className: classes,
|
92
92
|
"data-test": "ring-code",
|
93
|
-
children:
|
93
|
+
children: jsx("code", {
|
94
94
|
// should be focusable because it can be scrollable
|
95
95
|
tabIndex: inline ? -1 : 0,
|
96
96
|
ref: this.initCodeRef,
|
@@ -105,7 +105,7 @@ _defineProperty(Code, "defaultProps", {
|
|
105
105
|
softWrap: false,
|
106
106
|
replacer: noop
|
107
107
|
});
|
108
|
-
const code = trivialTemplateTag(source =>
|
108
|
+
const code = trivialTemplateTag(source => jsx(Code, {
|
109
109
|
code: source
|
110
110
|
}));
|
111
111
|
|
@@ -1,4 +1,5 @@
|
|
1
1
|
import 'core-js/modules/web.dom-collections.iterator.js';
|
2
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
2
3
|
import { useContext, useRef, useState, useEffect, useMemo } from 'react';
|
3
4
|
import classNames from 'classnames';
|
4
5
|
import joinDataTestAttributes from '../global/data-tests.js';
|
@@ -6,7 +7,6 @@ import { getRect } from '../global/dom.js';
|
|
6
7
|
import { toPx } from './utils.js';
|
7
8
|
import { CollapseContext } from './collapse-context.js';
|
8
9
|
import { COLLAPSE_CONTENT_CONTAINER_TEST_ID, COLLAPSE_CONTENT_TEST_ID } from './consts.js';
|
9
|
-
import { jsxs, jsx } from 'react/jsx-runtime';
|
10
10
|
import '../_helpers/_rollupPluginBabelHelpers.js';
|
11
11
|
import 'core-js/modules/es.regexp.exec.js';
|
12
12
|
|
@@ -95,7 +95,7 @@ const CollapseContent = _ref => {
|
|
95
95
|
}, [duration, height, collapsed, minHeight]);
|
96
96
|
const fadeShouldBeVisible = useMemo(() => Boolean(minHeight && showFade), [minHeight, showFade]);
|
97
97
|
const shouldRenderContent = disableAnimation ? !collapsed : !shouldHideContent;
|
98
|
-
return
|
98
|
+
return jsxs("div", {
|
99
99
|
ref: containerRef,
|
100
100
|
id: "collapse-content-".concat(id),
|
101
101
|
"data-test": joinDataTestAttributes(COLLAPSE_CONTENT_CONTAINER_TEST_ID),
|
@@ -103,11 +103,11 @@ const CollapseContent = _ref => {
|
|
103
103
|
[styles.transition]: !disableAnimation
|
104
104
|
}),
|
105
105
|
style: style,
|
106
|
-
children: [
|
106
|
+
children: [jsx("div", {
|
107
107
|
ref: contentRef,
|
108
108
|
"data-test": joinDataTestAttributes(COLLAPSE_CONTENT_TEST_ID, dataTest),
|
109
109
|
children: shouldRenderContent ? children : null
|
110
|
-
}), fadeShouldBeVisible &&
|
110
|
+
}), fadeShouldBeVisible && jsx("div", {
|
111
111
|
className: styles.fade
|
112
112
|
})]
|
113
113
|
});
|
@@ -1,10 +1,13 @@
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
1
2
|
import { useContext, useMemo, cloneElement } from 'react';
|
2
3
|
import joinDataTestAttributes from '../global/data-tests.js';
|
3
4
|
import { CollapseContext } from './collapse-context.js';
|
4
5
|
import { COLLAPSE_CONTROL_TEST_ID } from './consts.js';
|
5
|
-
import { jsx } from 'react/jsx-runtime';
|
6
6
|
import 'core-js/modules/web.dom-collections.iterator.js';
|
7
7
|
|
8
|
+
/**
|
9
|
+
* @name CollapseControl
|
10
|
+
*/
|
8
11
|
const CollapseControl = _ref => {
|
9
12
|
let {
|
10
13
|
children,
|
@@ -21,7 +24,7 @@ const CollapseControl = _ref => {
|
|
21
24
|
}
|
22
25
|
return children;
|
23
26
|
}, [children, collapsed]);
|
24
|
-
return
|
27
|
+
return jsx("p", {
|
25
28
|
"data-test": joinDataTestAttributes(COLLAPSE_CONTROL_TEST_ID, dataTest),
|
26
29
|
children: /*#__PURE__*/cloneElement(child, {
|
27
30
|
onClick: setCollapsed,
|
@@ -1,9 +1,12 @@
|
|
1
1
|
import 'core-js/modules/web.dom-collections.iterator.js';
|
2
|
+
import { jsx } from 'react/jsx-runtime';
|
2
3
|
import { useState, useId, useMemo, useCallback } from 'react';
|
3
4
|
import { CollapseContext } from './collapse-context.js';
|
4
5
|
import { BASE_ANIMATION_DURATION } from './consts.js';
|
5
|
-
import { jsx } from 'react/jsx-runtime';
|
6
6
|
|
7
|
+
/**
|
8
|
+
* @name Collapse
|
9
|
+
*/
|
7
10
|
const Collapse = _ref => {
|
8
11
|
let {
|
9
12
|
children,
|
@@ -21,9 +24,9 @@ const Collapse = _ref => {
|
|
21
24
|
setInnerCollapsed(!finalCollapsedValue);
|
22
25
|
onChange(!finalCollapsedValue);
|
23
26
|
}, [setInnerCollapsed, onChange, finalCollapsedValue]);
|
24
|
-
return
|
27
|
+
return jsx("div", {
|
25
28
|
className: className,
|
26
|
-
children:
|
29
|
+
children: jsx(CollapseContext.Provider, {
|
27
30
|
value: {
|
28
31
|
collapsed: finalCollapsedValue,
|
29
32
|
setCollapsed,
|
@@ -31,6 +31,6 @@ export default class Confirm extends PureComponent<ConfirmProps> {
|
|
31
31
|
onReject: () => void;
|
32
32
|
};
|
33
33
|
onEscPress: () => void;
|
34
|
-
render():
|
34
|
+
render(): import("react/jsx-runtime").JSX.Element;
|
35
35
|
}
|
36
36
|
export type ConfirmAttributes = JSX.LibraryManagedAttributes<typeof Confirm, ConfirmProps>;
|
@@ -1,11 +1,11 @@
|
|
1
1
|
import { _ as _defineProperty } 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 { jsxs, jsx } from 'react/jsx-runtime';
|
4
5
|
import { PureComponent } from 'react';
|
5
6
|
import Dialog from '../dialog/dialog.js';
|
6
7
|
import { Button } from '../button/button.js';
|
7
8
|
import 'classnames';
|
8
|
-
import { jsxs, jsx } from 'react/jsx-runtime';
|
9
9
|
import '../_helpers/island.js';
|
10
10
|
import HeaderWrapper from '../island/header.js';
|
11
11
|
import ContentWrapper from '../island/content.js';
|
@@ -44,6 +44,9 @@ import '../_helpers/button__classes.js';
|
|
44
44
|
|
45
45
|
var styles = {"description":"description_rui_2cda"};
|
46
46
|
|
47
|
+
/**
|
48
|
+
* @name Confirm
|
49
|
+
*/
|
47
50
|
class Confirm extends PureComponent {
|
48
51
|
constructor() {
|
49
52
|
super(...arguments);
|
@@ -67,7 +70,7 @@ class Confirm extends PureComponent {
|
|
67
70
|
onReject,
|
68
71
|
native
|
69
72
|
} = this.props;
|
70
|
-
return
|
73
|
+
return jsxs(Dialog, {
|
71
74
|
label: text || (typeof description === 'string' ? description : undefined),
|
72
75
|
className: className,
|
73
76
|
onEscPress: this.onEscPress,
|
@@ -75,22 +78,22 @@ class Confirm extends PureComponent {
|
|
75
78
|
trapFocus: true,
|
76
79
|
"data-test": "ring-confirm",
|
77
80
|
native: native,
|
78
|
-
children: [text &&
|
81
|
+
children: [text && jsx(HeaderWrapper, {
|
79
82
|
children: text
|
80
|
-
}), description &&
|
81
|
-
children:
|
83
|
+
}), description && jsx(ContentWrapper, {
|
84
|
+
children: jsx("div", {
|
82
85
|
className: styles.description,
|
83
86
|
children: description
|
84
87
|
})
|
85
|
-
}),
|
86
|
-
children: [
|
88
|
+
}), jsxs(Panel, {
|
89
|
+
children: [jsx(Button, {
|
87
90
|
"data-test": "confirm-ok-button",
|
88
91
|
primary: !cancelIsDefault,
|
89
92
|
loader: inProgress,
|
90
93
|
disabled: inProgress,
|
91
94
|
onClick: onConfirm,
|
92
95
|
children: confirmLabel
|
93
|
-
}),
|
96
|
+
}), jsx(Button, {
|
94
97
|
"data-test": "confirm-reject-button",
|
95
98
|
onClick: onReject,
|
96
99
|
disabled: inProgress,
|
@@ -1,9 +1,9 @@
|
|
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 { createRoot } from 'react-dom/client';
|
4
5
|
import Confirm from '../confirm/confirm.js';
|
5
6
|
import { ControlsHeightContext, getGlobalControlsHeight } from '../global/controls-height.js';
|
6
|
-
import { jsx } from 'react/jsx-runtime';
|
7
7
|
import 'core-js/modules/web.dom-collections.iterator.js';
|
8
8
|
import 'react';
|
9
9
|
import '../dialog/dialog.js';
|
@@ -55,9 +55,9 @@ function renderConfirm(props) {
|
|
55
55
|
buttonsHeight = getGlobalControlsHeight()
|
56
56
|
} = props,
|
57
57
|
restProps = _objectWithoutProperties(props, _excluded);
|
58
|
-
reactRoot.render(
|
58
|
+
reactRoot.render(jsx(ControlsHeightContext.Provider, {
|
59
59
|
value: buttonsHeight,
|
60
|
-
children:
|
60
|
+
children: jsx(Confirm, _objectSpread2({}, restProps))
|
61
61
|
}));
|
62
62
|
}
|
63
63
|
function confirm(_ref) {
|
@@ -14,6 +14,6 @@ export default class ContentLayout extends Component<ContentLayoutProps> {
|
|
14
14
|
contentNode: null;
|
15
15
|
};
|
16
16
|
saveContentNode: (contentNode: HTMLElement | null) => void;
|
17
|
-
render(): import("react").JSX.Element;
|
17
|
+
render(): import("react/jsx-runtime").JSX.Element;
|
18
18
|
}
|
19
19
|
export { default as Sidebar } from './sidebar';
|
@@ -1,12 +1,15 @@
|
|
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 { jsxs, jsx } from 'react/jsx-runtime';
|
3
4
|
import { Component, Children, cloneElement } from 'react';
|
4
5
|
import classNames from 'classnames';
|
5
6
|
import { s as styles, S as Sidebar } from '../_helpers/sidebar.js';
|
6
|
-
import { jsxs, jsx } from 'react/jsx-runtime';
|
7
7
|
import 'react-waypoint';
|
8
8
|
|
9
9
|
const _excluded = ["children", "className", "contentClassName", "responsive"];
|
10
|
+
/**
|
11
|
+
* @name Content Layout
|
12
|
+
*/
|
10
13
|
class ContentLayout extends Component {
|
11
14
|
constructor() {
|
12
15
|
super(...arguments);
|
@@ -38,11 +41,11 @@ class ContentLayout extends Component {
|
|
38
41
|
contentNode: this.state.contentNode
|
39
42
|
});
|
40
43
|
const contentChildren = childrenArray.filter(child => child !== sidebarChild);
|
41
|
-
return
|
44
|
+
return jsxs("div", _objectSpread2(_objectSpread2({
|
42
45
|
"data-test": "content-layout"
|
43
46
|
}, restProps), {}, {
|
44
47
|
className: classes,
|
45
|
-
children: [sidebar,
|
48
|
+
children: [sidebar, jsx("main", {
|
46
49
|
className: contentClasses,
|
47
50
|
ref: this.saveContentNode,
|
48
51
|
children: contentChildren
|
@@ -18,5 +18,5 @@ export default class Sidebar extends Component<SidebarProps> {
|
|
18
18
|
shouldUseFixation(): boolean;
|
19
19
|
shouldFixateBottom(): boolean;
|
20
20
|
sidebarRef: (node: HTMLElement | null) => void;
|
21
|
-
render(): import("react").JSX.Element;
|
21
|
+
render(): import("react/jsx-runtime").JSX.Element;
|
22
22
|
}
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import '../_helpers/_rollupPluginBabelHelpers.js';
|
2
2
|
import 'core-js/modules/web.dom-collections.iterator.js';
|
3
|
+
import 'react/jsx-runtime';
|
3
4
|
import 'react';
|
4
5
|
import 'classnames';
|
5
6
|
import 'react-waypoint';
|
6
7
|
export { S as default } from '../_helpers/sidebar.js';
|
7
|
-
import 'react/jsx-runtime';
|
@@ -18,9 +18,9 @@ declare class ContentEditableBase extends Component<ContentEditableBaseProps> {
|
|
18
18
|
};
|
19
19
|
shouldComponentUpdate(nextProps: ContentEditableBaseProps): boolean;
|
20
20
|
componentDidUpdate(prevProps: ContentEditableBaseProps): void;
|
21
|
-
render(): import("react").JSX.Element;
|
21
|
+
render(): import("react/jsx-runtime").JSX.Element;
|
22
22
|
}
|
23
23
|
type ContentEditableBaseAttrs = JSX.LibraryManagedAttributes<typeof ContentEditableBase, ContentEditableBaseProps>;
|
24
24
|
export type ContentEditableProps = Omit<ContentEditableBaseAttrs, '__html'>;
|
25
|
-
declare const ContentEditable: ({ children, ...props }: ContentEditableProps) => import("react").JSX.Element;
|
25
|
+
declare const ContentEditable: ({ children, ...props }: ContentEditableProps) => import("react/jsx-runtime").JSX.Element;
|
26
26
|
export default ContentEditable;
|
@@ -1,10 +1,13 @@
|
|
1
1
|
import { _ as _defineProperty, a as _objectWithoutProperties, b as _objectSpread2 } from '../_helpers/_rollupPluginBabelHelpers.js';
|
2
|
+
import { jsx } from 'react/jsx-runtime';
|
2
3
|
import { Component } from 'react';
|
3
4
|
import { renderToStaticMarkup } from 'react-dom/server';
|
4
|
-
import { jsx } from 'react/jsx-runtime';
|
5
5
|
|
6
6
|
const _excluded = ["__html", "onComponentUpdate", "disabled", "tabIndex", "inputRef"],
|
7
7
|
_excluded2 = ["children"];
|
8
|
+
/**
|
9
|
+
* @name ContentEditable
|
10
|
+
*/
|
8
11
|
function noop() {}
|
9
12
|
class ContentEditableBase extends Component {
|
10
13
|
shouldComponentUpdate(nextProps) {
|
@@ -23,11 +26,10 @@ class ContentEditableBase extends Component {
|
|
23
26
|
inputRef
|
24
27
|
} = _this$props,
|
25
28
|
props = _objectWithoutProperties(_this$props, _excluded);
|
26
|
-
return
|
27
|
-
ref: inputRef
|
29
|
+
return jsx("div", _objectSpread2(_objectSpread2({}, props), {}, {
|
30
|
+
ref: inputRef,
|
28
31
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
29
32
|
// @ts-ignore
|
30
|
-
,
|
31
33
|
disabled: disabled,
|
32
34
|
role: "textbox",
|
33
35
|
tabIndex: disabled ? undefined : tabIndex,
|
@@ -49,7 +51,7 @@ const ContentEditable = _ref => {
|
|
49
51
|
children
|
50
52
|
} = _ref,
|
51
53
|
props = _objectWithoutProperties(_ref, _excluded2);
|
52
|
-
return
|
54
|
+
return jsx(ContentEditableBase, _objectSpread2(_objectSpread2({}, props), {}, {
|
53
55
|
__html: renderToStaticMarkup(children)
|
54
56
|
}));
|
55
57
|
};
|
@@ -1,4 +1,4 @@
|
|
1
1
|
import { HTMLAttributes } from 'react';
|
2
2
|
type ControlHelpProps = HTMLAttributes<HTMLDivElement>;
|
3
|
-
export default function ControlHelp({ className, ...restProps }: ControlHelpProps): import("react").JSX.Element;
|
3
|
+
export default function ControlHelp({ className, ...restProps }: ControlHelpProps): import("react/jsx-runtime").JSX.Element;
|
4
4
|
export {};
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { a as _objectWithoutProperties, b as _objectSpread2 } from '../_helpers/_rollupPluginBabelHelpers.js';
|
2
|
-
import classNames from 'classnames';
|
3
2
|
import { jsx } from 'react/jsx-runtime';
|
3
|
+
import classNames from 'classnames';
|
4
4
|
|
5
5
|
var styles = {"help":"help_rui_0799"};
|
6
6
|
|
@@ -10,7 +10,7 @@ function ControlHelp(_ref) {
|
|
10
10
|
className
|
11
11
|
} = _ref,
|
12
12
|
restProps = _objectWithoutProperties(_ref, _excluded);
|
13
|
-
return
|
13
|
+
return jsx("div", _objectSpread2({
|
14
14
|
className: classNames(className, styles.help)
|
15
15
|
}, restProps));
|
16
16
|
}
|
@@ -1,7 +1,6 @@
|
|
1
1
|
import { a as _objectWithoutProperties, b as _objectSpread2 } from '../_helpers/_rollupPluginBabelHelpers.js';
|
2
|
-
import 'react';
|
3
|
-
import classNames from 'classnames';
|
4
2
|
import { jsx } from 'react/jsx-runtime';
|
3
|
+
import classNames from 'classnames';
|
5
4
|
|
6
5
|
var styles = {"label":"label_rui_40a4","formLabel":"formLabel_rui_40a4","secondaryLabel":"secondaryLabel_rui_40a4","disabledLabel":"disabledLabel_rui_40a4"};
|
7
6
|
|
@@ -22,7 +21,7 @@ const ControlLabel = _ref => {
|
|
22
21
|
disabled
|
23
22
|
} = _ref,
|
24
23
|
rest = _objectWithoutProperties(_ref, _excluded);
|
25
|
-
return
|
24
|
+
return jsx("label", _objectSpread2(_objectSpread2({
|
26
25
|
className: classNames(styles.label, classNameByType[type], {
|
27
26
|
[styles.disabledLabel]: disabled
|
28
27
|
})
|
@@ -29,7 +29,7 @@ export default class DataListContainer<T extends SelectionItem> extends Componen
|
|
29
29
|
componentWillUnmount(): void;
|
30
30
|
onMouseMove: () => void;
|
31
31
|
onKeyDown: (e: KeyboardEvent) => void;
|
32
|
-
render(): import("react").JSX.Element;
|
32
|
+
render(): import("react/jsx-runtime").JSX.Element;
|
33
33
|
context: unknown;
|
34
34
|
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<import("../table/disable-hover-hoc").DisableHoverProps<import("../table/selection-shortcuts-hoc").SelectionShortcutsProps<T, FocusableProps<T>>>>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
35
35
|
forceUpdate(callback?: (() => void) | undefined): void;
|
@@ -56,7 +56,7 @@ export default class DataListContainer<T extends SelectionItem> extends Componen
|
|
56
56
|
componentWillUnmount(): void;
|
57
57
|
onMouseMove: () => void;
|
58
58
|
onKeyDown: (e: KeyboardEvent) => void;
|
59
|
-
render(): import("react").JSX.Element;
|
59
|
+
render(): import("react/jsx-runtime").JSX.Element;
|
60
60
|
context: unknown;
|
61
61
|
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<import("../table/disable-hover-hoc").DisableHoverProps<import("../table/selection-shortcuts-hoc").SelectionShortcutsProps<T, FocusableProps<T>>>>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
62
62
|
forceUpdate(callback?: (() => void) | undefined): void;
|
@@ -78,6 +78,6 @@ export default class DataListContainer<T extends SelectionItem> extends Componen
|
|
78
78
|
defaultProps: Partial<import("../table/selection-shortcuts-hoc").SelectionShortcutsProps<T, FocusableProps<T>>> | undefined;
|
79
79
|
contextType?: import("react").Context<any> | undefined;
|
80
80
|
};
|
81
|
-
render(): import("react").JSX.Element;
|
81
|
+
render(): import("react/jsx-runtime").JSX.Element;
|
82
82
|
}
|
83
83
|
export {};
|
@@ -1,5 +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 { jsx, jsxs } from 'react/jsx-runtime';
|
3
4
|
import { Component, PureComponent } from 'react';
|
4
5
|
import classNames from 'classnames';
|
5
6
|
import focusSensorHOC from '../global/focus-sensor-hoc.js';
|
@@ -10,7 +11,6 @@ import Shortcuts from '../shortcuts/shortcuts.js';
|
|
10
11
|
import Loader from '../loader/loader.js';
|
11
12
|
import Item, { moreLessButtonStates } from './item.js';
|
12
13
|
import { s as styles } from '../_helpers/title.js';
|
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';
|
@@ -120,14 +120,14 @@ class DataList extends PureComponent {
|
|
120
120
|
[styles.disabledHover]: disabledHover,
|
121
121
|
[styles.multiSelection]: selection.getSelected().size > 0
|
122
122
|
});
|
123
|
-
return
|
123
|
+
return jsxs("div", {
|
124
124
|
className: styles.dataListWrapper,
|
125
125
|
"data-test": "ring-data-list",
|
126
126
|
ref: innerRef,
|
127
|
-
children: [focused &&
|
127
|
+
children: [focused && jsx(Shortcuts, {
|
128
128
|
map: shortcutsMap,
|
129
129
|
scope: this.shortcutsScope
|
130
|
-
}),
|
130
|
+
}), jsx("ul", {
|
131
131
|
className: classes,
|
132
132
|
children: data.map(model => {
|
133
133
|
var _this$props$itemMoreL, _this$props;
|
@@ -139,7 +139,7 @@ class DataList extends PureComponent {
|
|
139
139
|
items
|
140
140
|
} = item;
|
141
141
|
const showMoreLessButton = (_this$props$itemMoreL = (_this$props = this.props).itemMoreLessState) === null || _this$props$itemMoreL === void 0 ? void 0 : _this$props$itemMoreL.call(_this$props, item);
|
142
|
-
return
|
142
|
+
return jsx(Item, {
|
143
143
|
item: model,
|
144
144
|
title: title,
|
145
145
|
items: items,
|
@@ -158,9 +158,9 @@ class DataList extends PureComponent {
|
|
158
158
|
onItemMoreLess: this.props.onItemMoreLess
|
159
159
|
}, key || id);
|
160
160
|
})
|
161
|
-
}), loading &&
|
161
|
+
}), loading && jsx("div", {
|
162
162
|
className: data.length > 0 ? styles.loadingOverlay : undefined,
|
163
|
-
children:
|
163
|
+
children: jsx(Loader, {})
|
164
164
|
})]
|
165
165
|
});
|
166
166
|
}
|
@@ -180,7 +180,7 @@ class DataListContainer extends Component {
|
|
180
180
|
_defineProperty(this, "DataList", getContainer());
|
181
181
|
}
|
182
182
|
render() {
|
183
|
-
return
|
183
|
+
return jsx(this.DataList, _objectSpread2({}, this.props));
|
184
184
|
}
|
185
185
|
}
|
186
186
|
|