@jetbrains/ring-ui-built 6.0.39 → 6.0.41
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/_helpers/heading.js +1 -1
- package/components/alert/alert.js +1 -1
- package/components/alert-service/alert-service.js +1 -1
- package/components/auth/auth.js +1 -1
- package/components/auth/auth__core.js +1 -1
- package/components/auth/down-notification.js +1 -1
- package/components/auth/iframe-flow.js +1 -1
- package/components/auth/storage.js +1 -1
- package/components/auth-dialog/auth-dialog.js +1 -1
- package/components/auth-dialog-service/auth-dialog-service.js +1 -1
- package/components/badge/badge.js +7 -0
- package/components/button/button.js +2 -2
- package/components/checkbox/checkbox.d.ts +1 -0
- package/components/checkbox/checkbox.js +3 -2
- package/components/clipboard/clipboard.js +1 -1
- package/components/confirm/confirm.js +1 -1
- package/components/confirm-service/confirm-service.js +1 -1
- package/components/data-list/data-list.js +1 -2
- package/components/data-list/data-list.mock.js +1 -0
- package/components/data-list/item.js +0 -1
- package/components/data-list/title.js +1 -1
- package/components/date-picker/date-input.js +1 -1
- package/components/date-picker/date-popup.js +1 -1
- package/components/dialog/dialog.js +1 -1
- package/components/dropdown/anchor.js +1 -0
- package/components/dropdown/dropdown.js +1 -0
- package/components/dropdown-menu/dropdown-menu.js +1 -0
- package/components/editable-heading/editable-heading.js +1 -1
- package/components/form/form.js +1 -1
- package/components/global/composeRefs.d.ts +3 -1
- package/components/global/composeRefs.js +4 -1
- package/components/global/focus-sensor-hoc.js +4 -2
- package/components/global/rerender-hoc.js +4 -2
- package/components/header/header.js +2 -1
- package/components/header/profile.js +2 -1
- package/components/header/services.js +1 -0
- package/components/header/smart-profile.js +2 -1
- package/components/header/smart-services.js +2 -1
- package/components/header/tray-icon.js +1 -1
- package/components/heading/heading.d.ts +7 -4
- package/components/heading/heading.js +39 -26
- package/components/input/input-legacy.js +1 -1
- package/components/input/input.js +1 -1
- package/components/input-size/input-size.js +1 -1
- package/components/list/list__item.js +1 -1
- package/components/login-dialog/login-dialog.js +1 -1
- package/components/login-dialog/service.js +1 -1
- package/components/message/message.js +1 -1
- package/components/pager/pager.js +2 -2
- package/components/query-assist/query-assist.js +1 -1
- package/components/select/select.d.ts +1 -0
- package/components/select/select.js +3 -2
- package/components/select/select__filter.js +1 -1
- package/components/select/select__popup.d.ts +1 -0
- package/components/select/select__popup.js +4 -3
- package/components/storage/storage.js +1 -1
- package/components/storage/storage__local.js +1 -1
- package/components/style.css +1 -1
- package/components/tab-trap/tab-trap.d.ts +9 -36
- package/components/tab-trap/tab-trap.js +144 -156
- package/components/table/row-with-focus-sensor.js +1 -2
- package/components/table/row.d.ts +1 -0
- package/components/table/row.js +3 -3
- package/components/table/smart-table.js +1 -1
- package/components/table/table.js +1 -1
- package/components/tabs/collapsible-more.js +1 -0
- package/components/tabs/collapsible-tabs.js +1 -0
- package/components/tabs/dumb-tabs.js +1 -0
- package/components/tabs/smart-tabs.js +1 -0
- package/components/tabs/tabs.js +1 -0
- package/components/tag/tag.js +9 -2
- package/components/tags-list/tags-list.js +2 -2
- package/components/text/text.d.ts +1 -0
- package/components/text/text.js +4 -2
- package/components/toggle/toggle.d.ts +1 -2
- package/components/toggle/toggle.js +15 -9
- package/components/user-agreement/service.js +1 -1
- package/components/user-agreement/user-agreement.js +1 -1
- package/components/user-card/card.js +1 -1
- package/components/user-card/smart-user-card-tooltip.js +1 -0
- package/components/user-card/tooltip.js +1 -0
- package/components/user-card/user-card.js +2 -1
- package/package.json +2 -2
@@ -4,15 +4,16 @@ import { PureComponent } from 'react';
|
|
4
4
|
import PropTypes from 'prop-types';
|
5
5
|
import classNames from 'classnames';
|
6
6
|
import joinDataTestAttributes from '../global/data-tests.js';
|
7
|
+
import ControlHelp from '../control-help/control-help.js';
|
7
8
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
8
9
|
import 'core-js/modules/es.array.concat.js';
|
9
10
|
import 'core-js/modules/es.array.reduce.js';
|
10
11
|
import 'core-js/modules/es.object.entries.js';
|
11
12
|
import 'core-js/modules/es.object.to-string.js';
|
12
13
|
|
13
|
-
var modules_331c5aa7 = {"padding":"2px","duration":"300ms","timing-function":"cubic-bezier(0.23, 1, 0.32, 1)","light":"light_rui_2ac4","toggle":"toggle_rui_21f9","switch":"switch_rui_21f9","disabled":"disabled_rui_21f9","label":"label_rui_21f9","leftLabel":"leftLabel_rui_21f9","switchWrapper":"switchWrapper_rui_21f9","input":"input_rui_21f9","size16":"size16_rui_21f9","size14":"size14_rui_21f9","size20":"size20_rui_21f9"
|
14
|
+
var modules_331c5aa7 = {"padding":"2px","duration":"300ms","timing-function":"cubic-bezier(0.23, 1, 0.32, 1)","light":"light_rui_2ac4","toggle":"toggle_rui_21f9","switch":"switch_rui_21f9","disabled":"disabled_rui_21f9","label":"label_rui_21f9","leftLabel":"leftLabel_rui_21f9","switchWrapper":"switchWrapper_rui_21f9","input":"input_rui_21f9","size16":"size16_rui_21f9","size14":"size14_rui_21f9","size20":"size20_rui_21f9"};
|
14
15
|
|
15
|
-
var _excluded = ["className", "children", "disabled", "
|
16
|
+
var _excluded = ["className", "children", "disabled", "title", "leftLabel", "size", "data-test", "help", "onTransitionEnd"];
|
16
17
|
var Size = {
|
17
18
|
Size14: modules_331c5aa7.size14,
|
18
19
|
Size16: modules_331c5aa7.size16,
|
@@ -31,12 +32,12 @@ var Toggle = /*#__PURE__*/function (_PureComponent) {
|
|
31
32
|
className = _this$props.className,
|
32
33
|
children = _this$props.children,
|
33
34
|
disabled = _this$props.disabled,
|
34
|
-
pale = _this$props.pale,
|
35
35
|
title = _this$props.title,
|
36
36
|
leftLabel = _this$props.leftLabel,
|
37
37
|
_this$props$size = _this$props.size,
|
38
38
|
size = _this$props$size === void 0 ? Size.Size16 : _this$props$size,
|
39
39
|
dataTest = _this$props['data-test'],
|
40
|
+
help = _this$props.help,
|
40
41
|
onTransitionEnd = _this$props.onTransitionEnd,
|
41
42
|
restProps = _objectWithoutProperties(_this$props, _excluded);
|
42
43
|
var classes = classNames(className, size, modules_331c5aa7.toggle, disabled && modules_331c5aa7.disabled);
|
@@ -44,9 +45,12 @@ var Toggle = /*#__PURE__*/function (_PureComponent) {
|
|
44
45
|
className: classes,
|
45
46
|
title: title,
|
46
47
|
"data-test": joinDataTestAttributes('ring-toggle', dataTest),
|
47
|
-
children: [leftLabel && /*#__PURE__*/
|
48
|
+
children: [leftLabel && /*#__PURE__*/jsxs("span", {
|
48
49
|
className: modules_331c5aa7.leftLabel,
|
49
|
-
children: leftLabel
|
50
|
+
children: [leftLabel, help && /*#__PURE__*/jsx(ControlHelp, {
|
51
|
+
className: modules_331c5aa7.help,
|
52
|
+
children: help
|
53
|
+
})]
|
50
54
|
}), /*#__PURE__*/jsxs("span", {
|
51
55
|
className: modules_331c5aa7.switchWrapper,
|
52
56
|
children: [/*#__PURE__*/jsx("input", _objectSpread2(_objectSpread2({
|
@@ -56,12 +60,15 @@ var Toggle = /*#__PURE__*/function (_PureComponent) {
|
|
56
60
|
disabled: disabled,
|
57
61
|
className: modules_331c5aa7.input
|
58
62
|
})), /*#__PURE__*/jsx("span", {
|
59
|
-
className:
|
63
|
+
className: modules_331c5aa7.switch,
|
60
64
|
onTransitionEnd: onTransitionEnd
|
61
65
|
})]
|
62
|
-
}), children && /*#__PURE__*/
|
66
|
+
}), children && /*#__PURE__*/jsxs("div", {
|
63
67
|
className: modules_331c5aa7.label,
|
64
|
-
children: children
|
68
|
+
children: [children, help && /*#__PURE__*/jsx(ControlHelp, {
|
69
|
+
className: modules_331c5aa7.help,
|
70
|
+
children: help
|
71
|
+
})]
|
65
72
|
})]
|
66
73
|
});
|
67
74
|
}
|
@@ -76,7 +83,6 @@ _defineProperty(Toggle, "propTypes", {
|
|
76
83
|
defaultChecked: PropTypes.bool,
|
77
84
|
checked: PropTypes.bool,
|
78
85
|
disabled: PropTypes.bool,
|
79
|
-
pale: PropTypes.bool,
|
80
86
|
onChange: PropTypes.func,
|
81
87
|
onTransitionEnd: PropTypes.func,
|
82
88
|
size: PropTypes.oneOf(Object.values(Size)),
|
@@ -54,7 +54,7 @@ import 'core-js/modules/es.set.js';
|
|
54
54
|
import 'core-js/modules/es.string.split.js';
|
55
55
|
import 'core-js/modules/web.dom-collections.for-each.js';
|
56
56
|
import '../button/button.js';
|
57
|
-
import '@jetbrains/icons/chevron-
|
57
|
+
import '@jetbrains/icons/chevron-down';
|
58
58
|
import '../_helpers/button__classes.js';
|
59
59
|
import '../_helpers/theme.js';
|
60
60
|
import '../popup/popup.target.js';
|
@@ -49,7 +49,7 @@ import '../global/linear-function.js';
|
|
49
49
|
import '../_helpers/island.js';
|
50
50
|
import 'element-resize-detector';
|
51
51
|
import '../global/schedule-raf.js';
|
52
|
-
import '@jetbrains/icons/chevron-
|
52
|
+
import '@jetbrains/icons/chevron-down';
|
53
53
|
import '../icon/icon.js';
|
54
54
|
import 'util-deprecate';
|
55
55
|
import '../icon/icon__constants.js';
|
@@ -49,7 +49,7 @@ import '@jetbrains/icons/warning';
|
|
49
49
|
import '@jetbrains/icons/close';
|
50
50
|
import '../loader-inline/loader-inline.js';
|
51
51
|
import '../button/button.js';
|
52
|
-
import '@jetbrains/icons/chevron-
|
52
|
+
import '@jetbrains/icons/chevron-down';
|
53
53
|
import '../global/controls-height.js';
|
54
54
|
import '../_helpers/button__classes.js';
|
55
55
|
import 'util-deprecate';
|
@@ -28,6 +28,7 @@ import 'core-js/modules/es.map.js';
|
|
28
28
|
import 'core-js/modules/es.weak-map.js';
|
29
29
|
import 'core-js/modules/web.dom-collections.iterator.js';
|
30
30
|
import '../button/button.js';
|
31
|
+
import '@jetbrains/icons/chevron-down';
|
31
32
|
import '../link/clickableLink.js';
|
32
33
|
import '../global/controls-height.js';
|
33
34
|
import '../_helpers/button__classes.js';
|
@@ -27,6 +27,7 @@ import 'core-js/modules/es.map.js';
|
|
27
27
|
import 'core-js/modules/es.weak-map.js';
|
28
28
|
import 'core-js/modules/web.dom-collections.iterator.js';
|
29
29
|
import '../button/button.js';
|
30
|
+
import '@jetbrains/icons/chevron-down';
|
30
31
|
import '../link/clickableLink.js';
|
31
32
|
import '../global/controls-height.js';
|
32
33
|
import '../_helpers/button__classes.js';
|
@@ -55,7 +55,7 @@ import 'core-js/modules/es.map.js';
|
|
55
55
|
import 'core-js/modules/es.weak-map.js';
|
56
56
|
import '../loader-inline/loader-inline.js';
|
57
57
|
import '../button/button.js';
|
58
|
-
import '@jetbrains/icons/chevron-
|
58
|
+
import '@jetbrains/icons/chevron-down';
|
59
59
|
import '../global/controls-height.js';
|
60
60
|
import '../_helpers/button__classes.js';
|
61
61
|
import '../_helpers/theme.js';
|
@@ -84,3 +84,4 @@ import '../i18n/i18n.js';
|
|
84
84
|
import '../dropdown/dropdown.js';
|
85
85
|
import '../global/typescript-utils.js';
|
86
86
|
import '../_helpers/anchor.js';
|
87
|
+
import '@jetbrains/icons/chevron-10px';
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@jetbrains/ring-ui-built",
|
3
|
-
"version": "6.0.
|
3
|
+
"version": "6.0.41",
|
4
4
|
"description": "JetBrains UI library",
|
5
5
|
"author": "JetBrains",
|
6
6
|
"license": "Apache-2.0",
|
@@ -28,7 +28,7 @@
|
|
28
28
|
},
|
29
29
|
"scripts": {
|
30
30
|
"apply-resolutions": "npx npm-force-resolutions@0.0.10",
|
31
|
-
"_postinstall": "husky
|
31
|
+
"_postinstall": "husky",
|
32
32
|
"prepare": "webpack -c .storybook/custom-header/webpack.config.js",
|
33
33
|
"prea11y-audit": "playwright install",
|
34
34
|
"a11y-audit": "test-storybook --url http://localhost:9999",
|