@jetbrains/ring-ui-built 7.0.72 → 7.0.73
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 +55 -13
- package/components/_helpers/avatar-info.js +44 -11
- package/components/_helpers/caption.js +2 -2
- package/components/_helpers/card.js +21 -21
- package/components/_helpers/icon-svg.js +75 -17
- package/components/_helpers/input.js +13 -13
- package/components/_helpers/query-assist-suggestions.js +5 -5
- package/components/_helpers/select-filter.js +5 -5
- package/components/_helpers/services-link.js +5 -5
- package/components/_helpers/sidebar.js +6 -6
- package/components/_helpers/tab-link.js +69 -17
- package/components/_helpers/theme.js +231 -54
- package/components/_helpers/title.js +5 -5
- package/components/alert/alert.d.ts +1 -1
- package/components/alert/alert.js +12 -10
- package/components/alert/container.js +4 -4
- package/components/alert-service/alert-service.d.ts +1 -1
- package/components/alert-service/alert-service.js +5 -4
- package/components/auth/auth-core.js +8 -8
- package/components/auth/auth.js +3 -2
- package/components/auth/down-notification.js +61 -17
- package/components/auth/iframe-flow.js +7 -6
- package/components/auth/storage.js +3 -2
- package/components/auth/token-validator.js +1 -1
- package/components/auth/window-flow.js +2 -2
- package/components/auth-dialog/auth-dialog.d.ts +1 -1
- package/components/auth-dialog/auth-dialog.js +15 -14
- package/components/auth-dialog-service/auth-dialog-service.js +4 -6
- package/components/avatar/avatar-info.d.ts +1 -1
- package/components/avatar/avatar-info.js +3 -2
- package/components/avatar/avatar.d.ts +1 -1
- package/components/avatar/avatar.js +16 -15
- package/components/avatar/fallback-avatar.d.ts +1 -1
- package/components/avatar/fallback-avatar.js +183 -59
- package/components/avatar-stack/avatar-stack.d.ts +1 -1
- package/components/avatar-stack/avatar-stack.js +115 -29
- package/components/banner/banner.d.ts +1 -1
- package/components/banner/banner.js +11 -10
- package/components/breadcrumbs/breadcrumbs.d.ts +1 -1
- package/components/breadcrumbs/breadcrumbs.js +3 -2
- package/components/button/button.d.ts +1 -1
- package/components/button/button.js +11 -10
- package/components/button-group/button-group.d.ts +1 -1
- package/components/button-group/button-group.js +6 -8
- 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 +2 -5
- package/components/button-toolbar/button-toolbar.d.ts +1 -1
- package/components/button-toolbar/button-toolbar.js +2 -5
- package/components/checkbox/checkbox.d.ts +1 -1
- package/components/checkbox/checkbox.js +12 -17
- package/components/clipboard/clipboard.js +2 -1
- package/components/code/code.d.ts +1 -1
- package/components/code/code.js +5 -5
- package/components/collapse/collapse-content.js +161 -77
- package/components/collapse/collapse-control.js +69 -22
- package/components/collapse/collapse.js +83 -31
- package/components/confirm/confirm.d.ts +1 -1
- package/components/confirm/confirm.js +11 -13
- package/components/confirm-service/confirm-service.js +4 -3
- package/components/content-layout/content-layout.d.ts +1 -1
- package/components/content-layout/content-layout.js +4 -7
- 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 +50 -14
- package/components/control-help/control-help.d.ts +1 -1
- package/components/control-help/control-help.js +45 -9
- package/components/control-label/control-label.js +62 -13
- package/components/data-list/data-list.d.ts +1 -1
- package/components/data-list/data-list.js +10 -9
- package/components/data-list/data-list.mock.d.ts +1 -1
- package/components/data-list/data-list.mock.js +79 -78
- package/components/data-list/item.d.ts +2 -2
- package/components/data-list/item.js +18 -17
- package/components/data-list/title.d.ts +1 -1
- package/components/data-list/title.js +2 -1
- package/components/date-picker/consts.js +1 -1
- package/components/date-picker/date-input.d.ts +1 -1
- package/components/date-picker/date-input.js +4 -3
- package/components/date-picker/date-picker.d.ts +1 -1
- package/components/date-picker/date-picker.js +97 -31
- package/components/date-picker/date-popup.d.ts +1 -1
- package/components/date-picker/date-popup.js +11 -10
- package/components/date-picker/day.d.ts +1 -1
- package/components/date-picker/day.js +4 -3
- package/components/date-picker/month-names.d.ts +1 -1
- package/components/date-picker/month-names.js +98 -22
- package/components/date-picker/month-slider.d.ts +1 -1
- package/components/date-picker/month-slider.js +4 -4
- package/components/date-picker/month.d.ts +1 -1
- package/components/date-picker/month.js +79 -18
- package/components/date-picker/months.d.ts +1 -1
- package/components/date-picker/months.js +163 -53
- package/components/date-picker/weekdays.d.ts +1 -1
- package/components/date-picker/weekdays.js +56 -16
- package/components/date-picker/years.d.ts +1 -1
- package/components/date-picker/years.js +5 -5
- package/components/dialog/dialog.d.ts +1 -1
- package/components/dialog/dialog.js +21 -23
- package/components/dropdown/anchor.d.ts +1 -1
- package/components/dropdown/anchor.js +2 -1
- package/components/dropdown/dropdown.d.ts +1 -1
- package/components/dropdown/dropdown.js +7 -8
- package/components/dropdown-menu/dropdown-menu.js +299 -83
- package/components/editable-heading/editable-heading.d.ts +2 -2
- package/components/editable-heading/editable-heading.js +523 -174
- package/components/error-bubble/error-bubble.d.ts +1 -1
- package/components/error-bubble/error-bubble.js +7 -9
- package/components/error-message/error-message.d.ts +1 -1
- package/components/error-message/error-message.js +8 -10
- package/components/footer/footer.js +205 -61
- package/components/global/create-stateful-context.d.ts +1 -1
- package/components/global/create-stateful-context.js +73 -18
- package/components/global/focus-sensor-hoc.js +2 -2
- package/components/global/get-uid.js +1 -1
- 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 +23 -6
- package/components/global/theme.js +3 -2
- package/components/global/use-event-callback.js +37 -13
- package/components/grid/col.d.ts +1 -1
- package/components/grid/col.js +3 -3
- package/components/grid/grid.d.ts +1 -1
- package/components/grid/grid.js +3 -6
- package/components/grid/row.d.ts +1 -1
- package/components/grid/row.js +3 -3
- package/components/group/group.d.ts +1 -1
- package/components/group/group.js +3 -6
- package/components/header/header-icon.d.ts +1 -1
- package/components/header/header-icon.js +3 -2
- package/components/header/header.d.ts +1 -1
- package/components/header/header.js +7 -12
- package/components/header/links.d.ts +1 -1
- package/components/header/links.js +45 -10
- package/components/header/logo.d.ts +1 -1
- package/components/header/logo.js +4 -3
- package/components/header/profile.js +17 -16
- 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 +35 -16
- package/components/header/smart-profile.d.ts +1 -1
- package/components/header/smart-profile.js +6 -5
- package/components/header/smart-services.d.ts +1 -1
- package/components/header/smart-services.js +3 -2
- package/components/header/tray.d.ts +1 -1
- package/components/header/tray.js +3 -3
- package/components/heading/heading.js +188 -44
- package/components/i18n/i18n-context.js +51 -13
- package/components/icon/icon-svg.d.ts +1 -1
- package/components/icon/icon-svg.js +2 -1
- package/components/icon/icon.d.ts +1 -1
- package/components/icon/icon.js +6 -5
- package/components/icon/index.js +2 -1
- package/components/input/input.d.ts +1 -1
- package/components/input/input.js +2 -1
- package/components/island/adaptive-island-hoc.js +4 -4
- package/components/island/content.d.ts +1 -1
- package/components/island/content.js +36 -17
- package/components/island/header.d.ts +1 -1
- package/components/island/header.js +32 -14
- package/components/island/island.d.ts +1 -1
- package/components/island/island.js +3 -5
- package/components/link/clickable-link.d.ts +1 -1
- package/components/link/clickable-link.js +2 -2
- package/components/link/link.js +4 -4
- 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 +3 -7
- package/components/list/list-item.d.ts +1 -1
- package/components/list/list-item.js +23 -26
- package/components/list/list-separator.d.ts +1 -1
- package/components/list/list-separator.js +3 -3
- package/components/list/list-title.d.ts +1 -1
- package/components/list/list-title.js +7 -7
- package/components/list/list-users-groups-source.js +6 -5
- package/components/list/list.d.ts +6 -6
- package/components/list/list.js +33 -31
- package/components/loader/loader.d.ts +1 -1
- package/components/loader/loader.js +8 -14
- package/components/loader-inline/loader-inline.d.ts +1 -1
- package/components/loader-inline/loader-inline.js +4 -7
- package/components/loader-screen/loader-screen.d.ts +1 -1
- package/components/loader-screen/loader-screen.js +3 -6
- package/components/login-dialog/login-dialog.d.ts +1 -1
- package/components/login-dialog/login-dialog.js +10 -9
- package/components/login-dialog/service.js +4 -3
- package/components/markdown/markdown.d.ts +1 -1
- package/components/markdown/markdown.js +3 -6
- package/components/message/message.d.ts +1 -1
- package/components/message/message.js +13 -15
- package/components/old-browsers-message/white-list.js +2 -2
- package/components/pager/pager.d.ts +5 -5
- package/components/pager/pager.js +28 -27
- package/components/panel/panel.d.ts +1 -1
- package/components/panel/panel.js +3 -6
- package/components/popup/popup.d.ts +2 -2
- package/components/popup/popup.js +14 -11
- package/components/popup/popup.target.js +68 -16
- package/components/popup-menu/popup-menu.d.ts +1 -1
- package/components/popup-menu/popup-menu.js +7 -9
- package/components/progress-bar/progress-bar.d.ts +1 -1
- package/components/progress-bar/progress-bar.js +4 -7
- package/components/query-assist/query-assist-suggestions.d.ts +1 -1
- package/components/query-assist/query-assist-suggestions.js +5 -4
- package/components/query-assist/query-assist.d.ts +2 -2
- package/components/query-assist/query-assist.js +37 -34
- package/components/radio/radio-item.d.ts +1 -1
- package/components/radio/radio-item.js +40 -20
- package/components/radio/radio.d.ts +1 -1
- package/components/radio/radio.js +3 -5
- package/components/scrollable-section/scrollable-section.d.ts +1 -1
- package/components/scrollable-section/scrollable-section.js +100 -38
- package/components/select/select-filter.d.ts +1 -1
- package/components/select/select-filter.js +5 -4
- package/components/select/select-popup.d.ts +7 -7
- package/components/select/select-popup.js +26 -25
- package/components/select/select.d.ts +3 -3
- package/components/select/select.js +52 -52
- package/components/shortcuts/shortcuts-hoc.js +3 -3
- package/components/slider/slider.js +591 -196
- package/components/storage/storage-local.js +2 -1
- package/components/storage/storage.js +2 -1
- package/components/style.css +1 -1
- package/components/tab-trap/tab-trap.js +247 -102
- package/components/table/cell.d.ts +1 -1
- package/components/table/cell.js +2 -2
- package/components/table/disable-hover-hoc.js +3 -3
- package/components/table/header-cell.d.ts +1 -1
- package/components/table/header-cell.js +7 -6
- package/components/table/header.d.ts +2 -2
- package/components/table/header.js +14 -13
- package/components/table/multitable.d.ts +1 -1
- package/components/table/multitable.js +3 -3
- package/components/table/row-with-focus-sensor.d.ts +1 -1
- package/components/table/row-with-focus-sensor.js +3 -2
- package/components/table/row.d.ts +1 -1
- package/components/table/row.js +51 -24
- package/components/table/selection-shortcuts-hoc.js +2 -2
- package/components/table/simple-table.d.ts +1 -1
- package/components/table/simple-table.js +4 -3
- package/components/table/smart-table.d.ts +1 -1
- package/components/table/smart-table.js +4 -3
- package/components/table/table.d.ts +2 -2
- package/components/table/table.js +21 -23
- package/components/tabs/collapsible-more.d.ts +3 -3
- package/components/tabs/collapsible-more.js +253 -83
- package/components/tabs/collapsible-tab.d.ts +1 -1
- package/components/tabs/collapsible-tab.js +4 -3
- package/components/tabs/collapsible-tabs.d.ts +2 -2
- package/components/tabs/collapsible-tabs.js +450 -188
- package/components/tabs/dumb-tabs.d.ts +2 -2
- package/components/tabs/dumb-tabs.js +10 -9
- package/components/tabs/smart-tabs.d.ts +1 -1
- package/components/tabs/smart-tabs.js +6 -5
- package/components/tabs/tab-link.d.ts +1 -1
- package/components/tabs/tab-link.js +2 -1
- package/components/tabs/tab.d.ts +1 -1
- package/components/tabs/tab.js +2 -2
- package/components/tabs/tabs.js +5 -4
- package/components/tag/tag.d.ts +5 -5
- package/components/tag/tag.js +14 -13
- package/components/tags-input/tags-input.d.ts +1 -1
- package/components/tags-input/tags-input.js +10 -9
- package/components/tags-list/tags-list.d.ts +2 -2
- package/components/tags-list/tags-list.js +4 -3
- 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 +12 -11
- package/components/tooltip/tooltip.d.ts +1 -1
- package/components/tooltip/tooltip.js +7 -6
- package/components/upload/upload.js +10 -9
- package/components/user-agreement/service.js +11 -10
- package/components/user-agreement/user-agreement.d.ts +1 -1
- package/components/user-agreement/user-agreement.js +19 -18
- package/components/user-card/card.d.ts +1 -1
- package/components/user-card/card.js +3 -2
- package/components/user-card/smart-user-card-tooltip.d.ts +2 -2
- package/components/user-card/smart-user-card-tooltip.js +7 -6
- package/components/user-card/tooltip.d.ts +2 -2
- package/components/user-card/tooltip.js +7 -6
- package/components/user-card/user-card.js +4 -3
- package/package.json +3 -9
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
1
|
import { forwardRef, useRef, useState, useImperativeHandle, useCallback } from 'react';
|
|
3
2
|
import classNames from 'classnames';
|
|
4
3
|
import attachmentIcon from '@jetbrains/icons/attachment';
|
|
5
4
|
import Icon from '../icon/icon.js';
|
|
5
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
6
6
|
import 'util-deprecate';
|
|
7
7
|
import '../icon/icon.constants.js';
|
|
8
8
|
import '../_helpers/icon-svg.js';
|
|
9
|
+
import 'react-compiler-runtime';
|
|
9
10
|
import '../global/memoize.js';
|
|
10
11
|
|
|
11
12
|
var styles = {"upload":"ring-upload-upload","success":"ring-upload-success","error":"ring-upload-error","dragOver":"ring-upload-dragOver","disabled":"ring-upload-disabled","invisibleFileInput":"ring-upload-invisibleFileInput","attachmentIcon":"ring-upload-attachmentIcon"};
|
|
@@ -18,7 +19,7 @@ const Upload = /*#__PURE__*/forwardRef(function Upload({
|
|
|
18
19
|
validate = () => true,
|
|
19
20
|
variant = 'empty',
|
|
20
21
|
multiple,
|
|
21
|
-
renderIcon = () => jsx(Icon, {
|
|
22
|
+
renderIcon = () => /*#__PURE__*/jsx(Icon, {
|
|
22
23
|
className: styles.attachmentIcon,
|
|
23
24
|
glyph: attachmentIcon
|
|
24
25
|
}),
|
|
@@ -50,27 +51,27 @@ const Upload = /*#__PURE__*/forwardRef(function Upload({
|
|
|
50
51
|
handleSelectedFiles(Array.from(fileInputRef.current.files));
|
|
51
52
|
}
|
|
52
53
|
}, [handleSelectedFiles]);
|
|
53
|
-
return jsxs("div", {
|
|
54
|
+
return /*#__PURE__*/jsxs("div", {
|
|
54
55
|
className: classNames(className, styles.upload, {
|
|
55
56
|
[styles.disabled]: disabled,
|
|
56
57
|
[styles.dragOver]: dragOver,
|
|
57
58
|
[styles.success]: variant === 'success',
|
|
58
59
|
[styles.error]: variant === 'error'
|
|
59
60
|
}),
|
|
60
|
-
"data-test":
|
|
61
|
-
children: [jsx("input", {
|
|
61
|
+
"data-test": "ring-upload",
|
|
62
|
+
children: [/*#__PURE__*/jsx("input", {
|
|
62
63
|
onDragEnter: onDragEnter,
|
|
63
64
|
onDragOver: onDragOver,
|
|
64
65
|
onDragLeave: onDragLeave,
|
|
65
66
|
disabled: disabled,
|
|
66
67
|
ref: fileInputRef,
|
|
67
|
-
"data-test":
|
|
68
|
+
"data-test": "ring-file-input",
|
|
68
69
|
multiple: multiple,
|
|
69
70
|
accept: accept,
|
|
70
71
|
onChange: onInputChange,
|
|
71
|
-
type:
|
|
72
|
-
autoComplete:
|
|
73
|
-
"aria-label":
|
|
72
|
+
type: "file",
|
|
73
|
+
autoComplete: "off",
|
|
74
|
+
"aria-label": "file-picker",
|
|
74
75
|
className: styles.invisibleFileInput
|
|
75
76
|
}), renderIcon(), children]
|
|
76
77
|
});
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
1
|
import { createRoot } from 'react-dom/client';
|
|
3
2
|
import LocalStorage from '../storage/storage-local.js';
|
|
4
3
|
import alertService from '../alert-service/alert-service.js';
|
|
@@ -7,6 +6,7 @@ import Alert from '../alert/alert.js';
|
|
|
7
6
|
import Group from '../group/group.js';
|
|
8
7
|
import { ControlsHeightContext, getGlobalControlsHeight } from '../global/controls-height.js';
|
|
9
8
|
import UserAgreement from './user-agreement.js';
|
|
9
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
10
10
|
import '../global/get-uid.js';
|
|
11
11
|
import '../alert/container.js';
|
|
12
12
|
import 'react';
|
|
@@ -23,6 +23,7 @@ import '../icon/icon.js';
|
|
|
23
23
|
import 'util-deprecate';
|
|
24
24
|
import '../icon/icon.constants.js';
|
|
25
25
|
import '../_helpers/icon-svg.js';
|
|
26
|
+
import 'react-compiler-runtime';
|
|
26
27
|
import '../global/memoize.js';
|
|
27
28
|
import '../loader-inline/loader-inline.js';
|
|
28
29
|
import '../global/dom.js';
|
|
@@ -59,7 +60,7 @@ import '../i18n/i18n-context.js';
|
|
|
59
60
|
import '../i18n/i18n.js';
|
|
60
61
|
|
|
61
62
|
const GUEST_SESSION_KEY = 'end-user-agreement-consent';
|
|
62
|
-
const ONE_HOUR = 60 * 60 * 1000; // eslint-disable-line
|
|
63
|
+
const ONE_HOUR = 60 * 60 * 1000; // eslint-disable-line no-magic-numbers
|
|
63
64
|
const storageKey = 'userAgreementKey';
|
|
64
65
|
const showMessage = 'userAgreementShow';
|
|
65
66
|
const hideMessage = 'userAgreementHide';
|
|
@@ -209,16 +210,16 @@ class UserAgreementService {
|
|
|
209
210
|
this.hideAlert(withoutNotifications);
|
|
210
211
|
resolve();
|
|
211
212
|
};
|
|
212
|
-
const message = jsxs(Group, {
|
|
213
|
-
children: [jsx("span", {
|
|
213
|
+
const message = /*#__PURE__*/jsxs(Group, {
|
|
214
|
+
children: [/*#__PURE__*/jsx("span", {
|
|
214
215
|
children: userAgreement || 'User Agreement'
|
|
215
|
-
}), jsx(Link, {
|
|
216
|
+
}), /*#__PURE__*/jsx(Link, {
|
|
216
217
|
onClick: onReview,
|
|
217
|
-
"data-test":
|
|
218
|
+
"data-test": "review",
|
|
218
219
|
children: reviewNow || 'Review now'
|
|
219
|
-
}), jsx(Link, {
|
|
220
|
+
}), /*#__PURE__*/jsx(Link, {
|
|
220
221
|
onClick: onRemind,
|
|
221
|
-
"data-test":
|
|
222
|
+
"data-test": "later",
|
|
222
223
|
children: remindLater || 'Remind me later'
|
|
223
224
|
})]
|
|
224
225
|
});
|
|
@@ -275,9 +276,9 @@ class UserAgreementService {
|
|
|
275
276
|
preview,
|
|
276
277
|
...restOptions
|
|
277
278
|
};
|
|
278
|
-
this.reactRoot.render(jsx(ControlsHeightContext.Provider, {
|
|
279
|
+
this.reactRoot.render(/*#__PURE__*/jsx(ControlsHeightContext.Provider, {
|
|
279
280
|
value: getGlobalControlsHeight(),
|
|
280
|
-
children: jsx(UserAgreement, {
|
|
281
|
+
children: /*#__PURE__*/jsx(UserAgreement, {
|
|
281
282
|
...props
|
|
282
283
|
})
|
|
283
284
|
}));
|
|
@@ -36,7 +36,7 @@ export default class UserAgreement extends PureComponent<UserAgreementProps> {
|
|
|
36
36
|
scrolledDown: boolean;
|
|
37
37
|
};
|
|
38
38
|
onScrollToBottom: () => void;
|
|
39
|
-
render(): import("react
|
|
39
|
+
render(): import("react").JSX.Element;
|
|
40
40
|
}
|
|
41
41
|
export type UserAgreementAttrs = React.JSX.LibraryManagedAttributes<typeof UserAgreement, UserAgreementProps>;
|
|
42
42
|
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
2
1
|
import { PureComponent } from 'react';
|
|
3
2
|
import classNames from 'classnames';
|
|
4
3
|
import Dialog from '../dialog/dialog.js';
|
|
4
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
5
5
|
import '../_helpers/island.js';
|
|
6
6
|
import HeaderWrapper from '../island/header.js';
|
|
7
7
|
import ContentWrapper from '../island/content.js';
|
|
@@ -14,6 +14,7 @@ import '../island/island.js';
|
|
|
14
14
|
import '../global/data-tests.js';
|
|
15
15
|
import '../island/adaptive-island-hoc.js';
|
|
16
16
|
import '../global/linear-function.js';
|
|
17
|
+
import 'react-compiler-runtime';
|
|
17
18
|
import 'element-resize-detector';
|
|
18
19
|
import '../global/schedule-raf.js';
|
|
19
20
|
import '../global/get-uid.js';
|
|
@@ -78,55 +79,55 @@ class UserAgreement extends PureComponent {
|
|
|
78
79
|
preview,
|
|
79
80
|
className
|
|
80
81
|
} = this.props;
|
|
81
|
-
return jsx(I18nContext.Consumer, {
|
|
82
|
+
return /*#__PURE__*/jsx(I18nContext.Consumer, {
|
|
82
83
|
children: ({
|
|
83
84
|
translate
|
|
84
85
|
}) => {
|
|
85
86
|
var _translations$userAgr, _translations$userAgr2, _translations$scrollT, _translations$accept, _translations$decline, _translations$scrollT2, _translations$remindL, _translations$close;
|
|
86
|
-
return jsxs(Dialog, {
|
|
87
|
+
return /*#__PURE__*/jsxs(Dialog, {
|
|
87
88
|
label: (_translations$userAgr = translations?.userAgreement) !== null && _translations$userAgr !== void 0 ? _translations$userAgr : translate('userAgreement'),
|
|
88
89
|
show: show,
|
|
89
90
|
className: classNames(style.agreementDialog, className),
|
|
90
91
|
contentClassName: style.dialogContent,
|
|
91
92
|
trapFocus: true,
|
|
92
93
|
autoFocusFirst: false,
|
|
93
|
-
"data-test":
|
|
94
|
-
children: [jsx(HeaderWrapper, {
|
|
94
|
+
"data-test": "user-agreement",
|
|
95
|
+
children: [/*#__PURE__*/jsx(HeaderWrapper, {
|
|
95
96
|
children: (_translations$userAgr2 = translations?.userAgreement) !== null && _translations$userAgr2 !== void 0 ? _translations$userAgr2 : translate('userAgreement')
|
|
96
|
-
}), jsx(ContentWrapper, {
|
|
97
|
+
}), /*#__PURE__*/jsx(ContentWrapper, {
|
|
97
98
|
tabIndex: 0,
|
|
98
99
|
fade: true,
|
|
99
100
|
onScrollToBottom: this.onScrollToBottom,
|
|
100
101
|
children: children
|
|
101
|
-
}), !preview && jsxs(Panel, {
|
|
102
|
-
children: [onRemindLater && !scrolledDown && jsx("div", {
|
|
102
|
+
}), !preview && /*#__PURE__*/jsxs(Panel, {
|
|
103
|
+
children: [onRemindLater && !scrolledDown && /*#__PURE__*/jsx("div", {
|
|
103
104
|
className: style.suggestion,
|
|
104
105
|
children: (_translations$scrollT = translations?.scrollToAccept) !== null && _translations$scrollT !== void 0 ? _translations$scrollT : translate('scrollToAccept')
|
|
105
|
-
}), jsx(Button, {
|
|
106
|
+
}), /*#__PURE__*/jsx(Button, {
|
|
106
107
|
primary: true,
|
|
107
108
|
disabled: !scrolledDown,
|
|
108
109
|
onClick: onAccept,
|
|
109
|
-
"data-test":
|
|
110
|
+
"data-test": "accept",
|
|
110
111
|
children: (_translations$accept = translations?.accept) !== null && _translations$accept !== void 0 ? _translations$accept : translate('accept')
|
|
111
|
-
}), jsx(Button, {
|
|
112
|
+
}), /*#__PURE__*/jsx(Button, {
|
|
112
113
|
onClick: onDecline,
|
|
113
114
|
autoFocus: true,
|
|
114
|
-
"data-test":
|
|
115
|
+
"data-test": "decline",
|
|
115
116
|
children: (_translations$decline = translations?.decline) !== null && _translations$decline !== void 0 ? _translations$decline : translate('decline')
|
|
116
|
-
}), !onRemindLater && !scrolledDown && jsx("span", {
|
|
117
|
+
}), !onRemindLater && !scrolledDown && /*#__PURE__*/jsx("span", {
|
|
117
118
|
className: style.suggestion,
|
|
118
119
|
children: (_translations$scrollT2 = translations?.scrollToAccept) !== null && _translations$scrollT2 !== void 0 ? _translations$scrollT2 : translate('scrollToAccept')
|
|
119
|
-
}), onRemindLater && jsx(Button, {
|
|
120
|
+
}), onRemindLater && /*#__PURE__*/jsx(Button, {
|
|
120
121
|
className: style.remindLaterButton,
|
|
121
122
|
onClick: onRemindLater,
|
|
122
|
-
"data-test":
|
|
123
|
+
"data-test": "later",
|
|
123
124
|
children: (_translations$remindL = translations?.remindLater) !== null && _translations$remindL !== void 0 ? _translations$remindL : translate('remindLater')
|
|
124
125
|
})]
|
|
125
|
-
}), preview && jsx(Panel, {
|
|
126
|
-
children: jsx(Button, {
|
|
126
|
+
}), preview && /*#__PURE__*/jsx(Panel, {
|
|
127
|
+
children: /*#__PURE__*/jsx(Button, {
|
|
127
128
|
onClick: onClose,
|
|
128
129
|
autoFocus: true,
|
|
129
|
-
"data-test":
|
|
130
|
+
"data-test": "close",
|
|
130
131
|
children: (_translations$close = translations?.close) !== null && _translations$close !== void 0 ? _translations$close : translate('close')
|
|
131
132
|
})
|
|
132
133
|
})]
|
|
@@ -31,6 +31,6 @@ export default class UserCard extends PureComponent<UserCardProps> {
|
|
|
31
31
|
static contextType: React.Context<import("../i18n/i18n-context").I18nContextProps>;
|
|
32
32
|
context: React.ContextType<typeof UserCard.contextType>;
|
|
33
33
|
copyEmail: () => void;
|
|
34
|
-
render():
|
|
34
|
+
render(): React.JSX.Element;
|
|
35
35
|
}
|
|
36
36
|
export type UserCardAttrs = React.JSX.LibraryManagedAttributes<typeof UserCard, UserCardProps>;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import 'react/jsx-runtime';
|
|
2
1
|
import 'react';
|
|
3
2
|
import 'classnames';
|
|
4
3
|
import '@jetbrains/icons/copy';
|
|
@@ -10,15 +9,17 @@ import '../icon/icon.js';
|
|
|
10
9
|
import '../i18n/i18n-context.js';
|
|
11
10
|
import '../tooltip/tooltip.js';
|
|
12
11
|
export { U as default } from '../_helpers/card.js';
|
|
12
|
+
import 'react/jsx-runtime';
|
|
13
13
|
import '../avatar/avatar-size.js';
|
|
14
14
|
import '../icon/icon.constants.js';
|
|
15
15
|
import 'util-deprecate';
|
|
16
16
|
import '../global/url.js';
|
|
17
17
|
import '../global/dom.js';
|
|
18
18
|
import '../global/memoize.js';
|
|
19
|
-
import '../_helpers/avatar-info.js';
|
|
20
19
|
import '../avatar/fallback-avatar.js';
|
|
20
|
+
import 'react-compiler-runtime';
|
|
21
21
|
import '../global/get-uid.js';
|
|
22
|
+
import '../_helpers/avatar-info.js';
|
|
22
23
|
import '../global/data-tests.js';
|
|
23
24
|
import '../link/clickable-link.js';
|
|
24
25
|
import '../_helpers/link.js';
|
|
@@ -10,6 +10,6 @@ export default class SmartUserCardTooltip extends Component<SmartUserCardTooltip
|
|
|
10
10
|
loading: boolean;
|
|
11
11
|
};
|
|
12
12
|
loadUser: () => Promise<void>;
|
|
13
|
-
renderNoUser: () => "" | import("react
|
|
14
|
-
render(): import("react
|
|
13
|
+
renderNoUser: () => "" | import("react").JSX.Element;
|
|
14
|
+
render(): import("react").JSX.Element;
|
|
15
15
|
}
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import { jsx } from 'react/jsx-runtime';
|
|
2
1
|
import { Component } from 'react';
|
|
3
2
|
import LoaderInline from '../loader-inline/loader-inline.js';
|
|
4
3
|
import UserCardTooltip from './tooltip.js';
|
|
5
4
|
import { s as styles } from '../_helpers/card.js';
|
|
5
|
+
import { jsx } from 'react/jsx-runtime';
|
|
6
6
|
import 'classnames';
|
|
7
7
|
import '../global/data-tests.js';
|
|
8
8
|
import '../dropdown/dropdown.js';
|
|
9
9
|
import '../global/typescript-utils.js';
|
|
10
10
|
import '../_helpers/anchor.js';
|
|
11
|
+
import 'react-compiler-runtime';
|
|
11
12
|
import '../button/button.js';
|
|
12
13
|
import '@jetbrains/icons/chevron-down';
|
|
13
14
|
import '@jetbrains/icons/chevron-12px-down';
|
|
@@ -38,9 +39,9 @@ import '../popup/position-css.js';
|
|
|
38
39
|
import '@jetbrains/icons/copy';
|
|
39
40
|
import '../avatar/avatar.js';
|
|
40
41
|
import '../global/url.js';
|
|
41
|
-
import '../_helpers/avatar-info.js';
|
|
42
|
-
import '../avatar/avatar-size.js';
|
|
43
42
|
import '../avatar/fallback-avatar.js';
|
|
43
|
+
import '../avatar/avatar-size.js';
|
|
44
|
+
import '../_helpers/avatar-info.js';
|
|
44
45
|
import '../link/link.js';
|
|
45
46
|
import '../_helpers/link.js';
|
|
46
47
|
import '../clipboard/clipboard.js';
|
|
@@ -85,9 +86,9 @@ class SmartUserCardTooltip extends Component {
|
|
|
85
86
|
});
|
|
86
87
|
}
|
|
87
88
|
};
|
|
88
|
-
renderNoUser = () => this.state.loading ? jsx("div", {
|
|
89
|
+
renderNoUser = () => this.state.loading ? /*#__PURE__*/jsx("div", {
|
|
89
90
|
className: styles.userCardSpaced,
|
|
90
|
-
children: jsx(LoaderInline, {})
|
|
91
|
+
children: /*#__PURE__*/jsx(LoaderInline, {})
|
|
91
92
|
}) : '';
|
|
92
93
|
render() {
|
|
93
94
|
const {
|
|
@@ -102,7 +103,7 @@ class SmartUserCardTooltip extends Component {
|
|
|
102
103
|
onMouseEnter: this.loadUser,
|
|
103
104
|
...UserCardTooltip.defaultProps.dropdownProps
|
|
104
105
|
};
|
|
105
|
-
return jsx(UserCardTooltip, {
|
|
106
|
+
return /*#__PURE__*/jsx(UserCardTooltip, {
|
|
106
107
|
user: user,
|
|
107
108
|
renderNoUser: this.renderNoUser,
|
|
108
109
|
dropdownProps: dropdownProps,
|
|
@@ -10,13 +10,13 @@ export interface UserCardTooltipProps extends Omit<UserCardAttrs, 'children' | '
|
|
|
10
10
|
}
|
|
11
11
|
export default class UserCardTooltip extends Component<UserCardTooltipProps> {
|
|
12
12
|
static defaultProps: {
|
|
13
|
-
renderUserCard: (props: UserCardAttrs) => import("react
|
|
13
|
+
renderUserCard: (props: UserCardAttrs) => import("react").JSX.Element;
|
|
14
14
|
renderNoUser: () => string;
|
|
15
15
|
dropdownProps: {
|
|
16
16
|
hoverShowTimeOut: number;
|
|
17
17
|
hoverHideTimeOut: number;
|
|
18
18
|
};
|
|
19
19
|
};
|
|
20
|
-
render(): import("react
|
|
20
|
+
render(): import("react").JSX.Element;
|
|
21
21
|
}
|
|
22
22
|
export type UserCardTooltipAttrs = React.JSX.LibraryManagedAttributes<typeof UserCardTooltip, UserCardTooltipProps>;
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import { jsx } from 'react/jsx-runtime';
|
|
2
1
|
import { Component } from 'react';
|
|
3
2
|
import classNames from 'classnames';
|
|
4
3
|
import Dropdown from '../dropdown/dropdown.js';
|
|
5
4
|
import Popup from '../popup/popup.js';
|
|
6
5
|
import { U as UserCard, s as styles } from '../_helpers/card.js';
|
|
6
|
+
import { jsx } from 'react/jsx-runtime';
|
|
7
7
|
import '../global/data-tests.js';
|
|
8
8
|
import '../global/typescript-utils.js';
|
|
9
9
|
import '../_helpers/anchor.js';
|
|
10
|
+
import 'react-compiler-runtime';
|
|
10
11
|
import '../button/button.js';
|
|
11
12
|
import '@jetbrains/icons/chevron-down';
|
|
12
13
|
import '@jetbrains/icons/chevron-12px-down';
|
|
@@ -36,9 +37,9 @@ import '../popup/position-css.js';
|
|
|
36
37
|
import '@jetbrains/icons/copy';
|
|
37
38
|
import '../avatar/avatar.js';
|
|
38
39
|
import '../global/url.js';
|
|
39
|
-
import '../_helpers/avatar-info.js';
|
|
40
|
-
import '../avatar/avatar-size.js';
|
|
41
40
|
import '../avatar/fallback-avatar.js';
|
|
41
|
+
import '../avatar/avatar-size.js';
|
|
42
|
+
import '../_helpers/avatar-info.js';
|
|
42
43
|
import '../link/link.js';
|
|
43
44
|
import '../_helpers/link.js';
|
|
44
45
|
import '../clipboard/clipboard.js';
|
|
@@ -67,7 +68,7 @@ class UserCardTooltip extends Component {
|
|
|
67
68
|
user,
|
|
68
69
|
...restProps
|
|
69
70
|
} = props;
|
|
70
|
-
return user && jsx(UserCard, {
|
|
71
|
+
return user && /*#__PURE__*/jsx(UserCard, {
|
|
71
72
|
user: user,
|
|
72
73
|
...restProps
|
|
73
74
|
});
|
|
@@ -87,12 +88,12 @@ class UserCardTooltip extends Component {
|
|
|
87
88
|
user,
|
|
88
89
|
...restProps
|
|
89
90
|
} = this.props;
|
|
90
|
-
return jsx(Dropdown, {
|
|
91
|
+
return /*#__PURE__*/jsx(Dropdown, {
|
|
91
92
|
anchor: children,
|
|
92
93
|
hoverMode: true,
|
|
93
94
|
clickMode: false,
|
|
94
95
|
...dropdownProps,
|
|
95
|
-
children: jsx(Popup, {
|
|
96
|
+
children: /*#__PURE__*/jsx(Popup, {
|
|
96
97
|
attached: false,
|
|
97
98
|
children: user ? renderUserCard({
|
|
98
99
|
...restProps,
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
export { U as UserCard } from '../_helpers/card.js';
|
|
2
2
|
export { default as UserCardTooltip } from './tooltip.js';
|
|
3
3
|
export { default as SmartUserCardTooltip } from './smart-user-card-tooltip.js';
|
|
4
|
-
import 'react/jsx-runtime';
|
|
5
4
|
import 'react';
|
|
6
5
|
import 'classnames';
|
|
7
6
|
import '@jetbrains/icons/copy';
|
|
@@ -10,10 +9,12 @@ import 'util-deprecate';
|
|
|
10
9
|
import '../global/url.js';
|
|
11
10
|
import '../global/dom.js';
|
|
12
11
|
import '../global/memoize.js';
|
|
13
|
-
import '../_helpers/avatar-info.js';
|
|
14
|
-
import '../avatar/avatar-size.js';
|
|
15
12
|
import '../avatar/fallback-avatar.js';
|
|
13
|
+
import 'react-compiler-runtime';
|
|
16
14
|
import '../global/get-uid.js';
|
|
15
|
+
import '../avatar/avatar-size.js';
|
|
16
|
+
import 'react/jsx-runtime';
|
|
17
|
+
import '../_helpers/avatar-info.js';
|
|
17
18
|
import '../link/link.js';
|
|
18
19
|
import '../global/data-tests.js';
|
|
19
20
|
import '../link/clickable-link.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jetbrains/ring-ui-built",
|
|
3
|
-
"version": "7.0.
|
|
3
|
+
"version": "7.0.73",
|
|
4
4
|
"description": "JetBrains UI library",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "JetBrains"
|
|
@@ -52,8 +52,7 @@
|
|
|
52
52
|
"figma-connect-publish-local": "dotenv -- npm run figma-connect-publish",
|
|
53
53
|
"figma-connect-unpublish": "npx figma connect unpublish --token=$FIGMA_CODE_CONNECT_TOKEN",
|
|
54
54
|
"figma-connect-unpublish-local": "dotenv -- npm run figma-connect-unpublish",
|
|
55
|
-
"lint": "npm run lint:js
|
|
56
|
-
"lint-ci": "eslint --format jslint-xml . > eslint-report.xml && npm run stylelint-ci",
|
|
55
|
+
"lint": "npm run lint:js && npm run stylelint",
|
|
57
56
|
"lint:js": "eslint",
|
|
58
57
|
"postbuild": "cpy './**/*.d.ts' ../dist --parents --cwd=components/",
|
|
59
58
|
"_postinstall": "husky && npm run postinstall:gitconfig",
|
|
@@ -62,12 +61,10 @@
|
|
|
62
61
|
"postrelease-ci": "git push --follow-tags",
|
|
63
62
|
"prea11y-audit": "playwright install",
|
|
64
63
|
"prebuild": "rimraf components && tsc --project tsconfig-build.json && cpy './**/*' '!**/*.stories.*' '!**/*.ts' '!**/*.tsx' '!**/test-helpers/mocks/**' ../components --parents --cwd=src/",
|
|
65
|
-
"prelint-ci": "echo \"##teamcity[importData type='jslint' path='eslint-report.xml']\"",
|
|
66
64
|
"prepare": "webpack -c .storybook/custom-header/webpack.config.js",
|
|
67
65
|
"prepublishOnly": "pinst --disable",
|
|
68
66
|
"prerelease-built-ci": "node scripts/prepare-built-package.js",
|
|
69
67
|
"prerelease-ci": "git pull",
|
|
70
|
-
"pretest-ci": "npm run lint-ci",
|
|
71
68
|
"release-built-ci": "npm publish --access=public $NPM_PUBLISH_PARAMS",
|
|
72
69
|
"release-ci": "npm version $NPM_VERSION_PARAMS && npm publish --access=public $NPM_PUBLISH_PARAMS",
|
|
73
70
|
"screenshots-gather": "npm --prefix packages/screenshots run gather",
|
|
@@ -78,11 +75,8 @@
|
|
|
78
75
|
"start": "storybook dev -p 9999",
|
|
79
76
|
"storybook-debug": "node --inspect-brk node_modules/@storybook/react/bin -p 9999",
|
|
80
77
|
"stylelint": "stylelint --ignore-path .stylelintignore '**/*.css'",
|
|
81
|
-
"stylelint-ci": "stylelint --ignore-path .stylelintignore --custom-formatter 'scripts/jslint-xml.js' '**/*.css' | xmlappend eslint-report.xml",
|
|
82
78
|
"test": "vitest src",
|
|
83
|
-
"
|
|
84
|
-
"typecheck": "tsc",
|
|
85
|
-
"typecheck-ci": "node scripts/tsc-teamcity",
|
|
79
|
+
"type-check": "tsc --noEmit -p tsconfig.json && tsc --noEmit -p tsconfig-build.json",
|
|
86
80
|
"update-styles": "node scripts/update-styles.mjs",
|
|
87
81
|
"validate-tc-config": "mvn --file .teamcity/pom.xml org.jetbrains.teamcity:teamcity-configs-maven-plugin:generate -e"
|
|
88
82
|
},
|