@jetbrains/ring-ui-built 7.0.11 → 7.0.12
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 +2 -2
- package/components/_helpers/caption.js +2 -2
- package/components/_helpers/card.js +19 -19
- package/components/_helpers/icon__svg.js +2 -2
- package/components/_helpers/input.js +11 -11
- package/components/_helpers/query-assist__suggestions.js +5 -5
- package/components/_helpers/select__filter.js +4 -4
- package/components/_helpers/services-link.js +4 -4
- package/components/_helpers/sidebar.js +6 -6
- package/components/_helpers/tab-link.js +7 -7
- package/components/_helpers/theme.js +7 -7
- package/components/_helpers/title.js +5 -5
- package/components/alert/alert.d.ts +1 -1
- package/components/alert/alert.js +7 -8
- package/components/alert/container.js +2 -2
- package/components/alert-service/alert-service.d.ts +1 -1
- package/components/alert-service/alert-service.js +7 -4
- package/components/auth/auth.js +2 -2
- package/components/auth/auth__core.js +1 -1
- package/components/auth/down-notification.js +9 -9
- package/components/auth/iframe-flow.js +2 -2
- package/components/auth/storage.js +1 -1
- package/components/auth-dialog/auth-dialog.d.ts +1 -1
- package/components/auth-dialog/auth-dialog.js +10 -10
- package/components/auth-dialog-service/auth-dialog-service.js +6 -3
- package/components/avatar/avatar.d.ts +1 -1
- package/components/avatar/avatar.js +10 -7
- package/components/avatar/fallback-avatar.d.ts +1 -1
- package/components/avatar/fallback-avatar.js +12 -12
- package/components/breadcrumbs/breadcrumbs.d.ts +1 -1
- package/components/breadcrumbs/breadcrumbs.js +2 -3
- package/components/button/button.d.ts +1 -1
- package/components/button/button.js +7 -7
- package/components/button-group/button-group.d.ts +1 -1
- package/components/button-group/button-group.js +8 -5
- package/components/button-group/caption.d.ts +1 -1
- package/components/button-group/caption.js +1 -1
- package/components/button-set/button-set.d.ts +1 -1
- package/components/button-set/button-set.js +5 -2
- package/components/button-toolbar/button-toolbar.d.ts +1 -1
- package/components/button-toolbar/button-toolbar.js +5 -2
- package/components/checkbox/checkbox.d.ts +1 -1
- package/components/checkbox/checkbox.js +15 -9
- package/components/clipboard/clipboard.js +1 -1
- package/components/code/code.d.ts +1 -1
- package/components/code/code.js +4 -4
- package/components/collapse/collapse-content.js +4 -4
- package/components/collapse/collapse-control.js +5 -2
- package/components/collapse/collapse.js +6 -3
- package/components/confirm/confirm.d.ts +1 -1
- package/components/confirm/confirm.js +11 -8
- package/components/confirm-service/confirm-service.js +3 -3
- package/components/content-layout/content-layout.d.ts +1 -1
- package/components/content-layout/content-layout.js +6 -3
- package/components/content-layout/sidebar.d.ts +1 -1
- package/components/content-layout/sidebar.js +1 -1
- package/components/contenteditable/contenteditable.d.ts +2 -2
- package/components/contenteditable/contenteditable.js +7 -5
- package/components/control-help/control-help.d.ts +1 -1
- package/components/control-help/control-help.js +2 -2
- package/components/control-label/control-label.js +2 -3
- package/components/data-list/data-list.d.ts +3 -3
- package/components/data-list/data-list.js +8 -8
- package/components/data-list/data-list.mock.d.ts +1 -1
- package/components/data-list/data-list.mock.js +58 -58
- package/components/data-list/item.d.ts +2 -2
- package/components/data-list/item.js +13 -13
- package/components/data-list/title.d.ts +1 -1
- package/components/data-list/title.js +1 -1
- package/components/date-picker/date-input.d.ts +1 -1
- package/components/date-picker/date-input.js +2 -2
- package/components/date-picker/date-picker.d.ts +1 -1
- package/components/date-picker/date-picker.js +10 -10
- package/components/date-picker/date-popup.d.ts +1 -1
- package/components/date-picker/date-popup.js +9 -9
- package/components/date-picker/day.d.ts +1 -1
- package/components/date-picker/day.js +2 -3
- package/components/date-picker/month-names.d.ts +1 -1
- package/components/date-picker/month-names.js +6 -6
- package/components/date-picker/month-slider.d.ts +1 -1
- package/components/date-picker/month-slider.js +3 -3
- package/components/date-picker/month.d.ts +1 -1
- package/components/date-picker/month.js +6 -6
- package/components/date-picker/months.d.ts +1 -1
- package/components/date-picker/months.js +6 -6
- package/components/date-picker/weekdays.d.ts +1 -1
- package/components/date-picker/weekdays.js +3 -3
- package/components/date-picker/years.d.ts +1 -1
- package/components/date-picker/years.js +3 -3
- package/components/dialog/dialog.d.ts +1 -1
- package/components/dialog/dialog.js +15 -12
- package/components/dropdown/anchor.d.ts +1 -1
- package/components/dropdown/anchor.js +1 -1
- package/components/dropdown/dropdown.d.ts +1 -1
- package/components/dropdown/dropdown.js +7 -5
- package/components/dropdown-menu/dropdown-menu.js +8 -8
- package/components/editable-heading/editable-heading.d.ts +2 -2
- package/components/editable-heading/editable-heading.js +15 -15
- package/components/error-bubble/error-bubble.d.ts +1 -1
- package/components/error-bubble/error-bubble.js +7 -4
- package/components/error-message/error-message.d.ts +1 -1
- package/components/error-message/error-message.js +9 -6
- package/components/footer/footer.js +8 -8
- package/components/global/create-stateful-context.d.ts +1 -1
- package/components/global/create-stateful-context.js +3 -3
- package/components/global/focus-sensor-hoc.js +2 -2
- package/components/global/react-dom-renderer.d.ts +1 -1
- package/components/global/react-dom-renderer.js +2 -2
- package/components/global/rerender-hoc.js +3 -3
- package/components/global/theme.js +1 -1
- package/components/grid/col.d.ts +1 -1
- package/components/grid/col.js +2 -2
- package/components/grid/grid.d.ts +1 -1
- package/components/grid/grid.js +5 -2
- package/components/grid/row.d.ts +1 -1
- package/components/grid/row.js +2 -2
- package/components/group/group.d.ts +1 -1
- package/components/group/group.js +5 -2
- package/components/header/header-icon.d.ts +1 -1
- package/components/header/header-icon.js +2 -2
- package/components/header/header.d.ts +1 -1
- package/components/header/header.js +9 -3
- package/components/header/links.d.ts +1 -1
- package/components/header/links.js +3 -2
- package/components/header/logo.d.ts +1 -1
- package/components/header/logo.js +3 -3
- package/components/header/profile.d.ts +1 -1
- package/components/header/profile.js +11 -11
- package/components/header/services-link.d.ts +1 -1
- package/components/header/services-link.js +1 -1
- package/components/header/services.d.ts +1 -1
- package/components/header/services.js +8 -8
- package/components/header/smart-profile.d.ts +1 -1
- package/components/header/smart-profile.js +2 -2
- package/components/header/smart-services.d.ts +1 -1
- package/components/header/smart-services.js +2 -2
- package/components/header/tray.d.ts +1 -1
- package/components/header/tray.js +3 -3
- package/components/heading/heading.js +9 -6
- package/components/i18n/i18n-context.js +2 -2
- package/components/icon/icon.d.ts +1 -1
- package/components/icon/icon.js +4 -4
- package/components/icon/icon__svg.d.ts +1 -1
- package/components/icon/icon__svg.js +1 -1
- package/components/icon/index.js +1 -1
- package/components/input/input.d.ts +1 -1
- package/components/input/input.js +1 -1
- package/components/island/adaptive-island-hoc.d.ts +2 -2
- package/components/island/adaptive-island-hoc.js +4 -4
- package/components/island/content.d.ts +1 -1
- package/components/island/content.js +6 -6
- package/components/island/header.d.ts +1 -1
- package/components/island/header.js +5 -5
- package/components/island/island.d.ts +3 -3
- package/components/island/island.js +5 -2
- package/components/link/clickableLink.d.ts +1 -1
- package/components/link/clickableLink.js +2 -2
- package/components/link/link.d.ts +4 -4
- package/components/link/link.js +3 -3
- package/components/list/list.d.ts +6 -6
- package/components/list/list.js +20 -21
- package/components/list/list__custom.d.ts +1 -1
- package/components/list/list__custom.js +2 -2
- package/components/list/list__hint.d.ts +1 -1
- package/components/list/list__hint.js +6 -2
- package/components/list/list__item.d.ts +1 -1
- package/components/list/list__item.js +19 -15
- package/components/list/list__link.d.ts +1 -1
- package/components/list/list__link.js +6 -2
- package/components/list/list__separator.d.ts +1 -1
- package/components/list/list__separator.js +2 -2
- package/components/list/list__title.d.ts +1 -1
- package/components/list/list__title.js +4 -4
- package/components/list/list__users-groups-source.js +1 -1
- package/components/loader/loader.d.ts +1 -1
- package/components/loader/loader.js +8 -2
- package/components/loader-inline/loader-inline.d.ts +1 -1
- package/components/loader-inline/loader-inline.js +7 -4
- package/components/loader-screen/loader-screen.d.ts +1 -1
- package/components/loader-screen/loader-screen.js +6 -3
- package/components/login-dialog/login-dialog.d.ts +1 -1
- package/components/login-dialog/login-dialog.js +6 -6
- package/components/login-dialog/service.js +3 -3
- package/components/markdown/markdown.d.ts +1 -1
- package/components/markdown/markdown.js +5 -2
- package/components/message/message.d.ts +1 -1
- package/components/message/message.js +14 -11
- package/components/old-browsers-message/white-list.js +2 -2
- package/components/pager/pager.d.ts +5 -5
- package/components/pager/pager.js +21 -21
- package/components/panel/panel.d.ts +1 -1
- package/components/panel/panel.js +5 -2
- package/components/popup/popup.d.ts +2 -2
- package/components/popup/popup.js +9 -11
- package/components/popup/popup.target.js +3 -3
- package/components/popup-menu/popup-menu.d.ts +1 -1
- package/components/popup-menu/popup-menu.js +6 -3
- package/components/progress-bar/progress-bar.d.ts +1 -1
- package/components/progress-bar/progress-bar.js +6 -3
- package/components/query-assist/query-assist.d.ts +2 -2
- package/components/query-assist/query-assist.js +20 -22
- package/components/query-assist/query-assist__suggestions.d.ts +1 -1
- package/components/query-assist/query-assist__suggestions.js +1 -1
- package/components/radio/radio.d.ts +1 -1
- package/components/radio/radio.js +5 -2
- package/components/radio/radio__item.d.ts +1 -1
- package/components/radio/radio__item.js +8 -8
- package/components/scrollable-section/scrollable-section.d.ts +1 -1
- package/components/scrollable-section/scrollable-section.js +2 -2
- package/components/select/select.d.ts +3 -3
- package/components/select/select.js +35 -34
- package/components/select/select__filter.d.ts +1 -1
- package/components/select/select__filter.js +1 -1
- package/components/select/select__popup.d.ts +7 -7
- package/components/select/select__popup.js +18 -18
- package/components/shortcuts/shortcuts-hoc.d.ts +2 -2
- package/components/shortcuts/shortcuts-hoc.js +3 -3
- package/components/slider/slider.js +9 -10
- 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.js +5 -5
- package/components/table/cell.d.ts +1 -1
- package/components/table/cell.js +2 -2
- package/components/table/disable-hover-hoc.d.ts +2 -2
- package/components/table/disable-hover-hoc.js +2 -2
- package/components/table/header-cell.d.ts +1 -1
- package/components/table/header-cell.js +5 -5
- package/components/table/header.d.ts +2 -2
- package/components/table/header.js +8 -8
- package/components/table/multitable.d.ts +1 -1
- package/components/table/multitable.js +2 -2
- package/components/table/row-with-focus-sensor.d.ts +1 -1
- package/components/table/row-with-focus-sensor.js +2 -2
- package/components/table/row.d.ts +1 -1
- package/components/table/row.js +12 -12
- package/components/table/selection-shortcuts-hoc.js +2 -2
- package/components/table/simple-table.d.ts +1 -1
- package/components/table/simple-table.js +2 -2
- package/components/table/smart-table.d.ts +1 -1
- package/components/table/smart-table.js +2 -2
- package/components/table/table.d.ts +4 -4
- package/components/table/table.js +17 -14
- package/components/tabs/collapsible-more.d.ts +3 -3
- package/components/tabs/collapsible-more.js +8 -8
- package/components/tabs/collapsible-tab.d.ts +1 -1
- package/components/tabs/collapsible-tab.js +3 -3
- package/components/tabs/collapsible-tabs.d.ts +2 -2
- package/components/tabs/collapsible-tabs.js +6 -6
- package/components/tabs/dumb-tabs.d.ts +2 -3
- package/components/tabs/dumb-tabs.js +6 -6
- package/components/tabs/smart-tabs.d.ts +1 -1
- package/components/tabs/smart-tabs.js +2 -2
- package/components/tabs/tab-link.d.ts +1 -1
- package/components/tabs/tab-link.js +1 -1
- package/components/tabs/tab.d.ts +1 -1
- package/components/tabs/tab.js +2 -2
- package/components/tabs/tabs.js +1 -1
- package/components/tag/tag.d.ts +5 -5
- package/components/tag/tag.js +12 -9
- package/components/tags-input/tags-input.d.ts +1 -1
- package/components/tags-input/tags-input.js +5 -5
- package/components/tags-list/tags-list.d.ts +2 -2
- package/components/tags-list/tags-list.js +2 -2
- package/components/text/text.d.ts +1 -1
- package/components/text/text.js +2 -2
- package/components/toggle/toggle.d.ts +1 -1
- package/components/toggle/toggle.js +9 -9
- package/components/tooltip/tooltip.d.ts +1 -1
- package/components/tooltip/tooltip.js +6 -6
- package/components/user-agreement/service.js +7 -7
- package/components/user-agreement/user-agreement.d.ts +1 -1
- package/components/user-agreement/user-agreement.js +13 -13
- package/components/user-card/card.d.ts +1 -1
- package/components/user-card/card.js +1 -1
- package/components/user-card/smart-user-card-tooltip.d.ts +2 -2
- package/components/user-card/smart-user-card-tooltip.js +4 -4
- package/components/user-card/tooltip.d.ts +2 -2
- package/components/user-card/tooltip.js +4 -4
- package/components/user-card/user-card.js +1 -1
- package/package.json +2 -2
@@ -1,4 +1,5 @@
|
|
1
1
|
import { a as _objectWithoutProperties, b as _objectSpread2 } from '../_helpers/_rollupPluginBabelHelpers.js';
|
2
|
+
import { jsx } from 'react/jsx-runtime';
|
2
3
|
import { memo, useMemo } from 'react';
|
3
4
|
import classNames from 'classnames';
|
4
5
|
import { Directions } from '../popup/popup.consts.js';
|
@@ -8,7 +9,6 @@ import { A as Anchor } from '../_helpers/anchor.js';
|
|
8
9
|
import { s as styles } from '../_helpers/tab-link.js';
|
9
10
|
import getTabTitles from './collapsible-tab.js';
|
10
11
|
import { CustomItem } from './custom-item.js';
|
11
|
-
import { jsx } from 'react/jsx-runtime';
|
12
12
|
import 'core-js/modules/web.dom-collections.iterator.js';
|
13
13
|
import '../popup/popup.js';
|
14
14
|
import 'core-js/modules/es.regexp.exec.js';
|
@@ -76,7 +76,7 @@ const AnchorLink = _ref => {
|
|
76
76
|
} = _ref,
|
77
77
|
restProps = _objectWithoutProperties(_ref, _excluded);
|
78
78
|
const classnames = classNames(styles.title, hasActiveChildren && styles.selected, hasActiveChildren && moreActiveClassName, moreClassName);
|
79
|
-
return
|
79
|
+
return jsx(Anchor, _objectSpread2(_objectSpread2({
|
80
80
|
title: 'More',
|
81
81
|
className: classnames
|
82
82
|
}, restProps), {}, {
|
@@ -130,12 +130,12 @@ const MoreButton = /*#__PURE__*/memo(_ref2 => {
|
|
130
130
|
}
|
131
131
|
return popupItems;
|
132
132
|
}, [items, morePopupBeforeEnd, morePopupItemClassName, selected]);
|
133
|
-
const popupAnchor = useMemo(() =>
|
133
|
+
const popupAnchor = useMemo(() => jsx(AnchorLink, {
|
134
134
|
moreClassName: moreClassName,
|
135
135
|
moreActiveClassName: moreActiveClassName,
|
136
136
|
hasActiveChildren: hasActiveChild
|
137
137
|
}), [hasActiveChild, moreActiveClassName, moreClassName]);
|
138
|
-
const popup = useMemo(() =>
|
138
|
+
const popup = useMemo(() => jsx(PopupMenu, {
|
139
139
|
directions: morePopupDirections,
|
140
140
|
className: morePopupClassName,
|
141
141
|
onSelect: onSelectHandler,
|
@@ -144,9 +144,9 @@ const MoreButton = /*#__PURE__*/memo(_ref2 => {
|
|
144
144
|
if (items.length === 0) {
|
145
145
|
return null;
|
146
146
|
}
|
147
|
-
return
|
147
|
+
return jsx("div", {
|
148
148
|
className: classNames(styles.title, moreClassName, hasActiveChild && moreActiveClassName),
|
149
|
-
children:
|
149
|
+
children: jsx(Dropdown, {
|
150
150
|
hoverMode: true,
|
151
151
|
anchor: popupAnchor,
|
152
152
|
children: popup
|
@@ -160,9 +160,9 @@ const FakeMoreButton = /*#__PURE__*/memo(_ref3 => {
|
|
160
160
|
moreActiveClassName,
|
161
161
|
hasActiveChildren
|
162
162
|
} = _ref3;
|
163
|
-
return
|
163
|
+
return jsx("div", {
|
164
164
|
className: classNames(styles.moreButton, styles.title),
|
165
|
-
children:
|
165
|
+
children: jsx(AnchorLink, {
|
166
166
|
moreClassName: moreClassName,
|
167
167
|
moreActiveClassName: moreActiveClassName,
|
168
168
|
hasActiveChildren: hasActiveChildren,
|
@@ -13,5 +13,5 @@ export interface TabTitlesParams extends Omit<Partial<TabTitleProps>, 'selected'
|
|
13
13
|
selected?: string | undefined;
|
14
14
|
onSelect?: ((key: string) => ((e: React.MouseEvent<HTMLAnchorElement>) => void) | undefined) | undefined;
|
15
15
|
}
|
16
|
-
declare const getTabTitles: ({ items, selected, collapsed, onSelect, ...props }: TabTitlesParams) =>
|
16
|
+
declare const getTabTitles: ({ items, selected, collapsed, onSelect, ...props }: TabTitlesParams) => import("react/jsx-runtime").JSX.Element[];
|
17
17
|
export default getTabTitles;
|
@@ -1,9 +1,9 @@
|
|
1
1
|
import { a as _objectWithoutProperties, b as _objectSpread2 } from '../_helpers/_rollupPluginBabelHelpers.js';
|
2
|
+
import { jsx } from 'react/jsx-runtime';
|
2
3
|
import * as React from 'react';
|
3
4
|
import classNames from 'classnames';
|
4
5
|
import { s as styles, T as TabLink } from '../_helpers/tab-link.js';
|
5
6
|
import { CustomItem } from './custom-item.js';
|
6
|
-
import { jsx } from 'react/jsx-runtime';
|
7
7
|
import '../link/link.js';
|
8
8
|
import '../global/data-tests.js';
|
9
9
|
import 'core-js/modules/web.dom-collections.iterator.js';
|
@@ -39,7 +39,7 @@ const TabTitle = /*#__PURE__*/React.memo(function TabTitle(_ref) {
|
|
39
39
|
[collapsedClassName !== null && collapsedClassName !== void 0 ? collapsedClassName : '']: collapsed,
|
40
40
|
[collapsedActiveClassName !== null && collapsedActiveClassName !== void 0 ? collapsedActiveClassName : '']: collapsed && selected
|
41
41
|
});
|
42
|
-
return
|
42
|
+
return jsx(TabLink, _objectSpread2({
|
43
43
|
title: title,
|
44
44
|
isSelected: selected,
|
45
45
|
active: true,
|
@@ -62,7 +62,7 @@ const getTabTitles = _ref2 => {
|
|
62
62
|
return items.map((tab, index) => {
|
63
63
|
const key = tab.props.id || String(index);
|
64
64
|
const isSelected = selected === key;
|
65
|
-
return
|
65
|
+
return jsx(TabTitle, _objectSpread2({
|
66
66
|
handleSelect: onSelect(key),
|
67
67
|
selected: isSelected,
|
68
68
|
child: tab,
|
@@ -11,6 +11,6 @@ export interface CollapsibleTabsProps {
|
|
11
11
|
initialVisibleItems?: number | null | undefined;
|
12
12
|
morePopupBeforeEnd?: ReactNode;
|
13
13
|
}
|
14
|
-
export declare const CollapsibleTabs: ({ children, selected, onSelect, moreClassName, moreActiveClassName, morePopupClassName, morePopupBeforeEnd, morePopupItemClassName, initialVisibleItems, }: CollapsibleTabsProps) => import("react").JSX.Element;
|
15
|
-
declare const _default: import("react").MemoExoticComponent<({ children, selected, onSelect, moreClassName, moreActiveClassName, morePopupClassName, morePopupBeforeEnd, morePopupItemClassName, initialVisibleItems, }: CollapsibleTabsProps) => import("react").JSX.Element>;
|
14
|
+
export declare const CollapsibleTabs: ({ children, selected, onSelect, moreClassName, moreActiveClassName, morePopupClassName, morePopupBeforeEnd, morePopupItemClassName, initialVisibleItems, }: CollapsibleTabsProps) => import("react/jsx-runtime").JSX.Element;
|
15
|
+
declare const _default: import("react").MemoExoticComponent<({ children, selected, onSelect, moreClassName, moreActiveClassName, morePopupClassName, morePopupBeforeEnd, morePopupItemClassName, initialVisibleItems, }: CollapsibleTabsProps) => import("react/jsx-runtime").JSX.Element>;
|
16
16
|
export default _default;
|
@@ -1,13 +1,13 @@
|
|
1
1
|
import 'core-js/modules/es.regexp.exec.js';
|
2
2
|
import 'core-js/modules/es.string.replace.js';
|
3
3
|
import 'core-js/modules/web.dom-collections.iterator.js';
|
4
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
4
5
|
import { memo, useState, useRef, useMemo, useCallback, useEffect } from 'react';
|
5
6
|
import classNames from 'classnames';
|
6
7
|
import fastdom from 'fastdom';
|
7
8
|
import { s as styles } from '../_helpers/tab-link.js';
|
8
9
|
import { MoreButton, FakeMoreButton } from './collapsible-more.js';
|
9
10
|
import getTabTitles from './collapsible-tab.js';
|
10
|
-
import { jsxs, jsx } from 'react/jsx-runtime';
|
11
11
|
import '../_helpers/_rollupPluginBabelHelpers.js';
|
12
12
|
import '../link/link.js';
|
13
13
|
import '../global/data-tests.js';
|
@@ -257,11 +257,11 @@ const CollapsibleTabs = _ref => {
|
|
257
257
|
}, [adjustTabs]);
|
258
258
|
const isAdjusted = elements.lastVisibleIndex !== null && preparedElements.ready === true || initialVisibleItems;
|
259
259
|
const className = classNames(styles.titles, styles.autoCollapse, isAdjusted && styles.adjusted);
|
260
|
-
return
|
260
|
+
return jsxs("div", {
|
261
261
|
className: styles.autoCollapseContainer,
|
262
|
-
children: [
|
262
|
+
children: [jsxs("div", {
|
263
263
|
className: classNames(className, styles.rendered),
|
264
|
-
children: [visibleElements,
|
264
|
+
children: [visibleElements, jsx(MoreButton, {
|
265
265
|
moreClassName: moreClassName,
|
266
266
|
moreActiveClassName: moreActiveClassName,
|
267
267
|
morePopupClassName: morePopupClassName,
|
@@ -271,10 +271,10 @@ const CollapsibleTabs = _ref => {
|
|
271
271
|
selected: selected,
|
272
272
|
onSelect: onSelect
|
273
273
|
})]
|
274
|
-
}),
|
274
|
+
}), jsxs("div", {
|
275
275
|
ref: measureRef,
|
276
276
|
className: classNames(className, styles.measure),
|
277
|
-
children: [childrenToMeasure,
|
277
|
+
children: [childrenToMeasure, jsx(FakeMoreButton, {
|
278
278
|
hasActiveChildren: preparedElements.hidden.some(item => item.props.alwaysHidden && item.props.id === selected),
|
279
279
|
moreClassName: moreClassName,
|
280
280
|
moreActiveClassName: moreActiveClassName
|
@@ -1,5 +1,4 @@
|
|
1
1
|
import { PureComponent, ReactElement } from 'react';
|
2
|
-
import * as React from 'react';
|
3
2
|
import { CollapsibleTabsProps } from './collapsible-tabs';
|
4
3
|
import { CustomItem } from './custom-item';
|
5
4
|
import { TabProps } from './tab';
|
@@ -15,8 +14,8 @@ export interface TabsProps extends Omit<CollapsibleTabsProps, 'onSelect' | 'chil
|
|
15
14
|
}
|
16
15
|
declare class Tabs extends PureComponent<TabsProps> {
|
17
16
|
handleSelect: (arg: string) => () => void | undefined;
|
18
|
-
getTabTitle: (child: ReactElement<TabProps>, i: number) =>
|
19
|
-
render():
|
17
|
+
getTabTitle: (child: ReactElement<TabProps>, i: number) => import("react/jsx-runtime").JSX.Element;
|
18
|
+
render(): import("react/jsx-runtime").JSX.Element;
|
20
19
|
}
|
21
20
|
export type TabsAttrs = JSX.LibraryManagedAttributes<typeof Tabs, TabsProps>;
|
22
21
|
export default Tabs;
|
@@ -1,5 +1,6 @@
|
|
1
1
|
import { _ as _defineProperty, b as _objectSpread2, a as _objectWithoutProperties } from '../_helpers/_rollupPluginBabelHelpers.js';
|
2
2
|
import 'core-js/modules/web.dom-collections.iterator.js';
|
3
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
3
4
|
import * as React from 'react';
|
4
5
|
import { PureComponent } from 'react';
|
5
6
|
import classNames from 'classnames';
|
@@ -8,7 +9,6 @@ import joinDataTestAttributes from '../global/data-tests.js';
|
|
8
9
|
import { s as styles, T as TabLink } from '../_helpers/tab-link.js';
|
9
10
|
import CollapsibleTabs from './collapsible-tabs.js';
|
10
11
|
import { CustomItem } from './custom-item.js';
|
11
|
-
import { jsx, jsxs } from 'react/jsx-runtime';
|
12
12
|
import '../link/link.js';
|
13
13
|
import '../link/clickableLink.js';
|
14
14
|
import '../_helpers/link.js';
|
@@ -101,7 +101,7 @@ class Tabs extends PureComponent {
|
|
101
101
|
const titleClasses = classNames(styles.title, className, isSelected && activeClassName, {
|
102
102
|
[styles.selected]: isSelected
|
103
103
|
});
|
104
|
-
return
|
104
|
+
return jsx(TabLink, _objectSpread2({
|
105
105
|
title: title,
|
106
106
|
isSelected: isSelected,
|
107
107
|
href: href,
|
@@ -125,17 +125,17 @@ class Tabs extends PureComponent {
|
|
125
125
|
restProps = _objectWithoutProperties(_this$props2, _excluded);
|
126
126
|
const classes = classNames(styles.tabs, className);
|
127
127
|
const childrenArray = React.Children.toArray(children).filter(Boolean);
|
128
|
-
return
|
128
|
+
return jsxs("div", {
|
129
129
|
className: classes,
|
130
130
|
"data-test": joinDataTestAttributes('ring-dumb-tabs', dataTest),
|
131
|
-
children: [autoCollapse === true ?
|
131
|
+
children: [autoCollapse === true ? jsx(CollapsibleTabs, _objectSpread2(_objectSpread2({}, restProps), {}, {
|
132
132
|
onSelect: onSelect != null ? this.handleSelect : undefined,
|
133
133
|
selected: selected,
|
134
134
|
children: childrenArray
|
135
|
-
})) :
|
135
|
+
})) : jsx("div", {
|
136
136
|
className: styles.titles,
|
137
137
|
children: childrenArray.map(this.getTabTitle)
|
138
|
-
}),
|
138
|
+
}), jsx("div", {
|
139
139
|
className: classNames(tabContainerClassName),
|
140
140
|
children: childrenArray.find((_ref, i) => {
|
141
141
|
let {
|
@@ -1,8 +1,8 @@
|
|
1
1
|
import { _ as _defineProperty, a as _objectWithoutProperties, b as _objectSpread2 } from '../_helpers/_rollupPluginBabelHelpers.js';
|
2
|
+
import { jsx } from 'react/jsx-runtime';
|
2
3
|
import { PureComponent } from 'react';
|
3
4
|
import joinDataTestAttributes from '../global/data-tests.js';
|
4
5
|
import Tabs from './dumb-tabs.js';
|
5
|
-
import { jsx } from 'react/jsx-runtime';
|
6
6
|
import 'core-js/modules/web.dom-collections.iterator.js';
|
7
7
|
import 'classnames';
|
8
8
|
import '../global/memoize.js';
|
@@ -91,7 +91,7 @@ class SmartTabs extends PureComponent {
|
|
91
91
|
'data-test': dataTest
|
92
92
|
} = _this$props,
|
93
93
|
restProps = _objectWithoutProperties(_this$props, _excluded);
|
94
|
-
return
|
94
|
+
return jsx(Tabs, _objectSpread2(_objectSpread2({
|
95
95
|
"data-test": joinDataTestAttributes('ring-smart-tabs', dataTest),
|
96
96
|
selected: this.state.selected,
|
97
97
|
onSelect: this.handleSelect
|
@@ -5,6 +5,6 @@ export interface TabLinkProps extends Omit<LinkProps, 'title' | 'children'> {
|
|
5
5
|
collapsed?: boolean;
|
6
6
|
title: ReactNode | ((isSelected: boolean, collapsed: boolean | undefined) => ReactNode);
|
7
7
|
}
|
8
|
-
declare function TabLink({ isSelected, title, collapsed, ...restProps }: TabLinkProps): import("react").JSX.Element;
|
8
|
+
declare function TabLink({ isSelected, title, collapsed, ...restProps }: TabLinkProps): import("react/jsx-runtime").JSX.Element;
|
9
9
|
declare const _default: import("react").MemoExoticComponent<typeof TabLink>;
|
10
10
|
export default _default;
|
@@ -1,8 +1,8 @@
|
|
1
1
|
import '../_helpers/_rollupPluginBabelHelpers.js';
|
2
|
+
import 'react/jsx-runtime';
|
2
3
|
import 'react';
|
3
4
|
import '../link/link.js';
|
4
5
|
export { T as default } from '../_helpers/tab-link.js';
|
5
|
-
import 'react/jsx-runtime';
|
6
6
|
import 'classnames';
|
7
7
|
import '../global/data-tests.js';
|
8
8
|
import 'core-js/modules/web.dom-collections.iterator.js';
|
package/components/tabs/tab.d.ts
CHANGED
package/components/tabs/tab.js
CHANGED
@@ -1,7 +1,7 @@
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
1
2
|
import { PureComponent } from 'react';
|
2
3
|
import classNames from 'classnames';
|
3
4
|
import joinDataTestAttributes from '../global/data-tests.js';
|
4
|
-
import { jsx } from 'react/jsx-runtime';
|
5
5
|
import 'core-js/modules/web.dom-collections.iterator.js';
|
6
6
|
|
7
7
|
class Tab extends PureComponent {
|
@@ -11,7 +11,7 @@ class Tab extends PureComponent {
|
|
11
11
|
children,
|
12
12
|
'data-test': dataTest
|
13
13
|
} = this.props;
|
14
|
-
return
|
14
|
+
return jsx("div", {
|
15
15
|
"data-test": joinDataTestAttributes('ring-tab', dataTest),
|
16
16
|
className: classNames(className),
|
17
17
|
children: children
|
package/components/tabs/tabs.js
CHANGED
@@ -4,6 +4,7 @@ export { default as SmartTabs } from './smart-tabs.js';
|
|
4
4
|
export { default as Tab } from './tab.js';
|
5
5
|
import '../_helpers/_rollupPluginBabelHelpers.js';
|
6
6
|
import 'core-js/modules/web.dom-collections.iterator.js';
|
7
|
+
import 'react/jsx-runtime';
|
7
8
|
import 'react';
|
8
9
|
import 'classnames';
|
9
10
|
import '../global/memoize.js';
|
@@ -11,7 +12,6 @@ import '../global/data-tests.js';
|
|
11
12
|
import '../_helpers/tab-link.js';
|
12
13
|
import '../link/link.js';
|
13
14
|
import '../link/clickableLink.js';
|
14
|
-
import 'react/jsx-runtime';
|
15
15
|
import '../_helpers/link.js';
|
16
16
|
import './collapsible-tabs.js';
|
17
17
|
import 'core-js/modules/es.regexp.exec.js';
|
package/components/tag/tag.d.ts
CHANGED
@@ -36,11 +36,11 @@ export default class Tag extends PureComponent<TagProps> {
|
|
36
36
|
tagNode?: HTMLElement | null;
|
37
37
|
tagRef: (el: HTMLElement | null) => void;
|
38
38
|
setDocumentClickListener(setListener: boolean): void;
|
39
|
-
renderCustomIcon():
|
39
|
+
renderCustomIcon(): import("react/jsx-runtime").JSX.Element | null;
|
40
40
|
private _renderImageElement;
|
41
|
-
renderImage():
|
42
|
-
renderAvatar():
|
43
|
-
renderRemoveIcon():
|
44
|
-
render():
|
41
|
+
renderImage(): import("react/jsx-runtime").JSX.Element | null;
|
42
|
+
renderAvatar(): import("react/jsx-runtime").JSX.Element | null;
|
43
|
+
renderRemoveIcon(): import("react/jsx-runtime").JSX.Element | null;
|
44
|
+
render(): import("react/jsx-runtime").JSX.Element;
|
45
45
|
}
|
46
46
|
export type TagAttrs = JSX.LibraryManagedAttributes<typeof Tag, TagProps>;
|
package/components/tag/tag.js
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
import { _ as _defineProperty, b as _objectSpread2 } from '../_helpers/_rollupPluginBabelHelpers.js';
|
2
2
|
import 'core-js/modules/web.dom-collections.iterator.js';
|
3
|
+
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
3
4
|
import { PureComponent } from 'react';
|
4
5
|
import classNames from 'classnames';
|
5
6
|
import closeIcon from '@jetbrains/icons/close-12px';
|
6
7
|
import Icon from '../icon/icon.js';
|
7
8
|
import { Button } from '../button/button.js';
|
8
9
|
import { ControlsHeight } from '../global/controls-height.js';
|
9
|
-
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
10
10
|
import 'util-deprecate';
|
11
11
|
import '../icon/icon__constants.js';
|
12
12
|
import '../_helpers/icon__svg.js';
|
@@ -20,6 +20,9 @@ import '../_helpers/button__classes.js';
|
|
20
20
|
|
21
21
|
var styles = {"tag":"tag_rui_2f49 resetButton_rui_8bff","withRemove":"withRemove_rui_2f49","container":"container_rui_2f49","focused":"focused_rui_2f49","content":"content_rui_2f49 ellipsis_rui_8bff","disabled":"disabled_rui_2f49","remove":"remove_rui_2f49","removeIcon":"removeIcon_rui_2f49","icon":"icon_rui_2f49","avatarContainer":"avatarContainer_rui_2f49","customIcon":"customIcon_rui_2f49","avatarIcon":"avatarIcon_rui_2f49"};
|
22
22
|
|
23
|
+
/**
|
24
|
+
* @name Tag
|
25
|
+
*/
|
23
26
|
class Tag extends PureComponent {
|
24
27
|
constructor() {
|
25
28
|
super(...arguments);
|
@@ -65,7 +68,7 @@ class Tag extends PureComponent {
|
|
65
68
|
}
|
66
69
|
renderCustomIcon() {
|
67
70
|
if (this.props.rgTagIcon) {
|
68
|
-
return
|
71
|
+
return jsx(Icon, {
|
69
72
|
className: styles.icon,
|
70
73
|
title: this.props.rgTagTitle,
|
71
74
|
glyph: this.props.rgTagIcon
|
@@ -78,7 +81,7 @@ class Tag extends PureComponent {
|
|
78
81
|
[styles.customIcon]: this.props.icon,
|
79
82
|
[styles.avatarIcon]: avatarSrc
|
80
83
|
});
|
81
|
-
return
|
84
|
+
return jsx("img", {
|
82
85
|
alt: avatarSrc ? 'Avatar' : 'Icon',
|
83
86
|
className: classes,
|
84
87
|
src: avatarSrc || this.props.icon
|
@@ -92,7 +95,7 @@ class Tag extends PureComponent {
|
|
92
95
|
}
|
93
96
|
renderAvatar() {
|
94
97
|
if (this.props.avatar) {
|
95
|
-
return
|
98
|
+
return jsx("span", {
|
96
99
|
className: styles.avatarContainer,
|
97
100
|
children: this._renderImageElement(this.props.avatar)
|
98
101
|
});
|
@@ -101,7 +104,7 @@ class Tag extends PureComponent {
|
|
101
104
|
}
|
102
105
|
renderRemoveIcon() {
|
103
106
|
if (!this.props.readOnly && this.props.onRemove) {
|
104
|
-
return
|
107
|
+
return jsx(Button, {
|
105
108
|
title: "Remove",
|
106
109
|
icon: closeIcon,
|
107
110
|
"data-test": "ring-tag-remove",
|
@@ -127,7 +130,7 @@ class Tag extends PureComponent {
|
|
127
130
|
textColor,
|
128
131
|
render
|
129
132
|
} = this.props;
|
130
|
-
return
|
133
|
+
return jsxs("span", {
|
131
134
|
className: styles.container,
|
132
135
|
children: [render({
|
133
136
|
'data-test': 'ring-tag',
|
@@ -139,8 +142,8 @@ class Tag extends PureComponent {
|
|
139
142
|
color: textColor
|
140
143
|
},
|
141
144
|
disabled: this.props.disabled,
|
142
|
-
children:
|
143
|
-
children: [this.renderAvatar(), this.renderCustomIcon(), this.renderImage(),
|
145
|
+
children: jsxs(Fragment, {
|
146
|
+
children: [this.renderAvatar(), this.renderCustomIcon(), this.renderImage(), jsx("span", {
|
144
147
|
className: styles.content,
|
145
148
|
children: this.props.children
|
146
149
|
})]
|
@@ -154,7 +157,7 @@ _defineProperty(Tag, "defaultProps", {
|
|
154
157
|
readOnly: false,
|
155
158
|
disabled: false,
|
156
159
|
focused: false,
|
157
|
-
render: props =>
|
160
|
+
render: props => jsx("button", _objectSpread2({
|
158
161
|
type: "button"
|
159
162
|
}, props))
|
160
163
|
});
|
@@ -106,7 +106,7 @@ export default class TagsInput extends PureComponent<TagsInputProps, TagsInputSt
|
|
106
106
|
handleTagCreation: (label: string) => void;
|
107
107
|
select?: Select | null;
|
108
108
|
selectRef: (el: Select | null) => void;
|
109
|
-
render():
|
109
|
+
render(): import("react/jsx-runtime").JSX.Element;
|
110
110
|
}
|
111
111
|
export declare const RerenderableTagsInput: React.ForwardRefExoticComponent<TagsInputProps & React.RefAttributes<TagsInput>>;
|
112
112
|
export type TagsInputAttrs = JSX.LibraryManagedAttributes<typeof TagsInput, TagsInputProps>;
|
@@ -1,5 +1,6 @@
|
|
1
1
|
import { _ as _defineProperty } from '../_helpers/_rollupPluginBabelHelpers.js';
|
2
2
|
import 'core-js/modules/web.dom-collections.iterator.js';
|
3
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
3
4
|
import { PureComponent } from 'react';
|
4
5
|
import classNames from 'classnames';
|
5
6
|
import getEventKey from '../global/get-event-key.js';
|
@@ -12,7 +13,6 @@ import { S as Size, i as inputStyles } from '../_helpers/input.js';
|
|
12
13
|
import { ControlsHeightContext } from '../global/controls-height.js';
|
13
14
|
import getUID from '../global/get-uid.js';
|
14
15
|
import { ControlLabel } from '../control-label/control-label.js';
|
15
|
-
import { jsxs, jsx } from 'react/jsx-runtime';
|
16
16
|
import 'core-js/modules/es.regexp.exec.js';
|
17
17
|
import 'core-js/modules/es.string.replace.js';
|
18
18
|
import 'core-js/modules/es.string.trim.js';
|
@@ -341,19 +341,19 @@ class TagsInput extends PureComponent {
|
|
341
341
|
[styles.tagsInputDisabled]: disabled,
|
342
342
|
[styles.tagsInputFocused]: focused
|
343
343
|
}, this.props.className);
|
344
|
-
return
|
344
|
+
return jsxs("div", {
|
345
345
|
// it transfers focus to input
|
346
346
|
role: "presentation",
|
347
347
|
className: classes,
|
348
348
|
onKeyDown: this.handleKeyDown,
|
349
349
|
onClick: this.clickHandler,
|
350
350
|
ref: this.nodeRef,
|
351
|
-
children: [label &&
|
351
|
+
children: [label && jsx(ControlLabel, {
|
352
352
|
htmlFor: this.id,
|
353
353
|
disabled: disabled,
|
354
354
|
type: labelType,
|
355
355
|
children: label
|
356
|
-
}),
|
356
|
+
}), jsx(TagsList, {
|
357
357
|
tags: tags,
|
358
358
|
activeIndex: activeIndex,
|
359
359
|
disabled: disabled,
|
@@ -363,7 +363,7 @@ class TagsInput extends PureComponent {
|
|
363
363
|
tagClassName: styles.tag,
|
364
364
|
handleClick: this.handleClick,
|
365
365
|
customTagComponent: this.props.customTagComponent,
|
366
|
-
children:
|
366
|
+
children: jsx(Select, {
|
367
367
|
id: this.id,
|
368
368
|
ref: this.selectRef,
|
369
369
|
size: Select.Size.AUTO,
|
@@ -27,8 +27,8 @@ export default class TagsList<T extends TagType> extends Component<TagsListProps
|
|
27
27
|
handleClick: () => typeof noop;
|
28
28
|
handleRemove: () => typeof noop;
|
29
29
|
};
|
30
|
-
renderTag(tag: T, focusTag: boolean):
|
31
|
-
render():
|
30
|
+
renderTag(tag: T, focusTag: boolean): import("react/jsx-runtime").JSX.Element;
|
31
|
+
render(): import("react/jsx-runtime").JSX.Element;
|
32
32
|
}
|
33
33
|
export type TagsListAttrs<T extends TagType = TagType> = JSX.LibraryManagedAttributes<typeof TagsList, TagsListProps<T>>;
|
34
34
|
export {};
|
@@ -1,8 +1,8 @@
|
|
1
1
|
import { _ as _defineProperty, b as _objectSpread2, a as _objectWithoutProperties } from '../_helpers/_rollupPluginBabelHelpers.js';
|
2
|
+
import { jsxs } from 'react/jsx-runtime';
|
2
3
|
import { Component, createElement } from 'react';
|
3
4
|
import classNames from 'classnames';
|
4
5
|
import Tag from '../tag/tag.js';
|
5
|
-
import { jsxs } from 'react/jsx-runtime';
|
6
6
|
import 'core-js/modules/web.dom-collections.iterator.js';
|
7
7
|
import '@jetbrains/icons/close-12px';
|
8
8
|
import '../icon/icon.js';
|
@@ -57,7 +57,7 @@ class TagsList extends Component {
|
|
57
57
|
props = _objectWithoutProperties(_this$props, _excluded);
|
58
58
|
const classes = classNames('ring-js-shortcuts', className);
|
59
59
|
const tagsList = (this.props.tags || []).map((tag, index) => this.renderTag(tag, this.props.activeIndex === index));
|
60
|
-
return
|
60
|
+
return jsxs("div", _objectSpread2(_objectSpread2({
|
61
61
|
"data-test": "ring-tags-list",
|
62
62
|
className: classes
|
63
63
|
}, props), {}, {
|
@@ -12,6 +12,6 @@ declare const TextSize: Record<string, TextSize>;
|
|
12
12
|
*/
|
13
13
|
export default class Text extends Component<TextProps> {
|
14
14
|
static Size: Record<string, TextSize>;
|
15
|
-
render(): import("react").JSX.Element;
|
15
|
+
render(): import("react/jsx-runtime").JSX.Element;
|
16
16
|
}
|
17
17
|
export {};
|
package/components/text/text.js
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
import { _ as _defineProperty, a as _objectWithoutProperties, b as _objectSpread2 } from '../_helpers/_rollupPluginBabelHelpers.js';
|
2
|
+
import { jsx } from 'react/jsx-runtime';
|
2
3
|
import { Component } from 'react';
|
3
4
|
import classNames from 'classnames';
|
4
|
-
import { jsx } from 'react/jsx-runtime';
|
5
5
|
|
6
6
|
var styles = {"text":"text_rui_6f30","sizeS":"sizeS_rui_6f30","sizeM":"sizeM_rui_6f30","sizeL":"sizeL_rui_6f30","info":"info_rui_6f30","bold":"bold_rui_6f30"};
|
7
7
|
|
@@ -32,7 +32,7 @@ class Text extends Component {
|
|
32
32
|
[styles.sizeM]: size === Text.Size.M,
|
33
33
|
[styles.sizeL]: size === Text.Size.L
|
34
34
|
});
|
35
|
-
return
|
35
|
+
return jsx("span", _objectSpread2(_objectSpread2({
|
36
36
|
className: classes
|
37
37
|
}, restProps), {}, {
|
38
38
|
children: children
|
@@ -17,7 +17,7 @@ declare class Toggle extends PureComponent<ToggleProps> {
|
|
17
17
|
static defaultProps: {
|
18
18
|
size: string;
|
19
19
|
};
|
20
|
-
render(): import("react").JSX.Element;
|
20
|
+
render(): import("react/jsx-runtime").JSX.Element;
|
21
21
|
}
|
22
22
|
export type ToggleAttrs = JSX.LibraryManagedAttributes<typeof Toggle, ToggleProps>;
|
23
23
|
export default Toggle;
|
@@ -1,9 +1,9 @@
|
|
1
1
|
import { _ as _defineProperty, a as _objectWithoutProperties, b as _objectSpread2 } from '../_helpers/_rollupPluginBabelHelpers.js';
|
2
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
2
3
|
import { PureComponent } from 'react';
|
3
4
|
import classNames from 'classnames';
|
4
5
|
import joinDataTestAttributes from '../global/data-tests.js';
|
5
6
|
import ControlHelp from '../control-help/control-help.js';
|
6
|
-
import { jsxs, jsx } from 'react/jsx-runtime';
|
7
7
|
import 'core-js/modules/web.dom-collections.iterator.js';
|
8
8
|
|
9
9
|
var styles = {"toggle":"toggle_rui_773f","switch":"switch_rui_773f","disabled":"disabled_rui_773f","label":"label_rui_773f","help":"help_rui_773f","leftLabel":"leftLabel_rui_773f","switchWrapper":"switchWrapper_rui_773f","input":"input_rui_773f","size16":"size16_rui_773f","size14":"size14_rui_773f","size20":"size20_rui_773f"};
|
@@ -30,31 +30,31 @@ class Toggle extends PureComponent {
|
|
30
30
|
} = _this$props,
|
31
31
|
restProps = _objectWithoutProperties(_this$props, _excluded);
|
32
32
|
const classes = classNames(className, size, styles.toggle, disabled && styles.disabled);
|
33
|
-
return
|
33
|
+
return jsxs("label", {
|
34
34
|
className: classes,
|
35
35
|
title: title,
|
36
36
|
"data-test": joinDataTestAttributes('ring-toggle', dataTest),
|
37
|
-
children: [leftLabel &&
|
37
|
+
children: [leftLabel && jsxs("span", {
|
38
38
|
className: styles.leftLabel,
|
39
|
-
children: [leftLabel, help &&
|
39
|
+
children: [leftLabel, help && jsx(ControlHelp, {
|
40
40
|
className: styles.help,
|
41
41
|
children: help
|
42
42
|
})]
|
43
|
-
}),
|
43
|
+
}), jsxs("span", {
|
44
44
|
className: styles.switchWrapper,
|
45
|
-
children: [
|
45
|
+
children: [jsx("input", _objectSpread2(_objectSpread2({
|
46
46
|
"data-test": "ring-toggle-input"
|
47
47
|
}, restProps), {}, {
|
48
48
|
type: "checkbox",
|
49
49
|
disabled: disabled,
|
50
50
|
className: styles.input
|
51
|
-
})),
|
51
|
+
})), jsx("span", {
|
52
52
|
className: styles.switch,
|
53
53
|
onTransitionEnd: onTransitionEnd
|
54
54
|
})]
|
55
|
-
}), children &&
|
55
|
+
}), children && jsxs("div", {
|
56
56
|
className: styles.label,
|
57
|
-
children: [children, help &&
|
57
|
+
children: [children, help && jsx(ControlHelp, {
|
58
58
|
className: styles.help,
|
59
59
|
children: help
|
60
60
|
})]
|
@@ -54,7 +54,7 @@ export default class Tooltip extends Component<TooltipProps> {
|
|
54
54
|
popupRef: (el: Popup | null) => void;
|
55
55
|
onNestedTooltipShow: () => void;
|
56
56
|
onNestedTooltipHide: () => void;
|
57
|
-
render():
|
57
|
+
render(): import("react/jsx-runtime").JSX.Element;
|
58
58
|
}
|
59
59
|
export type TooltipAttrs = JSX.LibraryManagedAttributes<typeof Tooltip, TooltipProps>;
|
60
60
|
export {};
|
@@ -1,5 +1,6 @@
|
|
1
1
|
import { _ as _defineProperty, a as _objectWithoutProperties, b as _objectSpread2 } from '../_helpers/_rollupPluginBabelHelpers.js';
|
2
2
|
import 'core-js/modules/web.dom-collections.iterator.js';
|
3
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
3
4
|
import { Component, createContext } from 'react';
|
4
5
|
import classNames from 'classnames';
|
5
6
|
import Popup from '../popup/popup.js';
|
@@ -7,7 +8,6 @@ import { Listeners } from '../global/dom.js';
|
|
7
8
|
import joinDataTestAttributes from '../global/data-tests.js';
|
8
9
|
import scheduleRAF from '../global/schedule-raf.js';
|
9
10
|
import { T as Theme, a as ThemeProvider } from '../_helpers/theme.js';
|
10
|
-
import { jsx, jsxs } from 'react/jsx-runtime';
|
11
11
|
import 'core-js/modules/es.regexp.exec.js';
|
12
12
|
import 'core-js/modules/es.string.replace.js';
|
13
13
|
import 'react-dom';
|
@@ -159,20 +159,20 @@ class Tooltip extends Component {
|
|
159
159
|
onNestedTooltipShow,
|
160
160
|
onNestedTooltipHide
|
161
161
|
} = this;
|
162
|
-
return
|
162
|
+
return jsx(TooltipContext.Provider, {
|
163
163
|
value: {
|
164
164
|
onNestedTooltipShow,
|
165
165
|
onNestedTooltipHide
|
166
166
|
},
|
167
|
-
children:
|
167
|
+
children: jsxs("span", _objectSpread2(_objectSpread2(_objectSpread2({}, ariaProps), restProps), {}, {
|
168
168
|
ref: this.containerRef,
|
169
169
|
"data-test": joinDataTestAttributes('ring-tooltip', dataTest),
|
170
170
|
"data-test-title": typeof title === 'string' ? title : undefined,
|
171
|
-
children: [children,
|
171
|
+
children: [children, jsx(ThemeProvider, {
|
172
172
|
theme: theme,
|
173
173
|
passToPopups: true,
|
174
|
-
WrapperComponent: props =>
|
175
|
-
children:
|
174
|
+
WrapperComponent: props => jsx("span", _objectSpread2({}, props)),
|
175
|
+
children: jsx(Popup, _objectSpread2(_objectSpread2({
|
176
176
|
trapFocus: false,
|
177
177
|
anchorElement: this.containerNode,
|
178
178
|
hidden: !this.state.showPopup || this.state.showNestedPopup,
|