@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/data-list/item.js
CHANGED
|
@@ -5,8 +5,8 @@ import chevronRightIcon from '@jetbrains/icons/chevron-right';
|
|
|
5
5
|
import chevronDownIcon from '@jetbrains/icons/chevron-down';
|
|
6
6
|
import Link from '../link/link.js';
|
|
7
7
|
import Text from '../text/text.js';
|
|
8
|
-
import
|
|
9
|
-
import
|
|
8
|
+
import LoaderInline from '../loader-inline/loader-inline.js';
|
|
9
|
+
import { Button } from '../button/button.js';
|
|
10
10
|
import Selection from '../table/selection.js';
|
|
11
11
|
import { m as modules_09d014b4, T as Title } from '../_helpers/title.js';
|
|
12
12
|
import 'focus-visible';
|
|
@@ -15,20 +15,14 @@ import '../global/memoize.js';
|
|
|
15
15
|
import '../global/data-tests.js';
|
|
16
16
|
import '../link/clickableLink.js';
|
|
17
17
|
import '../_helpers/link.js';
|
|
18
|
-
import '../
|
|
19
|
-
import '../_helpers/inject-styles.js';
|
|
20
|
-
import '../global/conic-gradient.js';
|
|
21
|
-
import 'conic-gradient';
|
|
22
|
-
import '../global/supports-css.js';
|
|
23
|
-
import '../global/inject-styles.js';
|
|
24
|
-
import '../global/radial-gradient-mask.js';
|
|
25
|
-
import '../global/get-uid.js';
|
|
18
|
+
import '../_helpers/loader-inline.js';
|
|
26
19
|
import '@jetbrains/icons/chevron-10px';
|
|
27
20
|
import '../icon/icon.js';
|
|
28
21
|
import 'util-deprecate';
|
|
29
22
|
import '../icon/icon__constants.js';
|
|
30
23
|
import '../_helpers/icon.js';
|
|
31
24
|
import '../icon/icon__svg.js';
|
|
25
|
+
import '../global/controls-height.js';
|
|
32
26
|
import '../_helpers/button__classes.js';
|
|
33
27
|
import '../global/focus-sensor-hoc.js';
|
|
34
28
|
import '../global/prop-types.js';
|
|
@@ -37,6 +31,7 @@ import '../checkbox/checkbox.js';
|
|
|
37
31
|
import '@jetbrains/icons/checkmark';
|
|
38
32
|
import '@jetbrains/icons/remove-10px';
|
|
39
33
|
import '../_helpers/checkbox.js';
|
|
34
|
+
import '../global/get-uid.js';
|
|
40
35
|
|
|
41
36
|
var moreLessButtonStates;
|
|
42
37
|
|
|
@@ -140,7 +135,7 @@ class Item extends PureComponent {
|
|
|
140
135
|
inherit: true,
|
|
141
136
|
pseudo: true,
|
|
142
137
|
onClick: this.onShowMore
|
|
143
|
-
}, 'Show more'), showMoreLessButton === moreLessButtonStates.MORE_LOADING && /*#__PURE__*/React.createElement(
|
|
138
|
+
}, 'Show more'), showMoreLessButton === moreLessButtonStates.MORE_LOADING && /*#__PURE__*/React.createElement(LoaderInline, {
|
|
144
139
|
className: modules_09d014b4.showMoreLoader
|
|
145
140
|
}));
|
|
146
141
|
} else if (showMoreLessButton === moreLessButtonStates.LESS) {
|
|
@@ -157,7 +152,7 @@ class Item extends PureComponent {
|
|
|
157
152
|
|
|
158
153
|
if (collapsible) {
|
|
159
154
|
if (collapsed) {
|
|
160
|
-
collapserExpander = /*#__PURE__*/React.createElement(
|
|
155
|
+
collapserExpander = /*#__PURE__*/React.createElement(Button, {
|
|
161
156
|
title: "Expand",
|
|
162
157
|
onClick: onExpand,
|
|
163
158
|
icon: chevronRightIcon,
|
|
@@ -166,7 +161,7 @@ class Item extends PureComponent {
|
|
|
166
161
|
"data-test": "ring-data-list-expand"
|
|
167
162
|
});
|
|
168
163
|
} else {
|
|
169
|
-
collapserExpander = /*#__PURE__*/React.createElement(
|
|
164
|
+
collapserExpander = /*#__PURE__*/React.createElement(Button, {
|
|
170
165
|
title: "Collapse",
|
|
171
166
|
onClick: onCollapse,
|
|
172
167
|
icon: chevronDownIcon,
|
|
@@ -34,13 +34,7 @@ import '../link/clickableLink.js';
|
|
|
34
34
|
import '../_helpers/link.js';
|
|
35
35
|
import '../text/text.js';
|
|
36
36
|
import '../loader-inline/loader-inline.js';
|
|
37
|
-
import '../
|
|
38
|
-
import '../_helpers/inject-styles.js';
|
|
39
|
-
import '../global/conic-gradient.js';
|
|
40
|
-
import 'conic-gradient';
|
|
41
|
-
import '../global/supports-css.js';
|
|
42
|
-
import '../global/inject-styles.js';
|
|
43
|
-
import '../global/radial-gradient-mask.js';
|
|
37
|
+
import '../_helpers/loader-inline.js';
|
|
44
38
|
import '../button/button.js';
|
|
45
39
|
import '@jetbrains/icons/chevron-10px';
|
|
46
40
|
import '../icon/icon.js';
|
|
@@ -48,6 +42,7 @@ import 'util-deprecate';
|
|
|
48
42
|
import '../icon/icon__constants.js';
|
|
49
43
|
import '../_helpers/icon.js';
|
|
50
44
|
import '../icon/icon__svg.js';
|
|
45
|
+
import '../global/controls-height.js';
|
|
51
46
|
import '../_helpers/button__classes.js';
|
|
52
47
|
import '../_helpers/title.js';
|
|
53
48
|
import '../checkbox/checkbox.js';
|
|
@@ -2,11 +2,11 @@ import { _ as _defineProperty } from '../_helpers/_rollupPluginBabelHelpers.js';
|
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import classNames from 'classnames';
|
|
4
4
|
import PropTypes from 'prop-types';
|
|
5
|
-
import
|
|
5
|
+
import { Input } from '../input/input.js';
|
|
6
|
+
import { ControlsHeight } from '../global/controls-height.js';
|
|
6
7
|
import { dateType } from './consts.js';
|
|
7
8
|
import { m as modules_0c7b7d96 } from '../_helpers/date-picker.js';
|
|
8
9
|
import '@jetbrains/icons/close';
|
|
9
|
-
import '../global/theme.js';
|
|
10
10
|
import '../global/prop-types.js';
|
|
11
11
|
import '../button/button.js';
|
|
12
12
|
import 'focus-visible';
|
|
@@ -124,9 +124,10 @@ class DateInput extends React.PureComponent {
|
|
|
124
124
|
})();
|
|
125
125
|
|
|
126
126
|
const classes = classNames(modules_0c7b7d96.filter, modules_0c7b7d96[`${name}Input`], divider && modules_0c7b7d96[`${name}InputWithDivider`], 'ring-js-shortcuts');
|
|
127
|
-
return /*#__PURE__*/React.createElement(
|
|
127
|
+
return /*#__PURE__*/React.createElement(Input, {
|
|
128
128
|
autoComplete: "off",
|
|
129
129
|
borderless: true,
|
|
130
|
+
height: ControlsHeight.L,
|
|
130
131
|
"data-name": name,
|
|
131
132
|
inputRef: this.inputRef,
|
|
132
133
|
className: classes,
|
|
@@ -71,12 +71,12 @@ import './weekdays.js';
|
|
|
71
71
|
import 'date-fns/add';
|
|
72
72
|
import '../input/input.js';
|
|
73
73
|
import '@jetbrains/icons/close';
|
|
74
|
-
import '../global/theme.js';
|
|
75
74
|
import '../global/prop-types.js';
|
|
76
75
|
import '../button/button.js';
|
|
77
76
|
import 'focus-visible';
|
|
78
77
|
import '@jetbrains/icons/chevron-10px';
|
|
79
78
|
import '../link/clickableLink.js';
|
|
79
|
+
import '../global/controls-height.js';
|
|
80
80
|
import '../_helpers/button__classes.js';
|
|
81
81
|
import '../global/composeRefs.js';
|
|
82
82
|
import '../_helpers/input.js';
|
|
@@ -21,12 +21,12 @@ import '../_helpers/icon.js';
|
|
|
21
21
|
import '../icon/icon__svg.js';
|
|
22
22
|
import '../input/input.js';
|
|
23
23
|
import '@jetbrains/icons/close';
|
|
24
|
-
import '../global/theme.js';
|
|
25
24
|
import '../global/prop-types.js';
|
|
26
25
|
import '../button/button.js';
|
|
27
26
|
import 'focus-visible';
|
|
28
27
|
import '@jetbrains/icons/chevron-10px';
|
|
29
28
|
import '../link/clickableLink.js';
|
|
29
|
+
import '../global/controls-height.js';
|
|
30
30
|
import '../_helpers/button__classes.js';
|
|
31
31
|
import '../global/get-uid.js';
|
|
32
32
|
import '../global/composeRefs.js';
|
package/dist/dialog/dialog.js
CHANGED
|
@@ -9,7 +9,7 @@ import getUID from '../global/get-uid.js';
|
|
|
9
9
|
import joinDataTestAttributes from '../global/data-tests.js';
|
|
10
10
|
import Shortcuts from '../shortcuts/shortcuts.js';
|
|
11
11
|
import TabTrap from '../tab-trap/tab-trap.js';
|
|
12
|
-
import
|
|
12
|
+
import { Button } from '../button/button.js';
|
|
13
13
|
import { PopupTarget } from '../popup/popup.target.js';
|
|
14
14
|
import { p as preventerFactory, m as modules_5e9b8c03 } from '../_helpers/dialog__body-scroll-preventer.js';
|
|
15
15
|
import '../island/adaptive-island-hoc.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 'scrollbar-width';
|
|
39
39
|
|
|
@@ -151,7 +151,7 @@ class Dialog extends PureComponent {
|
|
|
151
151
|
"data-test": "ring-dialog",
|
|
152
152
|
role: "dialog",
|
|
153
153
|
"aria-label": label
|
|
154
|
-
}, children, showCloseButton && /*#__PURE__*/React.createElement(
|
|
154
|
+
}, children, showCloseButton && /*#__PURE__*/React.createElement(Button, {
|
|
155
155
|
icon: closeIcon,
|
|
156
156
|
"data-test": "ring-dialog-close-button",
|
|
157
157
|
className: classNames(modules_5e9b8c03.closeButton, {
|
|
@@ -18,12 +18,12 @@ import '../icon-ng/icon-ng.js';
|
|
|
18
18
|
import '../icon/icon__constants.js';
|
|
19
19
|
import '../template-ng/template-ng.js';
|
|
20
20
|
import '../_helpers/icon.js';
|
|
21
|
-
import '../global/theme.js';
|
|
22
|
-
import 'react';
|
|
23
21
|
import '../_helpers/button__classes.js';
|
|
22
|
+
import '../global/controls-height.js';
|
|
23
|
+
import 'react';
|
|
24
24
|
import 'scrollbar-width';
|
|
25
25
|
|
|
26
|
-
var modules_b378ce5a = {"unit":"8px","dialogContainer":"
|
|
26
|
+
var modules_b378ce5a = {"unit":"8px","dialogContainer":"dialogContainer_rui_a094","wide":"wide_rui_a094","autoWidth":"autoWidth_rui_a094","header":"header_rui_a094","inSidebar":"inSidebar_rui_a094","scrollableWrapper":"scrollableWrapper_rui_a094","content":"content_rui_a094","error":"error_rui_a094","footer":"footer_rui_a094","footerDescription":"footerDescription_rui_a094","footerItems":"footerItems_rui_a094","footerItem":"footerItem_rui_a094"};
|
|
27
27
|
|
|
28
28
|
rgDialogContentDirective.$inject = ["$compile", "$q"];
|
|
29
29
|
rgDialogDirective.$inject = ["$timeout"];
|
|
@@ -3,6 +3,7 @@ var dialogTemplate = `<div
|
|
|
3
3
|
ng-class="[!dialog.inSidebar && dialog.dialogStyles.container]"
|
|
4
4
|
ng-click="dialog.handleClick($event)"
|
|
5
5
|
ng-attr-data-portaltarget="{{!dialog.inSidebar ? 'dialog-ng-popup-container' : null}}"
|
|
6
|
+
ng-attr-data-test="ring-dialog-container"
|
|
6
7
|
>
|
|
7
8
|
<div ng-class="[dialog.dialogStyles.innerContainer]">
|
|
8
9
|
<div data-anchor="dialog-container"
|
|
@@ -3,7 +3,7 @@ import scheduleRAF from '../global/schedule-raf.js';
|
|
|
3
3
|
import { getDocumentScrollTop, getWindowHeight } from '../global/dom.js';
|
|
4
4
|
import '../_helpers/_rollupPluginBabelHelpers.js';
|
|
5
5
|
|
|
6
|
-
var modules_655b40c7 = {"unit":"8px","dockedPanel":"
|
|
6
|
+
var modules_655b40c7 = {"unit":"8px","dockedPanel":"dockedPanel_rui_be55","fixed":"fixed_rui_be55"};
|
|
7
7
|
|
|
8
8
|
const scheduleAction = scheduleRAF();
|
|
9
9
|
/**
|
package/dist/dropdown/anchor.js
CHANGED
|
@@ -12,6 +12,6 @@ import '../_helpers/icon.js';
|
|
|
12
12
|
import '../icon/icon__svg.js';
|
|
13
13
|
import '../global/memoize.js';
|
|
14
14
|
import 'focus-visible';
|
|
15
|
-
import '../global/theme.js';
|
|
16
15
|
import '../link/clickableLink.js';
|
|
16
|
+
import '../global/controls-height.js';
|
|
17
17
|
import '../_helpers/button__classes.js';
|
|
@@ -15,8 +15,8 @@ import '../icon/icon__svg.js';
|
|
|
15
15
|
import '../global/memoize.js';
|
|
16
16
|
import '../button/button.js';
|
|
17
17
|
import 'focus-visible';
|
|
18
|
-
import '../global/theme.js';
|
|
19
18
|
import '../link/clickableLink.js';
|
|
19
|
+
import '../global/controls-height.js';
|
|
20
20
|
import '../_helpers/button__classes.js';
|
|
21
21
|
|
|
22
22
|
/**
|
|
@@ -50,7 +50,7 @@ import '../list/list__hint.js';
|
|
|
50
50
|
import '../list/consts.js';
|
|
51
51
|
import '@jetbrains/icons/chevron-10px';
|
|
52
52
|
import '../button/button.js';
|
|
53
|
-
import '../global/
|
|
53
|
+
import '../global/controls-height.js';
|
|
54
54
|
import '../_helpers/button__classes.js';
|
|
55
55
|
import '../popup/popup.js';
|
|
56
56
|
import 'react-dom';
|
|
@@ -18,7 +18,7 @@ import '../tab-trap/tab-trap.js';
|
|
|
18
18
|
import '../popup/position.js';
|
|
19
19
|
import '../popup/popup.target.js';
|
|
20
20
|
|
|
21
|
-
var modules_ee284100 = {"unit":"8px","errorBubblePopup":"
|
|
21
|
+
var modules_ee284100 = {"unit":"8px","errorBubblePopup":"errorBubblePopup_rui_5695","errorBubbleWrapper":"errorBubbleWrapper_rui_5695","errorBubble":"errorBubble_rui_5695"};
|
|
22
22
|
|
|
23
23
|
/**
|
|
24
24
|
* @name Error Bubble
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { createContext } from 'react';
|
|
2
|
+
|
|
3
|
+
var ControlsHeight;
|
|
4
|
+
|
|
5
|
+
(function (ControlsHeight) {
|
|
6
|
+
ControlsHeight["S"] = "S";
|
|
7
|
+
ControlsHeight["M"] = "M";
|
|
8
|
+
ControlsHeight["L"] = "L";
|
|
9
|
+
})(ControlsHeight || (ControlsHeight = {}));
|
|
10
|
+
|
|
11
|
+
const ControlsHeightContext = /*#__PURE__*/createContext(ControlsHeight.M);
|
|
12
|
+
|
|
13
|
+
export { ControlsHeight, ControlsHeightContext };
|
package/dist/global/theme.d.ts
CHANGED
|
@@ -1,26 +1,13 @@
|
|
|
1
|
-
import React, {
|
|
1
|
+
import React, { HTMLAttributes } from 'react';
|
|
2
2
|
declare enum Theme {
|
|
3
|
+
AUTO = "auto",
|
|
3
4
|
LIGHT = "light",
|
|
4
5
|
DARK = "dark"
|
|
5
6
|
}
|
|
6
|
-
export declare
|
|
7
|
-
export interface
|
|
8
|
-
theme?: Theme
|
|
7
|
+
export declare function useTheme(): Theme.LIGHT | Theme.DARK;
|
|
8
|
+
export interface ThemeProviderProps extends HTMLAttributes<HTMLDivElement> {
|
|
9
|
+
theme?: Theme;
|
|
10
|
+
passToPopups?: boolean;
|
|
9
11
|
}
|
|
10
|
-
export
|
|
11
|
-
theme: Theme;
|
|
12
|
-
}
|
|
13
|
-
declare type ClassComponentType<T, P> = T extends React.Component<P> ? new (props: P) => T : never;
|
|
14
|
-
declare type ExoticComponentType<T, P> = ExoticComponent<PropsWithoutRef<P> & RefAttributes<T>>;
|
|
15
|
-
declare type AnyComponentType<T, P> = ClassComponentType<T, P> | FunctionComponent<P> | ExoticComponentType<T, P>;
|
|
16
|
-
export declare const withTheme: (defaultTheme?: Theme) => <T, P extends ThemeProps, S>(ComposedComponent: AnyComponentType<T, P> & S) => React.NamedExoticComponent<React.PropsWithRef<React.PropsWithoutRef<Omit<JSX.LibraryManagedAttributes<ClassComponentType<T, P> & S, P> | JSX.LibraryManagedAttributes<React.FunctionComponent<P> & S, P> | JSX.LibraryManagedAttributes<ExoticComponentType<T, P> & S, P>, "theme"> & ThemeOuterProps> & React.RefAttributes<T>>> & {
|
|
17
|
-
readonly type: React.ForwardRefExoticComponent<React.PropsWithoutRef<Omit<JSX.LibraryManagedAttributes<ClassComponentType<T, P> & S, P> | JSX.LibraryManagedAttributes<React.FunctionComponent<P> & S, P> | JSX.LibraryManagedAttributes<ExoticComponentType<T, P> & S, P>, "theme"> & ThemeOuterProps> & React.RefAttributes<T>>;
|
|
18
|
-
} & { [K in keyof S]: S[K]; };
|
|
19
|
-
export interface ApplyThemeParams {
|
|
20
|
-
element?: Element | null | undefined;
|
|
21
|
-
prevTheme?: string | null | undefined;
|
|
22
|
-
currentTheme?: string | null | undefined;
|
|
23
|
-
}
|
|
24
|
-
declare function applyTheme(params: ApplyThemeParams): void;
|
|
25
|
-
export { applyTheme };
|
|
12
|
+
export declare const ThemeProvider: React.ForwardRefExoticComponent<ThemeProviderProps & React.RefAttributes<HTMLDivElement>>;
|
|
26
13
|
export default Theme;
|
package/dist/global/theme.js
CHANGED
|
@@ -1,62 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
Theme["DARK"] = "dark";
|
|
9
|
-
})(Theme || (Theme = {}));
|
|
10
|
-
|
|
11
|
-
const ThemeContext = /*#__PURE__*/createContext(null); // eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
12
|
-
|
|
13
|
-
const getDisplayName = Component => {
|
|
14
|
-
var _ref, _Component$name;
|
|
15
|
-
|
|
16
|
-
return (_ref = (_Component$name = Component.name) !== null && _Component$name !== void 0 ? _Component$name : Component.displayName) !== null && _ref !== void 0 ? _ref : 'Component';
|
|
17
|
-
};
|
|
18
|
-
|
|
19
|
-
const withTheme = function () {
|
|
20
|
-
let defaultTheme = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : Theme.LIGHT;
|
|
21
|
-
return ComposedComponent => {
|
|
22
|
-
// eslint-disable-next-line react/display-name
|
|
23
|
-
const WithTheme = /*#__PURE__*/memo( /*#__PURE__*/forwardRef((_ref2, ref) => {
|
|
24
|
-
let {
|
|
25
|
-
theme,
|
|
26
|
-
...restProps
|
|
27
|
-
} = _ref2;
|
|
28
|
-
return /*#__PURE__*/React.createElement(ThemeContext.Consumer, null, contextTheme => {
|
|
29
|
-
const usedTheme = theme || contextTheme || defaultTheme;
|
|
30
|
-
const Component = ComposedComponent;
|
|
31
|
-
return /*#__PURE__*/React.createElement(ThemeContext.Provider, {
|
|
32
|
-
value: usedTheme
|
|
33
|
-
}, /*#__PURE__*/React.createElement(Component, _extends({
|
|
34
|
-
ref: ref // https://github.com/Microsoft/TypeScript/issues/28938#issuecomment-450636046
|
|
35
|
-
|
|
36
|
-
}, restProps, {
|
|
37
|
-
theme: usedTheme
|
|
38
|
-
})));
|
|
39
|
-
});
|
|
40
|
-
}));
|
|
41
|
-
const WithThemeAndStatics = Object.assign(WithTheme, ComposedComponent, {
|
|
42
|
-
displayName: `withTheme(${getDisplayName(ComposedComponent)})`,
|
|
43
|
-
propTypes: null
|
|
44
|
-
});
|
|
45
|
-
return WithThemeAndStatics;
|
|
46
|
-
};
|
|
47
|
-
};
|
|
48
|
-
|
|
49
|
-
function applyTheme(params) {
|
|
50
|
-
if (!params || !params.element || !params.currentTheme) {
|
|
51
|
-
return;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
if (params.prevTheme) {
|
|
55
|
-
params.element.classList.remove(params.prevTheme);
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
params.element.classList.add(params.currentTheme);
|
|
59
|
-
}
|
|
60
|
-
var Theme$1 = Theme;
|
|
61
|
-
|
|
62
|
-
export { ThemeContext, applyTheme, Theme$1 as default, withTheme };
|
|
1
|
+
import '../_helpers/_rollupPluginBabelHelpers.js';
|
|
2
|
+
import 'react';
|
|
3
|
+
import 'classnames';
|
|
4
|
+
import '../popup/popup.target.js';
|
|
5
|
+
export { a as ThemeProvider, T as default, u as useTheme } from '../_helpers/theme.js';
|
|
6
|
+
import './get-uid.js';
|
|
7
|
+
import 'prop-types';
|
|
@@ -2,15 +2,13 @@ import type { Property } from 'csstype';
|
|
|
2
2
|
export interface RingCSSProperties {
|
|
3
3
|
'--ring-unit'?: string;
|
|
4
4
|
'--ring-line-color'?: Property.BorderColor;
|
|
5
|
-
'--ring-dark-line-color'?: Property.BorderColor;
|
|
6
5
|
'--ring-borders-color'?: Property.BorderColor;
|
|
7
|
-
'--ring-dark-borders-color'?: Property.BorderColor;
|
|
8
6
|
'--ring-icon-color'?: Property.Color;
|
|
9
7
|
'--ring-icon-secondary-color'?: Property.Color;
|
|
10
8
|
'--ring-border-disabled-color'?: Property.BorderColor;
|
|
9
|
+
'--ring-border-unselected-disabled-color'?: Property.Color;
|
|
11
10
|
'--ring-icon-disabled-color'?: Property.Color;
|
|
12
11
|
'--ring-border-hover-color'?: Property.BorderColor;
|
|
13
|
-
'--ring-dark-border-hover-color'?: Property.BorderColor;
|
|
14
12
|
'--ring-icon-hover-color'?: Property.Color;
|
|
15
13
|
'--ring-main-color'?: Property.Color;
|
|
16
14
|
'--ring-main-hover-color'?: Property.Color;
|
|
@@ -23,6 +21,8 @@ export interface RingCSSProperties {
|
|
|
23
21
|
'--ring-popup-shadow-color'?: Property.Color;
|
|
24
22
|
'--ring-message-shadow-color'?: Property.Color;
|
|
25
23
|
'--ring-pinned-shadow-color'?: Property.Color;
|
|
24
|
+
'--ring-button-danger-hover-color'?: Property.Color;
|
|
25
|
+
'--ring-button-primary-border-color'?: Property.Color;
|
|
26
26
|
'--ring-search-color'?: Property.Color;
|
|
27
27
|
'--ring-hint-color'?: Property.Color;
|
|
28
28
|
'--ring-link-color'?: Property.Color;
|
|
@@ -31,25 +31,27 @@ export interface RingCSSProperties {
|
|
|
31
31
|
'--ring-warning-color'?: Property.Color;
|
|
32
32
|
'--ring-success-color'?: Property.Color;
|
|
33
33
|
'--ring-text-color'?: Property.Color;
|
|
34
|
-
'--ring-
|
|
34
|
+
'--ring-active-text-color'?: Property.Color;
|
|
35
|
+
'--ring-white-text-color'?: Property.Color;
|
|
35
36
|
'--ring-heading-color'?: Property.Color;
|
|
36
37
|
'--ring-secondary-color'?: Property.Color;
|
|
37
|
-
'--ring-dark-secondary-color'?: Property.Color;
|
|
38
38
|
'--ring-disabled-color'?: Property.Color;
|
|
39
|
-
'--ring-dark-disabled-color'?: Property.Color;
|
|
40
|
-
'--ring-dark-active-color'?: Property.Color;
|
|
41
39
|
'--ring-content-background-color'?: Property.BackgroundColor;
|
|
42
40
|
'--ring-popup-background-color'?: Property.BackgroundColor;
|
|
43
41
|
'--ring-sidebar-background-color'?: Property.BackgroundColor;
|
|
44
42
|
'--ring-selected-background-color'?: Property.BackgroundColor;
|
|
45
43
|
'--ring-hover-background-color'?: Property.BackgroundColor;
|
|
46
|
-
'--ring-dark-selected-background-color'?: Property.BackgroundColor;
|
|
47
44
|
'--ring-message-background-color'?: Property.BackgroundColor;
|
|
48
45
|
'--ring-navigation-background-color'?: Property.BackgroundColor;
|
|
49
46
|
'--ring-tag-background-color'?: Property.BackgroundColor;
|
|
47
|
+
'--ring-tag-hover-background-color'?: Property.BackgroundColor;
|
|
50
48
|
'--ring-removed-background-color'?: Property.BackgroundColor;
|
|
51
49
|
'--ring-warning-background-color'?: Property.BackgroundColor;
|
|
52
50
|
'--ring-added-background-color'?: Property.BackgroundColor;
|
|
51
|
+
'--ring-disabled-background-color'?: Property.BackgroundColor;
|
|
52
|
+
'--ring-button-danger-active-color'?: Property.BackgroundColor;
|
|
53
|
+
'--ring-button-loader-background'?: Property.BackgroundColor;
|
|
54
|
+
'--ring-button-primary-background-color'?: Property.BackgroundColor;
|
|
53
55
|
'--ring-code-background-color'?: Property.BackgroundColor;
|
|
54
56
|
'--ring-code-color'?: Property.Color;
|
|
55
57
|
'--ring-code-comment-color'?: Property.Color;
|