@jetbrains/ring-ui-built 7.0.11 → 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,6 +1,7 @@
|
|
1
1
|
import { _ as _defineProperty, a as _objectWithoutProperties, b as _objectSpread2 } from '../_helpers/_rollupPluginBabelHelpers.js';
|
2
2
|
import 'core-js/modules/es.array.sort.js';
|
3
3
|
import 'core-js/modules/web.dom-collections.iterator.js';
|
4
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
4
5
|
import { PureComponent } from 'react';
|
5
6
|
import servicesIcon from '@jetbrains/icons/services-20px';
|
6
7
|
import classNames from 'classnames';
|
@@ -9,7 +10,6 @@ import Popup from '../popup/popup.js';
|
|
9
10
|
import { T as Theme, d as darkStyles } from '../_helpers/theme.js';
|
10
11
|
import HeaderIcon from './header-icon.js';
|
11
12
|
import { s as styles, S as ServicesLink } from '../_helpers/services-link.js';
|
12
|
-
import { jsx, jsxs } from 'react/jsx-runtime';
|
13
13
|
import '../global/data-tests.js';
|
14
14
|
import '../global/typescript-utils.js';
|
15
15
|
import '../_helpers/anchor.js';
|
@@ -49,7 +49,7 @@ const makeAnchor = loading => {
|
|
49
49
|
let {
|
50
50
|
active
|
51
51
|
} = _ref;
|
52
|
-
return
|
52
|
+
return jsx(HeaderIcon, {
|
53
53
|
loader: loading,
|
54
54
|
active: active,
|
55
55
|
icon: servicesIcon,
|
@@ -74,7 +74,7 @@ class Services extends PureComponent {
|
|
74
74
|
} = _this$props,
|
75
75
|
props = _objectWithoutProperties(_this$props, _excluded);
|
76
76
|
if (!services) {
|
77
|
-
return
|
77
|
+
return jsx(HeaderIcon, _objectSpread2(_objectSpread2({}, props), {}, {
|
78
78
|
loader: loading,
|
79
79
|
active: loading,
|
80
80
|
icon: servicesIcon,
|
@@ -85,26 +85,26 @@ class Services extends PureComponent {
|
|
85
85
|
const servicesWithIcons = sortedServices.filter(service => service.iconUrl && service.homeUrl);
|
86
86
|
const servicesWithOutIcons = sortedServices.filter(service => !service.iconUrl && service.homeUrl);
|
87
87
|
const separatorIsRequired = servicesWithIcons.length !== 0 && servicesWithOutIcons.length !== 0;
|
88
|
-
return
|
88
|
+
return jsx(Dropdown, _objectSpread2(_objectSpread2({}, props), {}, {
|
89
89
|
anchor: makeAnchor(loading),
|
90
90
|
initShown: initShown,
|
91
|
-
children:
|
91
|
+
children: jsxs(Popup, {
|
92
92
|
className: classNames(styles.services, {
|
93
93
|
[darkStyles.dark]: theme === Theme.DARK
|
94
94
|
}),
|
95
95
|
top: -3,
|
96
96
|
children: [servicesWithIcons.map(service => {
|
97
97
|
const isActive = this.serviceIsActive(service);
|
98
|
-
return
|
98
|
+
return jsx(Services.Link, {
|
99
99
|
active: isActive,
|
100
100
|
className: isActive ? styles.activeItem : styles.item,
|
101
101
|
service: service
|
102
102
|
}, service.id);
|
103
|
-
}), separatorIsRequired &&
|
103
|
+
}), separatorIsRequired && jsx("div", {
|
104
104
|
className: styles.line
|
105
105
|
}, "separator"), servicesWithOutIcons.map(service => {
|
106
106
|
const isActive = this.serviceIsActive(service);
|
107
|
-
return
|
107
|
+
return jsx(Services.Link, {
|
108
108
|
active: isActive,
|
109
109
|
className: isActive ? styles.activeItemStacked : styles.itemStacked,
|
110
110
|
service: service
|
@@ -22,6 +22,6 @@ export default class SmartProfile extends PureComponent<SmartProfileProps, Smart
|
|
22
22
|
onRevertPostponement: () => void;
|
23
23
|
requestUser(): Promise<void>;
|
24
24
|
checkUserCertificateMismatch(user: AuthUser): void;
|
25
|
-
render(): import("react").JSX.Element;
|
25
|
+
render(): import("react/jsx-runtime").JSX.Element;
|
26
26
|
}
|
27
27
|
export {};
|
@@ -1,10 +1,10 @@
|
|
1
1
|
import { _ as _defineProperty, a as _objectWithoutProperties, b as _objectSpread2 } from '../_helpers/_rollupPluginBabelHelpers.js';
|
2
2
|
import 'core-js/modules/web.dom-collections.iterator.js';
|
3
|
+
import { jsx } from 'react/jsx-runtime';
|
3
4
|
import { PureComponent } from 'react';
|
4
5
|
import '../auth/auth.js';
|
5
6
|
import alertService from '../alert-service/alert-service.js';
|
6
7
|
import Profile from './profile.js';
|
7
|
-
import { jsx } from 'react/jsx-runtime';
|
8
8
|
import { USER_CHANGED_EVENT, LOGOUT_POSTPONED_EVENT, USER_CHANGE_POSTPONED_EVENT } from '../auth/auth__core.js';
|
9
9
|
import '../auth/window-flow.js';
|
10
10
|
import '../auth/response-parser.js';
|
@@ -195,7 +195,7 @@ class SmartProfile extends PureComponent {
|
|
195
195
|
} = _this$props,
|
196
196
|
props = _objectWithoutProperties(_this$props, _excluded);
|
197
197
|
const url = profileUrl || (user ? "".concat(auth.config.serverUri, "users/").concat(user.id) : '');
|
198
|
-
return
|
198
|
+
return jsx(Profile, _objectSpread2({
|
199
199
|
onLogin: this.login,
|
200
200
|
onLogout: this.logout,
|
201
201
|
onSwitchUser: this.switchUser,
|
@@ -18,5 +18,5 @@ export default class SmartServices extends Component<SmartServicesProps> {
|
|
18
18
|
stopLoading: () => void;
|
19
19
|
getServicesContent: () => void;
|
20
20
|
getServices(fields: string): Promise<Service[]> | undefined;
|
21
|
-
render(): import("react").JSX.Element | null;
|
21
|
+
render(): import("react/jsx-runtime").JSX.Element | null;
|
22
22
|
}
|
@@ -1,9 +1,9 @@
|
|
1
1
|
import { _ as _defineProperty, a as _objectWithoutProperties, b as _objectSpread2 } from '../_helpers/_rollupPluginBabelHelpers.js';
|
2
2
|
import 'core-js/modules/web.dom-collections.iterator.js';
|
3
|
+
import { jsx } from 'react/jsx-runtime';
|
3
4
|
import { Component } from 'react';
|
4
5
|
import HTTP from '../http/http.js';
|
5
6
|
import Services from './services.js';
|
6
|
-
import { jsx } from 'react/jsx-runtime';
|
7
7
|
import 'es6-error';
|
8
8
|
import '../global/url.js';
|
9
9
|
import 'core-js/modules/es.regexp.exec.js';
|
@@ -108,7 +108,7 @@ class SmartServices extends Component {
|
|
108
108
|
if (!visible) {
|
109
109
|
return null;
|
110
110
|
}
|
111
|
-
return
|
111
|
+
return jsx(Services, _objectSpread2(_objectSpread2({}, props), {}, {
|
112
112
|
clientId: auth.config.clientId,
|
113
113
|
initShown: true,
|
114
114
|
loading: loading,
|
@@ -1,11 +1,11 @@
|
|
1
1
|
import { a as _objectWithoutProperties, b as _objectSpread2 } from '../_helpers/_rollupPluginBabelHelpers.js';
|
2
|
+
import { jsx } from 'react/jsx-runtime';
|
2
3
|
import { Component, Children } from 'react';
|
3
4
|
import classNames from 'classnames';
|
4
5
|
import { s as styles } from '../_helpers/header.js';
|
5
|
-
import { jsx } from 'react/jsx-runtime';
|
6
6
|
|
7
7
|
const _excluded = ["children", "className"];
|
8
|
-
const wrapChild = child => child &&
|
8
|
+
const wrapChild = child => child && jsx("div", {
|
9
9
|
className: styles.trayItem,
|
10
10
|
children: child
|
11
11
|
});
|
@@ -18,7 +18,7 @@ class Tray extends Component {
|
|
18
18
|
} = _this$props,
|
19
19
|
restProps = _objectWithoutProperties(_this$props, _excluded);
|
20
20
|
const classes = classNames(styles.tray, className);
|
21
|
-
return
|
21
|
+
return jsx("div", _objectSpread2(_objectSpread2({}, restProps), {}, {
|
22
22
|
className: classes,
|
23
23
|
children: Children.map(children, wrapChild)
|
24
24
|
}));
|
@@ -1,12 +1,15 @@
|
|
1
1
|
import { b as _objectSpread2, a as _objectWithoutProperties } from '../_helpers/_rollupPluginBabelHelpers.js';
|
2
|
+
import { jsx } from 'react/jsx-runtime';
|
2
3
|
import { memo } from 'react';
|
3
4
|
import classNames from 'classnames';
|
4
5
|
import deprecate from 'util-deprecate';
|
5
6
|
import { s as styles } from '../_helpers/heading.js';
|
6
|
-
import { jsx } from 'react/jsx-runtime';
|
7
7
|
|
8
8
|
const _excluded = ["children", "className", "level"],
|
9
9
|
_excluded2 = ["className", "bold"];
|
10
|
+
/**
|
11
|
+
* @name Heading
|
12
|
+
*/
|
10
13
|
var Levels;
|
11
14
|
(function (Levels) {
|
12
15
|
Levels[Levels["H1"] = 1] = "H1";
|
@@ -24,7 +27,7 @@ const HeadingMemo = /*#__PURE__*/memo(function Heading(_ref) {
|
|
24
27
|
restProps = _objectWithoutProperties(_ref, _excluded);
|
25
28
|
const classes = classNames(styles.heading, className);
|
26
29
|
const Tag = level <= Levels.H4 ? "h".concat(level) : fallbackHeading();
|
27
|
-
return
|
30
|
+
return jsx(Tag, _objectSpread2(_objectSpread2({}, restProps), {}, {
|
28
31
|
className: classes,
|
29
32
|
children: children
|
30
33
|
}));
|
@@ -32,17 +35,17 @@ const HeadingMemo = /*#__PURE__*/memo(function Heading(_ref) {
|
|
32
35
|
const Heading = HeadingMemo;
|
33
36
|
Heading.Levels = Levels;
|
34
37
|
const H1 = /*#__PURE__*/memo(function H1(props) {
|
35
|
-
return
|
38
|
+
return jsx(Heading, _objectSpread2(_objectSpread2({}, props), {}, {
|
36
39
|
level: Levels.H1
|
37
40
|
}));
|
38
41
|
});
|
39
42
|
const H2 = /*#__PURE__*/memo(function H2(props) {
|
40
|
-
return
|
43
|
+
return jsx(Heading, _objectSpread2(_objectSpread2({}, props), {}, {
|
41
44
|
level: Levels.H2
|
42
45
|
}));
|
43
46
|
});
|
44
47
|
const H3 = /*#__PURE__*/memo(function H3(props) {
|
45
|
-
return
|
48
|
+
return jsx(Heading, _objectSpread2(_objectSpread2({}, props), {}, {
|
46
49
|
level: Levels.H3
|
47
50
|
}));
|
48
51
|
});
|
@@ -55,7 +58,7 @@ const H4 = /*#__PURE__*/memo(function H4(_ref2) {
|
|
55
58
|
const classes = classNames(className, {
|
56
59
|
[styles.bold]: bold
|
57
60
|
});
|
58
|
-
return
|
61
|
+
return jsx(Heading, _objectSpread2(_objectSpread2({}, restProps), {}, {
|
59
62
|
className: classes,
|
60
63
|
level: Levels.H4
|
61
64
|
}));
|
@@ -1,7 +1,7 @@
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
1
2
|
import * as React from 'react';
|
2
3
|
import { useEffect } from 'react';
|
3
4
|
import { getTranslations, translate, setTranslations } from './i18n.js';
|
4
|
-
import { jsx } from 'react/jsx-runtime';
|
5
5
|
import '../_helpers/_rollupPluginBabelHelpers.js';
|
6
6
|
import 'core-js/modules/web.dom-collections.iterator.js';
|
7
7
|
|
@@ -17,7 +17,7 @@ const I18nContextHolder = _ref => {
|
|
17
17
|
useEffect(() => {
|
18
18
|
setTranslations(messages);
|
19
19
|
}, [messages]);
|
20
|
-
return
|
20
|
+
return jsx(I18nContext.Provider, {
|
21
21
|
value: {
|
22
22
|
messages,
|
23
23
|
translate
|
@@ -26,7 +26,7 @@ export default class Icon extends PureComponent<IconProps> {
|
|
26
26
|
width: number | undefined;
|
27
27
|
height: number | undefined;
|
28
28
|
} | undefined;
|
29
|
-
render(): import("react").JSX.Element | null;
|
29
|
+
render(): import("react/jsx-runtime").JSX.Element | null;
|
30
30
|
}
|
31
31
|
export type IconAttrs = JSX.LibraryManagedAttributes<typeof Icon, IconProps>;
|
32
32
|
export { Color, Size };
|
package/components/icon/icon.js
CHANGED
@@ -1,10 +1,10 @@
|
|
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 { PureComponent } from 'react';
|
3
4
|
import classNames from 'classnames';
|
4
5
|
import deprecate from 'util-deprecate';
|
5
6
|
import { Color, Size } from './icon__constants.js';
|
6
7
|
import { s as styles, I as IconSVG } from '../_helpers/icon__svg.js';
|
7
|
-
import { jsx } from 'react/jsx-runtime';
|
8
8
|
import 'core-js/modules/es.regexp.exec.js';
|
9
9
|
import 'core-js/modules/es.string.replace.js';
|
10
10
|
import '../global/memoize.js';
|
@@ -61,14 +61,14 @@ class Icon extends PureComponent {
|
|
61
61
|
[styles[color]]: !!color,
|
62
62
|
[styles.loading]: loading
|
63
63
|
}, className);
|
64
|
-
return
|
64
|
+
return jsx("span", _objectSpread2(_objectSpread2({
|
65
65
|
"data-test": "ring-icon"
|
66
66
|
}, restProps), {}, {
|
67
67
|
className: classes,
|
68
|
-
children: typeof Glyph === 'string' ?
|
68
|
+
children: typeof Glyph === 'string' ? jsx(IconSVG, {
|
69
69
|
src: Glyph,
|
70
70
|
style: this.getStyle()
|
71
|
-
}) :
|
71
|
+
}) : jsx(Glyph, {
|
72
72
|
className: styles.glyph,
|
73
73
|
style: this.getStyle()
|
74
74
|
})
|
@@ -2,6 +2,6 @@ import { SVGAttributes } from 'react';
|
|
2
2
|
export interface IconSVGProps extends SVGAttributes<SVGSVGElement> {
|
3
3
|
src: string;
|
4
4
|
}
|
5
|
-
declare function IconSVG({ src, className, ...rest }: IconSVGProps): import("react").JSX.Element;
|
5
|
+
declare function IconSVG({ src, className, ...rest }: IconSVGProps): import("react/jsx-runtime").JSX.Element;
|
6
6
|
declare const _default: import("react").MemoExoticComponent<typeof IconSVG>;
|
7
7
|
export default _default;
|
@@ -1,9 +1,9 @@
|
|
1
1
|
import '../_helpers/_rollupPluginBabelHelpers.js';
|
2
2
|
import 'core-js/modules/es.regexp.exec.js';
|
3
3
|
import 'core-js/modules/es.string.replace.js';
|
4
|
+
import 'react/jsx-runtime';
|
4
5
|
import 'react';
|
5
6
|
import 'classnames';
|
6
7
|
import '../global/memoize.js';
|
7
8
|
export { I as default } from '../_helpers/icon__svg.js';
|
8
|
-
import 'react/jsx-runtime';
|
9
9
|
import 'core-js/modules/web.dom-collections.iterator.js';
|
package/components/icon/index.js
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
export { default } from './icon.js';
|
2
2
|
export { Color, Size } from './icon__constants.js';
|
3
3
|
import '../_helpers/_rollupPluginBabelHelpers.js';
|
4
|
+
import 'react/jsx-runtime';
|
4
5
|
import 'react';
|
5
6
|
import 'classnames';
|
6
7
|
import 'util-deprecate';
|
@@ -9,4 +10,3 @@ import 'core-js/modules/es.regexp.exec.js';
|
|
9
10
|
import 'core-js/modules/es.string.replace.js';
|
10
11
|
import '../global/memoize.js';
|
11
12
|
import 'core-js/modules/web.dom-collections.iterator.js';
|
12
|
-
import 'react/jsx-runtime';
|
@@ -68,7 +68,7 @@ export declare class Input extends PureComponent<InputProps> {
|
|
68
68
|
clear: (e: React.MouseEvent<HTMLButtonElement>) => void;
|
69
69
|
handleInputChange: (e: React.ChangeEvent<HTMLInputElement>) => void;
|
70
70
|
handleTextareaChange: (e: React.ChangeEvent<HTMLTextAreaElement>) => void;
|
71
|
-
render():
|
71
|
+
render(): import("react/jsx-runtime").JSX.Element;
|
72
72
|
}
|
73
73
|
export type ContainerProps<P extends InputProps> = JSX.LibraryManagedAttributes<typeof Input, P>;
|
74
74
|
export type InputSpecificAttrs = ContainerProps<InputSpecificProps>;
|
@@ -1,5 +1,6 @@
|
|
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 '@jetbrains/icons/close-12px';
|
@@ -12,7 +13,6 @@ import '../global/controls-height.js';
|
|
12
13
|
import '../control-label/control-label.js';
|
13
14
|
import '../control-help/control-help.js';
|
14
15
|
export { I as Input, S as Size, I as default } from '../_helpers/input.js';
|
15
|
-
import 'react/jsx-runtime';
|
16
16
|
import '@jetbrains/icons/chevron-down';
|
17
17
|
import '@jetbrains/icons/chevron-12px-down';
|
18
18
|
import 'util-deprecate';
|
@@ -8,7 +8,7 @@ export default function adaptiveIslandHOC<P>(ComposedComponent: ComponentType<P>
|
|
8
8
|
phase: null;
|
9
9
|
};
|
10
10
|
onContentScroll: ({ scrollTop, scrollHeight, clientHeight }: Element) => void;
|
11
|
-
render(): import("react").JSX.Element;
|
11
|
+
render(): import("react/jsx-runtime").JSX.Element;
|
12
12
|
context: unknown;
|
13
13
|
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<P>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
14
14
|
forceUpdate(callback?: (() => void) | undefined): void;
|
@@ -34,7 +34,7 @@ export default function adaptiveIslandHOC<P>(ComposedComponent: ComponentType<P>
|
|
34
34
|
phase: null;
|
35
35
|
};
|
36
36
|
onContentScroll: ({ scrollTop, scrollHeight, clientHeight }: Element) => void;
|
37
|
-
render(): import("react").JSX.Element;
|
37
|
+
render(): import("react/jsx-runtime").JSX.Element;
|
38
38
|
context: unknown;
|
39
39
|
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<P>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
40
40
|
forceUpdate(callback?: (() => void) | undefined): void;
|
@@ -1,8 +1,8 @@
|
|
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 } from 'react/jsx-runtime';
|
3
4
|
import { Component, createContext } from 'react';
|
4
5
|
import { interpolateLinear } from '../global/linear-function.js';
|
5
|
-
import { jsx } from 'react/jsx-runtime';
|
6
6
|
|
7
7
|
const TITLE_RESIZE_END = 20;
|
8
8
|
const TITLE_RESIZE_THRESHOLD = 36;
|
@@ -31,11 +31,11 @@ function adaptiveIslandHOC(ComposedComponent) {
|
|
31
31
|
});
|
32
32
|
}
|
33
33
|
render() {
|
34
|
-
return
|
34
|
+
return jsx(PhaseContext.Provider, {
|
35
35
|
value: this.state.phase,
|
36
|
-
children:
|
36
|
+
children: jsx(ScrollHandlerContext.Provider, {
|
37
37
|
value: this.onContentScroll,
|
38
|
-
children:
|
38
|
+
children: jsx(ComposedComponent, _objectSpread2({}, this.props))
|
39
39
|
})
|
40
40
|
});
|
41
41
|
}
|
@@ -27,7 +27,7 @@ declare class Content extends Component<IslandContentInnerProps> {
|
|
27
27
|
calculateScrollPosition: () => void;
|
28
28
|
scrollableNode?: HTMLElement | null;
|
29
29
|
setScrollableNodeAndCalculatePosition: (node: HTMLElement | null) => void;
|
30
|
-
render(): import("react").JSX.Element;
|
30
|
+
render(): import("react/jsx-runtime").JSX.Element;
|
31
31
|
}
|
32
32
|
declare const ContentWrapper: import("react").ForwardRefExoticComponent<IslandContentProps & import("react").RefAttributes<Content>>;
|
33
33
|
export default ContentWrapper;
|
@@ -1,12 +1,12 @@
|
|
1
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 { jsx, jsxs } from 'react/jsx-runtime';
|
3
4
|
import { forwardRef, Component } from 'react';
|
4
5
|
import classNames from 'classnames';
|
5
6
|
import createResizeDetector from 'element-resize-detector';
|
6
7
|
import scheduleRAF from '../global/schedule-raf.js';
|
7
8
|
import { s as styles } from '../_helpers/island.js';
|
8
9
|
import { ScrollHandlerContext } from './adaptive-island-hoc.js';
|
9
|
-
import { jsx, jsxs } from 'react/jsx-runtime';
|
10
10
|
import '../global/linear-function.js';
|
11
11
|
|
12
12
|
const _excluded = ["children", "className", "bottomBorder", "scrollableWrapperClassName", "onScroll", "onScrollToBottom", "fade", "tabIndex"];
|
@@ -95,15 +95,15 @@ class Content extends Component {
|
|
95
95
|
[styles.withBottomBorder]: bottomBorder && !scrolledToBottom
|
96
96
|
});
|
97
97
|
const scrollableWrapperClasses = classNames(styles.scrollableWrapper, scrollableWrapperClassName);
|
98
|
-
return
|
98
|
+
return jsx("div", _objectSpread2(_objectSpread2({}, restProps), {}, {
|
99
99
|
"data-test": "ring-island-content",
|
100
100
|
className: classes,
|
101
|
-
children:
|
101
|
+
children: jsxs("div", {
|
102
102
|
tabIndex: tabIndex,
|
103
103
|
className: scrollableWrapperClasses,
|
104
104
|
ref: this.setScrollableNodeAndCalculatePosition,
|
105
105
|
onScroll: fade ? this.calculateScrollPosition : noop,
|
106
|
-
children: [fade &&
|
106
|
+
children: [fade && jsx("div", {
|
107
107
|
ref: this.setWrapper,
|
108
108
|
children: children
|
109
109
|
}), !fade && children]
|
@@ -117,13 +117,13 @@ _defineProperty(Content, "defaultProps", {
|
|
117
117
|
onScroll: noop,
|
118
118
|
onScrollToBottom: noop
|
119
119
|
});
|
120
|
-
const ContentWrapper = /*#__PURE__*/forwardRef((props, ref) =>
|
120
|
+
const ContentWrapper = /*#__PURE__*/forwardRef((props, ref) => jsx(ScrollHandlerContext.Consumer, {
|
121
121
|
children: onScroll => {
|
122
122
|
const addProps = onScroll != null ? {
|
123
123
|
onScroll,
|
124
124
|
bottomBorder: true
|
125
125
|
} : {};
|
126
|
-
return
|
126
|
+
return jsx(Content, _objectSpread2(_objectSpread2(_objectSpread2({}, props), addProps), {}, {
|
127
127
|
ref: ref
|
128
128
|
}));
|
129
129
|
}
|
@@ -4,5 +4,5 @@ export interface IslandHeaderProps extends HTMLAttributes<HTMLElement> {
|
|
4
4
|
border?: boolean | null | undefined;
|
5
5
|
phase?: number | undefined;
|
6
6
|
}
|
7
|
-
declare const HeaderWrapper: (props: IslandHeaderProps) => import("react").JSX.Element;
|
7
|
+
declare const HeaderWrapper: (props: IslandHeaderProps) => import("react/jsx-runtime").JSX.Element;
|
8
8
|
export default HeaderWrapper;
|
@@ -1,10 +1,10 @@
|
|
1
1
|
import { _ as _defineProperty, b as _objectSpread2, a as _objectWithoutProperties } from '../_helpers/_rollupPluginBabelHelpers.js';
|
2
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
2
3
|
import { Component } from 'react';
|
3
4
|
import classNames from 'classnames';
|
4
5
|
import { interpolateLinear } from '../global/linear-function.js';
|
5
6
|
import { s as styles } from '../_helpers/island.js';
|
6
7
|
import { PhaseContext } from './adaptive-island-hoc.js';
|
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"];
|
@@ -58,11 +58,11 @@ class Header extends Component {
|
|
58
58
|
transform: "translate(".concat(this.style('X'), "px, ").concat(this.style('Y'), "px) scale(").concat(scaleFont, ")"),
|
59
59
|
letterSpacing: this.style('SPACING')
|
60
60
|
} : undefined;
|
61
|
-
return
|
61
|
+
return jsxs("div", _objectSpread2(_objectSpread2({}, restProps), {}, {
|
62
62
|
"data-test": "ring-island-header",
|
63
63
|
className: classes,
|
64
64
|
style: headerStyle,
|
65
|
-
children: [wrapWithTitle &&
|
65
|
+
children: [wrapWithTitle && jsx("h2", {
|
66
66
|
className: styles.title,
|
67
67
|
style: titleStyle,
|
68
68
|
children: children
|
@@ -73,12 +73,12 @@ class Header extends Component {
|
|
73
73
|
_defineProperty(Header, "defaultProps", {
|
74
74
|
wrapWithTitle: true
|
75
75
|
});
|
76
|
-
const HeaderWrapper = props =>
|
76
|
+
const HeaderWrapper = props => jsx(PhaseContext.Consumer, {
|
77
77
|
children: phase => {
|
78
78
|
const addProps = phase != null ? {
|
79
79
|
phase
|
80
80
|
} : {};
|
81
|
-
return
|
81
|
+
return jsx(Header, _objectSpread2(_objectSpread2({}, props), addProps));
|
82
82
|
}
|
83
83
|
});
|
84
84
|
|
@@ -8,7 +8,7 @@ export interface IslandProps extends HTMLAttributes<HTMLElement> {
|
|
8
8
|
* @name Island
|
9
9
|
*/
|
10
10
|
export default class Island extends Component<IslandProps> {
|
11
|
-
render(): import("react").JSX.Element;
|
11
|
+
render(): import("react/jsx-runtime").JSX.Element;
|
12
12
|
}
|
13
13
|
export declare const AdaptiveIsland: {
|
14
14
|
new (props: IslandProps): {
|
@@ -16,7 +16,7 @@ export declare const AdaptiveIsland: {
|
|
16
16
|
phase: null;
|
17
17
|
};
|
18
18
|
onContentScroll: ({ scrollTop, scrollHeight, clientHeight }: Element) => void;
|
19
|
-
render(): import("react").JSX.Element;
|
19
|
+
render(): import("react/jsx-runtime").JSX.Element;
|
20
20
|
context: unknown;
|
21
21
|
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<IslandProps>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
22
22
|
forceUpdate(callback?: (() => void) | undefined): void;
|
@@ -42,7 +42,7 @@ export declare const AdaptiveIsland: {
|
|
42
42
|
phase: null;
|
43
43
|
};
|
44
44
|
onContentScroll: ({ scrollTop, scrollHeight, clientHeight }: Element) => void;
|
45
|
-
render(): import("react").JSX.Element;
|
45
|
+
render(): import("react/jsx-runtime").JSX.Element;
|
46
46
|
context: unknown;
|
47
47
|
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<IslandProps>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
48
48
|
forceUpdate(callback?: (() => void) | undefined): void;
|
@@ -1,10 +1,10 @@
|
|
1
1
|
import { 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 classNames from 'classnames';
|
4
5
|
import joinDataTestAttributes from '../global/data-tests.js';
|
5
6
|
import adaptiveIslandHOC from './adaptive-island-hoc.js';
|
6
7
|
import { s as styles } from '../_helpers/island.js';
|
7
|
-
import { jsx } from 'react/jsx-runtime';
|
8
8
|
export { default as Header } from './header.js';
|
9
9
|
export { default as Content } from './content.js';
|
10
10
|
import 'core-js/modules/web.dom-collections.iterator.js';
|
@@ -13,6 +13,9 @@ import 'element-resize-detector';
|
|
13
13
|
import '../global/schedule-raf.js';
|
14
14
|
|
15
15
|
const _excluded = ["children", "className", "narrow", "withoutPaddings", "data-test"];
|
16
|
+
/**
|
17
|
+
* @name Island
|
18
|
+
*/
|
16
19
|
class Island extends Component {
|
17
20
|
render() {
|
18
21
|
const _this$props = this.props,
|
@@ -28,7 +31,7 @@ class Island extends Component {
|
|
28
31
|
[styles.narrowIsland]: narrow,
|
29
32
|
[styles.withoutPaddings]: withoutPaddings
|
30
33
|
});
|
31
|
-
return
|
34
|
+
return jsx("div", _objectSpread2(_objectSpread2({}, restProps), {}, {
|
32
35
|
className: classes,
|
33
36
|
"data-test": joinDataTestAttributes('ring-island', dataTest),
|
34
37
|
children: children
|
@@ -8,5 +8,5 @@ export interface ClickableLinkProps extends AnchorHTMLAttributes<HTMLAnchorEleme
|
|
8
8
|
}
|
9
9
|
export default class ClickableLink extends PureComponent<ClickableLinkProps> {
|
10
10
|
onClick: (e: React.MouseEvent<HTMLAnchorElement>) => void;
|
11
|
-
render():
|
11
|
+
render(): import("react/jsx-runtime").JSX.Element;
|
12
12
|
}
|
@@ -1,7 +1,7 @@
|
|
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 { PureComponent } from 'react';
|
4
3
|
import { jsx } from 'react/jsx-runtime';
|
4
|
+
import { PureComponent } from 'react';
|
5
5
|
|
6
6
|
const _excluded = ["onConditionalClick", "onPlainLeftClick", "activeClassName", "href", "children"];
|
7
7
|
const LEFT_BUTTON = 0;
|
@@ -39,7 +39,7 @@ class ClickableLink extends PureComponent {
|
|
39
39
|
children
|
40
40
|
} = _this$props,
|
41
41
|
restProps = _objectWithoutProperties(_this$props, _excluded);
|
42
|
-
return
|
42
|
+
return jsx("a", _objectSpread2(_objectSpread2({
|
43
43
|
href: href
|
44
44
|
}, restProps), {}, {
|
45
45
|
onClick: this.onClick,
|
@@ -14,7 +14,7 @@ export interface LinkBaseProps {
|
|
14
14
|
export type LinkProps<P extends ClickableLinkProps = ClickableLinkProps> = Omit<P, keyof LinkBaseProps> & LinkBaseProps;
|
15
15
|
export declare function linkHOC<P extends ClickableLinkProps>(ComposedComponent: ComponentType<P> | string): {
|
16
16
|
new (props: LinkProps<P>): {
|
17
|
-
render(): import("react").JSX.Element;
|
17
|
+
render(): import("react/jsx-runtime").JSX.Element;
|
18
18
|
context: unknown;
|
19
19
|
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<LinkProps<P>>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
20
20
|
forceUpdate(callback?: (() => void) | undefined): void;
|
@@ -37,7 +37,7 @@ export declare function linkHOC<P extends ClickableLinkProps>(ComposedComponent:
|
|
37
37
|
UNSAFE_componentWillUpdate?(nextProps: Readonly<LinkProps<P>>, nextState: Readonly<{}>, nextContext: any): void;
|
38
38
|
};
|
39
39
|
new (props: LinkProps<P>, context: any): {
|
40
|
-
render(): import("react").JSX.Element;
|
40
|
+
render(): import("react/jsx-runtime").JSX.Element;
|
41
41
|
context: unknown;
|
42
42
|
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<LinkProps<P>>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
43
43
|
forceUpdate(callback?: (() => void) | undefined): void;
|
@@ -63,7 +63,7 @@ export declare function linkHOC<P extends ClickableLinkProps>(ComposedComponent:
|
|
63
63
|
};
|
64
64
|
declare const _default: {
|
65
65
|
new (props: LinkProps<ClickableLinkProps>): {
|
66
|
-
render(): import("react").JSX.Element;
|
66
|
+
render(): import("react/jsx-runtime").JSX.Element;
|
67
67
|
context: unknown;
|
68
68
|
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<LinkProps<ClickableLinkProps>>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
69
69
|
forceUpdate(callback?: (() => void) | undefined): void;
|
@@ -86,7 +86,7 @@ declare const _default: {
|
|
86
86
|
UNSAFE_componentWillUpdate?(nextProps: Readonly<LinkProps<ClickableLinkProps>>, nextState: Readonly<{}>, nextContext: any): void;
|
87
87
|
};
|
88
88
|
new (props: LinkProps<ClickableLinkProps>, context: any): {
|
89
|
-
render(): import("react").JSX.Element;
|
89
|
+
render(): import("react/jsx-runtime").JSX.Element;
|
90
90
|
context: unknown;
|
91
91
|
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<LinkProps<ClickableLinkProps>>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
92
92
|
forceUpdate(callback?: (() => void) | undefined): void;
|
package/components/link/link.js
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
import { a as _objectWithoutProperties, b as _objectSpread2 } from '../_helpers/_rollupPluginBabelHelpers.js';
|
2
|
+
import { jsx } from 'react/jsx-runtime';
|
2
3
|
import { PureComponent } from 'react';
|
3
4
|
import classNames from 'classnames';
|
4
5
|
import joinDataTestAttributes from '../global/data-tests.js';
|
5
6
|
import ClickableLink from './clickableLink.js';
|
6
7
|
import { l as linkStyles } from '../_helpers/link.js';
|
7
|
-
import { jsx } from 'react/jsx-runtime';
|
8
8
|
import 'core-js/modules/web.dom-collections.iterator.js';
|
9
9
|
|
10
10
|
const _excluded = ["active", "inherit", "pseudo", "hover", "className", "data-test", "href", "children", "onPlainLeftClick", "onClick"];
|
@@ -40,7 +40,7 @@ function linkHOC(ComposedComponent) {
|
|
40
40
|
});
|
41
41
|
}
|
42
42
|
if (useButton) {
|
43
|
-
return
|
43
|
+
return jsx("button", _objectSpread2(_objectSpread2({
|
44
44
|
type: "button"
|
45
45
|
}, props), {}, {
|
46
46
|
className: classes,
|
@@ -49,7 +49,7 @@ function linkHOC(ComposedComponent) {
|
|
49
49
|
children: children
|
50
50
|
}));
|
51
51
|
}
|
52
|
-
return
|
52
|
+
return jsx(ComposedComponent, _objectSpread2(_objectSpread2({}, props), {}, {
|
53
53
|
href: href,
|
54
54
|
className: classes,
|
55
55
|
onClick: onClick,
|