@jetbrains/ring-ui-built 7.0.118 → 7.0.120

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.
Files changed (33) hide show
  1. package/components/_helpers/alert.js +3 -0
  2. package/components/_helpers/caption.js +1 -1
  3. package/components/_helpers/header.js +1 -1
  4. package/components/alert/alert-actions.d.ts +4 -0
  5. package/components/alert/alert-actions.js +51 -0
  6. package/components/alert/alert-heading.d.ts +4 -0
  7. package/components/alert/alert-heading.js +62 -0
  8. package/components/alert/alert.d.ts +14 -1
  9. package/components/alert/alert.js +43 -25
  10. package/components/alert-service/alert-service.d.ts +2 -1
  11. package/components/alert-service/alert-service.js +15 -5
  12. package/components/auth/auth-core.js +7 -1
  13. package/components/auth/auth.js +7 -1
  14. package/components/auth/down-notification.js +7 -1
  15. package/components/auth/storage.js +7 -1
  16. package/components/clipboard/clipboard.js +7 -1
  17. package/components/date-picker/consts.d.ts +1 -0
  18. package/components/date-picker/date-input.js +3 -2
  19. package/components/header/header.js +7 -1
  20. package/components/header/smart-profile.js +7 -1
  21. package/components/i18n/i18n.d.ts +1 -0
  22. package/components/i18n/i18n.js +2 -0
  23. package/components/old-browsers-message/white-list.js +2 -2
  24. package/components/storage/storage-local.js +7 -1
  25. package/components/storage/storage.js +7 -1
  26. package/components/style.css +1 -1
  27. package/components/user-agreement/service.js +7 -1
  28. package/components/user-card/card.js +7 -1
  29. package/components/user-card/smart-user-card-tooltip.d.ts +1 -1
  30. package/components/user-card/smart-user-card-tooltip.js +7 -1
  31. package/components/user-card/tooltip.js +7 -1
  32. package/components/user-card/user-card.js +7 -1
  33. package/package.json +2 -2
@@ -0,0 +1,3 @@
1
+ var styles = {"alert":"ring-alert-alert","alertInline":"ring-alert-alertInline","error":"ring-alert-error","icon":"ring-alert-icon","success":"ring-alert-success","warning":"ring-alert-warning","info":"ring-alert-info","caption":"ring-alert-caption","afterMessage":"ring-alert-afterMessage","badge":"ring-alert-badge","loader":"ring-alert-loader","close":"ring-alert-close","animationOpen":"ring-alert-animationOpen","show":"ring-alert-show","animationClosing":"ring-alert-animationClosing","animationShaking":"ring-alert-animationShaking","shaking":"ring-alert-shaking","heading":"ring-alert-heading","actions":"ring-alert-actions"};
2
+
3
+ export { styles as s };
@@ -2,7 +2,7 @@ import { PureComponent } from 'react';
2
2
  import classNames from 'classnames';
3
3
  import { jsx } from 'react/jsx-runtime';
4
4
 
5
- var styles = {"button":"ring-button-button","active":"ring-button-active","flat":"ring-button-flat","buttonGroup":"ring-button-group-buttonGroup ring-button-group-common ring-button-toolbar-buttonGroup","common":"ring-button-group-common","disabled":"ring-button-group-disabled","split":"ring-button-group-split ring-button-group-common ring-button-toolbar-buttonGroup","caption":"ring-button-group-caption ring-global-font","help":"ring-button-group-help"};
5
+ var styles = {"button":"ring-button-button","buttonActive":"ring-button-active","flat":"ring-button-flat","buttonGroup":"ring-button-group-buttonGroup ring-button-group-common ring-button-toolbar-buttonGroup","common":"ring-button-group-common","disabled":"ring-button-group-disabled","split":"ring-button-group-split ring-button-group-common ring-button-toolbar-buttonGroup","caption":"ring-button-group-caption ring-global-font","help":"ring-button-group-help"};
6
6
 
7
7
  class Caption extends PureComponent {
8
8
  render() {
@@ -1,3 +1,3 @@
1
- var styles = {"link":"ring-link-link","active":"ring-link-active","header":"ring-header-header","headerSpaced":"ring-header-headerSpaced","headerVertical":"ring-header-headerVertical","logo":"ring-header-logo","links":"ring-header-links","tray":"ring-header-tray","trayItemContent":"ring-header-trayItemContent","icon":"ring-header-icon","main":"ring-header-main","rotatable":"ring-header-rotatable","rotated":"ring-header-rotated","profileEmpty":"ring-header-profileEmpty","profile":"ring-header-profile ring-header-profileEmpty","anchorClassName":"ring-header-anchorClassName ring-global-resetButton","avatarWrapper":"ring-header-avatarWrapper","hasUpdates":"ring-header-hasUpdates"};
1
+ var styles = {"link":"ring-link-link","linkActive":"ring-link-active","header":"ring-header-header","headerSpaced":"ring-header-headerSpaced","headerVertical":"ring-header-headerVertical","logo":"ring-header-logo","links":"ring-header-links","tray":"ring-header-tray","trayItemContent":"ring-header-trayItemContent","icon":"ring-header-icon","main":"ring-header-main","rotatable":"ring-header-rotatable","rotated":"ring-header-rotated","profileEmpty":"ring-header-profileEmpty","profile":"ring-header-profile ring-header-profileEmpty","anchorClassName":"ring-header-anchorClassName ring-global-resetButton","avatarWrapper":"ring-header-avatarWrapper","hasUpdates":"ring-header-hasUpdates"};
2
2
 
3
3
  export { styles as s };
@@ -0,0 +1,4 @@
1
+ import { type HTMLAttributes } from 'react';
2
+ export interface AlertActionsProps extends HTMLAttributes<HTMLDivElement> {
3
+ }
4
+ export default function AlertActions({ className, ...restProps }: AlertActionsProps): import("react").JSX.Element;
@@ -0,0 +1,51 @@
1
+ import { c } from 'react-compiler-runtime';
2
+ import classNames from 'classnames';
3
+ import { s as styles } from '../_helpers/alert.js';
4
+ import { jsx } from 'react/jsx-runtime';
5
+
6
+ function AlertActions(t0) {
7
+ const $ = c(9);
8
+ if ($[0] !== "f2bf4d74f62c680c534a1b2c09bbecda7a0be402ad8ff52746ab70baf15fa92d") {
9
+ for (let $i = 0; $i < 9; $i += 1) {
10
+ $[$i] = Symbol.for("react.memo_cache_sentinel");
11
+ }
12
+ $[0] = "f2bf4d74f62c680c534a1b2c09bbecda7a0be402ad8ff52746ab70baf15fa92d";
13
+ }
14
+ let className;
15
+ let restProps;
16
+ if ($[1] !== t0) {
17
+ ({
18
+ className,
19
+ ...restProps
20
+ } = t0);
21
+ $[1] = t0;
22
+ $[2] = className;
23
+ $[3] = restProps;
24
+ } else {
25
+ className = $[2];
26
+ restProps = $[3];
27
+ }
28
+ let t1;
29
+ if ($[4] !== className) {
30
+ t1 = classNames(styles.actions, className);
31
+ $[4] = className;
32
+ $[5] = t1;
33
+ } else {
34
+ t1 = $[5];
35
+ }
36
+ let t2;
37
+ if ($[6] !== restProps || $[7] !== t1) {
38
+ t2 = /*#__PURE__*/jsx("div", {
39
+ className: t1,
40
+ ...restProps
41
+ });
42
+ $[6] = restProps;
43
+ $[7] = t1;
44
+ $[8] = t2;
45
+ } else {
46
+ t2 = $[8];
47
+ }
48
+ return t2;
49
+ }
50
+
51
+ export { AlertActions as default };
@@ -0,0 +1,4 @@
1
+ import { type HeadingProps } from '../heading/heading';
2
+ export interface AlertHeadingProps extends HeadingProps {
3
+ }
4
+ export default function AlertHeading({ level, className, ...restProps }: AlertHeadingProps): import("react").JSX.Element;
@@ -0,0 +1,62 @@
1
+ import { c } from 'react-compiler-runtime';
2
+ import classNames from 'classnames';
3
+ import Heading, { Levels } from '../heading/heading.js';
4
+ import { s as styles } from '../_helpers/alert.js';
5
+ import { jsx } from 'react/jsx-runtime';
6
+ import 'react';
7
+ import 'util-deprecate';
8
+ import '../_helpers/heading.js';
9
+
10
+ function AlertHeading(t0) {
11
+ const $ = c(11);
12
+ if ($[0] !== "c9fca3356fdd95bbae28f3096eb908e999b2dc9dec9eca1a04791a4822d1dd43") {
13
+ for (let $i = 0; $i < 11; $i += 1) {
14
+ $[$i] = Symbol.for("react.memo_cache_sentinel");
15
+ }
16
+ $[0] = "c9fca3356fdd95bbae28f3096eb908e999b2dc9dec9eca1a04791a4822d1dd43";
17
+ }
18
+ let className;
19
+ let restProps;
20
+ let t1;
21
+ if ($[1] !== t0) {
22
+ ({
23
+ level: t1,
24
+ className,
25
+ ...restProps
26
+ } = t0);
27
+ $[1] = t0;
28
+ $[2] = className;
29
+ $[3] = restProps;
30
+ $[4] = t1;
31
+ } else {
32
+ className = $[2];
33
+ restProps = $[3];
34
+ t1 = $[4];
35
+ }
36
+ const level = t1 === undefined ? Levels.H3 : t1;
37
+ let t2;
38
+ if ($[5] !== className) {
39
+ t2 = classNames(styles.heading, className);
40
+ $[5] = className;
41
+ $[6] = t2;
42
+ } else {
43
+ t2 = $[6];
44
+ }
45
+ let t3;
46
+ if ($[7] !== level || $[8] !== restProps || $[9] !== t2) {
47
+ t3 = /*#__PURE__*/jsx(Heading, {
48
+ level: level,
49
+ className: t2,
50
+ ...restProps
51
+ });
52
+ $[7] = level;
53
+ $[8] = restProps;
54
+ $[9] = t2;
55
+ $[10] = t3;
56
+ } else {
57
+ t3 = $[10];
58
+ }
59
+ return t3;
60
+ }
61
+
62
+ export { AlertHeading as default };
@@ -1,6 +1,8 @@
1
1
  import { PureComponent, type ReactNode } from 'react';
2
2
  import * as React from 'react';
3
3
  import Theme from '../global/theme';
4
+ import AlertHeading from './alert-heading';
5
+ import AlertActions from './alert-actions';
4
6
  export declare const ANIMATION_TIME = 500;
5
7
  /**
6
8
  * @name Alert
@@ -14,8 +16,16 @@ export declare enum AlertType {
14
16
  MESSAGE = "message",
15
17
  SUCCESS = "success",
16
18
  WARNING = "warning",
17
- LOADING = "loading"
19
+ LOADING = "loading",
20
+ INFO = "info"
18
21
  }
22
+ /**
23
+ * Maps the values React renders as nothing (except empty arrays/fragments,
24
+ * which are not worth chasing here) to undefined, so that they neither create
25
+ * the afterMessage wrapper nor distinguish alerts in the alert-service
26
+ * duplicate check
27
+ */
28
+ export declare function normalizeAfterMessage(afterMessage: ReactNode): ReactNode;
19
29
  export interface AlertProps {
20
30
  theme: Theme;
21
31
  timeout: number;
@@ -39,6 +49,7 @@ export interface AlertProps {
39
49
  captionClassName?: string | null | undefined;
40
50
  closeButtonClassName?: string | null | undefined;
41
51
  'data-test'?: string | null | undefined;
52
+ afterMessage?: ReactNode;
42
53
  }
43
54
  interface State {
44
55
  height: number | null;
@@ -74,6 +85,8 @@ export default class Alert extends PureComponent<AlertProps, State> {
74
85
  node?: HTMLDivElement | null;
75
86
  hideTimeout?: number;
76
87
  static Type: typeof AlertType;
88
+ static Heading: typeof AlertHeading;
89
+ static Actions: typeof AlertActions;
77
90
  closeRequest: (event: React.MouseEvent<HTMLElement>) => void;
78
91
  startCloseAnimation: () => void;
79
92
  private _close;
@@ -1,8 +1,9 @@
1
1
  import { PureComponent } from 'react';
2
2
  import classNames from 'classnames';
3
3
  import exceptionIcon from '@jetbrains/icons/exception';
4
- import checkmarkIcon from '@jetbrains/icons/checkmark';
4
+ import successIcon from '@jetbrains/icons/success';
5
5
  import warningIcon from '@jetbrains/icons/warning';
6
+ import infoIcon from '@jetbrains/icons/info-filled';
6
7
  import closeIcon from '@jetbrains/icons/close';
7
8
  import Icon from '../icon/icon.js';
8
9
  import LoaderInline from '../loader-inline/loader-inline.js';
@@ -10,10 +11,13 @@ import { getRect } from '../global/dom.js';
10
11
  import joinDataTestAttributes from '../global/data-tests.js';
11
12
  import { Button } from '../button/button.js';
12
13
  import { T as Theme, a as ThemeProvider } from '../_helpers/theme.js';
14
+ import AlertHeading from './alert-heading.js';
15
+ import AlertActions from './alert-actions.js';
16
+ import { s as styles } from '../_helpers/alert.js';
13
17
  import { jsx, jsxs } from 'react/jsx-runtime';
14
18
  export { default as Container } from './container.js';
15
- import { Color } from '../icon/icon.constants.js';
16
19
  import 'util-deprecate';
20
+ import '../icon/icon.constants.js';
17
21
  import '../_helpers/icon-svg.js';
18
22
  import 'react-compiler-runtime';
19
23
  import '../global/memoize.js';
@@ -23,10 +27,10 @@ import '../link/clickable-link.js';
23
27
  import '../global/controls-height.js';
24
28
  import '../global/configuration.js';
25
29
  import '../_helpers/button.classes.js';
30
+ import '../heading/heading.js';
31
+ import '../_helpers/heading.js';
26
32
  import 'react-dom';
27
33
 
28
- var styles = {"alert":"ring-alert-alert","alertInline":"ring-alert-alertInline","error":"ring-alert-error","icon":"ring-alert-icon","caption":"ring-alert-caption","withCloseButton":"ring-alert-withCloseButton","badge":"ring-alert-badge","loader":"ring-alert-loader","close":"ring-alert-close","animationOpen":"ring-alert-animationOpen","show":"ring-alert-show","animationClosing":"ring-alert-animationClosing","animationShaking":"ring-alert-animationShaking","shaking":"ring-alert-shaking"};
29
-
30
34
  const ANIMATION_TIME = 500;
31
35
  /**
32
36
  * @name Alert
@@ -42,6 +46,7 @@ var AlertType;
42
46
  AlertType["SUCCESS"] = "success";
43
47
  AlertType["WARNING"] = "warning";
44
48
  AlertType["LOADING"] = "loading";
49
+ AlertType["INFO"] = "info";
45
50
  })(AlertType || (AlertType = {}));
46
51
  /**
47
52
  * Lookup table of alert type to icon modifier.
@@ -49,18 +54,19 @@ var AlertType;
49
54
  */
50
55
  const TypeToIcon = {
51
56
  [AlertType.ERROR]: exceptionIcon,
52
- [AlertType.SUCCESS]: checkmarkIcon,
53
- [AlertType.WARNING]: warningIcon
57
+ [AlertType.SUCCESS]: successIcon,
58
+ [AlertType.WARNING]: warningIcon,
59
+ [AlertType.INFO]: infoIcon
54
60
  };
55
61
  /**
56
- * Lookup table of alert type to icon color.
57
- * @type {Object.<AlertType, Icon.Color>}
62
+ * Maps the values React renders as nothing (except empty arrays/fragments,
63
+ * which are not worth chasing here) to undefined, so that they neither create
64
+ * the afterMessage wrapper nor distinguish alerts in the alert-service
65
+ * duplicate check
58
66
  */
59
- const TypeToIconColor = {
60
- [AlertType.ERROR]: Color.RED,
61
- [AlertType.SUCCESS]: Color.GREEN,
62
- [AlertType.WARNING]: Color.WHITE
63
- };
67
+ function normalizeAfterMessage(afterMessage) {
68
+ return afterMessage == null || typeof afterMessage === 'boolean' || afterMessage === '' ? undefined : afterMessage;
69
+ }
64
70
  /**
65
71
  * @constructor
66
72
  * @name Alert
@@ -102,6 +108,8 @@ class Alert extends PureComponent {
102
108
  node;
103
109
  hideTimeout;
104
110
  static Type = AlertType;
111
+ static Heading = AlertHeading;
112
+ static Actions = AlertActions;
105
113
  closeRequest = event => {
106
114
  this.startCloseAnimation();
107
115
  return this.props.onCloseRequest(event);
@@ -123,7 +131,8 @@ class Alert extends PureComponent {
123
131
  * @private
124
132
  */
125
133
  _handleCaptionsLinksClick = evt => {
126
- if (evt.target instanceof Element && evt.target.matches('a')) {
134
+ const link = evt.target instanceof Element ? evt.target.closest('a') : null;
135
+ if (link != null && evt.currentTarget.contains(link)) {
127
136
  this.closeRequest(evt);
128
137
  }
129
138
  };
@@ -131,10 +140,8 @@ class Alert extends PureComponent {
131
140
  * @private
132
141
  */
133
142
  _getCaption() {
134
- return /*#__PURE__*/jsx("span", {
135
- className: classNames(styles.caption, this.props.captionClassName, {
136
- [styles.withCloseButton]: this.props.closeable
137
- }),
143
+ return /*#__PURE__*/jsx("div", {
144
+ className: classNames(styles.caption, this.props.captionClassName),
138
145
  onClick: this._handleCaptionsLinksClick
139
146
  // We only process clicks on `a` elements, see above
140
147
  ,
@@ -151,8 +158,7 @@ class Alert extends PureComponent {
151
158
  if (glyph) {
152
159
  return /*#__PURE__*/jsx(Icon, {
153
160
  glyph: glyph,
154
- className: styles.icon,
155
- color: TypeToIconColor[this.props.type] || Color.DEFAULT
161
+ className: styles.icon
156
162
  });
157
163
  }
158
164
  if (this.props.type === AlertType.LOADING) {
@@ -175,12 +181,16 @@ class Alert extends PureComponent {
175
181
  showWithAnimation,
176
182
  className,
177
183
  'data-test': dataTest,
178
- theme
184
+ theme,
185
+ afterMessage
179
186
  } = this.props;
180
187
  const classes = classNames(className, {
181
188
  [styles.alert]: true,
182
189
  [styles.animationOpen]: showWithAnimation,
183
- [styles.error]: type === 'error',
190
+ [styles.error]: type === AlertType.ERROR,
191
+ [styles.success]: type === AlertType.SUCCESS,
192
+ [styles.warning]: type === AlertType.WARNING,
193
+ [styles.info]: type === AlertType.INFO,
184
194
  [styles.alertInline]: inline,
185
195
  [styles.animationClosing]: isClosing,
186
196
  [styles.animationShaking]: isShaking
@@ -189,6 +199,7 @@ class Alert extends PureComponent {
189
199
  const style = height ? {
190
200
  marginBottom: -height
191
201
  } : undefined;
202
+ const shownAfterMessage = normalizeAfterMessage(afterMessage);
192
203
  return /*#__PURE__*/jsxs(ThemeProvider, {
193
204
  theme: theme,
194
205
  className: classes,
@@ -196,15 +207,22 @@ class Alert extends PureComponent {
196
207
  "data-test-type": type,
197
208
  style: style,
198
209
  ref: this.storeAlertRef,
199
- children: [this._getIcon(), this._getCaption(), this.props.closeable ? /*#__PURE__*/jsx(Button, {
210
+ children: [this._getIcon(), this._getCaption(), shownAfterMessage != null && /*#__PURE__*/jsx("div", {
211
+ className: styles.afterMessage,
212
+ onClick: this._handleCaptionsLinksClick
213
+ // We only process clicks on `a` elements, see above
214
+ ,
215
+ role: "presentation",
216
+ children: shownAfterMessage
217
+ }), this.props.closeable ? /*#__PURE__*/jsx(Button, {
200
218
  icon: closeIcon,
201
219
  className: classNames(styles.close, closeButtonClassName),
202
220
  "data-test": "alert-close",
203
221
  "aria-label": "close alert",
204
222
  onClick: this.closeRequest
205
- }) : '']
223
+ }) : null]
206
224
  });
207
225
  }
208
226
  }
209
227
 
210
- export { ANIMATION_TIME, AlertType, Alert as default };
228
+ export { ANIMATION_TIME, AlertType, Alert as default, normalizeAfterMessage };
@@ -20,7 +20,7 @@ export declare class AlertService {
20
20
  * Renders alert container into virtual node to skip maintaining container
21
21
  */
22
22
  renderAlerts(): void;
23
- findSameAlert(message: ReactNode, type: AlertType | undefined): AlertItem;
23
+ findSameAlert(message: ReactNode, type: AlertType | undefined, afterMessage?: ReactNode): AlertItem | undefined;
24
24
  startAlertClosing(alert: AlertItem): void;
25
25
  remove(key: string | number | null | undefined): void;
26
26
  removeWithoutAnimation(key: string | number): void;
@@ -31,6 +31,7 @@ export declare class AlertService {
31
31
  message(message: ReactNode, timeout?: number): string | number;
32
32
  warning(message: ReactNode, timeout?: number): string | number;
33
33
  successMessage(message: ReactNode, timeout?: number): string | number;
34
+ infoMessage(message: ReactNode, timeout?: number): string | number;
34
35
  loadingMessage(message: ReactNode, timeout?: number): string | number;
35
36
  }
36
37
  declare const alertService: AlertService;
@@ -1,13 +1,14 @@
1
1
  import { createRoot } from 'react-dom/client';
2
2
  import getUID from '../global/get-uid.js';
3
- import Alert, { ANIMATION_TIME } from '../alert/alert.js';
3
+ import Alert, { normalizeAfterMessage, ANIMATION_TIME } from '../alert/alert.js';
4
4
  import { jsx } from 'react/jsx-runtime';
5
5
  import Alerts from '../alert/container.js';
6
6
  import 'react';
7
7
  import 'classnames';
8
8
  import '@jetbrains/icons/exception';
9
- import '@jetbrains/icons/checkmark';
9
+ import '@jetbrains/icons/success';
10
10
  import '@jetbrains/icons/warning';
11
+ import '@jetbrains/icons/info-filled';
11
12
  import '@jetbrains/icons/close';
12
13
  import '../icon/icon.js';
13
14
  import 'util-deprecate';
@@ -26,6 +27,11 @@ import '../global/controls-height.js';
26
27
  import '../global/configuration.js';
27
28
  import '../_helpers/button.classes.js';
28
29
  import '../_helpers/theme.js';
30
+ import '../alert/alert-heading.js';
31
+ import '../heading/heading.js';
32
+ import '../_helpers/heading.js';
33
+ import '../_helpers/alert.js';
34
+ import '../alert/alert-actions.js';
29
35
  import 'react-dom';
30
36
 
31
37
  const DEFAULT_ALERT_TIMEOUT = 10000; // 10 seconds
@@ -65,8 +71,9 @@ class AlertService {
65
71
  renderAlerts() {
66
72
  this.reactRoot.render(this.renderAlertContainer(this.showingAlerts));
67
73
  }
68
- findSameAlert(message, type) {
69
- return this.showingAlerts.filter(it => it.type === type && it.message === message)[0];
74
+ findSameAlert(message, type, afterMessage) {
75
+ const normalizedAfterMessage = normalizeAfterMessage(afterMessage);
76
+ return this.showingAlerts.find(it => it.type === type && it.message === message && normalizeAfterMessage(it.afterMessage) === normalizedAfterMessage);
70
77
  }
71
78
  startAlertClosing(alert) {
72
79
  alert.isClosing = true;
@@ -96,7 +103,7 @@ class AlertService {
96
103
  onClose,
97
104
  ...restOptions
98
105
  } = options;
99
- const sameAlert = this.findSameAlert(message, type);
106
+ const sameAlert = this.findSameAlert(message, type, options.afterMessage);
100
107
  if (sameAlert) {
101
108
  sameAlert.isShaking = true;
102
109
  this.renderAlerts();
@@ -138,6 +145,9 @@ class AlertService {
138
145
  successMessage(message, timeout) {
139
146
  return this.addAlert(message, Alert.Type.SUCCESS, timeout);
140
147
  }
148
+ infoMessage(message, timeout) {
149
+ return this.addAlert(message, Alert.Type.INFO, timeout);
150
+ }
141
151
  loadingMessage(message, timeout) {
142
152
  return this.addAlert(message, Alert.Type.LOADING, timeout);
143
153
  }
@@ -17,8 +17,9 @@ import '../alert/alert.js';
17
17
  import 'react';
18
18
  import 'classnames';
19
19
  import '@jetbrains/icons/exception';
20
- import '@jetbrains/icons/checkmark';
20
+ import '@jetbrains/icons/success';
21
21
  import '@jetbrains/icons/warning';
22
+ import '@jetbrains/icons/info-filled';
22
23
  import '@jetbrains/icons/close';
23
24
  import '../icon/icon.js';
24
25
  import 'util-deprecate';
@@ -38,6 +39,11 @@ import '../global/controls-height.js';
38
39
  import '../global/configuration.js';
39
40
  import '../_helpers/button.classes.js';
40
41
  import '../_helpers/theme.js';
42
+ import '../alert/alert-heading.js';
43
+ import '../heading/heading.js';
44
+ import '../_helpers/heading.js';
45
+ import '../_helpers/alert.js';
46
+ import '../alert/alert-actions.js';
41
47
  import '../alert/container.js';
42
48
  import 'react-dom';
43
49
  import 'simply-uuid';
@@ -12,8 +12,9 @@ import '../global/get-uid.js';
12
12
  import '../alert/alert.js';
13
13
  import 'classnames';
14
14
  import '@jetbrains/icons/exception';
15
- import '@jetbrains/icons/checkmark';
15
+ import '@jetbrains/icons/success';
16
16
  import '@jetbrains/icons/warning';
17
+ import '@jetbrains/icons/info-filled';
17
18
  import '@jetbrains/icons/close';
18
19
  import '../icon/icon.js';
19
20
  import 'util-deprecate';
@@ -32,6 +33,11 @@ import '../global/controls-height.js';
32
33
  import '../global/configuration.js';
33
34
  import '../_helpers/button.classes.js';
34
35
  import '../_helpers/theme.js';
36
+ import '../alert/alert-heading.js';
37
+ import '../heading/heading.js';
38
+ import '../_helpers/heading.js';
39
+ import '../_helpers/alert.js';
40
+ import '../alert/alert-actions.js';
35
41
  import '../alert/container.js';
36
42
  import 'react-dom';
37
43
  import '../link/link.js';
@@ -11,8 +11,9 @@ import '../alert/container.js';
11
11
  import 'react-dom';
12
12
  import 'classnames';
13
13
  import '@jetbrains/icons/exception';
14
- import '@jetbrains/icons/checkmark';
14
+ import '@jetbrains/icons/success';
15
15
  import '@jetbrains/icons/warning';
16
+ import '@jetbrains/icons/info-filled';
16
17
  import '@jetbrains/icons/close';
17
18
  import '../icon/icon.js';
18
19
  import 'util-deprecate';
@@ -30,6 +31,11 @@ import '../global/controls-height.js';
30
31
  import '../global/configuration.js';
31
32
  import '../_helpers/button.classes.js';
32
33
  import '../_helpers/theme.js';
34
+ import '../alert/alert-heading.js';
35
+ import '../heading/heading.js';
36
+ import '../_helpers/heading.js';
37
+ import '../_helpers/alert.js';
38
+ import '../alert/alert-actions.js';
33
39
  import '../_helpers/link.js';
34
40
 
35
41
  var styles = {"title":"ring-down-notification-title","error":"ring-down-notification-error"};
@@ -6,8 +6,9 @@ import '../alert/alert.js';
6
6
  import 'react';
7
7
  import 'classnames';
8
8
  import '@jetbrains/icons/exception';
9
- import '@jetbrains/icons/checkmark';
9
+ import '@jetbrains/icons/success';
10
10
  import '@jetbrains/icons/warning';
11
+ import '@jetbrains/icons/info-filled';
11
12
  import '@jetbrains/icons/close';
12
13
  import '../icon/icon.js';
13
14
  import 'util-deprecate';
@@ -27,6 +28,11 @@ import '../global/controls-height.js';
27
28
  import '../global/configuration.js';
28
29
  import '../_helpers/button.classes.js';
29
30
  import '../_helpers/theme.js';
31
+ import '../alert/alert-heading.js';
32
+ import '../heading/heading.js';
33
+ import '../_helpers/heading.js';
34
+ import '../_helpers/alert.js';
35
+ import '../alert/alert-actions.js';
30
36
  import '../alert/container.js';
31
37
  import 'react-dom';
32
38
 
@@ -6,8 +6,9 @@ import '../alert/alert.js';
6
6
  import 'react';
7
7
  import 'classnames';
8
8
  import '@jetbrains/icons/exception';
9
- import '@jetbrains/icons/checkmark';
9
+ import '@jetbrains/icons/success';
10
10
  import '@jetbrains/icons/warning';
11
+ import '@jetbrains/icons/info-filled';
11
12
  import '@jetbrains/icons/close';
12
13
  import '../icon/icon.js';
13
14
  import 'util-deprecate';
@@ -27,6 +28,11 @@ import '../global/controls-height.js';
27
28
  import '../global/configuration.js';
28
29
  import '../_helpers/button.classes.js';
29
30
  import '../_helpers/theme.js';
31
+ import '../alert/alert-heading.js';
32
+ import '../heading/heading.js';
33
+ import '../_helpers/heading.js';
34
+ import '../_helpers/alert.js';
35
+ import '../alert/alert-actions.js';
30
36
  import '../alert/container.js';
31
37
  import 'react-dom';
32
38
 
@@ -34,6 +34,7 @@ export interface DateInputTranslations {
34
34
  addSecondDate?: string;
35
35
  addTime?: string;
36
36
  selectName?: string;
37
+ selectDate?: string;
37
38
  }
38
39
  export interface DateSpecificPopupProps {
39
40
  withTime?: false | undefined;
@@ -93,6 +93,7 @@ class DateInput extends React.PureComponent {
93
93
  locale
94
94
  } = this.props;
95
95
  const {
96
+ messages,
96
97
  translate
97
98
  } = this.context;
98
99
  let displayText = '';
@@ -105,7 +106,7 @@ class DateInput extends React.PureComponent {
105
106
  } else if (name === 'time') {
106
107
  displayText = time || '';
107
108
  }
108
- const placeholder = ((_translations$addFirs, _translations$addSeco, _translations$addTime, _translations$selectN) => {
109
+ const placeholder = ((_translations$addFirs, _translations$addSeco, _translations$addTime, _ref, _ref2, _ref3, _translations$selectD) => {
109
110
  switch (name) {
110
111
  case 'from':
111
112
  return fromPlaceholder || ((_translations$addFirs = translations?.addFirstDate) !== null && _translations$addFirs !== void 0 ? _translations$addFirs : translate('addFirstDate'));
@@ -114,7 +115,7 @@ class DateInput extends React.PureComponent {
114
115
  case 'time':
115
116
  return timePlaceholder || ((_translations$addTime = translations?.addTime) !== null && _translations$addTime !== void 0 ? _translations$addTime : translate('addTime'));
116
117
  default:
117
- return ((_translations$selectN = translations?.selectName) !== null && _translations$selectN !== void 0 ? _translations$selectN : translate('selectName')).replace('%name%', name).replace('{{name}}', name);
118
+ return ((_ref = (_ref2 = (_ref3 = (_translations$selectD = translations?.selectDate) !== null && _translations$selectD !== void 0 ? _translations$selectD : translations?.selectName) !== null && _ref3 !== void 0 ? _ref3 : messages.selectDate) !== null && _ref2 !== void 0 ? _ref2 : messages.selectName) !== null && _ref !== void 0 ? _ref : translate('selectDate')).replace('%name%', name).replace('{{name}}', name);
118
119
  }
119
120
  })();
120
121
  const classes = classNames(styles.filter, name !== 'time' && styles[`${name}Input`], divider && (name === 'from' || name === 'time') && styles[`${name}InputWithDivider`], 'ring-js-shortcuts');
@@ -79,10 +79,16 @@ import '../alert-service/alert-service.js';
79
79
  import 'react-dom/client';
80
80
  import '../alert/alert.js';
81
81
  import '@jetbrains/icons/exception';
82
- import '@jetbrains/icons/checkmark';
82
+ import '@jetbrains/icons/success';
83
83
  import '@jetbrains/icons/warning';
84
+ import '@jetbrains/icons/info-filled';
84
85
  import '@jetbrains/icons/close';
85
86
  import '../loader-inline/loader-inline.js';
87
+ import '../alert/alert-heading.js';
88
+ import '../heading/heading.js';
89
+ import '../_helpers/heading.js';
90
+ import '../_helpers/alert.js';
91
+ import '../alert/alert-actions.js';
86
92
  import '../alert/container.js';
87
93
  import '../auth/auth.js';
88
94
  import '../auth/window-flow.js';
@@ -9,8 +9,9 @@ import '../global/get-uid.js';
9
9
  import '../alert/alert.js';
10
10
  import 'classnames';
11
11
  import '@jetbrains/icons/exception';
12
- import '@jetbrains/icons/checkmark';
12
+ import '@jetbrains/icons/success';
13
13
  import '@jetbrains/icons/warning';
14
+ import '@jetbrains/icons/info-filled';
14
15
  import '@jetbrains/icons/close';
15
16
  import '../icon/icon.js';
16
17
  import 'util-deprecate';
@@ -29,6 +30,11 @@ import '../global/controls-height.js';
29
30
  import '../global/configuration.js';
30
31
  import '../_helpers/button.classes.js';
31
32
  import '../_helpers/theme.js';
33
+ import '../alert/alert-heading.js';
34
+ import '../heading/heading.js';
35
+ import '../_helpers/heading.js';
36
+ import '../_helpers/alert.js';
37
+ import '../alert/alert-actions.js';
32
38
  import '../alert/container.js';
33
39
  import 'react-dom';
34
40
  import '../avatar/avatar.js';
@@ -23,6 +23,7 @@ export declare function getTranslations(): Partial<{
23
23
  addSecondDate: string;
24
24
  addTime: string;
25
25
  selectName: string;
26
+ selectDate: string;
26
27
  setDate: string;
27
28
  setDateTime: string;
28
29
  setPeriod: string;