@jetbrains/ring-ui-built 7.0.0-beta.14 → 7.0.0-beta.16
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/card.js +8 -5
- package/components/alert/alert.js +0 -1
- package/components/alert-service/alert-service.js +0 -1
- package/components/auth/auth.js +0 -1
- package/components/auth/auth__core.js +0 -1
- package/components/auth/down-notification.js +0 -1
- package/components/auth/iframe-flow.js +0 -1
- package/components/auth/storage.js +0 -1
- package/components/auth-dialog/auth-dialog.js +0 -1
- package/components/auth-dialog-service/auth-dialog-service.js +0 -1
- package/components/button-group/button-group.js +0 -1
- package/components/button-set/button-set.js +0 -1
- package/components/button-toolbar/button-toolbar.js +0 -1
- package/components/clipboard/clipboard.js +0 -1
- package/components/collapse/collapse-content.js +0 -1
- package/components/collapse/collapse-control.js +0 -1
- package/components/confirm/confirm.js +0 -1
- package/components/confirm-service/confirm-service.js +0 -1
- package/components/data-list/data-list.js +0 -1
- package/components/data-list/data-list.mock.js +17 -10
- package/components/data-list/item.js +0 -1
- package/components/date-picker/date-picker.js +0 -1
- package/components/date-picker/date-popup.js +0 -1
- package/components/dialog/dialog.js +0 -1
- package/components/dropdown/dropdown.js +0 -1
- package/components/dropdown-menu/dropdown-menu.js +0 -1
- package/components/error-bubble/error-bubble.js +0 -1
- package/components/error-message/error-message.js +0 -1
- package/components/footer/footer.js +0 -1
- package/components/global/compose.js +0 -2
- package/components/global/data-tests.js +0 -1
- package/components/global/theme.js +0 -1
- package/components/grid/grid.js +0 -1
- package/components/grid/row.js +0 -1
- package/components/header/header.js +0 -1
- package/components/header/profile.js +0 -1
- package/components/header/services-link.js +0 -1
- package/components/header/services.js +0 -1
- package/components/header/smart-profile.js +0 -1
- package/components/header/smart-services.js +0 -1
- package/components/island/island.js +0 -1
- package/components/link/link.js +0 -1
- package/components/list/list.js +0 -1
- package/components/list/list__custom.js +0 -1
- package/components/list/list__item.js +0 -1
- package/components/list/list__link.js +0 -1
- package/components/list/list__users-groups-source.js +0 -1
- package/components/loader/loader.js +0 -1
- package/components/loader-inline/loader-inline.js +0 -1
- package/components/loader-screen/loader-screen.js +0 -1
- package/components/login-dialog/login-dialog.js +0 -1
- package/components/login-dialog/service.js +0 -1
- package/components/message/message.js +0 -1
- 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 +0 -1
- package/components/permissions/permissions.js +0 -1
- package/components/permissions/permissions__cache.js +0 -1
- package/components/popup/popup.js +0 -1
- package/components/popup-menu/popup-menu.js +0 -1
- package/components/query-assist/query-assist.js +0 -1
- package/components/query-assist/query-assist__suggestions.js +0 -1
- package/components/select/select.js +0 -1
- package/components/select/select__filter.js +0 -1
- package/components/select/select__popup.js +0 -1
- package/components/storage/storage.js +0 -1
- package/components/storage/storage__local.js +0 -1
- package/components/style.css +1 -1
- package/components/table/cell.js +0 -1
- package/components/table/header-cell.js +0 -1
- package/components/table/header.js +0 -1
- package/components/table/row-with-focus-sensor.js +0 -1
- package/components/table/row.js +0 -1
- package/components/table/simple-table.js +0 -1
- package/components/table/smart-table.js +0 -1
- package/components/table/table.js +0 -1
- package/components/tabs/collapsible-more.js +0 -1
- package/components/tabs/collapsible-tab.js +0 -1
- package/components/tabs/collapsible-tabs.js +0 -1
- package/components/tabs/dumb-tabs.js +0 -1
- 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 +2 -3
- package/components/tags-input/tags-input.js +0 -1
- package/components/tags-list/tags-list.d.ts +2 -2
- package/components/tags-list/tags-list.js +2 -2
- package/components/toggle/toggle.js +0 -1
- package/components/tooltip/tooltip.js +0 -1
- package/components/user-agreement/service.js +0 -1
- package/components/user-agreement/user-agreement.js +0 -1
- package/components/user-card/card.js +3 -2
- package/components/user-card/smart-user-card-tooltip.js +3 -2
- package/components/user-card/tooltip.js +3 -2
- package/components/user-card/user-card.js +3 -2
- package/package.json +1 -1
- package/components/_helpers/badge.js +0 -3
- package/components/badge/badge.d.ts +0 -14
- package/components/badge/badge.js +0 -40
package/components/table/cell.js
CHANGED
@@ -4,7 +4,6 @@ import classNames from 'classnames';
|
|
4
4
|
import joinDataTestAttributes from '../global/data-tests.js';
|
5
5
|
import { s as style } from '../_helpers/table.js';
|
6
6
|
import { jsx } from 'react/jsx-runtime';
|
7
|
-
import 'core-js/modules/es.array.reduce.js';
|
8
7
|
import 'core-js/modules/web.dom-collections.iterator.js';
|
9
8
|
|
10
9
|
class Cell extends PureComponent {
|
@@ -14,7 +14,6 @@ import '../_helpers/icon__svg.js';
|
|
14
14
|
import 'core-js/modules/es.regexp.exec.js';
|
15
15
|
import 'core-js/modules/es.string.replace.js';
|
16
16
|
import '../global/memoize.js';
|
17
|
-
import 'core-js/modules/es.array.reduce.js';
|
18
17
|
|
19
18
|
const _excluded = ["className", "column", "onSort", "sortKey", "sortOrder", "data-test"];
|
20
19
|
class HeaderCell extends PureComponent {
|
@@ -22,7 +22,6 @@ import '../control-help/control-help.js';
|
|
22
22
|
import '@jetbrains/icons/unsorted-10px';
|
23
23
|
import '@jetbrains/icons/chevron-10px';
|
24
24
|
import '../global/data-tests.js';
|
25
|
-
import 'core-js/modules/es.array.reduce.js';
|
26
25
|
|
27
26
|
class Header extends PureComponent {
|
28
27
|
constructor() {
|
@@ -37,7 +37,6 @@ import 'combokeys';
|
|
37
37
|
import '../global/sniffer.js';
|
38
38
|
import 'sniffr';
|
39
39
|
import '../global/data-tests.js';
|
40
|
-
import 'core-js/modules/es.array.reduce.js';
|
41
40
|
import '../tab-trap/tab-trap.js';
|
42
41
|
import '../popup/position.js';
|
43
42
|
import 'core-js/modules/es.array.sort.js';
|
package/components/table/row.js
CHANGED
@@ -42,7 +42,6 @@ import 'core-js/modules/es.array.sort.js';
|
|
42
42
|
import '../popup/popup.consts.js';
|
43
43
|
import '../popup/popup.target.js';
|
44
44
|
import '../_helpers/theme.js';
|
45
|
-
import 'core-js/modules/es.array.reduce.js';
|
46
45
|
import 'memoize-one';
|
47
46
|
|
48
47
|
const _excluded = ["item", "columns", "selectable", "selected", "showFocus", "draggable", "alwaysShowDragHandle", "dragHandleTitle", "level", "collapsible", "parentCollapsible", "collapsed", "onCollapse", "onExpand", "showDisabledSelection", "onSelect", "checkboxTooltip", "innerRef", "focused", "autofocus", "onFocusReset", "onFocusRestore", "onHover", "className", "metaColumnClassName", "data-test"];
|
@@ -19,7 +19,6 @@ import '../global/sniffer.js';
|
|
19
19
|
import 'sniffr';
|
20
20
|
import '../loader/loader.js';
|
21
21
|
import '../global/data-tests.js';
|
22
|
-
import 'core-js/modules/es.array.reduce.js';
|
23
22
|
import '../loader/loader__core.js';
|
24
23
|
import '../global/dom.js';
|
25
24
|
import './header.js';
|
@@ -18,7 +18,6 @@ import '../global/sniffer.js';
|
|
18
18
|
import 'sniffr';
|
19
19
|
import '../loader/loader.js';
|
20
20
|
import '../global/data-tests.js';
|
21
|
-
import 'core-js/modules/es.array.reduce.js';
|
22
21
|
import '../loader/loader__core.js';
|
23
22
|
import '../global/dom.js';
|
24
23
|
import './header.js';
|
@@ -21,7 +21,6 @@ import 'combokeys';
|
|
21
21
|
import '../global/sniffer.js';
|
22
22
|
import 'sniffr';
|
23
23
|
import '../global/data-tests.js';
|
24
|
-
import 'core-js/modules/es.array.reduce.js';
|
25
24
|
import '../loader/loader__core.js';
|
26
25
|
import '../global/dom.js';
|
27
26
|
import '../checkbox/checkbox.js';
|
@@ -25,7 +25,6 @@ import 'combokeys';
|
|
25
25
|
import '../global/sniffer.js';
|
26
26
|
import 'sniffr';
|
27
27
|
import '../global/data-tests.js';
|
28
|
-
import 'core-js/modules/es.array.reduce.js';
|
29
28
|
import '../tab-trap/tab-trap.js';
|
30
29
|
import '../popup/position.js';
|
31
30
|
import 'core-js/modules/es.array.sort.js';
|
@@ -6,7 +6,6 @@ import { CustomItem } from './custom-item.js';
|
|
6
6
|
import { jsx } from 'react/jsx-runtime';
|
7
7
|
import '../link/link.js';
|
8
8
|
import '../global/data-tests.js';
|
9
|
-
import 'core-js/modules/es.array.reduce.js';
|
10
9
|
import 'core-js/modules/web.dom-collections.iterator.js';
|
11
10
|
import '../link/clickableLink.js';
|
12
11
|
import '../_helpers/link.js';
|
@@ -9,7 +9,6 @@ import { s as styles, T as TabLink } from '../_helpers/tab-link.js';
|
|
9
9
|
import CollapsibleTabs from './collapsible-tabs.js';
|
10
10
|
import { CustomItem } from './custom-item.js';
|
11
11
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
12
|
-
import 'core-js/modules/es.array.reduce.js';
|
13
12
|
import '../link/link.js';
|
14
13
|
import '../link/clickableLink.js';
|
15
14
|
import '../_helpers/link.js';
|
@@ -3,7 +3,6 @@ import { PureComponent } from 'react';
|
|
3
3
|
import joinDataTestAttributes from '../global/data-tests.js';
|
4
4
|
import Tabs from './dumb-tabs.js';
|
5
5
|
import { jsx } from 'react/jsx-runtime';
|
6
|
-
import 'core-js/modules/es.array.reduce.js';
|
7
6
|
import 'core-js/modules/web.dom-collections.iterator.js';
|
8
7
|
import 'classnames';
|
9
8
|
import '../global/memoize.js';
|
@@ -5,7 +5,6 @@ export { T as default } from '../_helpers/tab-link.js';
|
|
5
5
|
import 'react/jsx-runtime';
|
6
6
|
import 'classnames';
|
7
7
|
import '../global/data-tests.js';
|
8
|
-
import 'core-js/modules/es.array.reduce.js';
|
9
8
|
import 'core-js/modules/web.dom-collections.iterator.js';
|
10
9
|
import '../link/clickableLink.js';
|
11
10
|
import '../_helpers/link.js';
|
package/components/tabs/tab.js
CHANGED
@@ -2,7 +2,6 @@ import { PureComponent } from 'react';
|
|
2
2
|
import classNames from 'classnames';
|
3
3
|
import joinDataTestAttributes from '../global/data-tests.js';
|
4
4
|
import { jsx } from 'react/jsx-runtime';
|
5
|
-
import 'core-js/modules/es.array.reduce.js';
|
6
5
|
import 'core-js/modules/web.dom-collections.iterator.js';
|
7
6
|
|
8
7
|
class Tab extends PureComponent {
|
package/components/tabs/tabs.js
CHANGED
package/components/tag/tag.d.ts
CHANGED
@@ -7,7 +7,7 @@ export interface TagRenderProps extends HTMLAttributes<HTMLElement> {
|
|
7
7
|
'data-test': string;
|
8
8
|
}
|
9
9
|
export interface TagProps {
|
10
|
-
onRemove
|
10
|
+
onRemove?: ((event: React.MouseEvent<HTMLElement>) => void) | null;
|
11
11
|
onClick: (event: React.MouseEvent<HTMLElement>) => void;
|
12
12
|
readOnly: boolean;
|
13
13
|
disabled: boolean;
|
package/components/tag/tag.js
CHANGED
@@ -99,7 +99,7 @@ class Tag extends PureComponent {
|
|
99
99
|
return null;
|
100
100
|
}
|
101
101
|
renderRemoveIcon() {
|
102
|
-
if (!this.props.readOnly) {
|
102
|
+
if (!this.props.readOnly && this.props.onRemove) {
|
103
103
|
return /*#__PURE__*/jsx(Button, {
|
104
104
|
title: "Remove",
|
105
105
|
icon: closeIcon,
|
@@ -119,7 +119,7 @@ class Tag extends PureComponent {
|
|
119
119
|
const classes = classNames('ring-js-shortcuts', styles.tag, {
|
120
120
|
[styles.focused]: this.state.focused,
|
121
121
|
[styles.disabled]: this.props.disabled,
|
122
|
-
[styles.withRemove]: !this.props.readOnly
|
122
|
+
[styles.withRemove]: !this.props.readOnly && this.props.onRemove
|
123
123
|
}, this.props.className);
|
124
124
|
const {
|
125
125
|
backgroundColor,
|
@@ -149,7 +149,6 @@ class Tag extends PureComponent {
|
|
149
149
|
}
|
150
150
|
}
|
151
151
|
_defineProperty(Tag, "defaultProps", {
|
152
|
-
onRemove: () => {},
|
153
152
|
onClick: () => {},
|
154
153
|
readOnly: false,
|
155
154
|
disabled: false,
|
@@ -13,7 +13,6 @@ import { ControlsHeightContext } from '../global/controls-height.js';
|
|
13
13
|
import getUID from '../global/get-uid.js';
|
14
14
|
import { ControlLabel } from '../control-label/control-label.js';
|
15
15
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
16
|
-
import 'core-js/modules/es.array.reduce.js';
|
17
16
|
import 'core-js/modules/es.regexp.exec.js';
|
18
17
|
import 'core-js/modules/es.string.replace.js';
|
19
18
|
import 'core-js/modules/es.string.trim.js';
|
@@ -24,8 +24,8 @@ export default class TagsList<T extends TagType> extends Component<TagsListProps
|
|
24
24
|
customTagComponent: null;
|
25
25
|
canNotBeEmpty: boolean;
|
26
26
|
disabled: boolean;
|
27
|
-
handleClick: typeof noop;
|
28
|
-
handleRemove: typeof noop;
|
27
|
+
handleClick: () => typeof noop;
|
28
|
+
handleRemove: () => typeof noop;
|
29
29
|
};
|
30
30
|
renderTag(tag: T, focusTag: boolean): React.JSX.Element;
|
31
31
|
render(): React.JSX.Element;
|
@@ -68,8 +68,8 @@ _defineProperty(TagsList, "defaultProps", {
|
|
68
68
|
customTagComponent: null,
|
69
69
|
canNotBeEmpty: false,
|
70
70
|
disabled: false,
|
71
|
-
handleClick: noop,
|
72
|
-
handleRemove: noop
|
71
|
+
handleClick: () => noop,
|
72
|
+
handleRemove: () => noop
|
73
73
|
});
|
74
74
|
|
75
75
|
export { TagsList as default };
|
@@ -4,7 +4,6 @@ import classNames from 'classnames';
|
|
4
4
|
import joinDataTestAttributes from '../global/data-tests.js';
|
5
5
|
import ControlHelp from '../control-help/control-help.js';
|
6
6
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
7
|
-
import 'core-js/modules/es.array.reduce.js';
|
8
7
|
import 'core-js/modules/web.dom-collections.iterator.js';
|
9
8
|
|
10
9
|
var styles = {"toggle":"toggle_rui_21f9","switch":"switch_rui_21f9","disabled":"disabled_rui_21f9","label":"label_rui_21f9","help":"help_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"};
|
@@ -22,7 +22,6 @@ import '../popup/position.js';
|
|
22
22
|
import 'core-js/modules/es.array.sort.js';
|
23
23
|
import '../popup/popup.consts.js';
|
24
24
|
import '../popup/popup.target.js';
|
25
|
-
import 'core-js/modules/es.array.reduce.js';
|
26
25
|
|
27
26
|
var styles = {"tooltip":"tooltip_rui_a84d","long":"long_rui_a84d"};
|
28
27
|
|
@@ -3,7 +3,6 @@ import 'core-js/modules/web.dom-collections.iterator.js';
|
|
3
3
|
import { PureComponent } from 'react';
|
4
4
|
import classNames from 'classnames';
|
5
5
|
import Dialog from '../dialog/dialog.js';
|
6
|
-
import 'core-js/modules/es.array.reduce.js';
|
7
6
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
8
7
|
import '../_helpers/island.js';
|
9
8
|
import HeaderWrapper from '../island/header.js';
|
@@ -6,9 +6,10 @@ import '@jetbrains/icons/copy';
|
|
6
6
|
import '../avatar/avatar.js';
|
7
7
|
import '../link/link.js';
|
8
8
|
import '../clipboard/clipboard.js';
|
9
|
-
import '../
|
9
|
+
import '../tag/tag.js';
|
10
10
|
import '../icon/icon.js';
|
11
11
|
import '../i18n/i18n-context.js';
|
12
|
+
import '../tooltip/tooltip.js';
|
12
13
|
export { U as default } from '../_helpers/card.js';
|
13
14
|
import 'react/jsx-runtime';
|
14
15
|
import '../icon/icon__constants.js';
|
@@ -19,7 +20,6 @@ import '../global/dom.js';
|
|
19
20
|
import '../avatar/fallback-avatar.js';
|
20
21
|
import '../global/get-uid.js';
|
21
22
|
import '../global/data-tests.js';
|
22
|
-
import 'core-js/modules/es.array.reduce.js';
|
23
23
|
import '../link/clickableLink.js';
|
24
24
|
import '../_helpers/link.js';
|
25
25
|
import '../alert-service/alert-service.js';
|
@@ -53,4 +53,5 @@ import 'core-js/modules/es.array.sort.js';
|
|
53
53
|
import '../popup/popup.consts.js';
|
54
54
|
import '../alert/container.js';
|
55
55
|
import '../clipboard/clipboard-fallback.js';
|
56
|
+
import '@jetbrains/icons/close-12px';
|
56
57
|
import '../i18n/i18n.js';
|
@@ -7,7 +7,6 @@ import { s as styles } from '../_helpers/card.js';
|
|
7
7
|
import { jsx } from 'react/jsx-runtime';
|
8
8
|
import 'classnames';
|
9
9
|
import '../global/data-tests.js';
|
10
|
-
import 'core-js/modules/es.array.reduce.js';
|
11
10
|
import '../dropdown/dropdown.js';
|
12
11
|
import '../global/typescript-utils.js';
|
13
12
|
import '../_helpers/anchor.js';
|
@@ -56,9 +55,11 @@ import '@jetbrains/icons/close';
|
|
56
55
|
import '../_helpers/theme.js';
|
57
56
|
import '../alert/container.js';
|
58
57
|
import '../clipboard/clipboard-fallback.js';
|
59
|
-
import '../
|
58
|
+
import '../tag/tag.js';
|
59
|
+
import '@jetbrains/icons/close-12px';
|
60
60
|
import '../i18n/i18n-context.js';
|
61
61
|
import '../i18n/i18n.js';
|
62
|
+
import '../tooltip/tooltip.js';
|
62
63
|
|
63
64
|
const _excluded = ["children", "userDataSource"];
|
64
65
|
class SmartUserCardTooltip extends Component {
|
@@ -7,7 +7,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"];
|
@@ -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,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,40 +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 joinDataTestAttributes from '../global/data-tests.js';
|
5
|
-
import { s as style } from '../_helpers/badge.js';
|
6
|
-
import { jsx } from 'react/jsx-runtime';
|
7
|
-
import 'core-js/modules/es.array.reduce.js';
|
8
|
-
import 'core-js/modules/web.dom-collections.iterator.js';
|
9
|
-
|
10
|
-
const _excluded = ["gray", "valid", "invalid", "disabled", "className", "children", "data-test"];
|
11
|
-
class Badge extends PureComponent {
|
12
|
-
render() {
|
13
|
-
const _this$props = this.props,
|
14
|
-
{
|
15
|
-
// Modifiers
|
16
|
-
gray,
|
17
|
-
valid,
|
18
|
-
invalid,
|
19
|
-
disabled,
|
20
|
-
// Props
|
21
|
-
className,
|
22
|
-
children,
|
23
|
-
'data-test': dataTest
|
24
|
-
} = _this$props,
|
25
|
-
props = _objectWithoutProperties(_this$props, _excluded);
|
26
|
-
const classes = classNames(style.badge, className, {
|
27
|
-
[style.gray]: gray,
|
28
|
-
[style.valid]: valid,
|
29
|
-
[style.invalid]: invalid,
|
30
|
-
[style.disabled]: disabled
|
31
|
-
});
|
32
|
-
return /*#__PURE__*/jsx("span", _objectSpread2(_objectSpread2({}, props), {}, {
|
33
|
-
"data-test": joinDataTestAttributes('ring-badge', dataTest),
|
34
|
-
className: classes,
|
35
|
-
children: children
|
36
|
-
}));
|
37
|
-
}
|
38
|
-
}
|
39
|
-
|
40
|
-
export { Badge as default };
|