@jetbrains/ring-ui-built 7.0.0-beta.3 → 7.0.0-beta.4
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 +0 -5
- package/components/_helpers/caption.js +1 -5
- package/components/_helpers/card.js +0 -28
- package/components/_helpers/icon__svg.js +0 -6
- package/components/_helpers/input.js +0 -21
- package/components/_helpers/select__filter.js +0 -8
- package/components/_helpers/services-link.js +1 -11
- package/components/_helpers/sidebar.js +0 -9
- package/components/_helpers/tab-link.js +0 -6
- package/components/_helpers/theme.js +1 -1
- package/components/_helpers/title.js +0 -15
- package/components/alert/alert.d.ts +7 -24
- package/components/alert/alert.js +0 -24
- package/components/alert/container.d.ts +0 -5
- package/components/alert/container.js +1 -6
- package/components/alert-service/alert-service.js +0 -1
- package/components/auth/auth.js +0 -1
- package/components/auth/auth__core.d.ts +3 -3
- package/components/auth/auth__core.js +28 -20
- package/components/auth/down-notification.js +0 -9
- package/components/auth/iframe-flow.js +0 -1
- package/components/auth/storage.js +0 -1
- package/components/auth-dialog/auth-dialog.d.ts +0 -18
- package/components/auth-dialog/auth-dialog.js +7 -25
- package/components/auth-dialog-service/auth-dialog-service.js +4 -5
- package/components/avatar/avatar.d.ts +0 -13
- package/components/avatar/avatar.js +0 -13
- package/components/avatar/fallback-avatar.d.ts +1 -10
- package/components/avatar/fallback-avatar.js +0 -6
- package/components/badge/badge.d.ts +0 -10
- package/components/badge/badge.js +1 -11
- package/components/button/button.d.ts +0 -21
- package/components/button/button.js +0 -21
- package/components/button-group/button-group.d.ts +0 -5
- package/components/button-group/button-group.js +1 -6
- package/components/button-group/caption.d.ts +0 -4
- package/components/button-group/caption.js +0 -1
- package/components/button-set/button-set.d.ts +0 -6
- package/components/button-set/button-set.js +1 -7
- package/components/button-toolbar/button-toolbar.d.ts +0 -6
- package/components/button-toolbar/button-toolbar.js +1 -7
- package/components/checkbox/checkbox.d.ts +0 -19
- package/components/checkbox/checkbox.js +0 -18
- package/components/clipboard/clipboard.js +0 -1
- package/components/code/code.d.ts +0 -12
- package/components/code/code.js +0 -12
- package/components/confirm/confirm.d.ts +0 -14
- package/components/confirm/confirm.js +10 -24
- package/components/confirm-service/confirm-service.js +0 -1
- package/components/content-layout/content-layout.d.ts +0 -7
- package/components/content-layout/content-layout.js +0 -7
- package/components/content-layout/sidebar.d.ts +0 -9
- package/components/content-layout/sidebar.js +0 -1
- package/components/contenteditable/contenteditable.d.ts +1 -22
- package/components/contenteditable/contenteditable.js +1 -16
- package/components/control-label/control-label.js +0 -6
- package/components/data-list/data-list.d.ts +0 -2
- package/components/data-list/data-list.js +2 -23
- package/components/data-list/data-list.mock.js +0 -1
- package/components/data-list/item.js +0 -26
- package/components/data-list/title.d.ts +2 -2
- package/components/data-list/title.js +0 -2
- package/components/date-picker/consts.d.ts +0 -2
- package/components/date-picker/consts.js +1 -3
- package/components/date-picker/date-input.d.ts +0 -20
- package/components/date-picker/date-input.js +0 -23
- package/components/date-picker/date-picker.d.ts +0 -29
- package/components/date-picker/date-picker.js +3 -40
- package/components/date-picker/date-popup.d.ts +0 -22
- package/components/date-picker/date-popup.js +1 -24
- package/components/date-picker/day.d.ts +0 -14
- package/components/date-picker/day.js +1 -15
- package/components/date-picker/month-names.d.ts +1 -11
- package/components/date-picker/month-names.js +2 -14
- package/components/date-picker/month-slider.d.ts +0 -9
- package/components/date-picker/month-slider.js +1 -10
- package/components/date-picker/month.d.ts +1 -9
- package/components/date-picker/month.js +1 -6
- package/components/date-picker/months.d.ts +1 -9
- package/components/date-picker/months.js +1 -6
- package/components/date-picker/weekdays.d.ts +2 -8
- package/components/date-picker/weekdays.js +0 -4
- package/components/date-picker/years.d.ts +0 -6
- package/components/date-picker/years.js +1 -7
- package/components/dialog/dialog.d.ts +0 -20
- package/components/dialog/dialog.js +2 -24
- package/components/dropdown/anchor.d.ts +1 -8
- package/components/dropdown/anchor.js +0 -1
- package/components/dropdown/dropdown.d.ts +4 -22
- package/components/dropdown/dropdown.js +0 -22
- package/components/dropdown-menu/dropdown-menu.js +9 -33
- package/components/editable-heading/editable-heading.js +0 -2
- package/components/error-bubble/error-bubble.d.ts +0 -6
- package/components/error-bubble/error-bubble.js +1 -7
- package/components/error-message/error-message.d.ts +0 -10
- package/components/error-message/error-message.js +1 -11
- package/components/footer/footer.js +0 -15
- package/components/global/create-stateful-context.d.ts +0 -4
- package/components/global/create-stateful-context.js +0 -4
- package/components/global/focus-sensor-hoc.js +7 -27
- package/components/global/react-dom-renderer.d.ts +0 -5
- package/components/global/react-dom-renderer.js +0 -5
- package/components/global/theme.d.ts +1 -0
- package/components/global/theme.js +1 -2
- package/components/grid/col.d.ts +0 -14
- package/components/grid/col.js +1 -16
- package/components/grid/grid.d.ts +0 -5
- package/components/grid/grid.js +1 -6
- package/components/grid/row.d.ts +0 -18
- package/components/grid/row.js +1 -19
- package/components/group/group.d.ts +0 -5
- package/components/group/group.js +1 -6
- package/components/header/header-icon.d.ts +0 -22
- package/components/header/header-icon.js +1 -6
- package/components/header/header.d.ts +0 -6
- package/components/header/header.js +0 -7
- package/components/header/logo.d.ts +0 -4
- package/components/header/logo.js +0 -4
- package/components/header/profile.d.ts +1 -39
- package/components/header/profile.js +1 -40
- package/components/header/services-link.d.ts +0 -10
- package/components/header/services-link.js +0 -1
- package/components/header/services.d.ts +0 -14
- package/components/header/services.js +1 -13
- package/components/header/smart-profile.d.ts +0 -9
- package/components/header/smart-profile.js +19 -28
- package/components/header/smart-services.d.ts +0 -4
- package/components/header/smart-services.js +17 -51
- package/components/header/tray.d.ts +0 -5
- package/components/header/tray.js +1 -6
- package/components/heading/heading.js +0 -6
- package/components/icon/icon.d.ts +0 -11
- package/components/icon/icon.js +0 -11
- package/components/icon/icon__svg.d.ts +0 -8
- package/components/icon/icon__svg.js +0 -1
- package/components/icon/index.js +0 -1
- package/components/input/input.js +0 -2
- package/components/island/adaptive-island-hoc.d.ts +0 -1
- package/components/island/adaptive-island-hoc.js +3 -4
- package/components/island/content.d.ts +0 -10
- package/components/island/content.js +2 -12
- package/components/island/header.js +2 -10
- package/components/island/island.d.ts +0 -9
- package/components/island/island.js +1 -9
- package/components/island-legacy/content-legacy.d.ts +0 -5
- package/components/island-legacy/content-legacy.js +1 -6
- package/components/island-legacy/header-legacy.d.ts +0 -5
- package/components/island-legacy/header-legacy.js +1 -6
- package/components/island-legacy/island-legacy.d.ts +0 -5
- package/components/island-legacy/island-legacy.js +1 -6
- package/components/link/clickableLink.d.ts +0 -9
- package/components/link/clickableLink.js +0 -9
- package/components/link/link.d.ts +0 -25
- package/components/link/link.js +3 -16
- package/components/list/list.d.ts +0 -32
- package/components/list/list.js +1 -31
- package/components/list/list__custom.js +0 -17
- package/components/list/list__hint.d.ts +0 -4
- package/components/list/list__hint.js +0 -5
- package/components/list/list__item.js +0 -33
- package/components/list/list__link.js +2 -13
- package/components/list/list__separator.js +0 -6
- package/components/list/list__title.js +0 -7
- package/components/list/list__users-groups-source.js +0 -2
- package/components/loader/loader.d.ts +0 -10
- package/components/loader/loader.js +0 -10
- package/components/loader-inline/loader-inline.d.ts +0 -6
- package/components/loader-inline/loader-inline.js +1 -7
- package/components/loader-screen/loader-screen.d.ts +0 -6
- package/components/loader-screen/loader-screen.js +1 -7
- package/components/login-dialog/login-dialog.d.ts +0 -11
- package/components/login-dialog/login-dialog.js +12 -23
- package/components/login-dialog/service.js +3 -2
- package/components/markdown/markdown.js +0 -5
- package/components/message/message.js +0 -16
- package/components/pager/pager.js +0 -20
- package/components/panel/panel.d.ts +0 -5
- package/components/panel/panel.js +1 -6
- package/components/popup/popup.js +0 -41
- package/components/popup/popup.target.js +0 -5
- package/components/popup-menu/popup-menu.js +1 -12
- package/components/progress-bar/progress-bar.d.ts +19 -33
- package/components/progress-bar/progress-bar.js +0 -33
- package/components/query-assist/query-assist.d.ts +63 -93
- package/components/query-assist/query-assist.js +0 -94
- package/components/query-assist/query-assist__suggestions.js +0 -2
- package/components/radio/radio.d.ts +0 -8
- package/components/radio/radio.js +0 -8
- package/components/radio/radio__item.d.ts +0 -9
- package/components/radio/radio__item.js +0 -10
- package/components/select/select.js +0 -65
- package/components/select/select__filter.js +0 -2
- package/components/select/select__popup.js +1 -52
- package/components/shortcuts/core.js +1 -1
- package/components/shortcuts/shortcuts-hoc.d.ts +0 -5
- package/components/shortcuts/shortcuts-hoc.js +2 -7
- package/components/shortcuts/shortcuts.d.ts +0 -8
- package/components/shortcuts/shortcuts.js +0 -8
- package/components/slider/slider.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/tab-trap/tab-trap.js +0 -8
- package/components/table/cell.d.ts +0 -6
- package/components/table/cell.js +1 -7
- package/components/table/disable-hover-hoc.d.ts +0 -1
- package/components/table/disable-hover-hoc.js +1 -1
- package/components/table/header-cell.d.ts +0 -10
- package/components/table/header-cell.js +0 -10
- package/components/table/header.d.ts +0 -15
- package/components/table/header.js +0 -16
- package/components/table/multitable.d.ts +0 -4
- package/components/table/multitable.js +0 -4
- package/components/table/row-with-focus-sensor.d.ts +2 -2
- package/components/table/row-with-focus-sensor.js +0 -3
- package/components/table/row.js +0 -35
- package/components/table/selection-shortcuts-hoc.js +3 -22
- package/components/table/simple-table.d.ts +0 -44
- package/components/table/simple-table.js +1 -7
- package/components/table/smart-table.d.ts +0 -48
- package/components/table/smart-table.js +1 -10
- package/components/table/table.d.ts +0 -2
- package/components/table/table.js +3 -52
- package/components/tabs/collapsible-more.d.ts +1 -9
- package/components/tabs/collapsible-more.js +0 -24
- package/components/tabs/collapsible-tab.js +1 -9
- package/components/tabs/collapsible-tabs.d.ts +2 -29
- package/components/tabs/collapsible-tabs.js +0 -13
- package/components/tabs/custom-item.d.ts +1 -7
- package/components/tabs/custom-item.js +0 -5
- package/components/tabs/dumb-tabs.d.ts +0 -11
- package/components/tabs/dumb-tabs.js +0 -12
- package/components/tabs/smart-tabs.d.ts +0 -6
- package/components/tabs/smart-tabs.js +0 -7
- package/components/tabs/tab-link.d.ts +0 -8
- package/components/tabs/tab-link.js +0 -1
- package/components/tabs/tab.d.ts +0 -8
- package/components/tabs/tab.js +0 -9
- package/components/tabs/tabs.js +0 -2
- package/components/tag/tag.d.ts +0 -17
- package/components/tag/tag.js +0 -17
- package/components/tags-input/tags-input.d.ts +7 -33
- package/components/tags-input/tags-input.js +1 -34
- package/components/tags-list/tags-list.d.ts +0 -13
- package/components/tags-list/tags-list.js +0 -13
- package/components/text/text.d.ts +0 -7
- package/components/text/text.js +0 -7
- package/components/toggle/toggle.d.ts +0 -15
- package/components/toggle/toggle.js +0 -15
- package/components/tooltip/tooltip.d.ts +0 -9
- package/components/tooltip/tooltip.js +0 -9
- package/components/user-agreement/service.js +0 -1
- package/components/user-agreement/user-agreement.d.ts +0 -18
- package/components/user-agreement/user-agreement.js +11 -29
- package/components/user-card/card.d.ts +0 -35
- package/components/user-card/card.js +0 -1
- package/components/user-card/smart-user-card-tooltip.d.ts +0 -5
- package/components/user-card/smart-user-card-tooltip.js +0 -5
- package/components/user-card/tooltip.d.ts +0 -9
- package/components/user-card/tooltip.js +0 -9
- package/components/user-card/user-card.js +0 -1
- package/package.json +1 -2
- package/components/global/prop-types.d.ts +0 -4
- package/components/global/prop-types.js +0 -7
@@ -1,21 +1,18 @@
|
|
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 {
|
4
|
-
import PropTypes from 'prop-types';
|
3
|
+
import { Component, PureComponent, createElement } from 'react';
|
5
4
|
import classNames from 'classnames';
|
6
5
|
import { arrayMove, List } from 'react-movable';
|
7
6
|
import focusSensorHOC from '../global/focus-sensor-hoc.js';
|
8
7
|
import getUID from '../global/get-uid.js';
|
9
8
|
import Shortcuts from '../shortcuts/shortcuts.js';
|
10
9
|
import Loader from '../loader/loader.js';
|
11
|
-
import Selection$1 from './selection.js';
|
12
10
|
import Header from './header.js';
|
13
11
|
import { m as modules_1db4bbca } from '../_helpers/table.js';
|
14
12
|
import selectionShortcutsHOC from './selection-shortcuts-hoc.js';
|
15
13
|
import disableHoverHOC from './disable-hover-hoc.js';
|
16
14
|
import RowWithFocusSensorCallbacks from './row-with-focus-sensor.js';
|
17
|
-
import {
|
18
|
-
import '../global/prop-types.js';
|
15
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
19
16
|
import '../global/composeRefs.js';
|
20
17
|
import 'memoize-one';
|
21
18
|
import '../shortcuts/core.js';
|
@@ -359,63 +356,17 @@ _defineProperty(Table, "defaultProps", {
|
|
359
356
|
RowComponent: RowWithFocusSensorCallbacks,
|
360
357
|
wideFirstColumn: false
|
361
358
|
});
|
362
|
-
Table.propTypes = {
|
363
|
-
className: PropTypes.string,
|
364
|
-
loaderClassName: PropTypes.string,
|
365
|
-
data: PropTypes.array.isRequired,
|
366
|
-
columns: PropTypes.oneOfType([PropTypes.array, PropTypes.func]).isRequired,
|
367
|
-
caption: PropTypes.string,
|
368
|
-
isItemSelectable: PropTypes.func,
|
369
|
-
stickyHeader: PropTypes.bool,
|
370
|
-
stickyHeaderOffset: PropTypes.string,
|
371
|
-
loading: PropTypes.bool,
|
372
|
-
getItemKey: PropTypes.func,
|
373
|
-
getItemClassName: PropTypes.func,
|
374
|
-
getMetaColumnClassName: PropTypes.func,
|
375
|
-
getItemDataTest: PropTypes.func,
|
376
|
-
onSort: PropTypes.func,
|
377
|
-
onReorder: PropTypes.func,
|
378
|
-
sortKey: PropTypes.string,
|
379
|
-
sortOrder: PropTypes.bool,
|
380
|
-
draggable: PropTypes.bool,
|
381
|
-
alwaysShowDragHandle: PropTypes.bool,
|
382
|
-
getItemLevel: PropTypes.func,
|
383
|
-
isItemCollapsible: PropTypes.func,
|
384
|
-
isParentCollapsible: PropTypes.func,
|
385
|
-
isItemCollapsed: PropTypes.func,
|
386
|
-
onItemCollapse: PropTypes.func,
|
387
|
-
onItemExpand: PropTypes.func,
|
388
|
-
isDisabledSelectionVisible: PropTypes.func,
|
389
|
-
getCheckboxTooltip: PropTypes.func,
|
390
|
-
onItemDoubleClick: PropTypes.func,
|
391
|
-
onItemClick: PropTypes.func,
|
392
|
-
wideFirstColumn: PropTypes.bool,
|
393
|
-
// focusSensorHOC
|
394
|
-
focused: PropTypes.bool,
|
395
|
-
onFocusRestore: PropTypes.func,
|
396
|
-
innerRef: PropTypes.oneOfType([PropTypes.object, PropTypes.string, PropTypes.func]),
|
397
|
-
// selectionShortcutsHOC
|
398
|
-
selection: PropTypes.instanceOf(Selection$1).isRequired,
|
399
|
-
selectable: PropTypes.bool,
|
400
|
-
onSelect: PropTypes.func,
|
401
|
-
shortcutsMap: PropTypes.object,
|
402
|
-
// disableHoverHOC
|
403
|
-
disabledHover: PropTypes.bool,
|
404
|
-
remoteSelection: PropTypes.bool,
|
405
|
-
renderEmpty: PropTypes.func
|
406
|
-
};
|
407
359
|
const getContainer = () => disableHoverHOC(selectionShortcutsHOC(focusSensorHOC(Table)));
|
408
360
|
// eslint-disable-next-line react/no-multi-comp
|
409
361
|
class TableContainer extends Component {
|
410
362
|
constructor() {
|
411
363
|
super(...arguments);
|
364
|
+
// https://stackoverflow.com/a/53882322/6304152
|
412
365
|
_defineProperty(this, "Table", getContainer());
|
413
366
|
}
|
414
367
|
render() {
|
415
368
|
return /*#__PURE__*/jsx(this.Table, _objectSpread2({}, this.props));
|
416
369
|
}
|
417
370
|
}
|
418
|
-
// https://stackoverflow.com/a/53882322/6304152
|
419
|
-
_defineProperty(TableContainer, "propTypes", getContainer().propTypes);
|
420
371
|
|
421
372
|
export { Table, TableContainer as default };
|
@@ -1,5 +1,4 @@
|
|
1
1
|
import { ReactElement, ReactNode } from 'react';
|
2
|
-
import PropTypes from 'prop-types';
|
3
2
|
import { LinkProps } from '../link/link';
|
4
3
|
import { TabProps } from './tab';
|
5
4
|
export interface FakeMoreButtonProps {
|
@@ -7,14 +6,7 @@ export interface FakeMoreButtonProps {
|
|
7
6
|
moreClassName?: string | null | undefined;
|
8
7
|
moreActiveClassName?: string | null | undefined;
|
9
8
|
}
|
10
|
-
export declare const AnchorLink: {
|
11
|
-
({ hasActiveChildren, moreClassName, moreActiveClassName, ...restProps }: Omit<LinkProps, "children"> & FakeMoreButtonProps): import("react").JSX.Element;
|
12
|
-
propTypes: {
|
13
|
-
hasActiveChildren: PropTypes.Requireable<boolean>;
|
14
|
-
moreClassName: PropTypes.Requireable<string>;
|
15
|
-
moreActiveClassName: PropTypes.Requireable<string>;
|
16
|
-
};
|
17
|
-
};
|
9
|
+
export declare const AnchorLink: ({ hasActiveChildren, moreClassName, moreActiveClassName, ...restProps }: Omit<LinkProps, "children"> & FakeMoreButtonProps) => import("react").JSX.Element;
|
18
10
|
export interface MoreButtonProps {
|
19
11
|
items: ReactElement<TabProps>[];
|
20
12
|
selected?: string | undefined;
|
@@ -2,7 +2,6 @@ import { a as _objectWithoutProperties, b as _objectSpread2 } from '../_helpers/
|
|
2
2
|
import { memo, useCallback, useMemo } from 'react';
|
3
3
|
import classNames from 'classnames';
|
4
4
|
import chevronDown from '@jetbrains/icons/chevron-10px';
|
5
|
-
import PropTypes from 'prop-types';
|
6
5
|
import { Directions } from '../popup/popup.consts.js';
|
7
6
|
import PopupMenu, { ListProps } from '../popup-menu/popup-menu.js';
|
8
7
|
import Dropdown from '../dropdown/dropdown.js';
|
@@ -50,7 +49,6 @@ import '../avatar/fallback-avatar.js';
|
|
50
49
|
import '../checkbox/checkbox.js';
|
51
50
|
import '@jetbrains/icons/checkmark-12px';
|
52
51
|
import '@jetbrains/icons/remove-12px';
|
53
|
-
import '../global/prop-types.js';
|
54
52
|
import '../global/composeRefs.js';
|
55
53
|
import '../control-help/control-help.js';
|
56
54
|
import '../list/list__custom.js';
|
@@ -89,11 +87,6 @@ const AnchorLink = _ref => {
|
|
89
87
|
})]
|
90
88
|
}));
|
91
89
|
};
|
92
|
-
AnchorLink.propTypes = {
|
93
|
-
hasActiveChildren: PropTypes.bool,
|
94
|
-
moreClassName: PropTypes.string,
|
95
|
-
moreActiveClassName: PropTypes.string
|
96
|
-
};
|
97
90
|
const morePopupDirections = [Directions.BOTTOM_CENTER, Directions.BOTTOM_LEFT, Directions.BOTTOM_RIGHT];
|
98
91
|
const MoreButton = /*#__PURE__*/memo(_ref2 => {
|
99
92
|
let {
|
@@ -164,18 +157,6 @@ const MoreButton = /*#__PURE__*/memo(_ref2 => {
|
|
164
157
|
})
|
165
158
|
});
|
166
159
|
});
|
167
|
-
MoreButton.propTypes = {
|
168
|
-
children: PropTypes.node,
|
169
|
-
items: PropTypes.array,
|
170
|
-
selected: PropTypes.string,
|
171
|
-
onSelect: PropTypes.func,
|
172
|
-
toMeasure: PropTypes.bool,
|
173
|
-
moreClassName: PropTypes.string,
|
174
|
-
moreActiveClassName: PropTypes.string,
|
175
|
-
morePopupClassName: PropTypes.string,
|
176
|
-
morePopupItemClassName: PropTypes.string,
|
177
|
-
morePopupBeforeEnd: PropTypes.element
|
178
|
-
};
|
179
160
|
MoreButton.displayName = 'MoreButton';
|
180
161
|
const FakeMoreButton = /*#__PURE__*/memo(_ref3 => {
|
181
162
|
let {
|
@@ -194,11 +175,6 @@ const FakeMoreButton = /*#__PURE__*/memo(_ref3 => {
|
|
194
175
|
})
|
195
176
|
});
|
196
177
|
});
|
197
|
-
FakeMoreButton.propTypes = {
|
198
|
-
moreClassName: PropTypes.string,
|
199
|
-
moreActiveClassName: PropTypes.string,
|
200
|
-
hasActiveChildren: PropTypes.bool
|
201
|
-
};
|
202
178
|
FakeMoreButton.displayName = 'FakeMoreButton';
|
203
179
|
|
204
180
|
export { AnchorLink, FakeMoreButton, MoreButton };
|
@@ -1,7 +1,6 @@
|
|
1
|
-
import {
|
1
|
+
import { a as _objectWithoutProperties, b as _objectSpread2 } from '../_helpers/_rollupPluginBabelHelpers.js';
|
2
2
|
import * as React from 'react';
|
3
3
|
import classNames from 'classnames';
|
4
|
-
import PropTypes from 'prop-types';
|
5
4
|
import { m as modules_02138f4a, T as TabLink } from '../_helpers/tab-link.js';
|
6
5
|
import { CustomItem } from './custom-item.js';
|
7
6
|
import { jsx } from 'react/jsx-runtime';
|
@@ -54,13 +53,6 @@ const TabTitle = /*#__PURE__*/React.memo(function TabTitle(_ref) {
|
|
54
53
|
collapsed: collapsed
|
55
54
|
}, titleProps));
|
56
55
|
});
|
57
|
-
TabTitle.propTypes = {
|
58
|
-
child: PropTypes.element,
|
59
|
-
handleSelect: PropTypes.func,
|
60
|
-
selected: PropTypes.bool,
|
61
|
-
collapsed: PropTypes.bool,
|
62
|
-
tabIndex: PropTypes.number
|
63
|
-
};
|
64
56
|
const getTabTitles = _ref2 => {
|
65
57
|
let {
|
66
58
|
items,
|
@@ -1,5 +1,4 @@
|
|
1
1
|
import { ReactElement, ReactNode } from 'react';
|
2
|
-
import PropTypes from 'prop-types';
|
3
2
|
import { TabProps } from './tab';
|
4
3
|
export interface CollapsibleTabsProps {
|
5
4
|
children: ReactElement<TabProps>[];
|
@@ -12,32 +11,6 @@ export interface CollapsibleTabsProps {
|
|
12
11
|
initialVisibleItems?: number | null | undefined;
|
13
12
|
morePopupBeforeEnd?: ReactNode;
|
14
13
|
}
|
15
|
-
export declare const CollapsibleTabs: {
|
16
|
-
|
17
|
-
propTypes: {
|
18
|
-
children: PropTypes.Validator<NonNullable<PropTypes.ReactNodeLike>>;
|
19
|
-
selected: PropTypes.Requireable<string>;
|
20
|
-
onSelect: PropTypes.Validator<(...args: any[]) => any>;
|
21
|
-
moreClassName: PropTypes.Requireable<string>;
|
22
|
-
moreActiveClassName: PropTypes.Requireable<string>;
|
23
|
-
morePopupClassName: PropTypes.Requireable<string>;
|
24
|
-
morePopupItemClassName: PropTypes.Requireable<string>;
|
25
|
-
initialVisibleItems: PropTypes.Requireable<number>;
|
26
|
-
morePopupBeforeEnd: PropTypes.Requireable<PropTypes.ReactElementLike>;
|
27
|
-
};
|
28
|
-
};
|
29
|
-
declare const _default: import("react").MemoExoticComponent<{
|
30
|
-
({ children, selected, onSelect, moreClassName, moreActiveClassName, morePopupClassName, morePopupBeforeEnd, morePopupItemClassName, initialVisibleItems }: CollapsibleTabsProps): import("react").JSX.Element;
|
31
|
-
propTypes: {
|
32
|
-
children: PropTypes.Validator<NonNullable<PropTypes.ReactNodeLike>>;
|
33
|
-
selected: PropTypes.Requireable<string>;
|
34
|
-
onSelect: PropTypes.Validator<(...args: any[]) => any>;
|
35
|
-
moreClassName: PropTypes.Requireable<string>;
|
36
|
-
moreActiveClassName: PropTypes.Requireable<string>;
|
37
|
-
morePopupClassName: PropTypes.Requireable<string>;
|
38
|
-
morePopupItemClassName: PropTypes.Requireable<string>;
|
39
|
-
initialVisibleItems: PropTypes.Requireable<number>;
|
40
|
-
morePopupBeforeEnd: PropTypes.Requireable<PropTypes.ReactElementLike>;
|
41
|
-
};
|
42
|
-
}>;
|
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>;
|
43
16
|
export default _default;
|
@@ -3,7 +3,6 @@ import 'core-js/modules/es.regexp.exec.js';
|
|
3
3
|
import 'core-js/modules/es.string.replace.js';
|
4
4
|
import 'core-js/modules/web.dom-collections.iterator.js';
|
5
5
|
import { memo, useState, useRef, useMemo, useCallback, useEffect } from 'react';
|
6
|
-
import PropTypes from 'prop-types';
|
7
6
|
import classNames from 'classnames';
|
8
7
|
import fastdom from 'fastdom';
|
9
8
|
import { m as modules_02138f4a } from '../_helpers/tab-link.js';
|
@@ -54,7 +53,6 @@ import '@jetbrains/icons/remove-12px';
|
|
54
53
|
import '../icon/icon.js';
|
55
54
|
import '../icon/icon__constants.js';
|
56
55
|
import '../_helpers/icon__svg.js';
|
57
|
-
import '../global/prop-types.js';
|
58
56
|
import '../global/composeRefs.js';
|
59
57
|
import '../control-help/control-help.js';
|
60
58
|
import '../list/list__custom.js';
|
@@ -285,17 +283,6 @@ const CollapsibleTabs = _ref => {
|
|
285
283
|
})]
|
286
284
|
});
|
287
285
|
};
|
288
|
-
CollapsibleTabs.propTypes = {
|
289
|
-
children: PropTypes.node.isRequired,
|
290
|
-
selected: PropTypes.string,
|
291
|
-
onSelect: PropTypes.func.isRequired,
|
292
|
-
moreClassName: PropTypes.string,
|
293
|
-
moreActiveClassName: PropTypes.string,
|
294
|
-
morePopupClassName: PropTypes.string,
|
295
|
-
morePopupItemClassName: PropTypes.string,
|
296
|
-
initialVisibleItems: PropTypes.number,
|
297
|
-
morePopupBeforeEnd: PropTypes.element
|
298
|
-
};
|
299
286
|
var CollapsibleTabs$1 = /*#__PURE__*/memo(CollapsibleTabs);
|
300
287
|
|
301
288
|
export { CollapsibleTabs, CollapsibleTabs$1 as default };
|
@@ -1,9 +1,3 @@
|
|
1
|
-
import PropTypes from 'prop-types';
|
2
1
|
import { ReactElement } from 'react';
|
3
2
|
import { TabProps } from './tab';
|
4
|
-
export declare const CustomItem: {
|
5
|
-
({ children }: TabProps): ReactElement;
|
6
|
-
propTypes: {
|
7
|
-
children: PropTypes.Validator<NonNullable<PropTypes.ReactNodeLike>>;
|
8
|
-
};
|
9
|
-
};
|
3
|
+
export declare const CustomItem: ({ children }: TabProps) => ReactElement;
|
@@ -1,6 +1,5 @@
|
|
1
1
|
import { PureComponent, ReactElement } from 'react';
|
2
2
|
import * as React from 'react';
|
3
|
-
import PropTypes from 'prop-types';
|
4
3
|
import { CollapsibleTabsProps } from './collapsible-tabs';
|
5
4
|
import { CustomItem } from './custom-item';
|
6
5
|
import { TabProps } from './tab';
|
@@ -15,16 +14,6 @@ export interface TabsProps extends Omit<CollapsibleTabsProps, 'onSelect' | 'chil
|
|
15
14
|
'data-test'?: string | null | undefined;
|
16
15
|
}
|
17
16
|
declare class Tabs extends PureComponent<TabsProps> {
|
18
|
-
static propTypes: {
|
19
|
-
selected: PropTypes.Requireable<string>;
|
20
|
-
className: PropTypes.Requireable<string>;
|
21
|
-
tabContainerClassName: PropTypes.Requireable<string>;
|
22
|
-
href: PropTypes.Requireable<string>;
|
23
|
-
children: PropTypes.Validator<NonNullable<PropTypes.ReactNodeLike>>;
|
24
|
-
onSelect: PropTypes.Requireable<(...args: any[]) => any>;
|
25
|
-
'data-test': PropTypes.Requireable<string>;
|
26
|
-
autoCollapse: PropTypes.Requireable<boolean>;
|
27
|
-
};
|
28
17
|
static defaultProps: {
|
29
18
|
onSelect(): void;
|
30
19
|
};
|
@@ -2,7 +2,6 @@ import { _ as _defineProperty, b as _objectSpread2, a as _objectWithoutPropertie
|
|
2
2
|
import 'core-js/modules/web.dom-collections.iterator.js';
|
3
3
|
import * as React from 'react';
|
4
4
|
import { PureComponent } from 'react';
|
5
|
-
import PropTypes from 'prop-types';
|
6
5
|
import classNames from 'classnames';
|
7
6
|
import memoize from '../global/memoize.js';
|
8
7
|
import joinDataTestAttributes from '../global/data-tests.js';
|
@@ -56,7 +55,6 @@ import '@jetbrains/icons/remove-12px';
|
|
56
55
|
import '../icon/icon.js';
|
57
56
|
import '../icon/icon__constants.js';
|
58
57
|
import '../_helpers/icon__svg.js';
|
59
|
-
import '../global/prop-types.js';
|
60
58
|
import '../global/composeRefs.js';
|
61
59
|
import '../control-help/control-help.js';
|
62
60
|
import '../list/list__custom.js';
|
@@ -145,16 +143,6 @@ class Tabs extends PureComponent {
|
|
145
143
|
});
|
146
144
|
}
|
147
145
|
}
|
148
|
-
_defineProperty(Tabs, "propTypes", {
|
149
|
-
selected: PropTypes.string,
|
150
|
-
className: PropTypes.string,
|
151
|
-
tabContainerClassName: PropTypes.string,
|
152
|
-
href: PropTypes.string,
|
153
|
-
children: PropTypes.node.isRequired,
|
154
|
-
onSelect: PropTypes.func,
|
155
|
-
'data-test': PropTypes.string,
|
156
|
-
autoCollapse: PropTypes.bool
|
157
|
-
});
|
158
146
|
_defineProperty(Tabs, "defaultProps", {
|
159
147
|
onSelect() {}
|
160
148
|
});
|
@@ -1,16 +1,10 @@
|
|
1
1
|
import { PureComponent } from 'react';
|
2
|
-
import PropTypes from 'prop-types';
|
3
2
|
import { TabsAttrs, Children } from './dumb-tabs';
|
4
3
|
export interface SmartTabsProps extends TabsAttrs {
|
5
4
|
children: Children;
|
6
5
|
initSelected?: string | null | undefined;
|
7
6
|
}
|
8
7
|
export default class SmartTabs extends PureComponent<SmartTabsProps> {
|
9
|
-
static propTypes: {
|
10
|
-
children: PropTypes.Validator<(PropTypes.ReactElementLike | null | undefined)[]>;
|
11
|
-
initSelected: PropTypes.Requireable<string>;
|
12
|
-
'data-test': PropTypes.Requireable<string>;
|
13
|
-
};
|
14
8
|
constructor(props: SmartTabsProps);
|
15
9
|
state: {
|
16
10
|
selected: string;
|
@@ -1,6 +1,5 @@
|
|
1
1
|
import { _ as _defineProperty, a as _objectWithoutProperties, b as _objectSpread2 } from '../_helpers/_rollupPluginBabelHelpers.js';
|
2
2
|
import { PureComponent } from 'react';
|
3
|
-
import PropTypes from 'prop-types';
|
4
3
|
import joinDataTestAttributes from '../global/data-tests.js';
|
5
4
|
import Tabs from './dumb-tabs.js';
|
6
5
|
import { jsx } from 'react/jsx-runtime';
|
@@ -55,7 +54,6 @@ import '@jetbrains/icons/remove-12px';
|
|
55
54
|
import '../icon/icon.js';
|
56
55
|
import '../icon/icon__constants.js';
|
57
56
|
import '../_helpers/icon__svg.js';
|
58
|
-
import '../global/prop-types.js';
|
59
57
|
import '../global/composeRefs.js';
|
60
58
|
import '../control-help/control-help.js';
|
61
59
|
import '../list/list__custom.js';
|
@@ -103,10 +101,5 @@ class SmartTabs extends PureComponent {
|
|
103
101
|
}));
|
104
102
|
}
|
105
103
|
}
|
106
|
-
_defineProperty(SmartTabs, "propTypes", {
|
107
|
-
children: PropTypes.arrayOf(PropTypes.element).isRequired,
|
108
|
-
initSelected: PropTypes.string,
|
109
|
-
'data-test': PropTypes.string
|
110
|
-
});
|
111
104
|
|
112
105
|
export { SmartTabs as default };
|
@@ -1,5 +1,4 @@
|
|
1
1
|
import { ReactNode } from 'react';
|
2
|
-
import PropTypes from 'prop-types';
|
3
2
|
import { LinkProps } from '../link/link';
|
4
3
|
export interface TabLinkProps extends Omit<LinkProps, 'title' | 'children'> {
|
5
4
|
isSelected: boolean;
|
@@ -7,12 +6,5 @@ export interface TabLinkProps extends Omit<LinkProps, 'title' | 'children'> {
|
|
7
6
|
title: ReactNode | ((isSelected: boolean, collapsed: boolean | undefined) => ReactNode);
|
8
7
|
}
|
9
8
|
declare function TabLink({ isSelected, title, collapsed, ...restProps }: TabLinkProps): import("react").JSX.Element;
|
10
|
-
declare namespace TabLink {
|
11
|
-
var propTypes: {
|
12
|
-
isSelected: PropTypes.Requireable<boolean>;
|
13
|
-
collapsed: PropTypes.Requireable<boolean>;
|
14
|
-
title: PropTypes.Requireable<NonNullable<PropTypes.ReactNodeLike | ((...args: any[]) => any)>>;
|
15
|
-
};
|
16
|
-
}
|
17
9
|
declare const _default: import("react").MemoExoticComponent<typeof TabLink>;
|
18
10
|
export default _default;
|
package/components/tabs/tab.d.ts
CHANGED
@@ -1,5 +1,4 @@
|
|
1
1
|
import { PureComponent, ReactNode } from 'react';
|
2
|
-
import PropTypes from 'prop-types';
|
3
2
|
import { TabLinkProps } from './tab-link';
|
4
3
|
export interface TabProps {
|
5
4
|
title?: ReactNode | ((isSelected: boolean, collapsed: boolean | undefined) => ReactNode);
|
@@ -16,12 +15,5 @@ export interface TabProps {
|
|
16
15
|
collapsedActiveClassName?: string | null | undefined;
|
17
16
|
}
|
18
17
|
export default class Tab extends PureComponent<TabProps> {
|
19
|
-
static propTypes: {
|
20
|
-
title: PropTypes.Validator<NonNullable<NonNullable<PropTypes.ReactNodeLike | ((...args: any[]) => any)>>>;
|
21
|
-
id: PropTypes.Requireable<string>;
|
22
|
-
className: PropTypes.Requireable<string>;
|
23
|
-
children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
24
|
-
'data-test': PropTypes.Requireable<string>;
|
25
|
-
};
|
26
18
|
render(): import("react").JSX.Element;
|
27
19
|
}
|
package/components/tabs/tab.js
CHANGED
@@ -1,6 +1,4 @@
|
|
1
|
-
import { _ as _defineProperty } from '../_helpers/_rollupPluginBabelHelpers.js';
|
2
1
|
import { PureComponent } from 'react';
|
3
|
-
import PropTypes from 'prop-types';
|
4
2
|
import classNames from 'classnames';
|
5
3
|
import joinDataTestAttributes from '../global/data-tests.js';
|
6
4
|
import { jsx } from 'react/jsx-runtime';
|
@@ -21,12 +19,5 @@ class Tab extends PureComponent {
|
|
21
19
|
});
|
22
20
|
}
|
23
21
|
}
|
24
|
-
_defineProperty(Tab, "propTypes", {
|
25
|
-
title: PropTypes.oneOfType([PropTypes.node, PropTypes.func]).isRequired,
|
26
|
-
id: PropTypes.string,
|
27
|
-
className: PropTypes.string,
|
28
|
-
children: PropTypes.node,
|
29
|
-
'data-test': PropTypes.string
|
30
|
-
});
|
31
22
|
|
32
23
|
export { Tab as default };
|
package/components/tabs/tabs.js
CHANGED
@@ -2,7 +2,6 @@ export { CustomItem } from './custom-item.js';
|
|
2
2
|
export { default as Tabs } from './dumb-tabs.js';
|
3
3
|
export { default as SmartTabs } from './smart-tabs.js';
|
4
4
|
export { default as Tab } from './tab.js';
|
5
|
-
import 'prop-types';
|
6
5
|
import '../_helpers/_rollupPluginBabelHelpers.js';
|
7
6
|
import 'core-js/modules/web.dom-collections.iterator.js';
|
8
7
|
import 'react';
|
@@ -58,7 +57,6 @@ import '@jetbrains/icons/remove-12px';
|
|
58
57
|
import '../icon/icon.js';
|
59
58
|
import '../icon/icon__constants.js';
|
60
59
|
import '../_helpers/icon__svg.js';
|
61
|
-
import '../global/prop-types.js';
|
62
60
|
import '../global/composeRefs.js';
|
63
61
|
import '../control-help/control-help.js';
|
64
62
|
import '../list/list__custom.js';
|
package/components/tag/tag.d.ts
CHANGED
@@ -1,6 +1,5 @@
|
|
1
1
|
import { HTMLAttributes, PureComponent, ReactNode, RefCallback } from 'react';
|
2
2
|
import * as React from 'react';
|
3
|
-
import PropTypes from 'prop-types';
|
4
3
|
import { IconType } from '../icon/icon';
|
5
4
|
export interface TagRenderProps extends HTMLAttributes<HTMLElement> {
|
6
5
|
disabled: boolean;
|
@@ -27,22 +26,6 @@ export interface TagProps {
|
|
27
26
|
* @name Tag
|
28
27
|
*/
|
29
28
|
export default class Tag extends PureComponent<TagProps> {
|
30
|
-
static propTypes: {
|
31
|
-
onRemove: PropTypes.Requireable<(...args: any[]) => any>;
|
32
|
-
onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
33
|
-
rgTagIcon: PropTypes.Requireable<NonNullable<PropTypes.ReactComponentLike | null | undefined>>;
|
34
|
-
icon: PropTypes.Requireable<string>;
|
35
|
-
avatar: PropTypes.Requireable<string>;
|
36
|
-
rgTagTitle: PropTypes.Requireable<string>;
|
37
|
-
readOnly: PropTypes.Requireable<boolean>;
|
38
|
-
disabled: PropTypes.Requireable<boolean>;
|
39
|
-
focused: PropTypes.Requireable<boolean>;
|
40
|
-
backgroundColor: PropTypes.Requireable<string>;
|
41
|
-
textColor: PropTypes.Requireable<string>;
|
42
|
-
children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
43
|
-
className: PropTypes.Requireable<string>;
|
44
|
-
render: PropTypes.Requireable<(...args: any[]) => any>;
|
45
|
-
};
|
46
29
|
static defaultProps: TagProps;
|
47
30
|
state: {
|
48
31
|
focused: boolean;
|
package/components/tag/tag.js
CHANGED
@@ -1,7 +1,6 @@
|
|
1
1
|
import { _ as _defineProperty, b as _objectSpread2 } from '../_helpers/_rollupPluginBabelHelpers.js';
|
2
2
|
import 'core-js/modules/web.dom-collections.iterator.js';
|
3
3
|
import { PureComponent } from 'react';
|
4
|
-
import PropTypes from 'prop-types';
|
5
4
|
import classNames from 'classnames';
|
6
5
|
import closeIcon from '@jetbrains/icons/close-12px';
|
7
6
|
import Icon from '../icon/icon.js';
|
@@ -149,22 +148,6 @@ class Tag extends PureComponent {
|
|
149
148
|
});
|
150
149
|
}
|
151
150
|
}
|
152
|
-
_defineProperty(Tag, "propTypes", {
|
153
|
-
onRemove: PropTypes.func,
|
154
|
-
onClick: PropTypes.func,
|
155
|
-
rgTagIcon: PropTypes.oneOfType([PropTypes.string, PropTypes.elementType]),
|
156
|
-
icon: PropTypes.string,
|
157
|
-
avatar: PropTypes.string,
|
158
|
-
rgTagTitle: PropTypes.string,
|
159
|
-
readOnly: PropTypes.bool,
|
160
|
-
disabled: PropTypes.bool,
|
161
|
-
focused: PropTypes.bool,
|
162
|
-
backgroundColor: PropTypes.string,
|
163
|
-
textColor: PropTypes.string,
|
164
|
-
children: PropTypes.node,
|
165
|
-
className: PropTypes.string,
|
166
|
-
render: PropTypes.func
|
167
|
-
});
|
168
151
|
_defineProperty(Tag, "defaultProps", {
|
169
152
|
onRemove: () => {},
|
170
153
|
onClick: () => {},
|
@@ -1,6 +1,5 @@
|
|
1
|
-
import {
|
1
|
+
import { PureComponent, SyntheticEvent, ReactNode, ComponentType } from 'react';
|
2
2
|
import * as React from 'react';
|
3
|
-
import PropTypes from 'prop-types';
|
4
3
|
import Select, { SelectItem } from '../select/select';
|
5
4
|
import { TagType } from '../tags-list/tags-list';
|
6
5
|
import Caret from '../caret/caret';
|
@@ -17,6 +16,12 @@ export interface TagsInputRequestParams {
|
|
17
16
|
query: string;
|
18
17
|
}
|
19
18
|
export interface TagsInputProps {
|
19
|
+
/**
|
20
|
+
* Datasource should return array(or promise) of suggestions.
|
21
|
+
* Each suggestion should contain key and label fields.
|
22
|
+
* DataSource should handle caching and response racing (when later request
|
23
|
+
* responded earlier) by himself.
|
24
|
+
*/
|
20
25
|
dataSource: (params: TagsInputRequestParams) => readonly SelectItem[] | Promise<readonly SelectItem[]>;
|
21
26
|
onAddTag: (params: ToggleTagParams) => void;
|
22
27
|
onRemoveTag: (params: ToggleTagParams) => void;
|
@@ -51,37 +56,6 @@ interface TagsInputState {
|
|
51
56
|
activeIndex: number | null | undefined;
|
52
57
|
}
|
53
58
|
export default class TagsInput extends PureComponent<TagsInputProps, TagsInputState> {
|
54
|
-
static propTypes: {
|
55
|
-
className: PropTypes.Requireable<string>;
|
56
|
-
tags: PropTypes.Requireable<any[]>;
|
57
|
-
/**
|
58
|
-
* Datasource should return array(or promise) of suggestions.
|
59
|
-
* Each suggestion should contain key and label fields.
|
60
|
-
* DataSource should handle caching and response racing (when later request
|
61
|
-
* responded earlier) by himself.
|
62
|
-
*/
|
63
|
-
dataSource: PropTypes.Requireable<(...args: any[]) => any>;
|
64
|
-
onAddTag: PropTypes.Requireable<(...args: any[]) => any>;
|
65
|
-
onRemoveTag: PropTypes.Requireable<(...args: any[]) => any>;
|
66
|
-
customTagComponent: PropTypes.Requireable<Component<unknown, unknown, unknown>>;
|
67
|
-
maxPopupHeight: PropTypes.Requireable<number>;
|
68
|
-
minPopupWidth: PropTypes.Requireable<number>;
|
69
|
-
placeholder: PropTypes.Requireable<string>;
|
70
|
-
canNotBeEmpty: PropTypes.Requireable<boolean>;
|
71
|
-
disabled: PropTypes.Requireable<boolean>;
|
72
|
-
autoOpen: PropTypes.Requireable<boolean>;
|
73
|
-
renderOptimization: PropTypes.Requireable<boolean>;
|
74
|
-
filter: PropTypes.Requireable<NonNullable<boolean | PropTypes.InferProps<{
|
75
|
-
fn: PropTypes.Requireable<(...args: any[]) => any>;
|
76
|
-
}> | null | undefined>>;
|
77
|
-
size: PropTypes.Requireable<string>;
|
78
|
-
height: PropTypes.Requireable<string>;
|
79
|
-
label: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
80
|
-
loadingMessage: PropTypes.Requireable<string>;
|
81
|
-
notFoundMessage: PropTypes.Requireable<string>;
|
82
|
-
hint: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
83
|
-
allowAddNewTags: PropTypes.Requireable<boolean>;
|
84
|
-
};
|
85
59
|
static defaultProps: {
|
86
60
|
dataSource: typeof noop;
|
87
61
|
onAddTag: typeof noop;
|
@@ -1,7 +1,6 @@
|
|
1
1
|
import { _ as _defineProperty } from '../_helpers/_rollupPluginBabelHelpers.js';
|
2
2
|
import 'core-js/modules/web.dom-collections.iterator.js';
|
3
|
-
import {
|
4
|
-
import PropTypes from 'prop-types';
|
3
|
+
import { PureComponent } from 'react';
|
5
4
|
import classNames from 'classnames';
|
6
5
|
import getEventKey from '../global/get-event-key.js';
|
7
6
|
import Select from '../select/select.js';
|
@@ -66,7 +65,6 @@ import '../list/list__item.js';
|
|
66
65
|
import '../checkbox/checkbox.js';
|
67
66
|
import '@jetbrains/icons/checkmark-12px';
|
68
67
|
import '@jetbrains/icons/remove-12px';
|
69
|
-
import '../global/prop-types.js';
|
70
68
|
import '../global/composeRefs.js';
|
71
69
|
import '../control-help/control-help.js';
|
72
70
|
import '../list/list__custom.js';
|
@@ -399,37 +397,6 @@ class TagsInput extends PureComponent {
|
|
399
397
|
});
|
400
398
|
}
|
401
399
|
}
|
402
|
-
_defineProperty(TagsInput, "propTypes", {
|
403
|
-
className: PropTypes.string,
|
404
|
-
tags: PropTypes.array,
|
405
|
-
/**
|
406
|
-
* Datasource should return array(or promise) of suggestions.
|
407
|
-
* Each suggestion should contain key and label fields.
|
408
|
-
* DataSource should handle caching and response racing (when later request
|
409
|
-
* responded earlier) by himself.
|
410
|
-
*/
|
411
|
-
dataSource: PropTypes.func,
|
412
|
-
onAddTag: PropTypes.func,
|
413
|
-
onRemoveTag: PropTypes.func,
|
414
|
-
customTagComponent: PropTypes.instanceOf(Component),
|
415
|
-
maxPopupHeight: PropTypes.number,
|
416
|
-
minPopupWidth: PropTypes.number,
|
417
|
-
placeholder: PropTypes.string,
|
418
|
-
canNotBeEmpty: PropTypes.bool,
|
419
|
-
disabled: PropTypes.bool,
|
420
|
-
autoOpen: PropTypes.bool,
|
421
|
-
renderOptimization: PropTypes.bool,
|
422
|
-
filter: PropTypes.oneOfType([PropTypes.bool, PropTypes.shape({
|
423
|
-
fn: PropTypes.func
|
424
|
-
})]),
|
425
|
-
size: PropTypes.string,
|
426
|
-
height: PropTypes.string,
|
427
|
-
label: PropTypes.node,
|
428
|
-
loadingMessage: PropTypes.string,
|
429
|
-
notFoundMessage: PropTypes.string,
|
430
|
-
hint: PropTypes.node,
|
431
|
-
allowAddNewTags: PropTypes.bool
|
432
|
-
});
|
433
400
|
_defineProperty(TagsInput, "defaultProps", {
|
434
401
|
dataSource: noop,
|
435
402
|
onAddTag: noop,
|