@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 { b as _objectSpread2, _ as _defineProperty } 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 { endOfMonth } from 'date-fns/endOfMonth';
|
@@ -12,7 +13,6 @@ import linearFunction from '../global/linear-function.js';
|
|
12
13
|
import MonthSlider from './month-slider.js';
|
13
14
|
import { YEAR, MIDDLE_DAY, yearScrollSpeed } from './consts.js';
|
14
15
|
import { s as styles } from '../_helpers/date-picker.js';
|
15
|
-
import { jsxs, jsx } from 'react/jsx-runtime';
|
16
16
|
import 'date-fns/addYears';
|
17
17
|
import 'date-fns/subYears';
|
18
18
|
import 'core-js/modules/es.regexp.exec.js';
|
@@ -31,7 +31,7 @@ class MonthName extends PureComponent {
|
|
31
31
|
month,
|
32
32
|
locale
|
33
33
|
} = this.props;
|
34
|
-
return
|
34
|
+
return jsx("button", {
|
35
35
|
type: "button",
|
36
36
|
className: classNames(styles.monthName, {
|
37
37
|
[styles.today]: isThisMonth(month)
|
@@ -62,19 +62,19 @@ function MonthNames(props) {
|
|
62
62
|
if (props.currentRange) {
|
63
63
|
[top, bottom] = props.currentRange.map(date => Math.floor(pxToDate.x(Number(date))));
|
64
64
|
}
|
65
|
-
return
|
65
|
+
return jsxs("div", {
|
66
66
|
className: styles.monthNames,
|
67
|
-
children: [months.map(month =>
|
67
|
+
children: [months.map(month => jsx(MonthName, {
|
68
68
|
month: month,
|
69
69
|
onScrollChange: props.onScrollChange,
|
70
70
|
locale: locale
|
71
|
-
}, +month)), props.currentRange &&
|
71
|
+
}, +month)), props.currentRange && jsx("div", {
|
72
72
|
className: styles.range,
|
73
73
|
style: {
|
74
74
|
top: top - 1,
|
75
75
|
height: bottom + 1 - (top - 1)
|
76
76
|
}
|
77
|
-
}),
|
77
|
+
}), jsx(MonthSlider, _objectSpread2(_objectSpread2({}, props), {}, {
|
78
78
|
pxToDate: pxToDate
|
79
79
|
}))]
|
80
80
|
});
|
@@ -15,6 +15,6 @@ export default class MonthSlider extends PureComponent<MonthSliderProps> {
|
|
15
15
|
onMouseDown: () => void;
|
16
16
|
onMouseUp: () => void;
|
17
17
|
onMouseMove: (e: MouseEvent) => void;
|
18
|
-
render(): import("react").JSX.Element;
|
18
|
+
render(): import("react/jsx-runtime").JSX.Element;
|
19
19
|
}
|
20
20
|
export {};
|
@@ -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 { addYears } from 'date-fns/addYears';
|
@@ -8,7 +9,6 @@ import { subYears } from 'date-fns/subYears';
|
|
8
9
|
import linearFunction from '../global/linear-function.js';
|
9
10
|
import units, { yearScrollSpeed } from './consts.js';
|
10
11
|
import { s as styles } from '../_helpers/date-picker.js';
|
11
|
-
import { jsx } from 'react/jsx-runtime';
|
12
12
|
import 'core-js/modules/es.regexp.exec.js';
|
13
13
|
import 'date-fns/add';
|
14
14
|
|
@@ -52,8 +52,8 @@ class MonthSlider extends PureComponent {
|
|
52
52
|
const classes = classNames(styles.monthSlider, {
|
53
53
|
[styles.dragging]: this.state.dragging
|
54
54
|
});
|
55
|
-
return
|
56
|
-
children: years.map(date =>
|
55
|
+
return jsx("div", {
|
56
|
+
children: years.map(date => jsx("button", {
|
57
57
|
type: "button",
|
58
58
|
className: classes,
|
59
59
|
style: {
|
@@ -2,4 +2,4 @@ import { MonthsProps } from './consts';
|
|
2
2
|
export interface MonthProps extends MonthsProps {
|
3
3
|
month: Date;
|
4
4
|
}
|
5
|
-
export default function Month(props: MonthProps): import("react").JSX.Element;
|
5
|
+
export default function Month(props: MonthProps): import("react/jsx-runtime").JSX.Element;
|
@@ -1,4 +1,6 @@
|
|
1
1
|
import { b as _objectSpread2 } from '../_helpers/_rollupPluginBabelHelpers.js';
|
2
|
+
import { createElement } from 'react';
|
3
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
2
4
|
import { addDays } from 'date-fns/addDays';
|
3
5
|
import { endOfMonth } from 'date-fns/endOfMonth';
|
4
6
|
import { format } from 'date-fns/format';
|
@@ -7,8 +9,6 @@ import { setDay } from 'date-fns/setDay';
|
|
7
9
|
import Day from './day.js';
|
8
10
|
import { shiftWeekArray, getWeekStartsOn, weekdays, FIFTH_DAY, WEEK } from './consts.js';
|
9
11
|
import { s as styles } from '../_helpers/date-picker.js';
|
10
|
-
import { jsxs, jsx } from 'react/jsx-runtime';
|
11
|
-
import { createElement } from 'react';
|
12
12
|
import 'core-js/modules/web.dom-collections.iterator.js';
|
13
13
|
import 'classnames';
|
14
14
|
import 'date-fns/getDate';
|
@@ -36,18 +36,18 @@ function Month(props) {
|
|
36
36
|
days.push(day);
|
37
37
|
day = addDays(day, 1);
|
38
38
|
}
|
39
|
-
return
|
39
|
+
return jsxs("div", {
|
40
40
|
className: styles.month,
|
41
|
-
children: [
|
41
|
+
children: [jsx("span", {
|
42
42
|
className: styles.monthTitle,
|
43
43
|
children: format(props.month, 'LLLL', {
|
44
44
|
locale
|
45
45
|
})
|
46
|
-
}), days.map(date => /*#__PURE__*/createElement(Day, _objectSpread2(_objectSpread2({}, props), {}, {
|
46
|
+
}), days.map(date => (/*#__PURE__*/createElement(Day, _objectSpread2(_objectSpread2({}, props), {}, {
|
47
47
|
day: date,
|
48
48
|
empty: date < start,
|
49
49
|
key: +date
|
50
|
-
})))]
|
50
|
+
}))))]
|
51
51
|
});
|
52
52
|
}
|
53
53
|
|
@@ -1,2 +1,2 @@
|
|
1
1
|
import { MonthsProps } from './consts';
|
2
|
-
export default function Months(props: MonthsProps): import("react").JSX.Element;
|
2
|
+
export default function Months(props: MonthsProps): import("react/jsx-runtime").JSX.Element;
|
@@ -1,4 +1,5 @@
|
|
1
1
|
import { b as _objectSpread2 } from '../_helpers/_rollupPluginBabelHelpers.js';
|
2
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
2
3
|
import { useMemo, useRef, useEffect, createElement } from 'react';
|
3
4
|
import { addMonths } from 'date-fns/addMonths';
|
4
5
|
import { getDay } from 'date-fns/getDay';
|
@@ -13,7 +14,6 @@ import Month from './month.js';
|
|
13
14
|
import MonthNames from './month-names.js';
|
14
15
|
import { s as styles } from '../_helpers/date-picker.js';
|
15
16
|
import units, { DOUBLE, HALF, WEEK, weekdays } from './consts.js';
|
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';
|
19
19
|
import 'date-fns/format';
|
@@ -110,19 +110,19 @@ function Months(props) {
|
|
110
110
|
}
|
111
111
|
};
|
112
112
|
}, [handleWheel]);
|
113
|
-
return
|
113
|
+
return jsxs("div", {
|
114
114
|
className: styles.months,
|
115
115
|
ref: componentRef,
|
116
|
-
children: [
|
116
|
+
children: [jsx("div", {
|
117
117
|
style: {
|
118
118
|
top: Math.floor(calHeight * HALF - monthHeight(months[0]) - monthHeight(months[1]) + offset)
|
119
119
|
},
|
120
120
|
className: styles.days,
|
121
|
-
children: months.map(date => /*#__PURE__*/createElement(Month, _objectSpread2(_objectSpread2({}, props), {}, {
|
121
|
+
children: months.map(date => (/*#__PURE__*/createElement(Month, _objectSpread2(_objectSpread2({}, props), {}, {
|
122
122
|
month: date,
|
123
123
|
key: +date
|
124
|
-
})))
|
125
|
-
}),
|
124
|
+
}))))
|
125
|
+
}), jsx(MonthNames, _objectSpread2({}, props))]
|
126
126
|
});
|
127
127
|
}
|
128
128
|
|
@@ -2,5 +2,5 @@ import type { Locale } from 'date-fns';
|
|
2
2
|
interface WeekdaysProps {
|
3
3
|
locale: Locale | undefined;
|
4
4
|
}
|
5
|
-
export default function Weekdays(props: WeekdaysProps): import("react").JSX.Element;
|
5
|
+
export default function Weekdays(props: WeekdaysProps): import("react/jsx-runtime").JSX.Element;
|
6
6
|
export {};
|
@@ -1,3 +1,4 @@
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
1
2
|
import classNames from 'classnames';
|
2
3
|
import { getDay } from 'date-fns/getDay';
|
3
4
|
import { format } from 'date-fns/format';
|
@@ -5,7 +6,6 @@ import { setDay } from 'date-fns/setDay';
|
|
5
6
|
import { startOfDay } from 'date-fns/startOfDay';
|
6
7
|
import { shiftWeekArray, getWeekStartsOn, weekdays } from './consts.js';
|
7
8
|
import { s as styles } from '../_helpers/date-picker.js';
|
8
|
-
import { jsx } from 'react/jsx-runtime';
|
9
9
|
import 'core-js/modules/es.regexp.exec.js';
|
10
10
|
import 'date-fns/add';
|
11
11
|
|
@@ -14,9 +14,9 @@ function Weekdays(props) {
|
|
14
14
|
const {
|
15
15
|
locale
|
16
16
|
} = props;
|
17
|
-
return
|
17
|
+
return jsx("div", {
|
18
18
|
className: styles.weekdays,
|
19
|
-
children: days.map(day =>
|
19
|
+
children: days.map(day => jsx("span", {
|
20
20
|
className: classNames(styles.weekday, {
|
21
21
|
[styles.weekend]: [weekdays.SA, weekdays.SU].includes(getDay(day))
|
22
22
|
}),
|
@@ -14,6 +14,6 @@ export default class Years extends PureComponent<CalendarProps> {
|
|
14
14
|
setYear(date: number): void;
|
15
15
|
componentRef: import("react").RefObject<HTMLDivElement>;
|
16
16
|
handleWheel: (e: WheelEvent) => void;
|
17
|
-
render(): import("react").JSX.Element;
|
17
|
+
render(): import("react/jsx-runtime").JSX.Element;
|
18
18
|
}
|
19
19
|
export {};
|
@@ -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, createRef } from 'react';
|
4
5
|
import classNames from 'classnames';
|
5
6
|
import { addYears } from 'date-fns/addYears';
|
@@ -13,7 +14,6 @@ import { subYears } from 'date-fns/subYears';
|
|
13
14
|
import linearFunction from '../global/linear-function.js';
|
14
15
|
import { s as styles } from '../_helpers/date-picker.js';
|
15
16
|
import units, { DOUBLE, HALF, yearDuration } from './consts.js';
|
16
|
-
import { jsx } from 'react/jsx-runtime';
|
17
17
|
import 'core-js/modules/es.regexp.exec.js';
|
18
18
|
import 'date-fns/add';
|
19
19
|
|
@@ -85,14 +85,14 @@ class Years extends PureComponent {
|
|
85
85
|
years.push(year);
|
86
86
|
}
|
87
87
|
const pxToDate = linearFunction(0, Number(years[0]), yearDuration / yearHeight);
|
88
|
-
return
|
88
|
+
return jsx("div", {
|
89
89
|
className: styles.years,
|
90
90
|
ref: this.componentRef,
|
91
91
|
style: {
|
92
92
|
transition: this.stoppedScrolling ? 'top .2s ease-out 0s' : 'none',
|
93
93
|
top: Math.floor(calHeight * HALF - pxToDate.x(Number(date)))
|
94
94
|
},
|
95
|
-
children: years.map(item =>
|
95
|
+
children: years.map(item => jsx("button", {
|
96
96
|
type: "button",
|
97
97
|
className: classNames(styles.year, {
|
98
98
|
[styles.currentYear]: isSameYear(item, date),
|
@@ -45,6 +45,6 @@ export default class Dialog extends PureComponent<DialogProps> {
|
|
45
45
|
dialog?: HTMLElement | null;
|
46
46
|
dialogRef: (tabTrap: TabTrap | null) => void;
|
47
47
|
nativeDialog: React.RefObject<HTMLDialogElement>;
|
48
|
-
render(): false |
|
48
|
+
render(): false | import("react/jsx-runtime").JSX.Element;
|
49
49
|
}
|
50
50
|
export type DialogAttrs = JSX.LibraryManagedAttributes<typeof Dialog, DialogProps>;
|
@@ -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, Fragment, jsx } from 'react/jsx-runtime';
|
3
4
|
import { PureComponent, createRef } from 'react';
|
4
5
|
import { createPortal } from 'react-dom';
|
5
6
|
import classNames from 'classnames';
|
@@ -12,7 +13,6 @@ import TabTrap from '../tab-trap/tab-trap.js';
|
|
12
13
|
import { Button } from '../button/button.js';
|
13
14
|
import { PopupTarget } from '../popup/popup.target.js';
|
14
15
|
import { p as preventerFactory, s as styles } from '../_helpers/dialog__body-scroll-preventer.js';
|
15
|
-
import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
|
16
16
|
import '../island/adaptive-island-hoc.js';
|
17
17
|
import '../global/linear-function.js';
|
18
18
|
import '../_helpers/island.js';
|
@@ -40,6 +40,9 @@ import '../_helpers/button__classes.js';
|
|
40
40
|
import 'scrollbar-width';
|
41
41
|
|
42
42
|
const _excluded = ["show", "showCloseButton", "onOverlayClick", "onCloseAttempt", "onEscPress", "onCloseClick", "children", "className", "contentClassName", "trapFocus", "data-test", "closeButtonInside", "portalTarget", "label", "closeButtonTitle", "dense", "shortcutOptions", "native", "modal", "preventBodyScroll"];
|
43
|
+
/**
|
44
|
+
* @name Dialog
|
45
|
+
*/
|
43
46
|
function noop() {}
|
44
47
|
class Dialog extends PureComponent {
|
45
48
|
constructor() {
|
@@ -154,27 +157,27 @@ class Dialog extends PureComponent {
|
|
154
157
|
restProps = _objectWithoutProperties(_this$props, _excluded);
|
155
158
|
const classes = classNames(styles.container, className);
|
156
159
|
const shortcutsMap = this.getShortcutsMap();
|
157
|
-
const content =
|
158
|
-
children: [
|
160
|
+
const content = jsxs(Fragment, {
|
161
|
+
children: [jsx(Shortcuts, {
|
159
162
|
map: shortcutsMap,
|
160
163
|
scope: this.state.shortcutsScope,
|
161
164
|
options: this.props.shortcutOptions
|
162
|
-
}), (onOverlayClick !== noop || onCloseAttempt !== noop) &&
|
165
|
+
}), (onOverlayClick !== noop || onCloseAttempt !== noop) && jsx("div", {
|
163
166
|
// click handler is duplicated in close button
|
164
167
|
role: "presentation",
|
165
168
|
className: styles.clickableOverlay,
|
166
169
|
onClick: this.handleClick,
|
167
170
|
"data-test": "ring-dialog-overlay"
|
168
|
-
}),
|
171
|
+
}), jsx("div", {
|
169
172
|
className: styles.innerContainer,
|
170
|
-
children:
|
173
|
+
children: jsxs(AdaptiveIsland, {
|
171
174
|
className: classNames(styles.content, contentClassName, {
|
172
175
|
[styles.dense]: dense
|
173
176
|
}),
|
174
177
|
"data-test": "ring-dialog",
|
175
178
|
role: "dialog",
|
176
179
|
"aria-label": label,
|
177
|
-
children: [children, showCloseButton &&
|
180
|
+
children: [children, showCloseButton && jsx(Button, {
|
178
181
|
icon: closeIcon,
|
179
182
|
"data-test": "ring-dialog-close-button",
|
180
183
|
className: classNames(styles.closeButton, {
|
@@ -193,22 +196,22 @@ class Dialog extends PureComponent {
|
|
193
196
|
})]
|
194
197
|
});
|
195
198
|
if (native) {
|
196
|
-
return
|
199
|
+
return jsx("dialog", {
|
197
200
|
className: classNames(styles.nativeDialog, className),
|
198
201
|
ref: this.nativeDialog,
|
199
|
-
children:
|
202
|
+
children: jsx(PopupTarget, {
|
200
203
|
id: this.uid,
|
201
204
|
className: styles.popupTarget,
|
202
|
-
children: target =>
|
205
|
+
children: target => jsxs(Fragment, {
|
203
206
|
children: [content, target]
|
204
207
|
})
|
205
208
|
})
|
206
209
|
});
|
207
210
|
}
|
208
|
-
return show && /*#__PURE__*/createPortal(
|
211
|
+
return show && /*#__PURE__*/createPortal(jsx(PopupTarget, {
|
209
212
|
id: this.uid,
|
210
213
|
className: styles.popupTarget,
|
211
|
-
children: target =>
|
214
|
+
children: target => jsxs(TabTrap, _objectSpread2(_objectSpread2({
|
212
215
|
trapDisabled: !trapFocus,
|
213
216
|
"data-test": joinDataTestAttributes('ring-dialog-container', dataTest),
|
214
217
|
ref: this.dialogRef,
|
@@ -1,3 +1,3 @@
|
|
1
1
|
import { ButtonAttrs } from '../button/button';
|
2
|
-
declare const _default: import("react").MemoExoticComponent<({ children, className, ...restProps }: ButtonAttrs) => import("react").JSX.Element>;
|
2
|
+
declare const _default: import("react").MemoExoticComponent<({ children, className, ...restProps }: ButtonAttrs) => import("react/jsx-runtime").JSX.Element>;
|
3
3
|
export default _default;
|
@@ -1,9 +1,9 @@
|
|
1
1
|
import '../_helpers/_rollupPluginBabelHelpers.js';
|
2
|
+
import 'react/jsx-runtime';
|
2
3
|
import 'react';
|
3
4
|
import 'classnames';
|
4
5
|
import '../button/button.js';
|
5
6
|
export { A as default } from '../_helpers/anchor.js';
|
6
|
-
import 'react/jsx-runtime';
|
7
7
|
import 'core-js/modules/web.dom-collections.iterator.js';
|
8
8
|
import '@jetbrains/icons/chevron-down';
|
9
9
|
import '@jetbrains/icons/chevron-12px-down';
|
@@ -64,7 +64,7 @@ export default class Dropdown extends Component<DropdownProps, DropdownState> {
|
|
64
64
|
toggle(show?: boolean): void;
|
65
65
|
_toggle(show: boolean, pinned?: boolean): void;
|
66
66
|
_clearTimer(): void;
|
67
|
-
render():
|
67
|
+
render(): import("react/jsx-runtime").JSX.Element;
|
68
68
|
}
|
69
69
|
export type DropdownAttrs = JSX.LibraryManagedAttributes<typeof Dropdown, DropdownProps>;
|
70
70
|
export { Anchor };
|
@@ -1,11 +1,11 @@
|
|
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, jsxs } from 'react/jsx-runtime';
|
3
4
|
import { Component, cloneElement } from 'react';
|
4
5
|
import classNames from 'classnames';
|
5
6
|
import joinDataTestAttributes from '../global/data-tests.js';
|
6
7
|
import { isArray } from '../global/typescript-utils.js';
|
7
8
|
import { s as styles, A as Anchor } from '../_helpers/anchor.js';
|
8
|
-
import { jsxs, jsx } from 'react/jsx-runtime';
|
9
9
|
import '../button/button.js';
|
10
10
|
import '@jetbrains/icons/chevron-down';
|
11
11
|
import '@jetbrains/icons/chevron-12px-down';
|
@@ -21,6 +21,9 @@ import '../global/controls-height.js';
|
|
21
21
|
import '../_helpers/button__classes.js';
|
22
22
|
|
23
23
|
const _excluded = ["initShown", "onShow", "onHide", "hoverShowTimeOut", "hoverHideTimeOut", "children", "anchor", "className", "activeClassName", "hoverMode", "clickMode", "data-test", "disabled"];
|
24
|
+
/**
|
25
|
+
* @name Dropdown
|
26
|
+
*/
|
24
27
|
class Dropdown extends Component {
|
25
28
|
constructor() {
|
26
29
|
super(...arguments);
|
@@ -146,7 +149,7 @@ class Dropdown extends Component {
|
|
146
149
|
const active = hoverMode ? pinned : show;
|
147
150
|
switch (typeof anchor) {
|
148
151
|
case 'string':
|
149
|
-
anchorElement =
|
152
|
+
anchorElement = jsx(Anchor, {
|
150
153
|
active: active,
|
151
154
|
children: anchor
|
152
155
|
});
|
@@ -173,12 +176,11 @@ class Dropdown extends Component {
|
|
173
176
|
onContextMenu: hoverMode ? this.handlePopupInteraction : undefined,
|
174
177
|
dontCloseOnAnchorClick: true
|
175
178
|
};
|
176
|
-
return
|
179
|
+
return jsxs("div", _objectSpread2(_objectSpread2({
|
177
180
|
"data-test": joinDataTestAttributes('ring-dropdown', dataTest)
|
178
181
|
}, restProps), {}, {
|
179
|
-
onClick: clickMode ? this.onClick : undefined
|
182
|
+
onClick: clickMode ? this.onClick : undefined,
|
180
183
|
// anchorElement should be a `button` or an `a`
|
181
|
-
,
|
182
184
|
role: "presentation",
|
183
185
|
onMouseEnter: hoverMode ? this.onMouseEnter : undefined,
|
184
186
|
onMouseLeave: hoverMode ? this.onMouseLeave : undefined,
|
@@ -1,4 +1,5 @@
|
|
1
1
|
import { a as _objectWithoutProperties, b as _objectSpread2 } from '../_helpers/_rollupPluginBabelHelpers.js';
|
2
|
+
import { jsx } from 'react/jsx-runtime';
|
2
3
|
import { forwardRef, useMemo, cloneElement } from 'react';
|
3
4
|
import List, { ActiveItemContext } from '../list/list.js';
|
4
5
|
import Dropdown from '../dropdown/dropdown.js';
|
@@ -6,7 +7,6 @@ import PopupMenu from '../popup-menu/popup-menu.js';
|
|
6
7
|
import getUID from '../global/get-uid.js';
|
7
8
|
import { A as Anchor } from '../_helpers/anchor.js';
|
8
9
|
import { isArray } from '../global/typescript-utils.js';
|
9
|
-
import { jsx } from 'react/jsx-runtime';
|
10
10
|
import 'core-js/modules/es.symbol.description.js';
|
11
11
|
import 'core-js/modules/web.dom-collections.iterator.js';
|
12
12
|
import 'classnames';
|
@@ -93,7 +93,7 @@ function DropdownAnchorWrapper(_ref) {
|
|
93
93
|
pinned: "".concat(anchorProps.pinned)
|
94
94
|
}), [anchorProps]);
|
95
95
|
if (typeof anchor === 'string') {
|
96
|
-
return
|
96
|
+
return jsx(Anchor, _objectSpread2(_objectSpread2({}, anchorComponentProps), {}, {
|
97
97
|
children: anchor
|
98
98
|
}));
|
99
99
|
}
|
@@ -106,7 +106,7 @@ function DropdownAnchorWrapper(_ref) {
|
|
106
106
|
if (!isArray(anchor)) {
|
107
107
|
return /*#__PURE__*/cloneElement(anchor, typeof anchor.type === 'string' ? anchorAriaProps : anchorComponentProps);
|
108
108
|
}
|
109
|
-
return
|
109
|
+
return jsx("div", _objectSpread2(_objectSpread2({}, anchorAriaProps), {}, {
|
110
110
|
children: anchor
|
111
111
|
}));
|
112
112
|
}
|
@@ -121,16 +121,16 @@ const DropdownMenu = /*#__PURE__*/forwardRef(function DropdownMenu(_ref2, forwar
|
|
121
121
|
} = _ref2,
|
122
122
|
restDropdownProps = _objectWithoutProperties(_ref2, _excluded2);
|
123
123
|
const listId = useMemo(() => id || getUID('dropdown-menu-list'), [id]);
|
124
|
-
return
|
125
|
-
children:
|
124
|
+
return jsx(ActiveItemContext.Provider, {
|
125
|
+
children: jsx(Dropdown, _objectSpread2(_objectSpread2({
|
126
126
|
anchor: _ref3 => {
|
127
127
|
let {
|
128
128
|
pinned,
|
129
129
|
active
|
130
130
|
} = _ref3,
|
131
131
|
restAnchorProps = _objectWithoutProperties(_ref3, _excluded3);
|
132
|
-
return
|
133
|
-
children: activeItemId =>
|
132
|
+
return jsx(ActiveItemContext.ValueContext.Consumer, {
|
133
|
+
children: activeItemId => jsx(DropdownAnchorWrapper, _objectSpread2({
|
134
134
|
anchor: anchor,
|
135
135
|
pinned: pinned,
|
136
136
|
active: active,
|
@@ -140,7 +140,7 @@ const DropdownMenu = /*#__PURE__*/forwardRef(function DropdownMenu(_ref2, forwar
|
|
140
140
|
});
|
141
141
|
}
|
142
142
|
}, restDropdownProps), {}, {
|
143
|
-
children:
|
143
|
+
children: jsx(PopupMenu, _objectSpread2({
|
144
144
|
ref: forwardedRef,
|
145
145
|
id: listId,
|
146
146
|
ariaLabel: ariaLabel || defaultAriaLabel,
|
@@ -28,6 +28,6 @@ export type EditableHeadingProps = Omit<InputHTMLAttributes<HTMLInputElement | H
|
|
28
28
|
renderMenu?: () => React.ReactNode;
|
29
29
|
translations?: EditableHeadingTranslations;
|
30
30
|
};
|
31
|
-
export declare const EditableHeading: (props: EditableHeadingProps) =>
|
32
|
-
declare const _default: React.MemoExoticComponent<(props: EditableHeadingProps) =>
|
31
|
+
export declare const EditableHeading: (props: EditableHeadingProps) => import("react/jsx-runtime").JSX.Element;
|
32
|
+
declare const _default: React.MemoExoticComponent<(props: EditableHeadingProps) => import("react/jsx-runtime").JSX.Element>;
|
33
33
|
export default _default;
|
@@ -1,6 +1,7 @@
|
|
1
1
|
import { a as _objectWithoutProperties, b as _objectSpread2 } from '../_helpers/_rollupPluginBabelHelpers.js';
|
2
2
|
import 'core-js/modules/es.string.trim.js';
|
3
3
|
import 'core-js/modules/web.dom-collections.iterator.js';
|
4
|
+
import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
|
4
5
|
import * as React from 'react';
|
5
6
|
import { useCallback, useEffect } from 'react';
|
6
7
|
import classNames from 'classnames';
|
@@ -9,7 +10,6 @@ import { Button } from '../button/button.js';
|
|
9
10
|
import { S as Size, i as inputStyles } from '../_helpers/input.js';
|
10
11
|
import getUID from '../global/get-uid.js';
|
11
12
|
import Shortcuts from '../shortcuts/shortcuts.js';
|
12
|
-
import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
|
13
13
|
import 'util-deprecate';
|
14
14
|
import '../_helpers/heading.js';
|
15
15
|
import '@jetbrains/icons/chevron-down';
|
@@ -170,15 +170,15 @@ const EditableHeading = props => {
|
|
170
170
|
window.removeEventListener('mouseup', onMouseUp);
|
171
171
|
};
|
172
172
|
}, [onMouseMove, onMouseUp]);
|
173
|
-
return
|
174
|
-
children: [
|
173
|
+
return jsxs(Fragment, {
|
174
|
+
children: [jsxs("div", {
|
175
175
|
className: classes,
|
176
|
-
children: [!disabled && isEditing ?
|
177
|
-
children: [
|
176
|
+
children: [!disabled && isEditing ? jsxs(Fragment, {
|
177
|
+
children: [jsx(Shortcuts, {
|
178
178
|
map: shortcutsMap,
|
179
179
|
scope: shortcutsScope,
|
180
180
|
disabled: isShortcutsDisabled
|
181
|
-
}), !multiline ?
|
181
|
+
}), !multiline ? jsx("input", _objectSpread2(_objectSpread2({
|
182
182
|
className: inputClasses,
|
183
183
|
value: children,
|
184
184
|
autoFocus: autoFocus,
|
@@ -188,9 +188,9 @@ const EditableHeading = props => {
|
|
188
188
|
}, restProps), {}, {
|
189
189
|
onFocus: onInputFocus,
|
190
190
|
onBlur: onInputBlur
|
191
|
-
})) :
|
191
|
+
})) : jsxs("div", {
|
192
192
|
className: classNames(styles.textareaWrapper, inputStyles["size".concat(size)]),
|
193
|
-
children: [
|
193
|
+
children: [jsx("textarea", _objectSpread2(_objectSpread2({
|
194
194
|
ref: textAreaRef,
|
195
195
|
className: inputClasses,
|
196
196
|
value: children,
|
@@ -205,36 +205,36 @@ const EditableHeading = props => {
|
|
205
205
|
style: {
|
206
206
|
maxHeight: maxInputRows ? "".concat(maxInputRows, "lh") : ''
|
207
207
|
}
|
208
|
-
})), !isScrolledToBottom &&
|
208
|
+
})), !isScrolledToBottom && jsx("div", {
|
209
209
|
className: styles.textareaFade
|
210
210
|
})]
|
211
211
|
})]
|
212
|
-
}) :
|
212
|
+
}) : jsx("button", {
|
213
213
|
type: "button",
|
214
214
|
className: styles.headingWrapperButton,
|
215
215
|
onMouseDown: onHeadingMouseDown,
|
216
|
-
children:
|
216
|
+
children: jsx(Heading, {
|
217
217
|
className: headingClasses,
|
218
218
|
level: level,
|
219
219
|
"data-test": dataTest,
|
220
220
|
children: children
|
221
221
|
})
|
222
|
-
}), !isEditing && renderMenu(), isEditing && !embedded &&
|
223
|
-
children: [
|
222
|
+
}), !isEditing && renderMenu(), isEditing && !embedded && jsxs(Fragment, {
|
223
|
+
children: [jsx(Button, {
|
224
224
|
className: styles.button,
|
225
225
|
primary: true,
|
226
226
|
disabled: isSaveDisabled,
|
227
227
|
loader: isSaving,
|
228
228
|
onClick: onSave,
|
229
229
|
children: translations.save
|
230
|
-
}),
|
230
|
+
}), jsx(Button, {
|
231
231
|
className: styles.button,
|
232
232
|
disabled: isCancelDisabled,
|
233
233
|
onClick: onCancel,
|
234
234
|
children: translations.cancel
|
235
235
|
})]
|
236
236
|
})]
|
237
|
-
}), isEditing && error &&
|
237
|
+
}), isEditing && error && jsx("div", {
|
238
238
|
className: classNames(styles.errorText, inputStyles["size".concat(size)]),
|
239
239
|
children: error
|
240
240
|
})]
|
@@ -1,9 +1,9 @@
|
|
1
1
|
import { a as _objectWithoutProperties, b as _objectSpread2 } from '../_helpers/_rollupPluginBabelHelpers.js';
|
2
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
2
3
|
import { PureComponent, Children, cloneElement } from 'react';
|
3
4
|
import classNames from 'classnames';
|
4
5
|
import Popup from '../popup/popup.js';
|
5
6
|
import { Directions } from '../popup/popup.consts.js';
|
6
|
-
import { jsxs, jsx } from 'react/jsx-runtime';
|
7
7
|
import 'core-js/modules/es.regexp.exec.js';
|
8
8
|
import 'core-js/modules/es.string.replace.js';
|
9
9
|
import 'core-js/modules/web.dom-collections.iterator.js';
|
@@ -25,6 +25,9 @@ import '../popup/popup.target.js';
|
|
25
25
|
var styles = {"errorBubblePopup":"errorBubblePopup_rui_b075","errorBubbleWrapper":"errorBubbleWrapper_rui_b075","errorBubble":"errorBubble_rui_b075"};
|
26
26
|
|
27
27
|
const _excluded = ["children", "className"];
|
28
|
+
/**
|
29
|
+
* @name Error Bubble
|
30
|
+
*/
|
28
31
|
class ErrorBubble extends PureComponent {
|
29
32
|
render() {
|
30
33
|
const _this$props = this.props,
|
@@ -34,16 +37,16 @@ class ErrorBubble extends PureComponent {
|
|
34
37
|
} = _this$props,
|
35
38
|
restProps = _objectWithoutProperties(_this$props, _excluded);
|
36
39
|
const errorBubbleClasses = classNames(styles.errorBubble, className);
|
37
|
-
return
|
40
|
+
return jsxs("div", {
|
38
41
|
className: styles.errorBubbleWrapper,
|
39
42
|
"data-test": "ring-error-bubble-wrapper",
|
40
|
-
children: [Children.map(children, child => /*#__PURE__*/cloneElement(child, _objectSpread2(_objectSpread2({}, child.props), restProps))), restProps.error &&
|
43
|
+
children: [Children.map(children, child => /*#__PURE__*/cloneElement(child, _objectSpread2(_objectSpread2({}, child.props), restProps))), restProps.error && jsx(Popup, {
|
41
44
|
trapFocus: false,
|
42
45
|
className: styles.errorBubblePopup,
|
43
46
|
hidden: false,
|
44
47
|
attached: false,
|
45
48
|
directions: [Directions.RIGHT_CENTER, Directions.RIGHT_BOTTOM, Directions.RIGHT_TOP],
|
46
|
-
children:
|
49
|
+
children: jsx("div", {
|
47
50
|
className: errorBubbleClasses,
|
48
51
|
"data-test": "ring-error-bubble",
|
49
52
|
children: restProps.error
|