@jetbrains/ring-ui-built 7.0.0-beta.8 → 7.0.0
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/anchor.js +4 -4
- package/components/_helpers/button__classes.js +13 -13
- package/components/_helpers/caption.js +3 -3
- package/components/_helpers/card.js +23 -20
- package/components/_helpers/date-picker.js +2 -2
- package/components/_helpers/dialog__body-scroll-preventer.js +4 -4
- package/components/_helpers/grid.js +2 -2
- package/components/_helpers/header.js +2 -2
- package/components/_helpers/heading.js +2 -2
- package/components/_helpers/icon__svg.js +6 -6
- package/components/_helpers/input.js +14 -14
- package/components/_helpers/island.js +2 -2
- package/components/_helpers/link.js +2 -2
- package/components/_helpers/list.js +2 -2
- package/components/_helpers/query-assist__suggestions.js +7 -7
- package/components/_helpers/select__filter.js +3 -3
- package/components/_helpers/services-link.js +3 -3
- package/components/_helpers/sidebar.js +9 -9
- package/components/_helpers/tab-link.js +7 -7
- package/components/_helpers/table.js +2 -2
- package/components/_helpers/theme.js +18 -12
- package/components/_helpers/title.js +7 -7
- package/components/alert/alert.d.ts +2 -2
- package/components/alert/alert.js +12 -13
- package/components/alert/container.js +4 -4
- package/components/alert-service/alert-service.js +0 -1
- package/components/auth/auth.js +0 -1
- package/components/auth/auth__core.js +1 -2
- package/components/auth/background-flow.js +2 -2
- package/components/auth/down-notification.js +5 -6
- package/components/auth/iframe-flow.js +0 -1
- package/components/auth/storage.js +0 -1
- package/components/auth/token-validator.js +1 -1
- package/components/auth-dialog/auth-dialog.js +10 -11
- package/components/auth-dialog-service/auth-dialog-service.js +2 -3
- package/components/avatar/avatar.js +6 -6
- package/components/breadcrumbs/breadcrumbs.js +2 -2
- package/components/button/button.js +4 -4
- package/components/button/button__classes.d.ts +1 -1
- package/components/button-group/button-group.js +3 -4
- package/components/button-set/button-set.js +2 -3
- package/components/button-toolbar/button-toolbar.d.ts +1 -1
- package/components/button-toolbar/button-toolbar.js +2 -3
- package/components/checkbox/checkbox.js +8 -8
- package/components/clipboard/clipboard.js +0 -1
- package/components/code/code.d.ts +1 -1
- package/components/code/code.js +7 -7
- package/components/collapse/collapse-content.d.ts +1 -2
- package/components/collapse/collapse-content.js +25 -11
- package/components/collapse/collapse-control.js +0 -1
- package/components/confirm/confirm.d.ts +2 -2
- package/components/confirm/confirm.js +3 -4
- package/components/confirm-service/confirm-service.d.ts +1 -1
- package/components/confirm-service/confirm-service.js +1 -2
- package/components/content-layout/content-layout.js +4 -4
- package/components/contenteditable/contenteditable.d.ts +1 -1
- package/components/control-help/control-help.js +2 -2
- package/components/control-label/control-label.js +5 -5
- package/components/data-list/data-list.d.ts +2 -2
- package/components/data-list/data-list.js +6 -7
- package/components/data-list/data-list.mock.js +16 -10
- package/components/data-list/item.js +8 -9
- package/components/date-picker/date-input.js +2 -2
- package/components/date-picker/date-picker.d.ts +2 -1
- package/components/date-picker/date-picker.js +12 -12
- package/components/date-picker/date-popup.js +4 -5
- package/components/date-picker/day.js +15 -15
- package/components/date-picker/month-names.js +5 -5
- package/components/date-picker/month-slider.js +3 -3
- package/components/date-picker/month.js +3 -3
- package/components/date-picker/months.js +3 -3
- package/components/date-picker/weekdays.js +4 -4
- package/components/date-picker/years.js +5 -5
- package/components/dialog/dialog.d.ts +1 -0
- package/components/dialog/dialog.js +22 -18
- package/components/dropdown/dropdown.d.ts +2 -2
- package/components/dropdown/dropdown.js +2 -3
- package/components/dropdown-menu/dropdown-menu.js +0 -1
- package/components/editable-heading/editable-heading.js +19 -19
- package/components/error-bubble/error-bubble.js +5 -5
- package/components/error-message/error-message.js +6 -7
- package/components/footer/footer.js +9 -10
- package/components/form/form.js +2 -3
- package/components/global/compose.js +0 -2
- package/components/global/data-tests.js +0 -1
- package/components/global/theme.d.ts +4 -2
- package/components/global/theme.js +1 -2
- package/components/grid/col.js +5 -4
- package/components/grid/grid.js +5 -4
- package/components/grid/row.js +5 -5
- package/components/group/group.js +5 -3
- package/components/header/header-icon.js +4 -4
- package/components/header/header.js +3 -4
- package/components/header/links.js +2 -2
- package/components/header/logo.js +2 -2
- package/components/header/profile.d.ts +2 -2
- package/components/header/profile.js +10 -11
- package/components/header/services-link.js +0 -1
- package/components/header/services.js +7 -8
- package/components/header/smart-profile.js +0 -1
- package/components/header/smart-services.js +0 -1
- package/components/header/tray.js +3 -3
- package/components/heading/heading.js +3 -3
- package/components/http/http.d.ts +3 -3
- package/components/icon/icon.js +8 -6
- package/components/input/input-legacy.js +2 -3
- package/components/input-size/input-size.js +2 -3
- package/components/island/content.js +7 -7
- package/components/island/header.js +4 -4
- package/components/island/island.js +4 -5
- package/components/link/link.js +7 -8
- package/components/list/list.d.ts +1 -1
- package/components/list/list.js +5 -6
- package/components/list/list__custom.js +5 -6
- package/components/list/list__hint.js +2 -2
- package/components/list/list__item.js +22 -23
- package/components/list/list__link.js +5 -6
- package/components/list/list__separator.js +3 -3
- package/components/list/list__title.js +5 -5
- package/components/list/list__users-groups-source.js +0 -1
- package/components/loader/loader.js +0 -1
- package/components/loader/loader__core.js +5 -5
- package/components/loader-inline/loader-inline.js +3 -4
- package/components/loader-screen/loader-screen.js +4 -5
- package/components/login-dialog/login-dialog.js +6 -7
- package/components/login-dialog/service.js +1 -2
- package/components/markdown/markdown.d.ts +2 -2
- package/components/markdown/markdown.js +6 -6
- package/components/message/message.js +9 -10
- package/components/old-browsers-message/old-browsers-message.js +0 -1
- package/components/old-browsers-message/old-browsers-message__stop.js +0 -1
- package/components/old-browsers-message/white-list.js +2 -3
- package/components/pager/pager.js +9 -10
- package/components/panel/panel.js +2 -2
- package/components/permissions/permissions.js +0 -1
- package/components/permissions/permissions__cache.js +2 -3
- package/components/popup/popup.js +6 -7
- package/components/popup/position.js +2 -2
- package/components/popup-menu/popup-menu.js +0 -1
- package/components/progress-bar/progress-bar.d.ts +2 -2
- package/components/progress-bar/progress-bar.js +5 -5
- package/components/query-assist/query-assist.js +27 -28
- package/components/query-assist/query-assist__suggestions.js +0 -1
- package/components/radio/radio__item.js +5 -5
- package/components/scrollable-section/scrollable-section.js +6 -6
- package/components/select/select.d.ts +1 -1
- package/components/select/select.js +25 -25
- package/components/select/select__filter.js +0 -1
- package/components/select/select__popup.js +11 -12
- package/components/shortcuts/core.js +1 -1
- package/components/slider/slider.js +20 -20
- package/components/storage/storage.js +0 -1
- package/components/storage/storage__local.js +0 -1
- package/components/style.css +1 -1
- package/components/tab-trap/tab-trap.js +2 -2
- package/components/table/cell.js +2 -3
- package/components/table/header-cell.js +8 -9
- package/components/table/header.d.ts +2 -10
- package/components/table/header.js +7 -14
- package/components/table/row-with-focus-sensor.js +1 -1
- package/components/table/row.d.ts +0 -1
- package/components/table/row.js +12 -18
- package/components/table/selection.d.ts +2 -3
- package/components/table/simple-table.js +3 -3
- package/components/table/smart-table.js +1 -1
- package/components/table/table.d.ts +0 -1
- package/components/table/table.js +18 -20
- package/components/tabs/collapsible-more.d.ts +1 -1
- package/components/tabs/collapsible-more.js +6 -7
- package/components/tabs/collapsible-tab.js +4 -5
- package/components/tabs/collapsible-tabs.d.ts +2 -2
- package/components/tabs/collapsible-tabs.js +5 -6
- package/components/tabs/dumb-tabs.js +5 -6
- package/components/tabs/smart-tabs.js +0 -1
- package/components/tabs/tab-link.js +0 -1
- package/components/tabs/tab.js +0 -1
- package/components/tabs/tabs.js +0 -1
- package/components/tag/tag.d.ts +1 -1
- package/components/tag/tag.js +14 -15
- package/components/tags-input/tags-input.js +8 -9
- package/components/tags-list/tags-list.d.ts +2 -2
- package/components/tags-list/tags-list.js +2 -2
- package/components/text/text.js +7 -7
- package/components/toggle/toggle.d.ts +2 -2
- package/components/toggle/toggle.js +12 -13
- package/components/tooltip/tooltip.d.ts +4 -1
- package/components/tooltip/tooltip.js +35 -20
- package/components/user-agreement/service.js +1 -2
- package/components/user-agreement/user-agreement.js +7 -8
- package/components/user-card/card.js +3 -2
- package/components/user-card/smart-user-card-tooltip.js +5 -4
- package/components/user-card/tooltip.js +5 -4
- package/components/user-card/user-card.js +3 -2
- package/package.json +7 -6
- package/typings.d.ts +2 -4
- package/components/_helpers/badge.js +0 -3
- package/components/badge/badge.d.ts +0 -14
- package/components/badge/badge.js +0 -47
- package/components/island-legacy/content-legacy.d.ts +0 -5
- package/components/island-legacy/content-legacy.js +0 -23
- package/components/island-legacy/header-legacy.d.ts +0 -5
- package/components/island-legacy/header-legacy.js +0 -26
- package/components/island-legacy/island-legacy.d.ts +0 -7
- package/components/island-legacy/island-legacy.js +0 -25
@@ -3,11 +3,10 @@ import { Component } from 'react';
|
|
3
3
|
import classNames from 'classnames';
|
4
4
|
import Dropdown from '../dropdown/dropdown.js';
|
5
5
|
import Popup from '../popup/popup.js';
|
6
|
-
import {
|
6
|
+
import { s as styles, U as UserCard } from '../_helpers/card.js';
|
7
7
|
import { jsx } from 'react/jsx-runtime';
|
8
8
|
import 'core-js/modules/web.dom-collections.iterator.js';
|
9
9
|
import '../global/data-tests.js';
|
10
|
-
import 'core-js/modules/es.array.reduce.js';
|
11
10
|
import '../global/typescript-utils.js';
|
12
11
|
import '../_helpers/anchor.js';
|
13
12
|
import '@jetbrains/icons/chevron-10px';
|
@@ -55,9 +54,11 @@ import '../loader-inline/loader-inline.js';
|
|
55
54
|
import '../_helpers/theme.js';
|
56
55
|
import '../alert/container.js';
|
57
56
|
import '../clipboard/clipboard-fallback.js';
|
58
|
-
import '../
|
57
|
+
import '../tag/tag.js';
|
58
|
+
import '@jetbrains/icons/close-12px';
|
59
59
|
import '../i18n/i18n-context.js';
|
60
60
|
import '../i18n/i18n.js';
|
61
|
+
import '../tooltip/tooltip.js';
|
61
62
|
|
62
63
|
const _excluded = ["children", "renderUserCard", "renderNoUser", "dropdownProps", "user"],
|
63
64
|
_excluded2 = ["user"];
|
@@ -82,7 +83,7 @@ class UserCardTooltip extends Component {
|
|
82
83
|
attached: false,
|
83
84
|
children: user ? renderUserCard(_objectSpread2(_objectSpread2({}, restProps), {}, {
|
84
85
|
user,
|
85
|
-
className: classNames(
|
86
|
+
className: classNames(styles.userCardSpaced, this.props.className)
|
86
87
|
})) : renderNoUser()
|
87
88
|
})
|
88
89
|
}));
|
@@ -16,7 +16,6 @@ import '../global/get-uid.js';
|
|
16
16
|
import 'react/jsx-runtime';
|
17
17
|
import '../link/link.js';
|
18
18
|
import '../global/data-tests.js';
|
19
|
-
import 'core-js/modules/es.array.reduce.js';
|
20
19
|
import '../link/clickableLink.js';
|
21
20
|
import '../_helpers/link.js';
|
22
21
|
import '../clipboard/clipboard.js';
|
@@ -53,9 +52,11 @@ import 'core-js/modules/es.array.sort.js';
|
|
53
52
|
import '../popup/popup.consts.js';
|
54
53
|
import '../alert/container.js';
|
55
54
|
import '../clipboard/clipboard-fallback.js';
|
56
|
-
import '../
|
55
|
+
import '../tag/tag.js';
|
56
|
+
import '@jetbrains/icons/close-12px';
|
57
57
|
import '../i18n/i18n-context.js';
|
58
58
|
import '../i18n/i18n.js';
|
59
|
+
import '../tooltip/tooltip.js';
|
59
60
|
import '../dropdown/dropdown.js';
|
60
61
|
import '../global/typescript-utils.js';
|
61
62
|
import '../_helpers/anchor.js';
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@jetbrains/ring-ui-built",
|
3
|
-
"version": "7.0.0
|
3
|
+
"version": "7.0.0",
|
4
4
|
"description": "JetBrains UI library",
|
5
5
|
"author": "JetBrains",
|
6
6
|
"license": "Apache-2.0",
|
@@ -28,7 +28,8 @@
|
|
28
28
|
},
|
29
29
|
"scripts": {
|
30
30
|
"apply-resolutions": "npx npm-force-resolutions@0.0.10",
|
31
|
-
"_postinstall": "husky",
|
31
|
+
"_postinstall": "husky && npm run postinstall:gitconfig",
|
32
|
+
"postinstall:gitconfig": "git config blame.ignoreRevsFile .git-blame-ignore-revs",
|
32
33
|
"prepare": "webpack -c .storybook/custom-header/webpack.config.js",
|
33
34
|
"prea11y-audit": "playwright install",
|
34
35
|
"a11y-audit": "test-storybook --url http://localhost:9999",
|
@@ -51,8 +52,8 @@
|
|
51
52
|
"lint": "npm run lint:js . && npm run stylelint",
|
52
53
|
"prelint-ci": "echo \"##teamcity[importData type='jslint' path='eslint-report.xml']\"",
|
53
54
|
"lint-ci": "eslint --format jslint-xml . > eslint-report.xml && npm run stylelint-ci",
|
54
|
-
"stylelint-ci": "stylelint --ignore-path .
|
55
|
-
"stylelint": "stylelint --ignore-path .
|
55
|
+
"stylelint-ci": "stylelint --ignore-path .stylelintignore --custom-formatter './jslint-xml.js' '**/*.css' | xmlappend eslint-report.xml",
|
56
|
+
"stylelint": "stylelint --ignore-path .stylelintignore '**/*.css'",
|
56
57
|
"validate-tc-config": "mvn --file .teamcity/pom.xml org.jetbrains.teamcity:teamcity-configs-maven-plugin:generate -e",
|
57
58
|
"pretest-ci": "npm run lint-ci",
|
58
59
|
"typecheck": "tsc",
|
@@ -88,11 +89,11 @@
|
|
88
89
|
}
|
89
90
|
},
|
90
91
|
"dependencies": {
|
91
|
-
"@jetbrains/icons": "^4.
|
92
|
+
"@jetbrains/icons": "^4.8.0",
|
92
93
|
"change-case": "^4.1.1",
|
93
94
|
"classnames": "^2.5.1",
|
94
95
|
"combokeys": "^3.0.1",
|
95
|
-
"date-fns": "^4.
|
96
|
+
"date-fns": "^4.1.0",
|
96
97
|
"element-resize-detector": "^1.2.4",
|
97
98
|
"es6-error": "^4.1.1",
|
98
99
|
"fastdom": "^1.0.12",
|
package/typings.d.ts
CHANGED
@@ -32,12 +32,10 @@ declare module 'combokeys/test/lib/key-event' {
|
|
32
32
|
keyCode: number,
|
33
33
|
modifiers?: ('shift' | 'ctrl' | 'alt' | 'meta')[],
|
34
34
|
element?: Element,
|
35
|
-
repeat?: number
|
35
|
+
repeat?: number,
|
36
36
|
): void;
|
37
37
|
}
|
38
38
|
|
39
39
|
declare module 'scrollbar-width' {
|
40
|
-
export default function getScrollbarWidth(
|
41
|
-
recalculate?: boolean
|
42
|
-
): number | null;
|
40
|
+
export default function getScrollbarWidth(recalculate?: boolean): number | null;
|
43
41
|
}
|
@@ -1,14 +0,0 @@
|
|
1
|
-
import { PureComponent, HTMLAttributes } from 'react';
|
2
|
-
export interface BadgeProps extends HTMLAttributes<HTMLElement> {
|
3
|
-
gray?: boolean | null | undefined;
|
4
|
-
valid?: boolean | null | undefined;
|
5
|
-
invalid?: boolean | null | undefined;
|
6
|
-
disabled?: boolean | null | undefined;
|
7
|
-
'data-test'?: string | null | undefined;
|
8
|
-
}
|
9
|
-
/**
|
10
|
-
* @name Badge
|
11
|
-
*/
|
12
|
-
export default class Badge extends PureComponent<BadgeProps> {
|
13
|
-
render(): import("react").JSX.Element;
|
14
|
-
}
|
@@ -1,47 +0,0 @@
|
|
1
|
-
import { a as _objectWithoutProperties, b as _objectSpread2 } from '../_helpers/_rollupPluginBabelHelpers.js';
|
2
|
-
import { PureComponent } from 'react';
|
3
|
-
import classNames from 'classnames';
|
4
|
-
import deprecate from 'util-deprecate';
|
5
|
-
import joinDataTestAttributes from '../global/data-tests.js';
|
6
|
-
import { m as modules_6c9187df } from '../_helpers/badge.js';
|
7
|
-
import { jsx } from 'react/jsx-runtime';
|
8
|
-
import 'core-js/modules/es.array.reduce.js';
|
9
|
-
import 'core-js/modules/web.dom-collections.iterator.js';
|
10
|
-
|
11
|
-
const _excluded = ["gray", "valid", "invalid", "disabled", "className", "children", "data-test"];
|
12
|
-
const warn = deprecate(() => {}, 'Badge is deprecated and will be removed in RingUI 7.0. Use Tag instead.');
|
13
|
-
/**
|
14
|
-
* @name Badge
|
15
|
-
*/
|
16
|
-
// TODO remove in 7.0
|
17
|
-
class Badge extends PureComponent {
|
18
|
-
render() {
|
19
|
-
warn();
|
20
|
-
const _this$props = this.props,
|
21
|
-
{
|
22
|
-
// Modifiers
|
23
|
-
gray,
|
24
|
-
valid,
|
25
|
-
invalid,
|
26
|
-
disabled,
|
27
|
-
// Props
|
28
|
-
className,
|
29
|
-
children,
|
30
|
-
'data-test': dataTest
|
31
|
-
} = _this$props,
|
32
|
-
props = _objectWithoutProperties(_this$props, _excluded);
|
33
|
-
const classes = classNames(modules_6c9187df.badge, className, {
|
34
|
-
[modules_6c9187df.gray]: gray,
|
35
|
-
[modules_6c9187df.valid]: valid,
|
36
|
-
[modules_6c9187df.invalid]: invalid,
|
37
|
-
[modules_6c9187df.disabled]: disabled
|
38
|
-
});
|
39
|
-
return /*#__PURE__*/jsx("span", _objectSpread2(_objectSpread2({}, props), {}, {
|
40
|
-
"data-test": joinDataTestAttributes('ring-badge', dataTest),
|
41
|
-
className: classes,
|
42
|
-
children: children
|
43
|
-
}));
|
44
|
-
}
|
45
|
-
}
|
46
|
-
|
47
|
-
export { Badge as default };
|
@@ -1,23 +0,0 @@
|
|
1
|
-
import { a as _objectWithoutProperties, b as _objectSpread2 } from '../_helpers/_rollupPluginBabelHelpers.js';
|
2
|
-
import { PureComponent } from 'react';
|
3
|
-
import classNames from 'classnames';
|
4
|
-
import { jsx } from 'react/jsx-runtime';
|
5
|
-
|
6
|
-
const _excluded = ["children", "className"];
|
7
|
-
class Content extends PureComponent {
|
8
|
-
render() {
|
9
|
-
const _this$props = this.props,
|
10
|
-
{
|
11
|
-
children,
|
12
|
-
className
|
13
|
-
} = _this$props,
|
14
|
-
restProps = _objectWithoutProperties(_this$props, _excluded);
|
15
|
-
const classes = classNames('ring-island__content', className);
|
16
|
-
return /*#__PURE__*/jsx("div", _objectSpread2(_objectSpread2({}, restProps), {}, {
|
17
|
-
className: classes,
|
18
|
-
children: children
|
19
|
-
}));
|
20
|
-
}
|
21
|
-
}
|
22
|
-
|
23
|
-
export { Content as default };
|
@@ -1,26 +0,0 @@
|
|
1
|
-
import { a as _objectWithoutProperties, b as _objectSpread2 } from '../_helpers/_rollupPluginBabelHelpers.js';
|
2
|
-
import { PureComponent } from 'react';
|
3
|
-
import classNames from 'classnames';
|
4
|
-
import { jsx } from 'react/jsx-runtime';
|
5
|
-
|
6
|
-
const _excluded = ["children", "className"];
|
7
|
-
class Header extends PureComponent {
|
8
|
-
render() {
|
9
|
-
const _this$props = this.props,
|
10
|
-
{
|
11
|
-
children,
|
12
|
-
className
|
13
|
-
} = _this$props,
|
14
|
-
restProps = _objectWithoutProperties(_this$props, _excluded);
|
15
|
-
const classes = classNames('ring-island__header', className);
|
16
|
-
return /*#__PURE__*/jsx("div", _objectSpread2(_objectSpread2({}, restProps), {}, {
|
17
|
-
className: classes,
|
18
|
-
children: /*#__PURE__*/jsx("div", {
|
19
|
-
className: "ring-island__title",
|
20
|
-
children: children
|
21
|
-
})
|
22
|
-
}));
|
23
|
-
}
|
24
|
-
}
|
25
|
-
|
26
|
-
export { Header as default };
|
@@ -1,7 +0,0 @@
|
|
1
|
-
import { HTMLAttributes, PureComponent } from 'react';
|
2
|
-
import './island-legacy.css';
|
3
|
-
export default class Island extends PureComponent<HTMLAttributes<HTMLElement>> {
|
4
|
-
render(): import("react").JSX.Element;
|
5
|
-
}
|
6
|
-
export { default as Header } from './header-legacy';
|
7
|
-
export { default as Content } from './content-legacy';
|
@@ -1,25 +0,0 @@
|
|
1
|
-
import { a as _objectWithoutProperties, b as _objectSpread2 } from '../_helpers/_rollupPluginBabelHelpers.js';
|
2
|
-
import { PureComponent } from 'react';
|
3
|
-
import classNames from 'classnames';
|
4
|
-
import { jsx } from 'react/jsx-runtime';
|
5
|
-
export { default as Header } from './header-legacy.js';
|
6
|
-
export { default as Content } from './content-legacy.js';
|
7
|
-
|
8
|
-
const _excluded = ["children", "className"];
|
9
|
-
class Island extends PureComponent {
|
10
|
-
render() {
|
11
|
-
const _this$props = this.props,
|
12
|
-
{
|
13
|
-
children,
|
14
|
-
className
|
15
|
-
} = _this$props,
|
16
|
-
restProps = _objectWithoutProperties(_this$props, _excluded);
|
17
|
-
const classes = classNames('ring-island', className);
|
18
|
-
return /*#__PURE__*/jsx("div", _objectSpread2(_objectSpread2({}, restProps), {}, {
|
19
|
-
className: classes,
|
20
|
-
children: children
|
21
|
-
}));
|
22
|
-
}
|
23
|
-
}
|
24
|
-
|
25
|
-
export { Island as default };
|