@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
|
@@ -3,7 +3,7 @@ import React, { Component } from 'react';
|
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
4
|
import { isNodeInVisiblePartOfPage } from '../global/dom.js';
|
|
5
5
|
|
|
6
|
-
var modules_6dce58ae = {"trapButton":"
|
|
6
|
+
var modules_6dce58ae = {"trapButton":"trapButton_rui_47dd"};
|
|
7
7
|
|
|
8
8
|
const FOCUSABLE_ELEMENTS = 'input, button, select, textarea, a[href], *[tabindex]:not([data-trap-button]):not([data-scrollable-container])';
|
|
9
9
|
/**
|
|
@@ -22,8 +22,8 @@ import '../_helpers/checkbox.js';
|
|
|
22
22
|
import '../button/button.js';
|
|
23
23
|
import 'focus-visible';
|
|
24
24
|
import '@jetbrains/icons/chevron-10px';
|
|
25
|
-
import '../global/theme.js';
|
|
26
25
|
import '../link/clickableLink.js';
|
|
26
|
+
import '../global/controls-height.js';
|
|
27
27
|
import '../_helpers/button__classes.js';
|
|
28
28
|
import '../tooltip/tooltip.js';
|
|
29
29
|
import '../popup/popup.js';
|
package/dist/table/row.js
CHANGED
|
@@ -6,7 +6,7 @@ import chevronRightIcon from '@jetbrains/icons/chevron-right';
|
|
|
6
6
|
import chevronDownIcon from '@jetbrains/icons/chevron-down';
|
|
7
7
|
import dragIcon from '@jetbrains/icons/drag';
|
|
8
8
|
import Checkbox from '../checkbox/checkbox.js';
|
|
9
|
-
import
|
|
9
|
+
import { Button } from '../button/button.js';
|
|
10
10
|
import Tooltip from '../tooltip/tooltip.js';
|
|
11
11
|
import joinDataTestAttributes from '../global/data-tests.js';
|
|
12
12
|
import getUID from '../global/get-uid.js';
|
|
@@ -24,8 +24,8 @@ import '../global/memoize.js';
|
|
|
24
24
|
import '../_helpers/checkbox.js';
|
|
25
25
|
import 'focus-visible';
|
|
26
26
|
import '@jetbrains/icons/chevron-10px';
|
|
27
|
-
import '../global/theme.js';
|
|
28
27
|
import '../link/clickableLink.js';
|
|
28
|
+
import '../global/controls-height.js';
|
|
29
29
|
import '../_helpers/button__classes.js';
|
|
30
30
|
import '../popup/popup.js';
|
|
31
31
|
import 'react-dom';
|
|
@@ -48,7 +48,7 @@ const DragHandle = _ref => {
|
|
|
48
48
|
const classes = classNames(modules_1db4bbca.dragHandle, {
|
|
49
49
|
[modules_1db4bbca.visibleDragHandle]: alwaysShowDragHandle
|
|
50
50
|
});
|
|
51
|
-
return /*#__PURE__*/React.createElement(
|
|
51
|
+
return /*#__PURE__*/React.createElement(Button, {
|
|
52
52
|
"data-movable-handle": true,
|
|
53
53
|
title: "Drag",
|
|
54
54
|
className: classes,
|
|
@@ -183,11 +183,11 @@ class Row extends PureComponent {
|
|
|
183
183
|
"aria-labelledby": this.id,
|
|
184
184
|
checked: selected,
|
|
185
185
|
disabled: true
|
|
186
|
-
})), collapsible && collapsed && /*#__PURE__*/React.createElement(
|
|
186
|
+
})), collapsible && collapsed && /*#__PURE__*/React.createElement(Button, {
|
|
187
187
|
className: modules_1db4bbca.rowCollapseExpandButton,
|
|
188
188
|
icon: chevronRightIcon,
|
|
189
189
|
onClick: () => onExpand(item)
|
|
190
|
-
}), collapsible && !collapsed && /*#__PURE__*/React.createElement(
|
|
190
|
+
}), collapsible && !collapsed && /*#__PURE__*/React.createElement(Button, {
|
|
191
191
|
className: modules_1db4bbca.rowCollapseExpandButton,
|
|
192
192
|
icon: chevronDownIcon,
|
|
193
193
|
onClick: () => onCollapse(item)
|
|
@@ -43,8 +43,8 @@ import '@jetbrains/icons/chevron-down';
|
|
|
43
43
|
import '@jetbrains/icons/drag';
|
|
44
44
|
import '../button/button.js';
|
|
45
45
|
import 'focus-visible';
|
|
46
|
-
import '../global/theme.js';
|
|
47
46
|
import '../link/clickableLink.js';
|
|
47
|
+
import '../global/controls-height.js';
|
|
48
48
|
import '../_helpers/button__classes.js';
|
|
49
49
|
import '../tooltip/tooltip.js';
|
|
50
50
|
import '../popup/popup.js';
|
package/dist/table/table.js
CHANGED
|
@@ -42,8 +42,8 @@ import '@jetbrains/icons/chevron-down';
|
|
|
42
42
|
import '@jetbrains/icons/drag';
|
|
43
43
|
import '../button/button.js';
|
|
44
44
|
import 'focus-visible';
|
|
45
|
-
import '../global/theme.js';
|
|
46
45
|
import '../link/clickableLink.js';
|
|
46
|
+
import '../global/controls-height.js';
|
|
47
47
|
import '../_helpers/button__classes.js';
|
|
48
48
|
import '../tooltip/tooltip.js';
|
|
49
49
|
import '../popup/popup.js';
|
|
@@ -35,8 +35,8 @@ import '../icon/icon.js';
|
|
|
35
35
|
import 'util-deprecate';
|
|
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 '../button-group/button-group.js';
|
|
42
42
|
import '../button-group/caption.js';
|
|
@@ -44,6 +44,7 @@ import '../_helpers/button-group.js';
|
|
|
44
44
|
import '../button-toolbar/button-toolbar.js';
|
|
45
45
|
import '../_helpers/button-toolbar.js';
|
|
46
46
|
import '../select/select.js';
|
|
47
|
+
import '@jetbrains/icons/chevron-down';
|
|
47
48
|
import '@jetbrains/icons/close';
|
|
48
49
|
import 'deep-equal';
|
|
49
50
|
import '../dropdown/dropdown.js';
|
|
@@ -93,12 +94,7 @@ import '../global/fuzzy-highlight.js';
|
|
|
93
94
|
import '../select/select__popup.js';
|
|
94
95
|
import '@jetbrains/icons/search';
|
|
95
96
|
import '../loader-inline/loader-inline.js';
|
|
96
|
-
import '../_helpers/
|
|
97
|
-
import '../global/conic-gradient.js';
|
|
98
|
-
import 'conic-gradient';
|
|
99
|
-
import '../global/supports-css.js';
|
|
100
|
-
import '../global/inject-styles.js';
|
|
101
|
-
import '../global/radial-gradient-mask.js';
|
|
97
|
+
import '../_helpers/loader-inline.js';
|
|
102
98
|
import '../shortcuts/shortcuts-hoc.js';
|
|
103
99
|
import '../tags-list/tags-list.js';
|
|
104
100
|
import '../tag/tag.js';
|
|
@@ -21,8 +21,8 @@ import '../icon/icon__constants.js';
|
|
|
21
21
|
import '../_helpers/icon.js';
|
|
22
22
|
import '../icon/icon__svg.js';
|
|
23
23
|
import '../global/memoize.js';
|
|
24
|
-
import '../global/theme.js';
|
|
25
24
|
import '../link/clickableLink.js';
|
|
25
|
+
import '../global/controls-height.js';
|
|
26
26
|
import '../_helpers/button__classes.js';
|
|
27
27
|
import '../button-group/button-group.js';
|
|
28
28
|
import '../button-group/caption.js';
|
|
@@ -30,6 +30,7 @@ import '../_helpers/button-group.js';
|
|
|
30
30
|
import '../button-toolbar/button-toolbar.js';
|
|
31
31
|
import '../_helpers/button-toolbar.js';
|
|
32
32
|
import '../select/select.js';
|
|
33
|
+
import '@jetbrains/icons/chevron-down';
|
|
33
34
|
import '@jetbrains/icons/close';
|
|
34
35
|
import 'deep-equal';
|
|
35
36
|
import '../dropdown/dropdown.js';
|
|
@@ -83,12 +84,7 @@ import '../global/fuzzy-highlight.js';
|
|
|
83
84
|
import '../select/select__popup.js';
|
|
84
85
|
import '@jetbrains/icons/search';
|
|
85
86
|
import '../loader-inline/loader-inline.js';
|
|
86
|
-
import '../_helpers/
|
|
87
|
-
import '../global/conic-gradient.js';
|
|
88
|
-
import 'conic-gradient';
|
|
89
|
-
import '../global/supports-css.js';
|
|
90
|
-
import '../global/inject-styles.js';
|
|
91
|
-
import '../global/radial-gradient-mask.js';
|
|
87
|
+
import '../_helpers/loader-inline.js';
|
|
92
88
|
import '../shortcuts/shortcuts-hoc.js';
|
|
93
89
|
import '../tags-list/tags-list.js';
|
|
94
90
|
import '../tag/tag.js';
|
|
@@ -49,8 +49,8 @@ import '@jetbrains/icons/chevron-down';
|
|
|
49
49
|
import '@jetbrains/icons/drag';
|
|
50
50
|
import '../button/button.js';
|
|
51
51
|
import 'focus-visible';
|
|
52
|
-
import '../global/theme.js';
|
|
53
52
|
import '../link/clickableLink.js';
|
|
53
|
+
import '../global/controls-height.js';
|
|
54
54
|
import '../_helpers/button__classes.js';
|
|
55
55
|
import '../tooltip/tooltip.js';
|
|
56
56
|
import '../popup/popup.js';
|
|
@@ -48,8 +48,8 @@ import '@jetbrains/icons/chevron-down';
|
|
|
48
48
|
import '@jetbrains/icons/drag';
|
|
49
49
|
import '../button/button.js';
|
|
50
50
|
import 'focus-visible';
|
|
51
|
-
import '../global/theme.js';
|
|
52
51
|
import '../link/clickableLink.js';
|
|
52
|
+
import '../global/controls-height.js';
|
|
53
53
|
import '../_helpers/button__classes.js';
|
|
54
54
|
import '../tooltip/tooltip.js';
|
|
55
55
|
import '../popup/popup.js';
|
|
@@ -59,7 +59,7 @@ import '../list/consts.js';
|
|
|
59
59
|
import '../global/typescript-utils.js';
|
|
60
60
|
import '../_helpers/anchor.js';
|
|
61
61
|
import '../button/button.js';
|
|
62
|
-
import '../global/
|
|
62
|
+
import '../global/controls-height.js';
|
|
63
63
|
import '../_helpers/button__classes.js';
|
|
64
64
|
import './tab-link.js';
|
|
65
65
|
|
|
@@ -29,6 +29,7 @@ const TabTitle = /*#__PURE__*/React.memo(function TabTitle(_ref) {
|
|
|
29
29
|
|
|
30
30
|
const {
|
|
31
31
|
title,
|
|
32
|
+
titleProps,
|
|
32
33
|
disabled,
|
|
33
34
|
href,
|
|
34
35
|
className,
|
|
@@ -43,7 +44,7 @@ const TabTitle = /*#__PURE__*/React.memo(function TabTitle(_ref) {
|
|
|
43
44
|
[collapsedClassName !== null && collapsedClassName !== void 0 ? collapsedClassName : '']: collapsed,
|
|
44
45
|
[collapsedActiveClassName !== null && collapsedActiveClassName !== void 0 ? collapsedActiveClassName : '']: collapsed && selected
|
|
45
46
|
});
|
|
46
|
-
return /*#__PURE__*/React.createElement(TabLink, {
|
|
47
|
+
return /*#__PURE__*/React.createElement(TabLink, _extends({
|
|
47
48
|
title: title,
|
|
48
49
|
isSelected: selected,
|
|
49
50
|
active: true,
|
|
@@ -54,7 +55,7 @@ const TabTitle = /*#__PURE__*/React.memo(function TabTitle(_ref) {
|
|
|
54
55
|
onPlainLeftClick: handleSelect,
|
|
55
56
|
tabIndex: tabIndex,
|
|
56
57
|
collapsed: collapsed
|
|
57
|
-
});
|
|
58
|
+
}, titleProps));
|
|
58
59
|
});
|
|
59
60
|
TabTitle.propTypes = {
|
|
60
61
|
child: PropTypes.element,
|
|
@@ -60,7 +60,7 @@ import '../dropdown/dropdown.js';
|
|
|
60
60
|
import '../global/typescript-utils.js';
|
|
61
61
|
import '../_helpers/anchor.js';
|
|
62
62
|
import '../button/button.js';
|
|
63
|
-
import '../global/
|
|
63
|
+
import '../global/controls-height.js';
|
|
64
64
|
import '../_helpers/button__classes.js';
|
|
65
65
|
import './custom-item.js';
|
|
66
66
|
import './tab-link.js';
|
package/dist/tabs/dumb-tabs.d.ts
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { PureComponent, ReactElement } from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
|
-
import Theme, { ThemeProps } from '../global/theme';
|
|
4
3
|
import { CollapsibleTabsProps } from './collapsible-tabs';
|
|
5
4
|
import { CustomItem } from './custom-item';
|
|
6
5
|
import { TabProps } from './tab';
|
|
7
6
|
export { CustomItem };
|
|
8
7
|
declare type Children = readonly Children[] | ReactElement<TabProps> | null | boolean;
|
|
9
|
-
export interface TabsProps extends
|
|
8
|
+
export interface TabsProps extends Omit<CollapsibleTabsProps, 'onSelect' | 'children'> {
|
|
10
9
|
children: Children;
|
|
11
10
|
onSelect: (key: string) => void;
|
|
12
11
|
className?: string | null | undefined;
|
|
@@ -15,7 +14,6 @@ export interface TabsProps extends ThemeProps, Omit<CollapsibleTabsProps, 'onSel
|
|
|
15
14
|
}
|
|
16
15
|
declare class Tabs extends PureComponent<TabsProps> {
|
|
17
16
|
static propTypes: {
|
|
18
|
-
theme: PropTypes.Requireable<string>;
|
|
19
17
|
selected: PropTypes.Requireable<string>;
|
|
20
18
|
className: PropTypes.Requireable<string>;
|
|
21
19
|
href: PropTypes.Requireable<string>;
|
|
@@ -27,110 +25,9 @@ declare class Tabs extends PureComponent<TabsProps> {
|
|
|
27
25
|
static defaultProps: {
|
|
28
26
|
onSelect(): void;
|
|
29
27
|
};
|
|
30
|
-
static Theme: typeof Theme;
|
|
31
28
|
handleSelect: (arg: string) => () => void;
|
|
32
29
|
getTabTitle: (child: ReactElement<TabProps>, i: number) => JSX.Element;
|
|
33
30
|
render(): JSX.Element;
|
|
34
31
|
}
|
|
35
|
-
declare
|
|
36
|
-
|
|
37
|
-
selected: PropTypes.Requireable<string>;
|
|
38
|
-
className: PropTypes.Requireable<string>;
|
|
39
|
-
href: PropTypes.Requireable<string>;
|
|
40
|
-
children: PropTypes.Validator<string | number | boolean | {} | PropTypes.ReactElementLike | PropTypes.ReactNodeArray>;
|
|
41
|
-
onSelect: PropTypes.Requireable<(...args: any[]) => any>;
|
|
42
|
-
'data-test': PropTypes.Requireable<string>;
|
|
43
|
-
autoCollapse: PropTypes.Requireable<boolean>;
|
|
44
|
-
}>, "href"> & Pick<TabsProps, "moreClassName" | "moreActiveClassName" | "morePopupClassName" | "morePopupItemClassName" | "morePopupBeforeEnd" | "initialVisibleItems">, "className" | "href" | "children" | "theme" | "data-test" | "selected" | "moreClassName" | "moreActiveClassName" | "morePopupClassName" | "morePopupItemClassName" | "morePopupBeforeEnd" | "initialVisibleItems" | "autoCollapse"> & Partial<Pick<Pick<TabsProps, keyof TabsProps> & Pick<PropTypes.InferProps<{
|
|
45
|
-
theme: PropTypes.Requireable<string>;
|
|
46
|
-
selected: PropTypes.Requireable<string>;
|
|
47
|
-
className: PropTypes.Requireable<string>;
|
|
48
|
-
href: PropTypes.Requireable<string>;
|
|
49
|
-
children: PropTypes.Validator<string | number | boolean | {} | PropTypes.ReactElementLike | PropTypes.ReactNodeArray>;
|
|
50
|
-
onSelect: PropTypes.Requireable<(...args: any[]) => any>;
|
|
51
|
-
'data-test': PropTypes.Requireable<string>;
|
|
52
|
-
autoCollapse: PropTypes.Requireable<boolean>;
|
|
53
|
-
}>, "href"> & Pick<TabsProps, "moreClassName" | "moreActiveClassName" | "morePopupClassName" | "morePopupItemClassName" | "morePopupBeforeEnd" | "initialVisibleItems">, "onSelect">> & Partial<Pick<{
|
|
54
|
-
onSelect(): void;
|
|
55
|
-
}, never>>) | (Pick<Pick<TabsProps, keyof TabsProps> & Pick<PropTypes.InferProps<React.WeakValidationMap<TabsProps> & {
|
|
56
|
-
theme: PropTypes.Requireable<string>;
|
|
57
|
-
selected: PropTypes.Requireable<string>;
|
|
58
|
-
className: PropTypes.Requireable<string>;
|
|
59
|
-
href: PropTypes.Requireable<string>;
|
|
60
|
-
children: PropTypes.Validator<string | number | boolean | {} | PropTypes.ReactElementLike | PropTypes.ReactNodeArray>;
|
|
61
|
-
onSelect: PropTypes.Requireable<(...args: any[]) => any>;
|
|
62
|
-
'data-test': PropTypes.Requireable<string>;
|
|
63
|
-
autoCollapse: PropTypes.Requireable<boolean>;
|
|
64
|
-
}>, "href"> & Pick<TabsProps, never>, "href"> & Partial<Pick<Pick<TabsProps, keyof TabsProps> & Pick<PropTypes.InferProps<React.WeakValidationMap<TabsProps> & {
|
|
65
|
-
theme: PropTypes.Requireable<string>;
|
|
66
|
-
selected: PropTypes.Requireable<string>;
|
|
67
|
-
className: PropTypes.Requireable<string>;
|
|
68
|
-
href: PropTypes.Requireable<string>;
|
|
69
|
-
children: PropTypes.Validator<string | number | boolean | {} | PropTypes.ReactElementLike | PropTypes.ReactNodeArray>;
|
|
70
|
-
onSelect: PropTypes.Requireable<(...args: any[]) => any>;
|
|
71
|
-
'data-test': PropTypes.Requireable<string>;
|
|
72
|
-
autoCollapse: PropTypes.Requireable<boolean>;
|
|
73
|
-
}>, "href"> & Pick<TabsProps, never>, keyof TabsProps>> & Partial<Pick<Partial<TabsProps> & {
|
|
74
|
-
onSelect(): void;
|
|
75
|
-
}, never>>), "theme"> & import("../global/theme").ThemeOuterProps & React.RefAttributes<Tabs>> & {
|
|
76
|
-
readonly type: React.ForwardRefExoticComponent<Omit<(Pick<Pick<TabsProps, keyof TabsProps> & Pick<PropTypes.InferProps<{
|
|
77
|
-
theme: PropTypes.Requireable<string>;
|
|
78
|
-
selected: PropTypes.Requireable<string>;
|
|
79
|
-
className: PropTypes.Requireable<string>;
|
|
80
|
-
href: PropTypes.Requireable<string>;
|
|
81
|
-
children: PropTypes.Validator<string | number | boolean | {} | PropTypes.ReactElementLike | PropTypes.ReactNodeArray>;
|
|
82
|
-
onSelect: PropTypes.Requireable<(...args: any[]) => any>;
|
|
83
|
-
'data-test': PropTypes.Requireable<string>;
|
|
84
|
-
autoCollapse: PropTypes.Requireable<boolean>;
|
|
85
|
-
}>, "href"> & Pick<TabsProps, "moreClassName" | "moreActiveClassName" | "morePopupClassName" | "morePopupItemClassName" | "morePopupBeforeEnd" | "initialVisibleItems">, "className" | "href" | "children" | "theme" | "data-test" | "selected" | "moreClassName" | "moreActiveClassName" | "morePopupClassName" | "morePopupItemClassName" | "morePopupBeforeEnd" | "initialVisibleItems" | "autoCollapse"> & Partial<Pick<Pick<TabsProps, keyof TabsProps> & Pick<PropTypes.InferProps<{
|
|
86
|
-
theme: PropTypes.Requireable<string>;
|
|
87
|
-
selected: PropTypes.Requireable<string>;
|
|
88
|
-
className: PropTypes.Requireable<string>;
|
|
89
|
-
href: PropTypes.Requireable<string>;
|
|
90
|
-
children: PropTypes.Validator<string | number | boolean | {} | PropTypes.ReactElementLike | PropTypes.ReactNodeArray>;
|
|
91
|
-
onSelect: PropTypes.Requireable<(...args: any[]) => any>;
|
|
92
|
-
'data-test': PropTypes.Requireable<string>;
|
|
93
|
-
autoCollapse: PropTypes.Requireable<boolean>;
|
|
94
|
-
}>, "href"> & Pick<TabsProps, "moreClassName" | "moreActiveClassName" | "morePopupClassName" | "morePopupItemClassName" | "morePopupBeforeEnd" | "initialVisibleItems">, "onSelect">> & Partial<Pick<{
|
|
95
|
-
onSelect(): void;
|
|
96
|
-
}, never>>) | (Pick<Pick<TabsProps, keyof TabsProps> & Pick<PropTypes.InferProps<React.WeakValidationMap<TabsProps> & {
|
|
97
|
-
theme: PropTypes.Requireable<string>;
|
|
98
|
-
selected: PropTypes.Requireable<string>;
|
|
99
|
-
className: PropTypes.Requireable<string>;
|
|
100
|
-
href: PropTypes.Requireable<string>;
|
|
101
|
-
children: PropTypes.Validator<string | number | boolean | {} | PropTypes.ReactElementLike | PropTypes.ReactNodeArray>;
|
|
102
|
-
onSelect: PropTypes.Requireable<(...args: any[]) => any>;
|
|
103
|
-
'data-test': PropTypes.Requireable<string>;
|
|
104
|
-
autoCollapse: PropTypes.Requireable<boolean>;
|
|
105
|
-
}>, "href"> & Pick<TabsProps, never>, "href"> & Partial<Pick<Pick<TabsProps, keyof TabsProps> & Pick<PropTypes.InferProps<React.WeakValidationMap<TabsProps> & {
|
|
106
|
-
theme: PropTypes.Requireable<string>;
|
|
107
|
-
selected: PropTypes.Requireable<string>;
|
|
108
|
-
className: PropTypes.Requireable<string>;
|
|
109
|
-
href: PropTypes.Requireable<string>;
|
|
110
|
-
children: PropTypes.Validator<string | number | boolean | {} | PropTypes.ReactElementLike | PropTypes.ReactNodeArray>;
|
|
111
|
-
onSelect: PropTypes.Requireable<(...args: any[]) => any>;
|
|
112
|
-
'data-test': PropTypes.Requireable<string>;
|
|
113
|
-
autoCollapse: PropTypes.Requireable<boolean>;
|
|
114
|
-
}>, "href"> & Pick<TabsProps, never>, keyof TabsProps>> & Partial<Pick<Partial<TabsProps> & {
|
|
115
|
-
onSelect(): void;
|
|
116
|
-
}, never>>), "theme"> & import("../global/theme").ThemeOuterProps & React.RefAttributes<Tabs>>;
|
|
117
|
-
} & {
|
|
118
|
-
prototype: Tabs;
|
|
119
|
-
propTypes: {
|
|
120
|
-
theme: PropTypes.Requireable<string>;
|
|
121
|
-
selected: PropTypes.Requireable<string>;
|
|
122
|
-
className: PropTypes.Requireable<string>;
|
|
123
|
-
href: PropTypes.Requireable<string>;
|
|
124
|
-
children: PropTypes.Validator<string | number | boolean | {} | PropTypes.ReactElementLike | PropTypes.ReactNodeArray>;
|
|
125
|
-
onSelect: PropTypes.Requireable<(...args: any[]) => any>;
|
|
126
|
-
'data-test': PropTypes.Requireable<string>;
|
|
127
|
-
autoCollapse: PropTypes.Requireable<boolean>;
|
|
128
|
-
};
|
|
129
|
-
defaultProps: {
|
|
130
|
-
onSelect(): void;
|
|
131
|
-
};
|
|
132
|
-
Theme: typeof Theme;
|
|
133
|
-
contextType?: React.Context<any> | undefined;
|
|
134
|
-
};
|
|
135
|
-
export declare type TabsAttrs = ComponentPropsWithRef<typeof ThemedTabs>;
|
|
136
|
-
export default ThemedTabs;
|
|
32
|
+
export declare type TabsAttrs = JSX.LibraryManagedAttributes<typeof Tabs, TabsProps>;
|
|
33
|
+
export default Tabs;
|
package/dist/tabs/dumb-tabs.js
CHANGED
|
@@ -3,7 +3,6 @@ import React, { PureComponent } from 'react';
|
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
4
|
import classNames from 'classnames';
|
|
5
5
|
import memoize from '../global/memoize.js';
|
|
6
|
-
import Theme, { withTheme } from '../global/theme.js';
|
|
7
6
|
import joinDataTestAttributes from '../global/data-tests.js';
|
|
8
7
|
import { m as modules_02138f4a } from '../_helpers/tabs.js';
|
|
9
8
|
import TabLink from './tab-link.js';
|
|
@@ -64,6 +63,7 @@ import '../dropdown/dropdown.js';
|
|
|
64
63
|
import '../global/typescript-utils.js';
|
|
65
64
|
import '../_helpers/anchor.js';
|
|
66
65
|
import '../button/button.js';
|
|
66
|
+
import '../global/controls-height.js';
|
|
67
67
|
import '../_helpers/button__classes.js';
|
|
68
68
|
import './collapsible-tab.js';
|
|
69
69
|
|
|
@@ -83,6 +83,7 @@ class Tabs extends PureComponent {
|
|
|
83
83
|
} = this.props;
|
|
84
84
|
const {
|
|
85
85
|
title,
|
|
86
|
+
titleProps,
|
|
86
87
|
id,
|
|
87
88
|
disabled,
|
|
88
89
|
href,
|
|
@@ -94,17 +95,16 @@ class Tabs extends PureComponent {
|
|
|
94
95
|
const titleClasses = classNames(modules_02138f4a.title, className, isSelected && activeClassName, {
|
|
95
96
|
[modules_02138f4a.selected]: isSelected
|
|
96
97
|
});
|
|
97
|
-
return /*#__PURE__*/React.createElement(TabLink, {
|
|
98
|
+
return /*#__PURE__*/React.createElement(TabLink, _extends({
|
|
98
99
|
title: title,
|
|
99
100
|
isSelected: isSelected,
|
|
100
|
-
active: true,
|
|
101
101
|
key: key,
|
|
102
102
|
href: href,
|
|
103
103
|
innerClassName: titleClasses,
|
|
104
104
|
className: titleClasses,
|
|
105
105
|
disabled: disabled,
|
|
106
106
|
onPlainLeftClick: this.handleSelect(key)
|
|
107
|
-
});
|
|
107
|
+
}, titleProps));
|
|
108
108
|
});
|
|
109
109
|
}
|
|
110
110
|
|
|
@@ -113,12 +113,11 @@ class Tabs extends PureComponent {
|
|
|
113
113
|
className,
|
|
114
114
|
children,
|
|
115
115
|
selected,
|
|
116
|
-
theme,
|
|
117
116
|
autoCollapse,
|
|
118
117
|
'data-test': dataTest,
|
|
119
118
|
...restProps
|
|
120
119
|
} = this.props;
|
|
121
|
-
const classes = classNames(modules_02138f4a.tabs, className
|
|
120
|
+
const classes = classNames(modules_02138f4a.tabs, className);
|
|
122
121
|
const childrenArray = React.Children.toArray(children).filter(Boolean);
|
|
123
122
|
return /*#__PURE__*/React.createElement("div", {
|
|
124
123
|
className: classes,
|
|
@@ -141,7 +140,6 @@ class Tabs extends PureComponent {
|
|
|
141
140
|
}
|
|
142
141
|
|
|
143
142
|
_defineProperty(Tabs, "propTypes", {
|
|
144
|
-
theme: PropTypes.string,
|
|
145
143
|
selected: PropTypes.string,
|
|
146
144
|
className: PropTypes.string,
|
|
147
145
|
href: PropTypes.string,
|
|
@@ -156,8 +154,4 @@ _defineProperty(Tabs, "defaultProps", {
|
|
|
156
154
|
|
|
157
155
|
});
|
|
158
156
|
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
const ThemedTabs = withTheme()(Tabs);
|
|
162
|
-
|
|
163
|
-
export { ThemedTabs as default };
|
|
157
|
+
export { Tabs as default };
|
package/dist/tabs/smart-tabs.js
CHANGED
|
@@ -2,10 +2,9 @@ import { _ as _defineProperty, a as _extends } from '../_helpers/_rollupPluginBa
|
|
|
2
2
|
import React, { PureComponent } from 'react';
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
4
|
import joinDataTestAttributes from '../global/data-tests.js';
|
|
5
|
-
import
|
|
5
|
+
import Tabs from './dumb-tabs.js';
|
|
6
6
|
import 'classnames';
|
|
7
7
|
import '../global/memoize.js';
|
|
8
|
-
import '../global/theme.js';
|
|
9
8
|
import '../_helpers/tabs.js';
|
|
10
9
|
import './tab-link.js';
|
|
11
10
|
import '../link/link.js';
|
|
@@ -63,6 +62,7 @@ import '../dropdown/dropdown.js';
|
|
|
63
62
|
import '../global/typescript-utils.js';
|
|
64
63
|
import '../_helpers/anchor.js';
|
|
65
64
|
import '../button/button.js';
|
|
65
|
+
import '../global/controls-height.js';
|
|
66
66
|
import '../_helpers/button__classes.js';
|
|
67
67
|
import './collapsible-tab.js';
|
|
68
68
|
import './custom-item.js';
|
|
@@ -87,7 +87,7 @@ class SmartTabs extends PureComponent {
|
|
|
87
87
|
'data-test': dataTest,
|
|
88
88
|
...restProps
|
|
89
89
|
} = this.props;
|
|
90
|
-
return /*#__PURE__*/React.createElement(
|
|
90
|
+
return /*#__PURE__*/React.createElement(Tabs, _extends({
|
|
91
91
|
"data-test": joinDataTestAttributes('ring-smart-tabs', dataTest),
|
|
92
92
|
selected: this.state.selected,
|
|
93
93
|
onSelect: this.handleSelect
|
package/dist/tabs/tab.d.ts
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { PureComponent, ReactNode } from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
|
+
import { TabLinkProps } from './tab-link';
|
|
3
4
|
export interface TabProps {
|
|
4
5
|
title?: ReactNode | ((isSelected: boolean, collapsed: boolean | undefined) => ReactNode);
|
|
6
|
+
titleProps?: Partial<TabLinkProps>;
|
|
5
7
|
id?: string | null | undefined;
|
|
6
8
|
className?: string | null | undefined;
|
|
7
9
|
children?: ReactNode;
|
package/dist/tabs/tabs.js
CHANGED
|
@@ -7,7 +7,6 @@ import '../_helpers/_rollupPluginBabelHelpers.js';
|
|
|
7
7
|
import 'react';
|
|
8
8
|
import 'classnames';
|
|
9
9
|
import '../global/memoize.js';
|
|
10
|
-
import '../global/theme.js';
|
|
11
10
|
import '../global/data-tests.js';
|
|
12
11
|
import '../_helpers/tabs.js';
|
|
13
12
|
import './tab-link.js';
|
|
@@ -66,5 +65,6 @@ import '../dropdown/dropdown.js';
|
|
|
66
65
|
import '../global/typescript-utils.js';
|
|
67
66
|
import '../_helpers/anchor.js';
|
|
68
67
|
import '../button/button.js';
|
|
68
|
+
import '../global/controls-height.js';
|
|
69
69
|
import '../_helpers/button__classes.js';
|
|
70
70
|
import './collapsible-tab.js';
|
package/dist/tabs-ng/tabs-ng.js
CHANGED
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
import angular from 'angular';
|
|
2
2
|
import classNames from 'classnames';
|
|
3
3
|
import { m as modules_02138f4a } from '../_helpers/tabs.js';
|
|
4
|
-
import Theme from '../global/theme.js';
|
|
5
4
|
import template from './tabs-ng__template.js';
|
|
6
|
-
import '../_helpers/_rollupPluginBabelHelpers.js';
|
|
7
|
-
import 'react';
|
|
8
5
|
|
|
9
6
|
/**
|
|
10
7
|
* @name Tabs Ng
|
|
@@ -21,14 +18,12 @@ angularModule.directive('rgTabs', ["$location", "$rootScope", function rgTabsDir
|
|
|
21
18
|
tabParameter: '@',
|
|
22
19
|
tabsClass: '=',
|
|
23
20
|
control: '=?',
|
|
24
|
-
disableLocationChanging: '='
|
|
25
|
-
theme: '@?'
|
|
21
|
+
disableLocationChanging: '='
|
|
26
22
|
},
|
|
27
23
|
controller: ["$scope", function controller($scope) {
|
|
28
24
|
$scope.panes = [];
|
|
29
25
|
$scope.current = null;
|
|
30
26
|
$scope.styles = modules_02138f4a;
|
|
31
|
-
$scope.theme = $scope.theme || Theme.LIGHT;
|
|
32
27
|
|
|
33
28
|
function getTabIdFromUrl() {
|
|
34
29
|
return $location.search()[$scope.tabParameter];
|
package/dist/tag/tag.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ import React, { HTMLAttributes, PureComponent, ReactNode, RefCallback } from 're
|
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import { IconType } from '../icon/icon';
|
|
4
4
|
export interface TagRenderProps extends HTMLAttributes<HTMLElement> {
|
|
5
|
+
disabled: boolean;
|
|
5
6
|
ref: RefCallback<HTMLElement>;
|
|
6
7
|
'data-test': string;
|
|
7
8
|
}
|
package/dist/tag/tag.js
CHANGED
|
@@ -4,7 +4,7 @@ import PropTypes from 'prop-types';
|
|
|
4
4
|
import classNames from 'classnames';
|
|
5
5
|
import closeIcon from '@jetbrains/icons/close';
|
|
6
6
|
import Icon from '../icon/icon.js';
|
|
7
|
-
import
|
|
7
|
+
import { Button } from '../button/button.js';
|
|
8
8
|
import 'util-deprecate';
|
|
9
9
|
import '../icon/icon__constants.js';
|
|
10
10
|
import '../_helpers/icon.js';
|
|
@@ -12,11 +12,11 @@ import '../icon/icon__svg.js';
|
|
|
12
12
|
import '../global/memoize.js';
|
|
13
13
|
import 'focus-visible';
|
|
14
14
|
import '@jetbrains/icons/chevron-10px';
|
|
15
|
-
import '../global/theme.js';
|
|
16
15
|
import '../link/clickableLink.js';
|
|
16
|
+
import '../global/controls-height.js';
|
|
17
17
|
import '../_helpers/button__classes.js';
|
|
18
18
|
|
|
19
|
-
var modules_2f9be069 = {"unit":"8px","
|
|
19
|
+
var modules_2f9be069 = {"unit":"8px","max-height":"20px","tag":"tag_rui_1757 resetButton_rui_750f","tagAngled":"tagAngled_rui_1757","withRemove":"withRemove_rui_1757","container":"container_rui_1757","focused":"focused_rui_1757","content":"content_rui_1757 ellipsis_rui_750f","disabled":"disabled_rui_1757","remove":"remove_rui_1757","removeIcon":"removeIcon_rui_1757","icon":"icon_rui_1757","avatarContainer":"avatarContainer_rui_1757","customIcon":"customIcon_rui_1757","avatarIcon":"avatarIcon_rui_1757"};
|
|
20
20
|
|
|
21
21
|
/**
|
|
22
22
|
* @name Tag
|
|
@@ -121,7 +121,7 @@ class Tag extends PureComponent {
|
|
|
121
121
|
|
|
122
122
|
renderRemoveIcon() {
|
|
123
123
|
if (!this.props.readOnly) {
|
|
124
|
-
return /*#__PURE__*/React.createElement(
|
|
124
|
+
return /*#__PURE__*/React.createElement(Button, {
|
|
125
125
|
title: "Remove",
|
|
126
126
|
icon: closeIcon,
|
|
127
127
|
"data-test": "ring-tag-remove",
|
|
@@ -160,6 +160,7 @@ class Tag extends PureComponent {
|
|
|
160
160
|
backgroundColor,
|
|
161
161
|
color: textColor
|
|
162
162
|
},
|
|
163
|
+
disabled: this.props.disabled,
|
|
163
164
|
children: /*#__PURE__*/React.createElement(React.Fragment, null, this.renderAvatar(), this.renderCustomIcon(), this.renderImage(), /*#__PURE__*/React.createElement("span", {
|
|
164
165
|
className: modules_2f9be069.content
|
|
165
166
|
}, this.props.children))
|
|
@@ -8,13 +8,14 @@ import TagsList from '../tags-list/tags-list.js';
|
|
|
8
8
|
import Caret from '../caret/caret.js';
|
|
9
9
|
import memoize from '../global/memoize.js';
|
|
10
10
|
import rerenderHOC from '../global/rerender-hoc.js';
|
|
11
|
-
import '@jetbrains/icons/chevron-
|
|
11
|
+
import '@jetbrains/icons/chevron-down';
|
|
12
12
|
import '@jetbrains/icons/close';
|
|
13
13
|
import 'deep-equal';
|
|
14
14
|
import '../dropdown/dropdown.js';
|
|
15
15
|
import '../global/data-tests.js';
|
|
16
16
|
import '../global/typescript-utils.js';
|
|
17
17
|
import '../_helpers/anchor.js';
|
|
18
|
+
import '@jetbrains/icons/chevron-10px';
|
|
18
19
|
import '../icon/icon.js';
|
|
19
20
|
import 'util-deprecate';
|
|
20
21
|
import '../icon/icon__constants.js';
|
|
@@ -22,8 +23,8 @@ import '../_helpers/icon.js';
|
|
|
22
23
|
import '../icon/icon__svg.js';
|
|
23
24
|
import '../button/button.js';
|
|
24
25
|
import 'focus-visible';
|
|
25
|
-
import '../global/theme.js';
|
|
26
26
|
import '../link/clickableLink.js';
|
|
27
|
+
import '../global/controls-height.js';
|
|
27
28
|
import '../_helpers/button__classes.js';
|
|
28
29
|
import '../avatar/avatar.js';
|
|
29
30
|
import '../global/url.js';
|
|
@@ -71,18 +72,13 @@ import '../global/fuzzy-highlight.js';
|
|
|
71
72
|
import '../select/select__popup.js';
|
|
72
73
|
import '@jetbrains/icons/search';
|
|
73
74
|
import '../loader-inline/loader-inline.js';
|
|
74
|
-
import '../_helpers/
|
|
75
|
-
import '../global/conic-gradient.js';
|
|
76
|
-
import 'conic-gradient';
|
|
77
|
-
import '../global/supports-css.js';
|
|
78
|
-
import '../global/inject-styles.js';
|
|
79
|
-
import '../global/radial-gradient-mask.js';
|
|
75
|
+
import '../_helpers/loader-inline.js';
|
|
80
76
|
import '../shortcuts/shortcuts-hoc.js';
|
|
81
77
|
import '../text/text.js';
|
|
82
78
|
import '../_helpers/select__filter.js';
|
|
83
79
|
import '../tag/tag.js';
|
|
84
80
|
|
|
85
|
-
var modules_5aa8aaf3 = {"tagsInput":"
|
|
81
|
+
var modules_5aa8aaf3 = {"outerContainer":"outerContainer_rui_1e0b","container":"container_rui_1e0b","input":"input_rui_1e0b","tagsInput":"tagsInput_rui_25d3","tagsInputLegacyMode":"tagsInputLegacyMode_rui_25d3","tagsList":"tagsList_rui_25d3","tag":"tag_rui_25d3","tagsInputDisabled":"tagsInputDisabled_rui_25d3","underline":"underline_rui_25d3","tagsInputFocused":"tagsInputFocused_rui_25d3","tagsSelect":"tagsSelect_rui_25d3","focusUnderline":"focusUnderline_rui_25d3"};
|
|
86
82
|
|
|
87
83
|
function noop() {}
|
|
88
84
|
/**
|