@jetbrains/ring-ui 5.0.0-beta.3 → 5.0.0-beta.7
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/CHANGELOG.md +49 -1
- package/babel.config.js +1 -12
- package/components/alert/alert.css +3 -14
- package/components/alert/alert.d.ts +3 -0
- package/components/alert/alert.js +8 -7
- package/components/alert/container.css +0 -2
- package/components/alert-service/alert-service.examples.css +5 -3
- package/components/auth/auth__core.d.ts +3 -1
- package/components/auth/auth__core.js +42 -15
- package/components/auth/down-notification.css +1 -1
- package/components/auth-dialog/auth-dialog.d.ts +11 -0
- package/components/auth-dialog/auth-dialog.js +33 -2
- package/components/autofocus-ng/autofocus-ng.js +1 -1
- package/components/autofocus-ng/autofocus-ng.test.js +1 -1
- package/components/button/button.css +93 -204
- package/components/button/button.d.ts +7 -8
- package/components/button/button.js +6 -8
- package/components/button/button__classes.d.ts +1 -1
- package/components/button/button__classes.js +4 -7
- package/components/button-group/button-group.css +136 -19
- package/components/button-group/button-group.d.ts +4 -1
- package/components/button-group/button-group.js +3 -3
- package/components/button-group-ng/button-group-ng.css +1 -0
- package/components/button-group-ng/button-group-ng.examples.js +1 -1
- package/components/button-ng/button-ng.examples.js +6 -7
- package/components/button-ng/button-ng.js +6 -25
- package/components/button-set/button-set.css +1 -0
- package/components/button-toolbar/button-toolbar.css +2 -0
- package/components/checkbox/checkbox.css +10 -4
- package/components/date-picker/date-input.js +2 -1
- package/components/date-picker/date-picker.css +2 -1
- package/components/dialog/dialog.css +10 -3
- package/components/dialog-ng/dialog-ng__template.js +1 -0
- package/components/error-bubble/error-bubble-legacy.css +1 -1
- package/components/error-bubble/error-bubble.css +1 -1
- package/components/global/controls-height.d.ts +7 -0
- package/components/global/controls-height.js +8 -0
- package/components/global/theme.d.ts +7 -20
- package/components/global/theme.js +26 -32
- package/components/global/variables.css +30 -25
- package/components/global/variables.d.ts +10 -8
- package/components/global/variables_dark.css +68 -0
- package/components/header/header.css +19 -10
- package/components/header/header.d.ts +7 -69
- package/components/header/header.js +10 -9
- package/components/header/services.css +3 -3
- package/components/header/services.d.ts +5 -0
- package/components/header/services.js +8 -2
- package/components/header/tray-icon.d.ts +18 -575
- package/components/heading/heading.css +4 -1
- package/components/icon/icon.css +1 -1
- package/components/input/input.css +81 -151
- package/components/input/input.d.ts +13 -17
- package/components/input/input.js +28 -32
- package/components/input-ng/input-ng.examples.js +1 -1
- package/components/input-ng/input-ng.js +45 -49
- package/components/island/adaptive-island-hoc.d.ts +2 -2
- package/components/island/adaptive-island-hoc.js +2 -2
- package/components/island/content.js +2 -7
- package/components/island/header.js +7 -4
- package/components/island/island.css +8 -5
- package/components/island/island.d.ts +2 -2
- package/components/island-legacy/island-legacy.css +1 -1
- package/components/list/list.d.ts +1 -1
- package/components/loader-inline/loader-inline.css +14 -0
- package/components/loader-inline/loader-inline.d.ts +4 -41
- package/components/loader-inline/loader-inline.js +3 -11
- package/components/loader-inline-ng/loader-inline-ng.js +1 -17
- package/components/loader-inline-ng/loader-inline-ng.test.js +0 -11
- package/components/markdown/code.d.ts +6 -13
- package/components/markdown/code.js +2 -2
- package/components/markdown/heading.d.ts +5 -9
- package/components/markdown/heading.js +2 -2
- package/components/markdown/link.d.ts +4 -8
- package/components/markdown/link.js +1 -1
- package/components/markdown/markdown.d.ts +2 -3
- package/components/markdown/markdown.js +14 -11
- package/components/message/message.css +7 -3
- package/components/message/message.d.ts +3 -0
- package/components/message/message.js +16 -9
- package/components/pager/pager.js +2 -8
- package/components/popup/popup.css +1 -1
- package/components/popup/popup.target.d.ts +1 -0
- package/components/progress-bar/progress-bar.css +8 -12
- package/components/progress-bar/progress-bar.d.ts +0 -4
- package/components/progress-bar/progress-bar.js +1 -6
- package/components/progress-bar-ng/progress-bar-ng.examples.js +3 -2
- package/components/query-assist/query-assist.css +48 -64
- package/components/query-assist/query-assist.d.ts +0 -5
- package/components/query-assist/query-assist.js +4 -10
- package/components/radio/radio.css +10 -4
- package/components/select/select.css +19 -37
- package/components/select/select.d.ts +4 -6
- package/components/select/select.js +17 -30
- package/components/select/select__filter.js +2 -1
- package/components/select/select__popup.js +1 -2
- package/components/select-ng/select-ng.examples.js +1 -0
- package/components/select-ng/select-ng.js +3 -1
- package/components/select-ng/select-ng.test.js +1 -1
- package/components/select-ng/select-ng__lazy.js +1 -2
- package/components/shortcuts-hint-ng/shortcuts-hint-ng.css +1 -1
- package/components/shortcuts-hint-ng/shortcuts-hint-ng.examples.js +1 -1
- package/components/tabs/collapsible-tab.js +2 -2
- package/components/tabs/dumb-tabs.d.ts +4 -107
- package/components/tabs/dumb-tabs.js +5 -9
- package/components/tabs/tab.d.ts +2 -0
- package/components/tabs/tabs.css +8 -28
- package/components/tabs-ng/tabs-ng.examples.js +11 -3
- package/components/tabs-ng/tabs-ng.js +1 -4
- package/components/tabs-ng/tabs-ng__template.js +1 -1
- package/components/tag/tag.css +31 -8
- package/components/tag/tag.d.ts +1 -0
- package/components/tag/tag.js +1 -0
- package/components/tags-input/tags-input.css +10 -4
- package/components/toggle/toggle.css +61 -35
- package/components/toggle/toggle.d.ts +9 -89
- package/components/toggle/toggle.js +7 -7
- package/components/tooltip/tooltip.css +7 -0
- package/components/tooltip/tooltip.d.ts +1 -0
- package/components/tooltip/tooltip.js +3 -2
- package/components/user-agreement/service.d.ts +2 -2
- package/components/user-agreement/user-agreement.js +1 -1
- package/dist/_helpers/anchor.js +3 -3
- package/dist/_helpers/badge.js +1 -1
- package/dist/_helpers/button-group.js +1 -1
- package/dist/_helpers/button-set.js +1 -1
- package/dist/_helpers/button-toolbar.js +1 -1
- package/dist/_helpers/button__classes.js +5 -8
- package/dist/_helpers/card.js +1 -1
- package/dist/_helpers/checkbox.js +1 -1
- package/dist/_helpers/date-picker.js +1 -1
- package/dist/_helpers/dialog__body-scroll-preventer.js +1 -1
- package/dist/_helpers/error-message.js +1 -1
- package/dist/_helpers/footer.js +1 -1
- package/dist/_helpers/grid.js +1 -1
- package/dist/_helpers/group.js +1 -1
- package/dist/_helpers/header.js +1 -1
- package/dist/_helpers/icon.js +1 -1
- package/dist/_helpers/input.js +1 -1
- package/dist/_helpers/island.js +1 -1
- package/dist/_helpers/link.js +1 -1
- package/dist/_helpers/list.js +1 -1
- package/dist/_helpers/loader-inline.js +3 -0
- package/dist/_helpers/loader-screen.js +1 -1
- package/dist/_helpers/panel.js +1 -1
- package/dist/_helpers/query-assist__suggestions.js +1 -1
- package/dist/_helpers/radio.js +1 -1
- package/dist/_helpers/select__filter.js +5 -3
- package/dist/_helpers/services-link.js +1 -1
- package/dist/_helpers/sidebar.js +1 -1
- package/dist/_helpers/table.js +1 -1
- package/dist/_helpers/tabs.js +1 -1
- package/dist/_helpers/theme.js +50 -0
- package/dist/_helpers/title.js +1 -1
- package/dist/alert/alert.d.ts +3 -0
- package/dist/alert/alert.js +21 -19
- package/dist/alert/container.js +1 -1
- package/dist/alert-service/alert-service.js +9 -7
- package/dist/auth/auth.js +9 -9
- package/dist/auth/auth__core.d.ts +3 -1
- package/dist/auth/auth__core.js +58 -26
- package/dist/auth/down-notification.js +8 -8
- package/dist/auth/iframe-flow.js +1 -1
- package/dist/auth/landing.js +9 -9
- package/dist/auth/storage.js +9 -7
- package/dist/auth-dialog/auth-dialog.d.ts +11 -0
- package/dist/auth-dialog/auth-dialog.js +52 -7
- package/dist/auth-dialog-service/auth-dialog-service.js +1 -1
- package/dist/auth-ng/auth-ng.js +9 -9
- package/dist/autofocus-ng/autofocus-ng.js +1 -1
- package/dist/avatar/avatar.js +1 -1
- package/dist/avatar-editor-ng/avatar-editor-ng.js +9 -7
- package/dist/breadcrumb-ng/breadcrumb-ng.js +1 -1
- package/dist/button/button.d.ts +7 -8
- package/dist/button/button.js +6 -8
- package/dist/button/button__classes.d.ts +1 -1
- package/dist/button/button__classes.js +0 -3
- package/dist/button-group/button-group.d.ts +4 -1
- package/dist/button-group/button-group.js +5 -3
- package/dist/button-group-ng/button-group-ng.js +1 -1
- package/dist/button-ng/button-ng.js +6 -31
- package/dist/code/code.js +1 -1
- package/dist/confirm/confirm.js +5 -5
- package/dist/confirm-ng/confirm-ng.js +1 -1
- package/dist/confirm-service/confirm-service.js +1 -1
- package/dist/data-list/data-list.js +2 -7
- package/dist/data-list/item.js +8 -13
- package/dist/data-list-ng/data-list-ng.js +2 -7
- package/dist/date-picker/date-input.js +4 -3
- package/dist/date-picker/date-picker.js +1 -1
- package/dist/date-picker/date-popup.js +1 -1
- package/dist/dialog/dialog.js +3 -3
- package/dist/dialog-ng/dialog-ng.js +3 -3
- package/dist/dialog-ng/dialog-ng__template.js +1 -0
- package/dist/docked-panel-ng/docked-panel-ng.js +1 -1
- package/dist/dropdown/anchor.js +1 -1
- package/dist/dropdown/dropdown.js +1 -1
- package/dist/dropdown-menu/dropdown-menu.js +1 -1
- package/dist/error-bubble/error-bubble.js +1 -1
- package/dist/global/controls-height.d.ts +7 -0
- package/dist/global/controls-height.js +13 -0
- package/dist/global/theme.d.ts +7 -20
- package/dist/global/theme.js +7 -62
- package/dist/global/variables.d.ts +10 -8
- package/dist/header/header.d.ts +7 -69
- package/dist/header/header.js +13 -17
- package/dist/header/profile.js +3 -3
- package/dist/header/services.d.ts +5 -0
- package/dist/header/services.js +11 -3
- package/dist/header/smart-profile.js +10 -14
- package/dist/header/smart-services.js +9 -13
- package/dist/header/tray-icon.d.ts +18 -575
- package/dist/header/tray-icon.js +4 -4
- package/dist/heading/heading.js +1 -1
- package/dist/input/input.d.ts +13 -17
- package/dist/input/input.js +32 -41
- package/dist/input-ng/input-ng.js +46 -49
- package/dist/island/adaptive-island-hoc.d.ts +2 -2
- package/dist/island/adaptive-island-hoc.js +4 -2
- package/dist/island/content.js +2 -9
- package/dist/island/header.js +7 -4
- package/dist/island/island.d.ts +2 -2
- package/dist/list/list.d.ts +1 -1
- package/dist/loader/loader__core.js +1 -1
- package/dist/loader-inline/loader-inline.d.ts +4 -41
- package/dist/loader-inline/loader-inline.js +3 -21
- package/dist/loader-inline-ng/loader-inline-ng.js +2 -30
- package/dist/login-dialog/login-dialog.js +2 -2
- package/dist/login-dialog/service.js +1 -1
- package/dist/markdown/code.d.ts +6 -13
- package/dist/markdown/code.js +3 -3
- package/dist/markdown/heading.d.ts +5 -9
- package/dist/markdown/heading.js +2 -2
- package/dist/markdown/link.d.ts +4 -8
- package/dist/markdown/link.js +1 -1
- package/dist/markdown/markdown.d.ts +2 -3
- package/dist/markdown/markdown.js +16 -16
- package/dist/message/message.d.ts +3 -0
- package/dist/message/message.js +18 -10
- package/dist/pager/pager.js +8 -12
- package/dist/pager-ng/pager-ng.js +3 -7
- package/dist/permissions-ng/permissions-ng.js +9 -9
- package/dist/popup/popup.js +1 -1
- package/dist/popup/popup.target.d.ts +1 -0
- package/dist/progress-bar/progress-bar.d.ts +0 -4
- package/dist/progress-bar/progress-bar.js +1 -7
- package/dist/progress-bar-ng/progress-bar-ng.js +0 -1
- package/dist/promised-click-ng/promised-click-ng.js +2 -2
- package/dist/query-assist/query-assist.d.ts +0 -5
- package/dist/query-assist/query-assist.js +10 -26
- package/dist/query-assist-ng/query-assist-ng.js +2 -7
- package/dist/save-field-ng/save-field-ng.js +2 -9
- package/dist/select/select.d.ts +4 -6
- package/dist/select/select.js +35 -58
- package/dist/select/select__filter.js +1 -1
- package/dist/select/select__popup.js +7 -13
- package/dist/select-ng/select-ng.js +5 -9
- package/dist/select-ng/select-ng__lazy.js +7 -11
- package/dist/shortcuts-hint-ng/shortcuts-hint-ng.js +2 -2
- package/dist/sidebar-ng/sidebar-ng.js +2 -2
- package/dist/storage/storage.js +9 -7
- package/dist/storage/storage__local.js +9 -7
- package/dist/style.css +1 -1
- package/dist/tab-trap/tab-trap.js +1 -1
- package/dist/table/row-with-focus-sensor.js +1 -1
- package/dist/table/row.js +5 -5
- package/dist/table/smart-table.js +1 -1
- package/dist/table/table.js +1 -1
- package/dist/table-legacy-ng/table-legacy-ng.js +3 -7
- package/dist/table-legacy-ng/table-legacy-ng__pager.js +3 -7
- package/dist/table-ng/smart-table-ng.js +1 -1
- package/dist/table-ng/table-ng.js +1 -1
- package/dist/tabs/collapsible-more.js +1 -1
- package/dist/tabs/collapsible-tab.js +3 -2
- package/dist/tabs/collapsible-tabs.js +1 -1
- package/dist/tabs/dumb-tabs.d.ts +4 -107
- package/dist/tabs/dumb-tabs.js +6 -12
- package/dist/tabs/smart-tabs.js +3 -3
- package/dist/tabs/tab.d.ts +2 -0
- package/dist/tabs/tabs.js +1 -1
- package/dist/tabs-ng/tabs-ng.js +1 -6
- package/dist/tabs-ng/tabs-ng__template.js +1 -1
- package/dist/tag/tag.d.ts +1 -0
- package/dist/tag/tag.js +5 -4
- package/dist/tags-input/tags-input.js +5 -9
- package/dist/tags-input-ng/tags-input-ng.js +4 -8
- package/dist/tags-list/tags-list.js +1 -1
- package/dist/text/text.js +1 -1
- package/dist/toggle/toggle.d.ts +9 -89
- package/dist/toggle/toggle.js +7 -8
- package/dist/toggle-ng/toggle-ng.js +2 -3
- package/dist/tooltip/tooltip.d.ts +1 -0
- package/dist/tooltip/tooltip.js +6 -3
- package/dist/user-agreement/service.d.ts +2 -2
- package/dist/user-agreement/service.js +9 -13
- package/dist/user-agreement/user-agreement.js +8 -10
- package/dist/user-card/smart-user-card-tooltip.js +6 -11
- package/dist/user-card/tooltip.js +1 -1
- package/dist/user-card/user-card.js +2 -7
- package/dist/user-card-ng/user-card-ng.js +4 -9
- package/package.json +5 -5
- package/webpack.config.js +0 -11
- package/components/global/conic-gradient.d.ts +0 -796
- package/components/global/conic-gradient.js +0 -21
- package/components/global/radial-gradient-mask.d.ts +0 -9
- package/components/global/radial-gradient-mask.js +0 -39
- package/components/global/supports-css.d.ts +0 -2
- package/components/global/supports-css.js +0 -14
- package/components/global/variables_dark.d.ts +0 -3
- package/components/global/variables_dark.js +0 -53
- package/components/loader-inline/inject-styles.d.ts +0 -2
- package/components/loader-inline/inject-styles.js +0 -17
- package/dist/_helpers/inject-styles.js +0 -22
- package/dist/global/conic-gradient.d.ts +0 -796
- package/dist/global/conic-gradient.js +0 -35
- package/dist/global/radial-gradient-mask.d.ts +0 -9
- package/dist/global/radial-gradient-mask.js +0 -49
- package/dist/global/supports-css.d.ts +0 -2
- package/dist/global/supports-css.js +0 -20
- package/dist/global/variables_dark.d.ts +0 -3
- package/dist/global/variables_dark.js +0 -57
- package/dist/loader-inline/inject-styles.d.ts +0 -2
- package/dist/loader-inline/inject-styles.js +0 -11
package/dist/auth/landing.js
CHANGED
|
@@ -27,19 +27,19 @@ import '../_helpers/icon.js';
|
|
|
27
27
|
import '../icon/icon__svg.js';
|
|
28
28
|
import '../global/memoize.js';
|
|
29
29
|
import '../loader-inline/loader-inline.js';
|
|
30
|
-
import '../global/theme.js';
|
|
31
30
|
import '../global/data-tests.js';
|
|
32
|
-
import '../_helpers/
|
|
33
|
-
import '../global/conic-gradient.js';
|
|
34
|
-
import 'conic-gradient';
|
|
35
|
-
import '../global/supports-css.js';
|
|
36
|
-
import '../global/inject-styles.js';
|
|
37
|
-
import '../global/radial-gradient-mask.js';
|
|
31
|
+
import '../_helpers/loader-inline.js';
|
|
38
32
|
import '../global/dom.js';
|
|
39
|
-
import '../
|
|
40
|
-
import '../link/link.js';
|
|
33
|
+
import '../button/button.js';
|
|
41
34
|
import 'focus-visible';
|
|
35
|
+
import '@jetbrains/icons/chevron-10px';
|
|
42
36
|
import '../link/clickableLink.js';
|
|
37
|
+
import '../global/controls-height.js';
|
|
38
|
+
import '../_helpers/button__classes.js';
|
|
39
|
+
import '../_helpers/theme.js';
|
|
40
|
+
import '../popup/popup.target.js';
|
|
41
|
+
import '../alert/container.js';
|
|
42
|
+
import '../link/link.js';
|
|
43
43
|
import '../_helpers/link.js';
|
|
44
44
|
import '../group/group.js';
|
|
45
45
|
import '../_helpers/group.js';
|
package/dist/auth/storage.js
CHANGED
|
@@ -19,15 +19,17 @@ import '../_helpers/icon.js';
|
|
|
19
19
|
import '../icon/icon__svg.js';
|
|
20
20
|
import '../global/memoize.js';
|
|
21
21
|
import '../loader-inline/loader-inline.js';
|
|
22
|
-
import '../global/theme.js';
|
|
23
22
|
import '../global/data-tests.js';
|
|
24
|
-
import '../_helpers/
|
|
25
|
-
import '../global/conic-gradient.js';
|
|
26
|
-
import 'conic-gradient';
|
|
27
|
-
import '../global/supports-css.js';
|
|
28
|
-
import '../global/inject-styles.js';
|
|
29
|
-
import '../global/radial-gradient-mask.js';
|
|
23
|
+
import '../_helpers/loader-inline.js';
|
|
30
24
|
import '../global/dom.js';
|
|
25
|
+
import '../button/button.js';
|
|
26
|
+
import 'focus-visible';
|
|
27
|
+
import '@jetbrains/icons/chevron-10px';
|
|
28
|
+
import '../link/clickableLink.js';
|
|
29
|
+
import '../global/controls-height.js';
|
|
30
|
+
import '../_helpers/button__classes.js';
|
|
31
|
+
import '../_helpers/theme.js';
|
|
32
|
+
import '../popup/popup.target.js';
|
|
31
33
|
import '../alert/container.js';
|
|
32
34
|
import '../storage/storage__fallback.js';
|
|
33
35
|
import 'deep-equal';
|
|
@@ -15,8 +15,10 @@ export interface AuthDialogProps {
|
|
|
15
15
|
cancelOnEsc: boolean;
|
|
16
16
|
confirmLabel: string;
|
|
17
17
|
cancelLabel: string;
|
|
18
|
+
tryAgainLabel: string;
|
|
18
19
|
onConfirm: () => void;
|
|
19
20
|
onCancel: () => void;
|
|
21
|
+
onTryAgain?: () => void;
|
|
20
22
|
}
|
|
21
23
|
export default class AuthDialog extends Component<AuthDialogProps> {
|
|
22
24
|
static propTypes: {
|
|
@@ -31,12 +33,15 @@ export default class AuthDialog extends Component<AuthDialogProps> {
|
|
|
31
33
|
cancelOnEsc: PropTypes.Requireable<boolean>;
|
|
32
34
|
confirmLabel: PropTypes.Requireable<string>;
|
|
33
35
|
cancelLabel: PropTypes.Requireable<string>;
|
|
36
|
+
tryAgainLabel: PropTypes.Requireable<string>;
|
|
34
37
|
onConfirm: PropTypes.Requireable<(...args: any[]) => any>;
|
|
35
38
|
onCancel: PropTypes.Requireable<(...args: any[]) => any>;
|
|
39
|
+
onTryAgain: PropTypes.Requireable<(...args: any[]) => any>;
|
|
36
40
|
};
|
|
37
41
|
static defaultProps: {
|
|
38
42
|
loginCaption: string;
|
|
39
43
|
loginToCaption: string;
|
|
44
|
+
tryAgainLabel: string;
|
|
40
45
|
show: boolean;
|
|
41
46
|
cancelOnEsc: boolean;
|
|
42
47
|
confirmLabel: string;
|
|
@@ -44,6 +49,12 @@ export default class AuthDialog extends Component<AuthDialogProps> {
|
|
|
44
49
|
onConfirm: () => void;
|
|
45
50
|
onCancel: () => void;
|
|
46
51
|
};
|
|
52
|
+
state: {
|
|
53
|
+
retrying: boolean;
|
|
54
|
+
};
|
|
55
|
+
componentDidMount(): void;
|
|
56
|
+
componentWillUnmount(): void;
|
|
47
57
|
onEscPress: () => void;
|
|
58
|
+
onRetryPress: () => Promise<void>;
|
|
48
59
|
render(): JSX.Element;
|
|
49
60
|
}
|
|
@@ -4,7 +4,7 @@ import PropTypes from 'prop-types';
|
|
|
4
4
|
import classNames from 'classnames';
|
|
5
5
|
import '../island/island.js';
|
|
6
6
|
import Dialog from '../dialog/dialog.js';
|
|
7
|
-
import
|
|
7
|
+
import { Button } from '../button/button.js';
|
|
8
8
|
import { H2 } from '../heading/heading.js';
|
|
9
9
|
import ContentWrapper from '../island/content.js';
|
|
10
10
|
import '../global/data-tests.js';
|
|
@@ -33,23 +33,54 @@ import '../icon/icon__constants.js';
|
|
|
33
33
|
import '../_helpers/icon.js';
|
|
34
34
|
import '../icon/icon__svg.js';
|
|
35
35
|
import '../global/memoize.js';
|
|
36
|
-
import '../global/theme.js';
|
|
37
36
|
import '../link/clickableLink.js';
|
|
37
|
+
import '../global/controls-height.js';
|
|
38
38
|
import '../_helpers/button__classes.js';
|
|
39
39
|
import 'element-resize-detector';
|
|
40
40
|
import '../global/schedule-raf.js';
|
|
41
41
|
|
|
42
|
-
var modules_ae521deb = {"unit":"8px","dialog":"
|
|
42
|
+
var modules_ae521deb = {"unit":"8px","dialog":"dialog_rui_8f14","content":"content_rui_8f14 font_rui_750f","button":"button_rui_8f14","firstButton":"firstButton_rui_8f14 button_rui_8f14","title":"title_rui_8f14","logo":"logo_rui_8f14","error":"error_rui_8f14"};
|
|
43
43
|
|
|
44
44
|
class AuthDialog extends Component {
|
|
45
45
|
constructor() {
|
|
46
46
|
super(...arguments);
|
|
47
47
|
|
|
48
|
+
_defineProperty(this, "state", {
|
|
49
|
+
retrying: false
|
|
50
|
+
});
|
|
51
|
+
|
|
48
52
|
_defineProperty(this, "onEscPress", () => {
|
|
49
53
|
if (this.props.cancelOnEsc) {
|
|
50
54
|
this.props.onCancel();
|
|
51
55
|
}
|
|
52
56
|
});
|
|
57
|
+
|
|
58
|
+
_defineProperty(this, "onRetryPress", async () => {
|
|
59
|
+
if (!this.props.onTryAgain || this.state.retrying) {
|
|
60
|
+
return;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
this.setState({
|
|
64
|
+
retrying: true
|
|
65
|
+
});
|
|
66
|
+
|
|
67
|
+
try {
|
|
68
|
+
await this.props.onTryAgain();
|
|
69
|
+
} catch (e) {// do nothing, error is handled in onTryAgain
|
|
70
|
+
} finally {
|
|
71
|
+
this.setState({
|
|
72
|
+
retrying: false
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
});
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
componentDidMount() {
|
|
79
|
+
window.addEventListener('online', this.onRetryPress);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
componentWillUnmount() {
|
|
83
|
+
window.removeEventListener('online', this.onRetryPress);
|
|
53
84
|
}
|
|
54
85
|
|
|
55
86
|
render() {
|
|
@@ -63,9 +94,14 @@ class AuthDialog extends Component {
|
|
|
63
94
|
loginToCaption,
|
|
64
95
|
confirmLabel,
|
|
65
96
|
cancelLabel,
|
|
97
|
+
tryAgainLabel,
|
|
66
98
|
onConfirm,
|
|
67
|
-
onCancel
|
|
99
|
+
onCancel,
|
|
100
|
+
onTryAgain
|
|
68
101
|
} = this.props;
|
|
102
|
+
const {
|
|
103
|
+
retrying
|
|
104
|
+
} = this.state;
|
|
69
105
|
const defaultTitle = serviceName ? loginToCaption : loginCaption;
|
|
70
106
|
const title = (this.props.title || defaultTitle).replace('%serviceName%', serviceName !== null && serviceName !== void 0 ? serviceName : '');
|
|
71
107
|
return /*#__PURE__*/React.createElement(Dialog, {
|
|
@@ -86,12 +122,18 @@ class AuthDialog extends Component {
|
|
|
86
122
|
className: modules_ae521deb.title
|
|
87
123
|
}, title), errorMessage && /*#__PURE__*/React.createElement("div", {
|
|
88
124
|
className: modules_ae521deb.error
|
|
89
|
-
}, errorMessage), /*#__PURE__*/React.createElement(
|
|
125
|
+
}, errorMessage), /*#__PURE__*/React.createElement(Button, {
|
|
90
126
|
primary: true,
|
|
91
127
|
className: modules_ae521deb.firstButton,
|
|
92
128
|
"data-test": "auth-dialog-confirm-button",
|
|
93
129
|
onClick: onConfirm
|
|
94
|
-
}, confirmLabel), /*#__PURE__*/React.createElement(
|
|
130
|
+
}, confirmLabel), onTryAgain && /*#__PURE__*/React.createElement(Button, {
|
|
131
|
+
className: modules_ae521deb.button,
|
|
132
|
+
"data-test": "auth-dialog-retry-button",
|
|
133
|
+
onClick: () => this.onRetryPress(),
|
|
134
|
+
loader: retrying,
|
|
135
|
+
disabled: retrying
|
|
136
|
+
}, tryAgainLabel), /*#__PURE__*/React.createElement(Button, {
|
|
95
137
|
className: modules_ae521deb.button,
|
|
96
138
|
"data-test": "auth-dialog-cancel-button",
|
|
97
139
|
onClick: onCancel
|
|
@@ -112,13 +154,16 @@ _defineProperty(AuthDialog, "propTypes", {
|
|
|
112
154
|
cancelOnEsc: PropTypes.bool,
|
|
113
155
|
confirmLabel: PropTypes.string,
|
|
114
156
|
cancelLabel: PropTypes.string,
|
|
157
|
+
tryAgainLabel: PropTypes.string,
|
|
115
158
|
onConfirm: PropTypes.func,
|
|
116
|
-
onCancel: PropTypes.func
|
|
159
|
+
onCancel: PropTypes.func,
|
|
160
|
+
onTryAgain: PropTypes.func
|
|
117
161
|
});
|
|
118
162
|
|
|
119
163
|
_defineProperty(AuthDialog, "defaultProps", {
|
|
120
164
|
loginCaption: 'Log in',
|
|
121
165
|
loginToCaption: 'Log in to %serviceName%',
|
|
166
|
+
tryAgainLabel: 'Try again',
|
|
122
167
|
show: false,
|
|
123
168
|
cancelOnEsc: true,
|
|
124
169
|
confirmLabel: 'Log in',
|
|
@@ -32,8 +32,8 @@ import '../icon/icon__constants.js';
|
|
|
32
32
|
import '../_helpers/icon.js';
|
|
33
33
|
import '../icon/icon__svg.js';
|
|
34
34
|
import '../global/memoize.js';
|
|
35
|
-
import '../global/theme.js';
|
|
36
35
|
import '../link/clickableLink.js';
|
|
36
|
+
import '../global/controls-height.js';
|
|
37
37
|
import '../_helpers/button__classes.js';
|
|
38
38
|
import '../popup/popup.target.js';
|
|
39
39
|
import '../_helpers/dialog__body-scroll-preventer.js';
|
package/dist/auth-ng/auth-ng.js
CHANGED
|
@@ -25,19 +25,19 @@ import '../_helpers/icon.js';
|
|
|
25
25
|
import '../icon/icon__svg.js';
|
|
26
26
|
import '../global/memoize.js';
|
|
27
27
|
import '../loader-inline/loader-inline.js';
|
|
28
|
-
import '../global/theme.js';
|
|
29
28
|
import '../global/data-tests.js';
|
|
30
|
-
import '../_helpers/
|
|
31
|
-
import '../global/conic-gradient.js';
|
|
32
|
-
import 'conic-gradient';
|
|
33
|
-
import '../global/supports-css.js';
|
|
34
|
-
import '../global/inject-styles.js';
|
|
35
|
-
import '../global/radial-gradient-mask.js';
|
|
29
|
+
import '../_helpers/loader-inline.js';
|
|
36
30
|
import '../global/dom.js';
|
|
37
|
-
import '../
|
|
38
|
-
import '../link/link.js';
|
|
31
|
+
import '../button/button.js';
|
|
39
32
|
import 'focus-visible';
|
|
33
|
+
import '@jetbrains/icons/chevron-10px';
|
|
40
34
|
import '../link/clickableLink.js';
|
|
35
|
+
import '../global/controls-height.js';
|
|
36
|
+
import '../_helpers/button__classes.js';
|
|
37
|
+
import '../_helpers/theme.js';
|
|
38
|
+
import '../popup/popup.target.js';
|
|
39
|
+
import '../alert/container.js';
|
|
40
|
+
import '../link/link.js';
|
|
41
41
|
import '../_helpers/link.js';
|
|
42
42
|
import '../group/group.js';
|
|
43
43
|
import '../_helpers/group.js';
|
|
@@ -6,7 +6,7 @@ import 'prop-types';
|
|
|
6
6
|
import '../global/dom.js';
|
|
7
7
|
|
|
8
8
|
const angularModule = angular.module('Ring.autofocus', []);
|
|
9
|
-
const RING_SELECT_SELECTOR = '[data-test
|
|
9
|
+
const RING_SELECT_SELECTOR = '[data-test*=ring-select__focus]';
|
|
10
10
|
const RING_SELECT = 'rg-select';
|
|
11
11
|
angularModule.directive('rgAutofocus', function rgAutofocusDirective() {
|
|
12
12
|
/**
|
package/dist/avatar/avatar.js
CHANGED
|
@@ -7,7 +7,7 @@ import { getPixelRatio } from '../global/dom.js';
|
|
|
7
7
|
import FallbackAvatar from './fallback-avatar.js';
|
|
8
8
|
import '../global/get-uid.js';
|
|
9
9
|
|
|
10
|
-
var modules_61ca8c75 = {"avatar":"
|
|
10
|
+
var modules_61ca8c75 = {"avatar":"avatar_rui_f546","subavatar":"subavatar_rui_f546","empty":"empty_rui_f546"};
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
13
|
* @name Avatar
|
|
@@ -22,15 +22,17 @@ import '../_helpers/icon.js';
|
|
|
22
22
|
import '../icon/icon__svg.js';
|
|
23
23
|
import '../global/memoize.js';
|
|
24
24
|
import '../loader-inline/loader-inline.js';
|
|
25
|
-
import '../global/theme.js';
|
|
26
25
|
import '../global/data-tests.js';
|
|
27
|
-
import '../_helpers/
|
|
28
|
-
import '../global/conic-gradient.js';
|
|
29
|
-
import 'conic-gradient';
|
|
30
|
-
import '../global/supports-css.js';
|
|
31
|
-
import '../global/inject-styles.js';
|
|
32
|
-
import '../global/radial-gradient-mask.js';
|
|
26
|
+
import '../_helpers/loader-inline.js';
|
|
33
27
|
import '../global/dom.js';
|
|
28
|
+
import '../button/button.js';
|
|
29
|
+
import 'focus-visible';
|
|
30
|
+
import '@jetbrains/icons/chevron-10px';
|
|
31
|
+
import '../link/clickableLink.js';
|
|
32
|
+
import '../global/controls-height.js';
|
|
33
|
+
import '../_helpers/button__classes.js';
|
|
34
|
+
import '../_helpers/theme.js';
|
|
35
|
+
import '../popup/popup.target.js';
|
|
34
36
|
import '../alert/container.js';
|
|
35
37
|
import '../template-ng/template-ng.js';
|
|
36
38
|
import '../global/ring-angular-component.js';
|
|
@@ -9,7 +9,7 @@ import '../_helpers/_rollupPluginBabelHelpers.js';
|
|
|
9
9
|
import '../global/ring-angular-component.js';
|
|
10
10
|
import '../_helpers/icon.js';
|
|
11
11
|
|
|
12
|
-
var modules_2c17c81e = {"unit":"8px","breadcrumb":"
|
|
12
|
+
var modules_2c17c81e = {"unit":"8px","breadcrumb":"breadcrumb_rui_cdef","header":"header_rui_cdef","breadcrumbSmall":"breadcrumbSmall_rui_cdef","breadcrumbElement":"breadcrumbElement_rui_cdef","active":"active_rui_cdef","elementDescription":"elementDescription_rui_cdef","separatorIcon":"separatorIcon_rui_cdef"};
|
|
13
13
|
|
|
14
14
|
/**
|
|
15
15
|
* @name Breadcrumb Ng
|
package/dist/button/button.d.ts
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import 'focus-visible';
|
|
2
|
-
import React, { PureComponent, ButtonHTMLAttributes
|
|
2
|
+
import React, { PureComponent, ButtonHTMLAttributes } from 'react';
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
4
|
import { IconType, Size } from '../icon/icon';
|
|
5
|
-
import Theme, { ThemeOuterProps, ThemeProps } from '../global/theme';
|
|
6
5
|
import { ClickableLinkProps } from '../link/clickableLink';
|
|
7
|
-
|
|
6
|
+
import { ControlsHeight } from '../global/controls-height';
|
|
7
|
+
export interface ButtonBaseProps {
|
|
8
|
+
height?: ControlsHeight | undefined;
|
|
8
9
|
active?: boolean | null | undefined;
|
|
9
10
|
danger?: boolean | null | undefined;
|
|
10
11
|
delayed?: boolean | null | undefined;
|
|
@@ -36,7 +37,6 @@ export declare type ButtonProps = ButtonButtonProps | ButtonLinkProps;
|
|
|
36
37
|
*/
|
|
37
38
|
export declare class Button extends PureComponent<ButtonProps> {
|
|
38
39
|
static propTypes: {
|
|
39
|
-
theme: PropTypes.Requireable<string>;
|
|
40
40
|
active: PropTypes.Requireable<boolean>;
|
|
41
41
|
danger: PropTypes.Requireable<boolean>;
|
|
42
42
|
delayed: PropTypes.Requireable<boolean>;
|
|
@@ -57,12 +57,11 @@ export declare class Button extends PureComponent<ButtonProps> {
|
|
|
57
57
|
onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
58
58
|
};
|
|
59
59
|
static IconSize: typeof Size;
|
|
60
|
-
static
|
|
60
|
+
static contextType: React.Context<ControlsHeight>;
|
|
61
61
|
buttonRef: React.RefObject<HTMLButtonElement>;
|
|
62
62
|
render(): JSX.Element;
|
|
63
63
|
}
|
|
64
64
|
export { Size as IconSize };
|
|
65
|
-
export declare type ContainerProps<T> =
|
|
65
|
+
export declare type ContainerProps<T extends ButtonProps> = JSX.LibraryManagedAttributes<typeof Button, T>;
|
|
66
66
|
export declare type ButtonAttrs = ContainerProps<ButtonButtonProps> | ContainerProps<ButtonLinkProps>;
|
|
67
|
-
|
|
68
|
-
export default _default;
|
|
67
|
+
export default Button;
|
package/dist/button/button.js
CHANGED
|
@@ -5,8 +5,8 @@ import PropTypes from 'prop-types';
|
|
|
5
5
|
import classNames from 'classnames';
|
|
6
6
|
import chevronDown from '@jetbrains/icons/chevron-10px';
|
|
7
7
|
import Icon from '../icon/icon.js';
|
|
8
|
-
import Theme, { withTheme } from '../global/theme.js';
|
|
9
8
|
import ClickableLink from '../link/clickableLink.js';
|
|
9
|
+
import { ControlsHeightContext } from '../global/controls-height.js';
|
|
10
10
|
import { g as getButtonClasses, m as modules_e81895c9 } from '../_helpers/button__classes.js';
|
|
11
11
|
import { Size } from '../icon/icon__constants.js';
|
|
12
12
|
export { Size as IconSize } from '../icon/icon__constants.js';
|
|
@@ -33,7 +33,6 @@ class Button extends PureComponent {
|
|
|
33
33
|
render() {
|
|
34
34
|
const {
|
|
35
35
|
// Modifiers
|
|
36
|
-
theme,
|
|
37
36
|
active,
|
|
38
37
|
danger,
|
|
39
38
|
delayed,
|
|
@@ -43,6 +42,7 @@ class Button extends PureComponent {
|
|
|
43
42
|
text,
|
|
44
43
|
inline,
|
|
45
44
|
dropdown,
|
|
45
|
+
height = this.context,
|
|
46
46
|
// Props
|
|
47
47
|
icon,
|
|
48
48
|
iconSize,
|
|
@@ -58,12 +58,12 @@ class Button extends PureComponent {
|
|
|
58
58
|
danger,
|
|
59
59
|
delayed,
|
|
60
60
|
icon,
|
|
61
|
-
theme,
|
|
62
61
|
loader,
|
|
63
62
|
primary,
|
|
64
63
|
short,
|
|
65
64
|
text,
|
|
66
|
-
inline
|
|
65
|
+
inline,
|
|
66
|
+
height
|
|
67
67
|
});
|
|
68
68
|
const content = /*#__PURE__*/React.createElement("span", {
|
|
69
69
|
className: modules_e81895c9.content
|
|
@@ -95,7 +95,6 @@ class Button extends PureComponent {
|
|
|
95
95
|
}
|
|
96
96
|
|
|
97
97
|
_defineProperty(Button, "propTypes", {
|
|
98
|
-
theme: PropTypes.oneOf(['light', 'dark']),
|
|
99
98
|
active: PropTypes.bool,
|
|
100
99
|
danger: PropTypes.bool,
|
|
101
100
|
delayed: PropTypes.bool,
|
|
@@ -118,7 +117,6 @@ _defineProperty(Button, "propTypes", {
|
|
|
118
117
|
|
|
119
118
|
_defineProperty(Button, "IconSize", Size);
|
|
120
119
|
|
|
121
|
-
_defineProperty(Button, "
|
|
122
|
-
const ThemedButton = withTheme()(Button);
|
|
120
|
+
_defineProperty(Button, "contextType", ControlsHeightContext);
|
|
123
121
|
|
|
124
|
-
export { Button,
|
|
122
|
+
export { Button, Button as default };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { ButtonProps } from './button';
|
|
2
|
-
export declare function getButtonClasses({ className, active, disabled, loader, primary, short, text, inline, danger, delayed, icon,
|
|
2
|
+
export declare function getButtonClasses({ className, active, disabled, loader, primary, short, text, inline, danger, delayed, icon, height }: ButtonProps): string;
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import { PureComponent, HTMLAttributes } from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import Caption from './caption';
|
|
4
|
+
export interface ButtonGroupProps extends HTMLAttributes<HTMLElement> {
|
|
5
|
+
split?: boolean | null | undefined;
|
|
6
|
+
}
|
|
4
7
|
/**
|
|
5
8
|
* @name Button Group
|
|
6
9
|
*/
|
|
7
|
-
export default class ButtonGroup extends PureComponent<
|
|
10
|
+
export default class ButtonGroup extends PureComponent<ButtonGroupProps> {
|
|
8
11
|
static propTypes: {
|
|
9
12
|
children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
10
13
|
className: PropTypes.Requireable<string>;
|
|
@@ -12,10 +12,12 @@ import { m as modules_1068e447 } from '../_helpers/button-group.js';
|
|
|
12
12
|
class ButtonGroup extends PureComponent {
|
|
13
13
|
render() {
|
|
14
14
|
const {
|
|
15
|
-
className
|
|
15
|
+
className,
|
|
16
|
+
split,
|
|
17
|
+
...restProps
|
|
16
18
|
} = this.props;
|
|
17
|
-
const classes = classNames(modules_1068e447.buttonGroup, className);
|
|
18
|
-
return /*#__PURE__*/React.createElement("div", _extends({},
|
|
19
|
+
const classes = classNames(split ? modules_1068e447.split : modules_1068e447.buttonGroup, className);
|
|
20
|
+
return /*#__PURE__*/React.createElement("div", _extends({}, restProps, {
|
|
19
21
|
className: classes
|
|
20
22
|
}));
|
|
21
23
|
}
|
|
@@ -2,7 +2,7 @@ import angular from 'angular';
|
|
|
2
2
|
import classNames from 'classnames';
|
|
3
3
|
import { m as modules_1068e447 } from '../_helpers/button-group.js';
|
|
4
4
|
|
|
5
|
-
var modules_c53cb36f = {"buttonGroup":"
|
|
5
|
+
var modules_c53cb36f = {"buttonGroup":"buttonGroup_rui_c91a"};
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* @name Button Group Ng
|
|
@@ -4,14 +4,14 @@ import classNames from 'classnames';
|
|
|
4
4
|
import RingAngularComponent from '../global/ring-angular-component.js';
|
|
5
5
|
import { addClasses, removeClasses, applyMethodToClasses } from '../global/dom.js';
|
|
6
6
|
import IconNG from '../icon-ng/icon-ng.js';
|
|
7
|
-
import Theme, { applyTheme } from '../global/theme.js';
|
|
8
7
|
import { m as modules_e81895c9, g as getButtonClasses } from '../_helpers/button__classes.js';
|
|
8
|
+
import { ControlsHeight } from '../global/controls-height.js';
|
|
9
9
|
import '../icon/icon__constants.js';
|
|
10
10
|
import '../template-ng/template-ng.js';
|
|
11
11
|
import '../_helpers/icon.js';
|
|
12
12
|
import 'react';
|
|
13
13
|
|
|
14
|
-
var modules_5f65bc62 = {"ringIconDefaultColor":"
|
|
14
|
+
var modules_5f65bc62 = {"ringIconDefaultColor":"ringIconDefaultColor_rui_bb4f","iconMarginFix":"iconMarginFix_rui_bb4f","transcludeSpacer":"transcludeSpacer_rui_bb4f","buttonWithoutIcon":"buttonWithoutIcon_rui_bb4f","iconNg":"iconNg_rui_bb4f","narrowRight":"narrowRight_rui_bb4f"};
|
|
15
15
|
|
|
16
16
|
const {
|
|
17
17
|
ringIconDefaultColor,
|
|
@@ -40,9 +40,9 @@ class ButtonController extends RingAngularComponent {
|
|
|
40
40
|
const {
|
|
41
41
|
$attrs
|
|
42
42
|
} = this.$inject;
|
|
43
|
-
const theme = this.element.classList.contains(modules_e81895c9.light) ? Theme.LIGHT : Theme.DARK;
|
|
44
43
|
const foreignClasses = [...this.element.classList].filter(name => !buttonClassesMap[name]);
|
|
45
44
|
this.element.className = classNames(foreignClasses, getButtonClasses({
|
|
45
|
+
height: ControlsHeight.S,
|
|
46
46
|
className: modules_e81895c9.button,
|
|
47
47
|
active: this.getAttrValue($attrs.active),
|
|
48
48
|
disabled: this.getAttrValue($attrs.disabled),
|
|
@@ -53,8 +53,7 @@ class ButtonController extends RingAngularComponent {
|
|
|
53
53
|
inline: this.getAttrValue($attrs.inline),
|
|
54
54
|
danger: this.getAttrValue($attrs.danger),
|
|
55
55
|
delayed: this.getAttrValue($attrs.delayed),
|
|
56
|
-
icon: $attrs.icon
|
|
57
|
-
theme
|
|
56
|
+
icon: $attrs.icon
|
|
58
57
|
}), {
|
|
59
58
|
// Some overrides for angular buttons
|
|
60
59
|
[modules_5f65bc62.buttonWithoutIcon]: !$attrs.icon,
|
|
@@ -161,7 +160,6 @@ class ButtonController extends RingAngularComponent {
|
|
|
161
160
|
this.updateClasses();
|
|
162
161
|
this.updateIcon();
|
|
163
162
|
});
|
|
164
|
-
$attrs.$observe('theme', this.updateClasses);
|
|
165
163
|
}
|
|
166
164
|
|
|
167
165
|
getAttrValue(attribute) {
|
|
@@ -175,24 +173,13 @@ class ButtonController extends RingAngularComponent {
|
|
|
175
173
|
|
|
176
174
|
_defineProperty(ButtonController, "$inject", ['$element', '$attrs', '$scope', '$compile', '$log']);
|
|
177
175
|
|
|
178
|
-
function changeTheme(element, data) {
|
|
179
|
-
return applyTheme({
|
|
180
|
-
element,
|
|
181
|
-
prevTheme: data.prevTheme && modules_e81895c9[data.prevTheme] || modules_e81895c9.light,
|
|
182
|
-
currentTheme: modules_e81895c9[data.currentTheme]
|
|
183
|
-
});
|
|
184
|
-
}
|
|
185
|
-
|
|
186
176
|
function createButtonDirective(tagName) {
|
|
187
177
|
return () => ({
|
|
188
178
|
restrict: 'E',
|
|
189
179
|
transclude: true,
|
|
190
180
|
replace: true,
|
|
191
|
-
require: {
|
|
192
|
-
rgThemeCtrl: '?^^rgTheme'
|
|
193
|
-
},
|
|
194
181
|
template: `
|
|
195
|
-
<${tagName} class="${modules_e81895c9.button}
|
|
182
|
+
<${tagName} class="${modules_e81895c9.button}">
|
|
196
183
|
<span class="${modules_e81895c9.content}"
|
|
197
184
|
><rg-icon class="${classNames(modules_e81895c9.icon, modules_5f65bc62.iconNg, iconMarginFix)}"></rg-icon
|
|
198
185
|
><ng-transclude></ng-transclude
|
|
@@ -200,19 +187,7 @@ function createButtonDirective(tagName) {
|
|
|
200
187
|
><div class="js-button-loader"></div>
|
|
201
188
|
</${tagName}>
|
|
202
189
|
`,
|
|
203
|
-
controller: ButtonController
|
|
204
|
-
link: (scope, element, attrs, _ref) => {
|
|
205
|
-
let {
|
|
206
|
-
rgThemeCtrl
|
|
207
|
-
} = _ref;
|
|
208
|
-
|
|
209
|
-
if (rgThemeCtrl) {
|
|
210
|
-
changeTheme(element[0], {
|
|
211
|
-
currentTheme: rgThemeCtrl.theme
|
|
212
|
-
});
|
|
213
|
-
rgThemeCtrl.on('change', (event, data) => changeTheme(element[0], data));
|
|
214
|
-
}
|
|
215
|
-
}
|
|
190
|
+
controller: ButtonController
|
|
216
191
|
});
|
|
217
192
|
}
|
|
218
193
|
|
package/dist/code/code.js
CHANGED
|
@@ -8,7 +8,7 @@ import normalizeIndent from '../global/normalize-indent.js';
|
|
|
8
8
|
import trivialTemplateTag from '../global/trivial-template-tag.js';
|
|
9
9
|
import memoize from '../global/memoize.js';
|
|
10
10
|
|
|
11
|
-
var modules_66c414ea = {"unit":"8px","code":"
|
|
11
|
+
var modules_66c414ea = {"unit":"8px","code":"code_rui_b9a5","inline":"inline_rui_b9a5","softWrap":"softWrap_rui_b9a5"};
|
|
12
12
|
|
|
13
13
|
var modules_39cf09e8 = {"highlightContainer":"highlightContainer_rui_b939"};
|
|
14
14
|
|
package/dist/confirm/confirm.js
CHANGED
|
@@ -2,7 +2,7 @@ import { _ as _defineProperty } from '../_helpers/_rollupPluginBabelHelpers.js';
|
|
|
2
2
|
import React, { PureComponent } from 'react';
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
4
|
import Dialog from '../dialog/dialog.js';
|
|
5
|
-
import
|
|
5
|
+
import { Button } from '../button/button.js';
|
|
6
6
|
import '../island/island.js';
|
|
7
7
|
import Panel from '../panel/panel.js';
|
|
8
8
|
import HeaderWrapper from '../island/header.js';
|
|
@@ -35,12 +35,12 @@ import '../icon/icon__constants.js';
|
|
|
35
35
|
import '../_helpers/icon.js';
|
|
36
36
|
import '../icon/icon__svg.js';
|
|
37
37
|
import '../global/memoize.js';
|
|
38
|
-
import '../global/theme.js';
|
|
39
38
|
import '../link/clickableLink.js';
|
|
39
|
+
import '../global/controls-height.js';
|
|
40
40
|
import '../_helpers/button__classes.js';
|
|
41
41
|
import '../_helpers/panel.js';
|
|
42
42
|
|
|
43
|
-
var modules_4c9c3a3a = {"unit":"8px","description":"
|
|
43
|
+
var modules_4c9c3a3a = {"unit":"8px","description":"description_rui_54ee"};
|
|
44
44
|
|
|
45
45
|
/**
|
|
46
46
|
* @name Confirm
|
|
@@ -79,13 +79,13 @@ class Confirm extends PureComponent {
|
|
|
79
79
|
"data-test": "ring-confirm"
|
|
80
80
|
}, text && /*#__PURE__*/React.createElement(HeaderWrapper, null, text), /*#__PURE__*/React.createElement(ContentWrapper, null, description && /*#__PURE__*/React.createElement("div", {
|
|
81
81
|
className: modules_4c9c3a3a.description
|
|
82
|
-
}, description)), /*#__PURE__*/React.createElement(Panel, null, /*#__PURE__*/React.createElement(
|
|
82
|
+
}, description)), /*#__PURE__*/React.createElement(Panel, null, /*#__PURE__*/React.createElement(Button, {
|
|
83
83
|
"data-test": "confirm-ok-button",
|
|
84
84
|
primary: !cancelIsDefault,
|
|
85
85
|
loader: inProgress,
|
|
86
86
|
disabled: inProgress,
|
|
87
87
|
onClick: onConfirm
|
|
88
|
-
}, confirmLabel), /*#__PURE__*/React.createElement(
|
|
88
|
+
}, confirmLabel), /*#__PURE__*/React.createElement(Button, {
|
|
89
89
|
"data-test": "confirm-reject-button",
|
|
90
90
|
onClick: onReject,
|
|
91
91
|
disabled: inProgress,
|
|
@@ -35,8 +35,8 @@ import '../icon/icon__constants.js';
|
|
|
35
35
|
import '../_helpers/icon.js';
|
|
36
36
|
import '../icon/icon__svg.js';
|
|
37
37
|
import '../global/memoize.js';
|
|
38
|
-
import '../global/theme.js';
|
|
39
38
|
import '../link/clickableLink.js';
|
|
39
|
+
import '../global/controls-height.js';
|
|
40
40
|
import '../_helpers/button__classes.js';
|
|
41
41
|
import '../popup/popup.target.js';
|
|
42
42
|
import '../_helpers/dialog__body-scroll-preventer.js';
|
|
@@ -32,8 +32,8 @@ import '../icon/icon__constants.js';
|
|
|
32
32
|
import '../_helpers/icon.js';
|
|
33
33
|
import '../icon/icon__svg.js';
|
|
34
34
|
import '../global/memoize.js';
|
|
35
|
-
import '../global/theme.js';
|
|
36
35
|
import '../link/clickableLink.js';
|
|
36
|
+
import '../global/controls-height.js';
|
|
37
37
|
import '../_helpers/button__classes.js';
|
|
38
38
|
import '../popup/popup.target.js';
|
|
39
39
|
import '../_helpers/dialog__body-scroll-preventer.js';
|
|
@@ -30,13 +30,7 @@ import '../link/clickableLink.js';
|
|
|
30
30
|
import '../_helpers/link.js';
|
|
31
31
|
import '../text/text.js';
|
|
32
32
|
import '../loader-inline/loader-inline.js';
|
|
33
|
-
import '../
|
|
34
|
-
import '../_helpers/inject-styles.js';
|
|
35
|
-
import '../global/conic-gradient.js';
|
|
36
|
-
import 'conic-gradient';
|
|
37
|
-
import '../global/supports-css.js';
|
|
38
|
-
import '../global/inject-styles.js';
|
|
39
|
-
import '../global/radial-gradient-mask.js';
|
|
33
|
+
import '../_helpers/loader-inline.js';
|
|
40
34
|
import '../button/button.js';
|
|
41
35
|
import '@jetbrains/icons/chevron-10px';
|
|
42
36
|
import '../icon/icon.js';
|
|
@@ -44,6 +38,7 @@ import 'util-deprecate';
|
|
|
44
38
|
import '../icon/icon__constants.js';
|
|
45
39
|
import '../_helpers/icon.js';
|
|
46
40
|
import '../icon/icon__svg.js';
|
|
41
|
+
import '../global/controls-height.js';
|
|
47
42
|
import '../_helpers/button__classes.js';
|
|
48
43
|
import '../checkbox/checkbox.js';
|
|
49
44
|
import '@jetbrains/icons/checkmark';
|